/* Loaded before the website can paint. The engine and its layout keep
   running behind this surface; only incomplete presentation is covered. */
html.corista-opening, html.corista-rotating {background:var(--corista-shell-bg,#0B0B0C) !important;}
html.corista-opening body {visibility:hidden;}
html.corista-opening::before, html.corista-rotating::before {
 content:'';position:fixed;inset:0;z-index:2147483646;
 background:var(--corista-shell-bg,#0B0B0C);pointer-events:auto;
}
/* Access still goes through the existing key dialog, including cancel. */
html.corista-opening .tuner__chiave,
html.corista-opening .corista-start-recovery {
 visibility:visible !important;position:fixed;z-index:2147483647 !important;
}
.corista-start-recovery {
 inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
 gap:16px;padding:24px;background:var(--corista-shell-bg,#0B0B0C);
 color:#b6a28a;font:16px/1.5 system-ui,sans-serif;text-align:center;
}
.corista-start-recovery button {
 padding:12px 22px;min-height:44px;border:1px solid currentColor;border-radius:12px;
 background:transparent;color:inherit;font:inherit;cursor:pointer;
}

/* Read only while opening/rotating; no permanent frame loop. Keeping this
   inside the panel avoids disturbing page layout or the website. */
.corista-viewport-probe {
 position:fixed;top:0;left:0;width:0;height:100vh;height:100dvh;
 padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px)
   env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);
 visibility:hidden;pointer-events:none;box-sizing:border-box;
}
