/* Game-first mobile layout shared by all ten games. */
.game-page{min-width:0}.gamekit-modal button[hidden]{display:none}
.gamekit-shell{position:relative}.gamekit-pause{flex-shrink:0}.gamekit-modal{position:absolute;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:24px;background:#080f26f5;border-radius:inherit;backdrop-filter:blur(5px)}.gamekit-modal[hidden]{display:none}.gamekit-modal h2{font-size:clamp(1.5rem,5vw,2.3rem);letter-spacing:-.04em;margin:0 0 12px}.gamekit-modal p{max-width:280px;color:var(--muted);line-height:1.6;margin:0 0 25px}.gamekit-modal button{min-height:48px}.gamekit-help{display:none}.game-page canvas{touch-action:none;-webkit-user-select:none;user-select:none}.game-page button,.game-page a,.game-page select{-webkit-tap-highlight-color:transparent}.game-page .icon-button{min-width:40px;min-height:40px}.game-page .site-header{padding-top:env(safe-area-inset-top)}.game-page footer{padding-bottom:max(20px,env(safe-area-inset-bottom))}.game-page .play-button,.game-page .share-button{touch-action:manipulation}.game-paused{overscroll-behavior-y:contain}.game-page .game-caption{line-height:1.5}.gamekit-directions{display:flex;gap:8px;margin-top:12px}.gamekit-directions button{flex:1;min-height:48px;border:1px solid #ffffff22;border-radius:10px;background:#ffffff09;color:var(--cyan);font-size:1.4rem;cursor:pointer;touch-action:manipulation}
@media(max-width:850px){
.game-page main{width:calc(100% - 20px)}.game-page .site-header{min-height:58px;width:calc(100% - 24px)}.game-page .header-actions{gap:10px}.game-page .back-link{font-size:.7rem}
.game-page .hero,.game-page [class$="-layout"]{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px 0 28px}
.game-page .hero-copy,.game-page [class$="-copy"]{text-align:center;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;order:0}
.game-page .hero-copy h1,.game-page [class$="-copy"] h1{font-size:1.35rem!important;line-height:1.15;letter-spacing:-.035em;margin:0;text-align:left}.game-page .hero-copy h1 br,.game-page [class$="-copy"] h1 br{display:none}.game-page .hero-copy h1 span,.game-page [class$="-copy"] h1 span{margin-left:.22em}
.game-page .hero-copy>p,.game-page [class$="-copy"]>p,.game-page .feature-row,.game-page .platform-key,.game-page .duo-note,.game-page .best-panel{display:none}
.game-page .gamekit-help{display:block;order:1;border:1px solid var(--line);border-radius:999px;padding:9px 13px;background:#ffffff07;color:var(--muted);font-size:.72rem;min-height:40px;cursor:pointer}
.game-page .show-game-help{display:block}.game-page.show-game-help .hero-copy>p:not(.eyebrow),.game-page.show-game-help [class$="-copy"]>p:not(.eyebrow){display:block;flex-basis:100%;font-size:.82rem;margin:8px 0;order:2;line-height:1.6;text-align:left;max-width:none}
.game-page .mission-picker,.game-page .level-picker{margin:0;max-width:none;display:block;order:0}.game-page .mission-picker>span,.game-page .level-picker>label{display:none}.game-page .mission-picker select,.game-page .level-picker select{padding-block:8px;font-size:.72rem}
.game-page .game-shell,.game-page .goal-shell,.game-page .snake-shell,.game-page .orbit-shell,.game-page .brick-shell,.game-page .memory-shell,.game-page .sky-shell,.game-page .bubble-shell,.game-page .tank-shell,.game-page .duo-shell{order:1;width:100%;max-width:520px;margin:0 auto;padding:8px;border-radius:20px}
.game-page .canvas-wrap,.game-page .goal-canvas-wrap,.game-page .snake-canvas-wrap,.game-page .brick-canvas-wrap,.game-page .orbit-board-wrap,.game-page .sky-stage,.game-page .bubble-stage,.game-page .tank-stage,.game-page .duo-stage{width:100%;max-height:max(280px,calc(100svh - 225px));margin-inline:auto}
.game-page .game-topbar,.game-page [class$="-scorebar"],.game-page .sky-stats,.game-page .bubble-stats,.game-page .tank-stats,.game-page .duo-stats{gap:10px;padding:3px 4px 9px}.game-page .game-overlay,.game-page .brick-overlay{padding:16px}.game-page .game-overlay h2{font-size:1.7rem}.game-page .info-grid article{padding:25px 8px}.game-page .info-grid h2{margin-top:15px}
.game-page .dpad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px);gap:4px}.game-page .tank-controls{gap:5px}.game-page .tank-controls .control-copy small{display:none}.game-page .fire-button{width:72px;height:72px}.game-page .sky-controls button{min-height:48px}.game-page .bubble-controls button{min-height:48px}.game-page .memory-board{gap:8px}.game-page .memory-board.hard{grid-template-columns:repeat(5,1fr)}.game-page .memory-card{min-height:44px}.game-page .memory-copy .best-panel{display:none}.game-page .memory-shell{padding:12px}.game-page .mode-row button{min-height:44px}.game-page .duo-controls button{min-height:58px}
}
@media(max-width:360px){.game-page .brand{font-size:.7rem;white-space:nowrap}.game-page .back-link{white-space:nowrap}.game-page .tank-controls .control-copy{display:none}.game-page .tank-stats strong{font-size:.88rem}.game-page .game-topbar{gap:10px}.game-page .game-topbar strong{font-size:.95rem}.game-page .orbit-scorebar,.game-page .snake-scorebar{gap:6px}.game-page .orbit-scorebar .undo-button{font-size:.58rem;padding:9px 7px}.game-page .orbit-scorebar strong{font-size:1rem}}
@media(max-width:850px) and (min-height:501px){.game-page .canvas-wrap,.game-page .goal-canvas-wrap,.game-page .snake-canvas-wrap,.game-page .brick-canvas-wrap{max-height:none;width:min(100%,max(210px,calc((100svh - 225px)*.75)))}.game-page .orbit-board-wrap{max-height:none;width:min(100%,max(210px,calc((100svh - 225px)*.8)))}.game-page .sky-stage,.game-page .bubble-stage{max-height:none;width:min(100%,max(210px,calc((100svh - 225px)*.70588)))}.game-page .tank-stage{max-height:none;width:min(100%,max(210px,calc((100svh - 225px)*.86667)))}.game-page .duo-stage{max-height:none;width:min(100%,max(210px,calc((100svh - 225px)*.8421)))}}
@media(max-width:850px) and (max-height:500px){.game-page .canvas-wrap,.game-page [class$="-canvas-wrap"],.game-page .orbit-board-wrap,.game-page [class$="-stage"]{max-height:none}.game-page .gamekit-shell{max-width:380px}}
