.ui-game-fullscreen{min-width:0}
.ui-game-fullscreen__bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ui-game-fullscreen__bar[hidden]{display:none}
.ui-game-fullscreen__status{margin:0;color:var(--color-muted,#6b7890);font-size:12px;line-height:1.5}
.ui-game-fullscreen__button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;min-height:44px;padding:9px 16px;border:1px solid var(--color-line,#dde5ee);border-radius:var(--radius-pill,24px);background:var(--color-surface,#fff);color:var(--color-text,#27456f);font:inherit;font-size:13px;font-weight:800;cursor:pointer;touch-action:manipulation}
.ui-game-fullscreen__button:hover{background:var(--color-green-soft,#e8f9ee)}
.ui-game-fullscreen__button:focus-visible{outline:3px solid var(--color-focus,#4f8ef7);outline-offset:3px}
.ui-game-fullscreen__button svg{width:20px;height:20px;flex:none}
.ui-game-fullscreen__shrink,.is-fullscreen>.ui-game-fullscreen__bar .ui-game-fullscreen__expand{display:none}
.is-fullscreen>.ui-game-fullscreen__bar .ui-game-fullscreen__shrink{display:block}
.ui-game-fullscreen__content{min-width:0}
html.ui-game-fullscreen-open{overflow:hidden;overscroll-behavior:none;scroll-behavior:auto!important;scroll-padding:0}
body.ui-game-fullscreen-open{position:fixed;top:var(--game-fullscreen-scroll-top,0px);left:0;right:0;overflow:hidden;overscroll-behavior:none}
.ui-game-fullscreen.is-fullscreen{--header-h:0px;position:fixed;inset:0;z-index:10000;display:flex;flex-direction:column;width:100%;max-width:none;height:100vh;height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:var(--color-background,#f8fbff);overflow:hidden;overscroll-behavior:none}
.ui-game-fullscreen::backdrop{background:var(--color-background,#f8fbff)}
.ui-game-fullscreen.is-fullscreen>.ui-game-fullscreen__bar{flex:none;margin:0;padding:8px 16px;padding-top:max(8px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));border-bottom:1px solid var(--color-line,#dde5ee);background:var(--color-surface,#fff)}
.ui-game-fullscreen.is-fullscreen>.ui-game-fullscreen__content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));padding-bottom:max(12px,env(safe-area-inset-bottom));scroll-padding:12px}
.ui-game-fullscreen.is-fullscreen>.ui-game-fullscreen__content>*{max-width:1400px;margin-inline:auto}
.ui-game-fullscreen.is-fullscreen .coloring-workspace>.coloring-toolbar{top:0}
.ui-game-fullscreen.is-fullscreen .claw-mission{top:8px}
/* Keep canvas controls in view; smaller screens can still scroll within the game. */
.ui-game-fullscreen.is-fullscreen :is(.rx-game[data-playing="true"],.bp-game[data-state]:not([data-state="menu"]),.fs-game[data-active="true"]){display:flex;flex-direction:column;height:calc(100vh - 96px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));height:calc(100dvh - 96px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));min-height:480px}
.ui-game-fullscreen.is-fullscreen :is(.rx-game,.bp-game,.fs-game)>*{flex-shrink:0}
.ui-game-fullscreen.is-fullscreen .rx-game[data-playing="true"] .rx-stage,
.ui-game-fullscreen.is-fullscreen .bp-game[data-state]:not([data-state="menu"]) .bp-playfield,
.ui-game-fullscreen.is-fullscreen .fs-game[data-active="true"] .fs-field{flex:1;min-height:180px;height:auto;aspect-ratio:auto}
.ui-game-fullscreen.is-fullscreen .fs-game[data-active="true"] .fs-field canvas{position:absolute;inset:0;height:100%}
@media(max-width:600px){
  .ui-game-fullscreen__status{font-size:11px;max-width:190px}
  .ui-game-fullscreen__button{padding:9px 12px;font-size:12px}
  .ui-game-fullscreen.is-fullscreen>.ui-game-fullscreen__content{padding-top:8px}
}
