/* studio_games_premium.css — the host for Codex's games-premium R01 renderer (assets/js/studio/games_premium/,
   wired by assets/js/studio/studio_games_premium.js). PREVIEW LAYER ONLY: every rule needs body.hts-studio.
   The renderer paints inside its own same-origin iframe (premium.css never touches the app). The host is laid
   exactly over #view (the exercise frame: studio_exercise.css pins it fixed, z 110; on 360 phones it already
   sits on the dock). While body.gp-on is set, the engine's own DOM stays laid out and live under it but is not
   painted; overlays (R04 reminders, paywalls, verify) keep their z-index above the host. */
body.hts-studio .gp-host{position:fixed;z-index:111;display:none;margin:0;padding:0;border:0;overflow:hidden;background:transparent;box-sizing:border-box}
body:not(.hts-studio) .gp-host{display:none!important}
body.hts-studio.gp-on #view,body.hts-studio.gp-on #view *{visibility:hidden!important}
body.hts-studio.gp-on #qsheet,body.hts-studio.gp-on #qsheet *{visibility:hidden!important;pointer-events:none!important}
/* engine toasts ("Copied — paste to share", "Mic permission denied") stay readable over the premium frame */
body.hts-studio.gp-on .toast{z-index:112!important}
/* OWNER-ONLY (2026-10-01): body.gp-owner is written by studio_games_premium.js only when the /me email is
   caseyloop@hotmail.com - inert for every other account. While a premium game is up: the page under the host
   is the frame's own canvas colour (never the warm studio --bg) and the document cannot scroll. */
html:has(>body.hts-studio.gp-owner.gp-on),html>body.hts-studio.gp-owner.gp-on,body.hts-studio.gp-owner.gp-on .gp-host{background:#edf1f8!important}
html:has(>body.hts-studio.gp-owner.gp-on),html>body.hts-studio.gp-owner.gp-on{overflow:hidden!important;overscroll-behavior:none}
html[data-theme="dark"]:has(>body.hts-studio.gp-owner.gp-on),html[data-theme="dark"]>body.hts-studio.gp-owner.gp-on,html[data-theme="dark"]>body.hts-studio.gp-owner.gp-on .gp-host{background:#0c192a!important}
@media (prefers-color-scheme:dark){html:not([data-theme="light"]):has(>body.hts-studio.gp-owner.gp-on),html:not([data-theme="light"])>body.hts-studio.gp-owner.gp-on,html:not([data-theme="light"])>body.hts-studio.gp-owner.gp-on .gp-host{background:#0c192a!important}}
