.pill[hidden]{display:none!important}
.game-exit{position:absolute;z-index:25;bottom:14px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 16px;border:1px solid #ffffff70;border-radius:14px;background:#241b36e8;color:#fff;font:800 13px/1.4 "Tajawal",Tahoma,sans-serif;box-shadow:0 3px 12px #170b2433}
.game-exit:hover{background:#9d3e74}.game-exit:focus-visible{outline:3px solid #ffc3df;outline-offset:3px}
.game-shell .bottom-hint{bottom:68px}
.game-shell .toast{top:22%;max-width:min(300px,calc(100% - 32px));padding:6px 10px;border-radius:10px;font-size:11px;line-height:1.45;font-weight:600;box-shadow:0 3px 12px #21183224;pointer-events:none}
.game-shell .toast strong{font-size:12px;font-weight:800}
.game-fullscreen{position:absolute;z-index:25;bottom:14px;right:152px;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:8px 11px;border:1px solid #ffffff70;border-radius:12px;color:white;background:#241b36e8;font:800 12px/1.4 Tajawal,Tahoma,sans-serif}
.game-fullscreen:focus-visible{outline:3px solid #ffc3df;outline-offset:3px}
html.game-immersive,html.game-immersive body{overflow:hidden;overscroll-behavior:none}
html.game-immersive .game-shell{position:fixed;inset:0;z-index:2000;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;aspect-ratio:auto;margin:0;border:0;border-radius:0;box-shadow:none}
html.game-immersive .game-shell .game-canvas,html.game-immersive .game-shell .game-3d-canvas{width:100%;height:100%;aspect-ratio:auto}
html.game-immersive .game-shell.game-rotated{inset:auto;left:50%;top:50%;width:100vh;width:100dvh;height:100vw;height:100dvw;transform:translate(-50%,-50%) rotate(90deg);transform-origin:center}
html.game-immersive .game-shell .toast{top:76px;max-width:260px}
html.game-immersive .game-shell .hud{left:max(10px,env(safe-area-inset-left));right:max(10px,env(safe-area-inset-right));top:max(8px,env(safe-area-inset-top))}
html.game-immersive .game-shell .game-fullscreen{bottom:64px;right:auto;left:50%;transform:translateX(-50%);min-height:36px}
@media(any-pointer:coarse),(max-width:720px){
 .game-shell .toast{top:26%;max-width:250px;padding:5px 9px;font-size:10px;line-height:1.35}.game-shell .toast strong{font-size:11px}
 .game-fullscreen{bottom:9px;right:9px;min-height:36px;padding:5px 8px;font-size:10px}
 .game-shell .touch{bottom:52px}.game-shell .pill,.game-shell .joystick,.game-shell .screen,.game-shell .vignette{backdrop-filter:none}.game-shell .vignette{box-shadow:none}
 .game-shell.has-3d .game-canvas{filter:none}
 html.game-immersive .game-shell .touch{bottom:14px}
 html.game-immersive .game-shell .joystick{width:104px;height:104px}
}
@media(max-width:520px){.game-exit{bottom:10px;padding:8px 11px;font-size:12px}.game-shell .joystick{width:102px;height:102px}.game-shell .joystick-thumb{width:42px;height:42px}}
.stage-rail{grid-template-columns:repeat(auto-fill,minmax(56px,1fr))}
.stage-button{font-variant-numeric:tabular-nums}
.topbar{height:auto;min-height:68px;flex-wrap:wrap;gap:10px;padding-block:10px}
.topbar-actions{flex-wrap:wrap}
@media(max-width:720px){.topbar{min-height:58px}}
.topbar{height:auto;min-height:68px;flex-wrap:wrap;gap:10px;padding-block:10px}
.topbar-actions{flex-wrap:wrap}
@media(max-width:720px){.topbar{min-height:58px}}
@media(max-width:720px){.stage-rail{grid-template-columns:repeat(auto-fill,minmax(43px,1fr))}}
.stage-meta{display:contents}
.screen-tip{display:none}
@media(max-width:720px){
 .stage-meta{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px}
 .stage-meta .stage-name{max-width:56%;white-space:normal;line-height:1.35}
 .screen-tip{display:flex;flex:1;min-width:0;align-items:center;gap:7px;margin:0;color:#f6cee3;font-size:clamp(12px,3.2vw,15px);font-weight:800;line-height:1.5}
 .screen-tip:before{content:"⛶";flex:none;color:#ffd46b;font-size:20px;line-height:1}
}
