.game-play-header{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.6rem 1.8rem;margin-bottom:1rem;border:1px solid var(--arcade-border);border-radius:12px;background:var(--arcade-panel)}
.game-play-header>div{min-width:0}.game-play-header .eyebrow{margin:0 0 .4rem}.game-play-header h1{margin:0;font-size:clamp(2rem,4vw,3.4rem);line-height:1.1;letter-spacing:-.045em}
.game-play-actions{display:flex;flex-wrap:wrap;gap:.75rem;flex-shrink:0}.game-play-actions .button{font-size:.95rem}
.game-shell.play-shell{padding:.65rem;border:1px solid var(--arcade-border);border-radius:12px;background:var(--arcade-panel);margin:0}
.play-shell .game-viewport{border:1px solid #15506d;border-radius:8px}
.play-score-note{display:flex;align-items:center;gap:.7rem;padding:.9rem .5rem .35rem;min-height:50px;color:var(--lime)}
.play-score-note .score-status{margin:0;min-width:0;font-size:.9rem;color:var(--muted)}
@media(max-width:850px){.game-play-header{align-items:flex-start;flex-direction:column;padding:1.4rem}.game-play-actions{width:100%}.game-play-actions .button{flex:1}}
@media(max-width:600px){.game-play-header{padding:1.2rem;gap:1.1rem}.game-play-actions{display:grid;grid-template-columns:1fr}.game-shell.play-shell{padding:.4rem}.play-score-note{padding:.8rem .4rem .4rem;align-items:flex-start}}
/* Give embedded games a definite viewport, including older iOS iframe sizing.
   The wrapper reserves responsive space; the replaced iframe fills that box. */
.game-viewport{position:relative;height:0;padding-bottom:56.25%;overflow:hidden;background:#02060c}
.game-shell .game-viewport iframe{position:absolute;inset:0;display:block;width:100%;height:100%;aspect-ratio:auto;border:0}
@media(max-width:520px){.game-viewport{padding-bottom:155.555556%}}
.play-expand[hidden]{display:none}
.play-stage[data-game-slug="neon-tetris"] .game-viewport{height:75vh;max-height:850px;padding:0}
.playing-expanded{position:fixed;width:100%;overflow:hidden}
.play-stage.is-expanded{position:fixed;inset:0;z-index:1000;height:100vh;height:100svh;display:flex;flex-direction:column;gap:.35rem;background:#021526;padding:max(.35rem,env(safe-area-inset-top)) max(.35rem,env(safe-area-inset-right)) max(.35rem,env(safe-area-inset-bottom)) max(.35rem,env(safe-area-inset-left))}
.is-expanded .game-play-header{padding:.4rem .6rem;margin:0;gap:.5rem;flex-direction:row;align-items:center;flex:none}
.is-expanded .game-play-header .eyebrow{display:none}.is-expanded .game-play-header h1{font-size:1.1rem;letter-spacing:-.03em}
.is-expanded .game-play-actions{display:flex;gap:.4rem;width:auto;flex-shrink:1}.is-expanded .game-play-actions .button{min-height:44px;font-size:.8rem;padding:.4rem .65rem;flex:none}.is-expanded .game-play-actions .icon{width:18px;height:18px}
.is-expanded .play-shell{flex:1;min-height:0;display:flex;flex-direction:column}
.is-expanded .play-shell .game-viewport{flex:1;height:auto;max-height:none;min-height:0;padding:0}
.is-expanded .play-score-note{flex:none;min-height:0;padding:.25rem .4rem}.is-expanded .score-status{font-size:.75rem}.is-expanded .play-score-note .icon{width:18px;height:18px}
@media(max-width:850px){.play-stage .game-viewport{height:75vh;height:75svh;max-height:850px;padding:0}.game-play-actions{display:flex}.game-play-actions .button{min-width:0;font-size:.85rem}.game-play-header{gap:.6rem;padding:1rem}.game-play-header h1{font-size:1.8rem}}
@media(max-width:600px){.is-expanded .game-play-header>div{display:none}.is-expanded .game-play-actions{width:100%;flex-wrap:nowrap}.is-expanded .game-play-actions .button{flex:1;font-size:.7rem;padding:.35rem;gap:.25rem}.is-expanded .game-play-actions .icon{display:none}}

.play-expand{flex:none!important;width:46px;padding:.5rem!important}.play-expand .fullscreen-icon{display:block!important;width:22px!important;height:22px!important}.collapse-icon,.is-expanded .expand-icon{display:none}.is-expanded .collapse-icon{display:block}
.play-stage.is-expanded{height:100dvh}.is-expanded .play-shell{overflow:hidden}.is-expanded .play-score-note{max-height:3rem;overflow:auto}

/* Pixel Squad reports persistent chips inside its own menu/HUD. */
.play-stage.is-expanded[data-game-slug="pixel-squad"] .play-score-note{display:none}

/* A cooperating Pixel Squad build shares its top row with host navigation. */
.play-stage.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"]{padding:0;gap:0;background:#031728}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .game-play-header{position:absolute;z-index:2;left:max(6px,env(safe-area-inset-left));top:max(6px,env(safe-area-inset-top));border:0;background:none;padding:0;margin:0;border-radius:0;gap:0}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .game-play-header>div{display:none}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .game-play-actions{width:auto;gap:4px;flex-wrap:nowrap}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .game-play-actions .button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0!important;flex:none;border-radius:9px;background:#052638cc;font-size:23px}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .game-play-actions>a:not(.play-back){display:none}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .play-back-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .play-shell{padding:0;border:0;border-radius:0;background:none}
.has-game-toolbar.is-expanded[data-game-slug="pixel-squad"] .game-viewport{border:0;border-radius:0}

/* Opted-in mobile games reserve the viewport for the game. The score status remains
   available to assistive technology; desktop and other games keep their layout. */
@media (max-width:1100px), (pointer:coarse){
 .play-stage.has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]){gap:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#071321}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .game-play-header{position:absolute;z-index:2;top:calc(env(safe-area-inset-top) + 5px);left:calc(env(safe-area-inset-left) + 5px);padding:0;margin:0;border:0;border-radius:0;background:none;gap:0}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .game-play-header>div{display:none}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .game-play-actions{width:auto;gap:0}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .game-play-actions>:not(.play-back){display:none}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .game-play-actions .play-back{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:10px;background:#102735de;font-size:23px;line-height:1}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .play-back-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .play-shell{padding:0;border:0;border-radius:0;background:none}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .game-viewport{border:0;border-radius:0}
 .has-game-toolbar.is-expanded:is([data-game-slug="astro-rush"],[data-game-slug="volt-maze"],[data-game-slug="neon-breaker"]) .play-score-note{position:absolute;width:1px;height:1px;min-height:0;max-height:none;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}

/* Tetris mobile play reserves the viewport for the game. The score status remains
   available to assistive technology; desktop and other games keep their layout. */
@media (max-width:600px), (any-pointer:coarse){
 .play-stage.has-game-toolbar.is-expanded[data-game-slug="neon-tetris"]{gap:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:#080d1e}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .game-play-header{position:absolute;z-index:2;top:calc(env(safe-area-inset-top) + 5px);left:calc(env(safe-area-inset-left) + 5px);padding:0;margin:0;border:0;border-radius:0;background:none;gap:0}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .game-play-header>div{display:none}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .game-play-actions{width:auto;gap:0}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .game-play-actions>:not(.play-back){display:none}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .game-play-actions .play-back{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:10px;background:#102735de;font-size:23px;line-height:1}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .play-back-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .play-shell{padding:0;border:0;border-radius:0;background:none}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .game-viewport{border:0;border-radius:0}
 .has-game-toolbar.is-expanded[data-game-slug="neon-tetris"] .play-score-note{position:absolute;width:1px;height:1px;min-height:0;max-height:none;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
