/* Each gameplay element owns a region. Neither camera changes this geometry. */
body .game-stage.play-surface{--rail:132px;display:grid!important;grid-template-columns:var(--rail) minmax(0,1fr) var(--rail)!important;grid-template-rows:minmax(0,1fr)!important;gap:10px!important;width:100%!important;min-height:0!important;flex:1;padding:0!important;overflow:hidden}
.play-surface>*{min-width:0;min-height:0;align-self:stretch;justify-self:stretch}
.play-surface{align-items:stretch!important;justify-items:stretch!important}
.play-navigation{grid-column:1;grid-row:1;display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;gap:8px;overflow:hidden}
.play-arena{grid-column:2;grid-row:1;display:grid;grid-template-rows:62px minmax(0,1fr);gap:4px;overflow:hidden}
.play-actions{grid-column:3;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:12px;overflow:hidden}
.play-viewport{position:relative;min-height:0;min-width:0;overflow:hidden;container-type:size;background:#080e16;border:1px solid #6173843b;border-radius:6px}
body .game-stage.play-surface .play-viewport #game-container,body.phone-play.controller-connected .game-stage.play-surface .play-viewport #game-container.mode-3d{position:absolute!important;inset:0!important;grid-area:auto!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;aspect-ratio:auto!important;border:0!important;border-radius:0!important}
body .play-surface :is(#joystick-zone,#dpad-zone){position:relative;inset:auto!important;grid-area:auto!important;align-self:end!important;justify-self:center!important;margin:0!important;width:132px!important;height:132px!important;opacity:1!important;flex-shrink:0}
body .play-surface .joystick-base{width:124px!important;height:124px!important;flex-shrink:0}
body .play-surface .dpad{width:132px!important;height:132px!important;grid-template-columns:repeat(3,42px);grid-template-rows:repeat(3,42px);gap:3px}
body .play-surface .dpad-btn{min-width:42px;min-height:42px}
body .play-surface #action-cluster{position:relative;inset:auto!important;grid-area:auto!important;width:132px!important;margin:0!important;align-self:end!important;flex-shrink:0}
body .play-surface .action-main{display:grid!important;width:100%;grid-template-columns:repeat(2,62px)!important;grid-template-rows:repeat(2,62px)!important;gap:8px!important}
body .play-surface #action-cluster .action-btn{width:62px!important;height:62px!important;min-width:44px;min-height:44px;border-radius:12px!important;grid-area:auto!important;position:relative}
#play-view-switch{width:100%;max-width:160px;text-align:center;color:#a7bbcd;font-family:var(--ui-font,system-ui);flex-shrink:0;pointer-events:auto}
#play-view-switch>span{display:block;font-size:8px;font-weight:700;letter-spacing:2px;margin-bottom:5px}
#play-view-switch>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#play-view-switch button{min-width:44px;min-height:44px;padding:8px 4px;border:1px solid #546477;border-radius:8px;background:#111f2d;color:#c0d0df;font:800 15px var(--ui-font,system-ui);transform:none!important;touch-action:manipulation}
#play-view-switch button[aria-pressed=true]{background:#e2b356;color:#231a0c;border-color:#ffdc92;box-shadow:inset 0 0 0 1px #fff2}
#play-view-switch small{display:block;font-size:8px;letter-spacing:1px;padding-top:5px;color:#8398ac}
body.has-touch-controls #play-view-switch small{display:none}
#play-radar-slot{align-self:start;justify-self:center;width:100%;max-width:132px;height:min(100%,158px);min-height:0}
#play-radar-slot:empty{display:none}
body #play-radar-slot .tactical-map{position:relative;inset:auto!important;width:100%!important;height:100%;box-sizing:border-box;padding:5px!important;margin:0!important;display:grid;grid-template-rows:14px minmax(0,1fr) 12px;box-shadow:none;pointer-events:none}
#play-radar-slot .tactical-map canvas{width:100%;height:100%;min-height:0;object-fit:contain;aspect-ratio:1}
#play-radar-slot .tactical-map small{gap:4px;font-size:7px}
#play-status{display:grid;align-items:center;position:relative;min-width:0;min-height:0;overflow:hidden;font-family:var(--ui-font,system-ui)}
#play-status>*{grid-area:1/1}
#play-status>.arena-caption{display:flex;margin:0!important;padding:6px 10px!important;min-height:0!important;box-sizing:border-box;width:100%;max-width:100%;border-radius:6px;backdrop-filter:none}
body.has-boss-vitals #play-status>.arena-caption{display:none!important}
body .play-surface #boss-vitals{position:static;transform:none;inset:auto;width:100%;max-width:none!important;gap:7px;align-self:center}
body .play-surface .boss-vital{padding:5px 8px;box-shadow:none}
body .play-surface .boss-vital-heading{margin-bottom:3px}
body .play-surface .boss-vital-heading strong{font-size:11px}
body .play-surface .boss-vital-heading b{font-size:15px}
body .play-surface .boss-vital-numbers{font-size:9px;margin-top:2px}
body .play-surface .boss-vital-track{height:8px}
body #play-status #boss-warning{position:static!important;inset:auto!important;transform:none!important;grid-area:1/1;margin:0!important;max-width:none!important;width:100%!important;box-sizing:border-box;font-size:12px!important;line-height:1.5;padding:8px!important;background:#351b19;border:1px solid #bc6559;border-radius:6px;z-index:2}
#play-status:has(#boss-warning[style*="block"])>.arena-caption{visibility:hidden}
body.has-boss-vitals #play-status #boss-warning{display:none!important}
body:not(.has-touch-controls) .game-stage.play-surface{--rail:104px}
body.compact-play #game-hud{height:48px!important;min-height:48px!important;box-sizing:border-box;padding:2px 8px!important;grid-template-columns:minmax(40px,1fr) minmax(105px,1.8fr) minmax(36px,1fr) minmax(36px,1fr) minmax(50px,1fr) 44px!important}
body.compact-play #game-hud #btn-pause{position:static!important;grid-column:6!important;grid-row:1!important;inset:auto!important;transform:none!important}
body.compact-play #game-hud{grid-template-rows:44px!important;column-gap:4px!important}
body.compact-play #game-hud .hud-group{display:contents!important}
body.compact-play #game-hud .hud-item{grid-row:1!important;flex-direction:column!important;justify-content:center;align-items:center!important;gap:1px;min-height:0!important;padding:0!important;border:0!important}
body.compact-play #game-hud .hud-score{grid-column:1!important}
body.compact-play #game-hud .hud-power{grid-column:2!important}
body.compact-play #game-hud .hud-wave{grid-column:3!important}
body.compact-play #game-hud .hud-bombs{grid-column:4!important}
body.compact-play #game-hud .hud-best{grid-column:5!important}
body.compact-play #game-hud .hud-label{font-size:8px!important;letter-spacing:.7px!important;margin:0}
body.compact-play #game-hud .hud-item>span:not(.hud-label){font-size:18px!important}
body.compact-play #power-up{font-size:11px!important}body.compact-play #power-up-timer{font-size:9px!important}
body.compact-play #boost-status{position:relative!important;inset:auto!important;width:min(480px,calc(100% - 300px))!important;height:12px!important;min-height:12px!important;margin:0 auto!important}
@media(orientation:landscape) and (max-height:360px){body .game-stage.play-surface{--rail:128px;gap:8px!important}.play-arena{grid-template-rows:56px minmax(0,1fr)}body .play-surface :is(#joystick-zone,#dpad-zone){width:128px!important;height:128px!important}body .play-surface .joystick-base{width:120px!important;height:120px!important}#play-radar-slot{max-width:104px;height:min(100%,124px)}body .play-surface #action-cluster{width:128px!important}body .play-surface .action-main{grid-template-columns:repeat(2,60px)!important;grid-template-rows:repeat(2,60px)!important}body .play-surface #action-cluster .action-btn{width:60px!important;height:60px!important}}
@media(orientation:portrait) and (max-width:700px){
 body .game-stage.play-surface{grid-template-columns:132px minmax(0,1fr) 132px!important;grid-template-rows:minmax(0,1fr) 208px!important;gap:8px!important}
 .play-arena{grid-column:1/-1;grid-row:1;grid-template-rows:62px minmax(0,1fr)}
 .play-navigation{display:contents}.play-surface #play-radar-slot{grid-column:2;grid-row:2;align-self:center;width:100%;height:124px;max-width:120px}
 body .play-surface :is(#joystick-zone,#dpad-zone){grid-column:1!important;grid-row:2!important;align-self:end!important}
 .play-actions{grid-column:3;grid-row:2;gap:8px}#play-view-switch>span{display:none}#play-view-switch small{display:none}
 body:not(.has-touch-controls) .game-stage.play-surface{grid-template-columns:104px minmax(0,1fr) 104px!important;grid-template-rows:minmax(0,1fr) 124px!important}
 body.compact-play #boost-status{width:min(320px,100%)!important}
 body.compact-play #game-hud{grid-template-columns:minmax(32px,1fr) minmax(82px,1.8fr) minmax(28px,1fr) minmax(28px,1fr) minmax(38px,1fr) 44px!important}
}
/* Practice uses the same arena renderer with a separate steering rail. */
.view-trial-stage{display:grid;grid-template-columns:minmax(0,1fr) 148px;grid-template-rows:auto minmax(0,1fr);gap:8px;padding:8px}
.view-trial-hint{position:static;grid-column:1/-1;max-width:none;margin:0;padding:4px 8px;font-size:10px}
#view-trial .view-trial-stage #game-container{position:relative!important;inset:auto!important;grid-column:1!important;grid-row:2!important;min-height:0;min-width:0;transform:none!important}
.view-trial-dpad{position:static;grid-column:2;grid-row:2;align-self:end;justify-self:center}
.view-trial-stage #play-radar-slot{grid-column:2;grid-row:2;align-self:start;max-width:100px;height:min(124px,calc(100% - 104px))}
@media(orientation:portrait) and (max-width:600px){.view-trial-stage{grid-template-columns:minmax(0,1fr) 140px;grid-template-rows:auto minmax(0,1fr) 104px}#view-trial .view-trial-stage #game-container{grid-column:1/-1!important;grid-row:2!important}.view-trial-dpad{grid-column:2;grid-row:3}.view-trial-stage #play-radar-slot{grid-column:1;grid-row:3;max-width:104px;height:104px}}

/* Small edge cues identify offscreen targets; the board itself stays clear. */
.arena-marker[hidden]{display:none!important}
.arena-marker strong,.arena-marker small,.arena-marker-health{display:none!important}
.arena-marker{padding:0!important;width:22px!important;height:22px!important;min-width:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#09111dd9!important;border-width:1px!important;box-shadow:none!important}
.arena-marker .arena-marker-glyph{font-size:13px!important;line-height:1!important}
.arena-marker .arena-marker-arrow{font-size:10px!important;position:absolute;top:-11px;left:6px}
body #play-radar-slot .tactical-map{grid-template-rows:12px minmax(0,1fr) 25px auto}
#play-radar-slot .tactical-map .map-key{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 7px;font-size:8px;line-height:1.3;white-space:normal}
.map-key>span{white-space:nowrap}.map-key b{font-size:8px;color:#f7eaa6;margin-right:3px}
#play-radar-slot .tactical-map .map-power-key{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;font-size:8px;color:#83dcff;padding-top:3px;letter-spacing:0;text-align:center}
.map-power-key[hidden]{display:none!important}
body .play-surface .dpad{grid-template-columns:repeat(3,44px)!important;grid-template-rows:repeat(3,44px)!important;gap:0!important}
body .play-surface .dpad-btn{width:44px!important;height:44px!important;min-height:44px;min-width:44px;border-radius:8px!important}
.haptics-setting{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid #ffffff20;border-radius:8px;margin-top:18px;color:#edf2fa;background:#111923}
.haptics-setting strong{display:block;font-size:14px}.haptics-setting small{display:block;font-size:11px;color:#a9bacb;margin-top:5px;line-height:1.5}.haptics-setting input{width:24px;height:24px;accent-color:#e5b356;flex-shrink:0}
/* The run preview and actions have independent columns with a real gap. */
body #game-over-screen .game-over-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,64px)!important;align-items:center!important;justify-content:initial!important;padding:max(20px,var(--sat,0px)) max(24px,var(--sar,0px)) max(20px,var(--sab,0px)) max(24px,var(--sal,0px))!important;box-sizing:border-box;overflow:auto}
body #game-over-screen .game-over-card:before{display:none!important}
body #game-over-screen .run-recap{position:static;inset:auto;width:100%;height:auto;max-height:100%;min-height:0;display:flex;flex-direction:column;gap:14px;padding:14px;box-sizing:border-box;background:#0f1721;border:1px solid #ffffff1c;border-radius:12px;overflow:hidden}
body #game-over-screen .run-recap img{width:100%;height:auto;max-height:calc(100dvh - 145px);object-fit:contain;border-radius:7px}
body #game-over-screen .run-recap figcaption{flex:0 0 auto}
.game-over-details{display:flex;flex-direction:column;gap:16px;min-width:0;width:100%;align-items:flex-start;justify-content:center}
body #game-over-screen .game-over-details>h2{font-size:clamp(26px,3.8vw,46px)!important;line-height:1.05}
body #game-over-screen .game-over-buttons{gap:12px;margin:0}
body #game-over-screen .game-over-buttons button{min-width:100px;min-height:48px!important}
@media(orientation:landscape) and (max-height:500px){.game-over-details{gap:10px}body #game-over-screen .game-over-card{gap:28px!important;padding:max(14px,var(--sat,0px)) max(20px,var(--sar,0px)) max(14px,var(--sab,0px)) max(20px,var(--sal,0px))!important}body #game-over-screen .game-over-card p{font-size:11px!important;line-height:1.45!important}body #game-over-screen .game-over-card #game-over-score{font-size:23px!important}body #game-over-screen .game-over-buttons button{min-height:46px!important}}
@media(orientation:portrait) and (max-width:700px){body #game-over-screen .game-over-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;gap:20px!important;align-content:center}body #game-over-screen .run-recap{max-height:32dvh;padding:10px;gap:8px}body #game-over-screen .run-recap img{max-height:22dvh}body #game-over-screen .game-over-buttons{flex-direction:row}.game-over-details{gap:12px}}
