/* Arcade view: UI lives on the play surface, with native fullscreen and iOS fallback. */
.view-tools{position:absolute;top:8px;right:10px;display:flex;gap:5px;z-index:14}.view-tools button{background:#152237dc;color:#fff;border-color:#f3c5dc66;padding:6px 10px;border-radius:4px;font-size:16px}
.screen>.hud,.screen>.game-actions,.screen>.special-bar,.screen>.powerbar{display:none}
.machine[data-scene=playing] .screen>.hud{display:flex;position:absolute;inset:0 0 auto;height:48px;background:#101a2cda;color:#fff;border:0;z-index:6;padding:6px 14px;pointer-events:none}
.machine[data-scene=playing] .resources{margin-right:92px}.machine[data-scene=playing] .hud strong{color:#fff}.machine[data-scene=playing] .hud span{color:#eebbd1}.machine[data-scene=playing] .hud #life{color:#ff9ac4}
.machine[data-scene=playing] .screen>.game-actions{display:flex;position:absolute;right:10px;bottom:8px;z-index:8;background:transparent;padding:0;border:0}.game-actions>#pilot{display:none}.game-actions button{background:#13253be8;color:#fff;border:1px solid #b7cedb66;border-radius:5px}.game-actions #bombAction{border-color:#f6a3cb}.game-actions #specialAction{border-color:#a3e7f6}
.machine[data-scene=playing] .screen>.special-bar{display:flex;position:absolute;left:12px;bottom:9px;width:30%;z-index:7;padding:5px 7px;border:1px solid #aedff566;background:#12283add;border-radius:0;font-size:9px}.special-bar>span{font-size:0}.special-bar>span:after{content:'OVERDRIVE';font-size:9px}.special-bar progress{height:6px}
.machine[data-scene=playing] .screen>.powerbar{display:flex;position:absolute;left:12px;bottom:38px;z-index:6;background:#111e30c4;border:0;padding:4px 6px;max-width:48%;gap:6px;border-radius:0}.power-caption{display:none!important}.powerbar #weapon{display:none}.powerbar #upgrades{gap:3px}.powerbar [data-slot]{color:#d8e4ee;min-width:0;padding:4px;font-size:7px;border:0;border-bottom:2px solid transparent}.powerbar [data-slot].selected{color:#fff;background:#b83774;border-color:#fff}.powerbar [data-slot].equipped{color:#a6ffff}
.battle-dialogue{inset:auto 12px 73px;height:64px;min-height:0;border:1px solid #ffc4dc66;border-left:4px solid #ef78ac;background:#0c1c31ce;padding:5px 8px;max-width:620px;gap:9px}.battle-dialogue b{font-size:11px}.battle-dialogue p{font-size:14px;line-height:1.35;margin:2px 0}.battle-avatar{width:62px;border:0}.battle-dialogue .battle-avatar img{height:auto;width:100%;transform:scale(1.8);background:transparent;border:0}.battle-dialogue button{padding:5px 8px;border-radius:3px;background:#f4e3ec}
.notice{top:24%;bottom:auto;font-size:20px;background:#162338df;color:#ffe7b7;border-radius:0;border-left:4px solid #ffc5e1}
body.immersive{overflow:hidden;background:#080e19}.immersive .masthead,.immersive .page-note,.immersive footer{display:none}.immersive .arcade{padding:0;margin:0;max-width:none}.immersive .machine{--view-h:100dvh;position:fixed;inset:0;max-width:none;width:100vw;height:100dvh;margin:0;display:block;border:0;border-radius:0;background:#080e19;z-index:30;box-shadow:none}.immersive .screen{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(100%,calc(var(--view-h)*16/9));height:auto;min-height:0!important;aspect-ratio:16/9;overflow:hidden}.immersive #game{display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:contain}.immersive .dialogue,.immersive .title-screen{max-width:none;inset:0;width:100%;transform:none}.immersive #exitFull{display:block}
.rotated-play .machine{--view-h:100dvw;inset:auto;top:50%;left:50%;width:100dvh;height:100dvw;transform:translate(-50%,-50%) rotate(90deg)}
.touch-controls{position:absolute;inset:0;z-index:7;pointer-events:none;margin:0!important;padding:0!important;max-width:none!important;justify-content:space-between}.touch-controls>span{display:none}.touch-stick,.touch-buttons{pointer-events:auto}.touch-stick{position:absolute;left:14px;bottom:8px;width:90px;height:90px;background:#11283b55;border:2px solid #ffd4e277;box-shadow:inset 0 0 0 10px #ffffff08}.touch-stick #knob{background:#f8b7d8aa;box-shadow:none;width:32px;height:32px}.touch-stick small{color:#ffe3f1;font-size:9px}.touch-buttons{position:absolute;right:12px;bottom:8px;width:170px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.touch-buttons button{padding:7px 4px;min-height:36px;border-radius:5px;background:#13283cd9;color:#fff;border-color:#bdd6e777;font-size:12px;touch-action:manipulation}.touch-buttons #touchSpecial{border-color:#91e5ef}.touch-buttons #touchBomb{border-color:#ffb2ce;background:#75304dbe}
@media(pointer:fine) and (min-width:901px){.touch-controls{display:none!important}}
@media(pointer:coarse),(max-width:900px){
 .machine[data-scene=playing] .game-actions button:not(#pauseAction):not(#exitFull){display:none}.machine[data-scene=playing] .screen>.game-actions{right:104px;bottom:auto;top:8px}.game-actions button{padding:5px 9px;min-height:30px}.machine[data-scene=playing] .resources{margin-right:165px}.machine[data-scene=playing] .stage-hud{display:none}
 .machine[data-scene=playing] .screen>.special-bar{left:120px;bottom:8px;width:calc(100% - 312px)}.machine[data-scene=playing] .screen>.powerbar{left:120px;bottom:36px;max-width:calc(100% - 312px);padding:2px;gap:0}.powerbar [data-slot]{font-size:6px;padding:3px}
 .battle-dialogue{left:120px;right:185px;bottom:63px;max-width:none;height:58px;padding:3px 5px;gap:6px}.battle-dialogue p{font-size:12px}.battle-dialogue b{font-size:10px}.battle-avatar{width:48px}.battle-dialogue button{font-size:10px;padding:6px}.battle-dialogue kbd{display:none}.notice{font-size:16px}
 .machine[data-scene=playing] .hud{font-size:10px;padding:6px 12px!important}.machine[data-scene=playing] .hud strong{font-size:15px}.machine[data-scene=playing] .hud .resources{gap:2px}
}
@media(max-height:460px){.touch-stick{width:76px;height:76px}.touch-buttons button{min-height:30px;padding:5px}.touch-buttons{width:155px}.battle-dialogue{height:52px;bottom:59px}.machine[data-scene=playing] .screen>.powerbar{bottom:31px}}
@keyframes equip-impact{0%{box-shadow:inset 0 0 0 3px #ffdbeb}100%{box-shadow:inset 0 0 0 0 transparent}}.power-flash .screen{animation:equip-impact .45s ease-out}
@media(prefers-reduced-motion:reduce){.power-flash .screen{animation:none}}
.machine[data-scene=dialogue] .view-tools{top:62px}.touch-controls{display:flex}.machine:not([data-scene=playing]) .touch-controls{display:none!important}
@media(pointer:coarse),(max-width:900px){.machine[data-scene=playing] .screen>.powerbar{display:none}.battle-dialogue{height:48px;bottom:36px}.touch-buttons #touchUpgrade{font-size:10px}}
@media(pointer:coarse),(max-width:900px){.machine[data-scene=playing] .resources{margin-right:220px}.touch-buttons #touchFocus{grid-column:auto}.touch-buttons button{min-height:44px;padding:7px 4px}.game-actions #exitFull{font-size:0}.game-actions #exitFull:after{content:"↙";font-size:14px}.battle-dialogue .battle-avatar img{transform:scale(1.8)}}

@keyframes overdrive-ready{50%{background:#34778b;box-shadow:0 0 15px #86e4ed66}}.special-ready #specialAction,.special-ready #touchSpecial{animation:overdrive-ready 1.1s ease-in-out infinite;border-color:#c6ffff}.special-ready .special-bar{border-color:#c6ffff}
@media(prefers-reduced-motion:reduce){.special-ready #specialAction,.special-ready #touchSpecial{animation:none;background:#34778b}}
