/* Aegis flight deck: graphite armor, luminous telemetry, independent modules. */
:root{--cyan:#8ff4d2;--gold:#ffcb77;--text:#f3f6f3;--muted:#b0bdbb;--line:#8aaba144;--panel:#121b1d;--hud-surface:linear-gradient(120deg,#142c2bed,#0a1018eb),url('assets/textures/hud-graphite.png')}
.topbar{height:72px;padding:0 24px;background:linear-gradient(90deg,#0b1018f7,#172b2ae8 50%,#0b1018f7),url('assets/textures/hud-graphite.png');border-bottom:1px solid #90eacc40;box-shadow:0 4px 30px #0005}.topbar:after{left:24px;width:120px;background:linear-gradient(90deg,var(--cyan),transparent)}
.brand{font-size:24px;letter-spacing:3px}.brand>svg{stroke:var(--cyan);filter:drop-shadow(0 0 6px #66f2ca77)}.brand small{font-size:8px;letter-spacing:1.6px;color:#b2c1bc}.top-mission{font-size:10px}.icon-button{width:44px;height:44px;background:#152626;border-color:#6e9c8b55;border-radius:10px}.icon-button svg{width:20px;height:20px}.icon-button:hover{background:#28534a}
.panel,.mission-menu,dialog{background-image:var(--hud-surface);background-size:auto,380px;border:1px solid #9bcbb15c;box-shadow:inset 0 1px #d9ffe015,inset 0 -8px 20px #0004,0 12px 28px #0005;backdrop-filter:blur(12px)}
.panel:before,.mission-menu:before{width:52px;background:var(--cyan);height:3px}.panel:after{content:'';position:absolute;right:12px;top:12px;width:25px;height:5px;background:repeating-linear-gradient(90deg,#b1ebcb66 0 3px,transparent 3px 6px)}
.section-label,.eyebrow{font-size:10px;letter-spacing:1.5px}.objective{top:94px;left:24px;width:245px;padding:18px 20px;border-radius:0 20px 4px 20px;border-left:3px solid var(--cyan)}.objective .section-label{font-size:9px}.objective h2{font-size:23px;color:var(--text);margin:13px 0 5px}.objective p{color:#bbccc6;font-size:13px;margin-bottom:18px}.objective-row{font-size:10px}.objective-row strong{font:600 32px var(--display);font-variant-numeric:tabular-nums;color:var(--gold);text-shadow:0 0 18px #ffc65e33}.route-track{height:5px;border:0;background:#70977e24}.route-track i{background:linear-gradient(90deg,#48dca4,#d0ffd6)}.route-labels{font-size:9px;color:#a2b7ad}.supply-timer{margin:14px -20px -18px;padding:12px 20px;border-top:1px solid #9aceb529;background:#99edcc0a;border-radius:0 0 4px 18px;font-size:10px;color:#c7dad3}.supply-timer b{font-size:21px;color:var(--cyan)}
.wave-panel{top:94px;right:24px;width:172px;padding:16px 18px;border-radius:20px 0 20px 4px;border-right:3px solid #ff865b}.wave-panel:before{background:#ff865b;left:auto;right:0}.wave-panel:after{display:none}.wave-panel .section-label{font-size:9px}.wave-panel strong{color:#ff956c;font-size:45px}.wave-panel div>span#wave-label{font-size:12px;color:#dec7bc}.wave-foot span{font-size:9px}.wave-foot b{font-size:24px;color:#ffe7d3}.wave-foot{border-color:#ff9b562f}
.toast{top:92px;border-radius:4px 16px 4px 16px;border-color:#9fffc07a;background:#0e2422ed;box-shadow:0 8px 24px #0005;max-width:42%;padding:13px 18px}.toast p{font-size:14px}.toast>span{font-size:10px;color:var(--cyan)}
.combat-hud{left:24px;right:24px;bottom:max(20px,env(safe-area-inset-bottom));min-height:0;padding:0;gap:14px;grid-template-columns:174px minmax(260px,1fr) 320px;clip-path:none;background:none;border:0;box-shadow:none;pointer-events:none}.combat-hud:after{display:none}.combat-hud>section{pointer-events:auto;background-image:var(--hud-surface);background-size:auto,320px;border:1px solid #a0c9b64d;box-shadow:inset 0 1px #ffffff15,0 10px 25px #0006}
.radar-section{padding:13px;border-radius:50% 50% 12px 12px}.radar-section>.section-label{justify-content:center;font-size:9px;letter-spacing:1px;gap:10px}.radar-section .section-label .green{display:none}#radar{width:128px;height:88px;margin:8px auto 0;border-radius:50%;border:1px solid #73deb87a;box-shadow:0 0 0 4px #74b5a010,0 0 18px #6af4c014}.radar-bottom{font-size:8px;margin-top:7px;letter-spacing:0}
.squad-section{border-radius:18px 4px 4px 18px;padding:16px;gap:16px;border-left:3px solid var(--cyan)!important}.unit-portrait{width:80px;height:108px;border-radius:12px 2px 12px 2px;border-color:#7fae9e55;background:radial-gradient(#265347,#091612)}.unit-portrait span{font-size:8px;background:#0a1718dd}.squad-data>.section-label{font-size:10px;color:#a9c4ba}.squad-data>.section-label span{color:var(--gold);font-size:12px}.squad-data h2{font-size:26px;margin:6px 0 13px;font-weight:500}.squad-data h2 b{display:inline-block;color:var(--cyan);font:600 28px var(--display)}.hull-label{font-size:10px;color:#bccdc5}.hull-label strong{font-size:18px}.hull-track{height:10px;border:0;border-radius:3px;background:#85b4a122}.hull-track i{background:linear-gradient(90deg,#2ab995,#baffaa)!important;mask-image:repeating-linear-gradient(90deg,#000 0 12px,transparent 12px 15px)}.squad-bottom{font-size:9px;color:#a9beb6;margin-top:11px;letter-spacing:0}
.support-section{padding:13px;border-radius:4px 18px 18px 4px;border-right:3px solid #b39bff!important}.support-title{margin:0 0 9px}.support-title .section-label{font-size:9px;letter-spacing:1px}.salvage{font-size:22px}.salvage small{font-size:8px}.ability-row{gap:8px}.ability{height:96px;border-radius:10px 2px 10px 2px;background:linear-gradient(145deg,#284a3a99,#0b1517da),url('assets/textures/hud-graphite.png');background-size:auto,180px;border-color:#8bcaac70}.ability:hover:enabled{background-color:#376554;border-color:#a2ffcf;box-shadow:0 0 20px #64f1ad26}.ability:disabled{opacity:.52}.ability svg{stroke:#9df1bb;width:28px;height:28px;margin:4px}.ability b{font-size:12px;letter-spacing:.6px}.ability small{font-size:10px;margin-top:4px}.ability kbd{font-size:9px;top:6px;left:7px}.ability.emp{background-image:linear-gradient(145deg,#4b3674bb,#181126e8),url('assets/textures/hud-graphite.png');border-color:#b19aef80}.ability.emp svg{stroke:#d6b7ff}.ability.emp small{color:#d6b7ff}#emp-cooldown{background:#090718aa}
.combat-hint{bottom:190px;font-size:10px;color:#dee7df;gap:18px;opacity:.85}.combat-hint>span:last-child{display:none}.combat-hint kbd{font-size:9px}.camera-tools{position:absolute;right:24px;bottom:195px;display:flex;gap:5px;pointer-events:auto}.camera-tools button,#camera-reset{width:44px;height:44px;min-width:44px;margin:0;border-radius:10px;background-image:var(--hud-surface);border:1px solid #a7bcb266;color:#d2f7e4;font:24px var(--display);padding:0;box-shadow:0 4px 12px #0005}.camera-tools button:hover{border-color:var(--cyan)}.touch-hint{display:none}
.mission-menu{border-radius:0 24px 4px 24px}.mission-menu h1{color:#fff5e3}.mission-menu h1 span{color:var(--cyan)}.mission-menu .lead,.briefing p{color:#c9dbd3}.menu-secondary button{min-height:44px;font-size:10px;padding:8px}.primary{background:linear-gradient(115deg,#d9ffc6,#75dfb1);border-color:#ceffe3;color:#10231c;border-radius:4px;min-height:52px}.menu-topline,.menu-bottom{font-size:9px}.menu-body .eyebrow{color:#ffcc83}.roster-card,.supply-card{background-image:var(--hud-surface);border-color:#8ab49a55}.supply-card{border-radius:16px 4px}.supply-card:hover{border-color:var(--cyan)}dialog{border-radius:20px 4px 20px 4px}.close-button{min-width:44px;min-height:44px}.dialog-footer{font-size:10px}
@media(max-width:1100px){.combat-hud{grid-template-columns:134px minmax(250px,1fr) 290px;gap:10px;left:16px;right:16px}.unit-portrait{display:none}#radar{width:104px}.squad-section{padding:14px}.combat-hint{left:24px;transform:none}.combat-hint>span:nth-child(3){display:none}.camera-tools{right:16px}.topbar{padding:0 16px}.objective{left:16px}.wave-panel{right:16px}}
@media(max-width:800px){.combat-hud{grid-template-columns:minmax(220px,1fr) 270px}.radar-section{display:none}.objective{width:225px}.wave-panel{width:155px}.toast{top:290px;width:max-content;max-width:85%}.topbar .brand small{font-size:7px}}
@media(max-width:650px){
 .topbar{height:calc(60px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0;gap:8px}.brand{font-size:18px;letter-spacing:1.5px;gap:7px}.brand>svg{width:27px;height:31px}.brand small{display:none}.topbar nav{gap:4px}.icon-button{width:44px;height:44px}.topbar:after{left:12px;width:80px}
 .objective{top:calc(72px + env(safe-area-inset-top));left:10px;right:10px;width:auto;height:94px;padding:11px 14px;border-radius:0 16px 4px 16px;display:grid;grid-template-columns:1fr 95px;grid-template-rows:18px 29px 8px;gap:2px 12px}.objective .section-label{font-size:8px;grid-column:1;letter-spacing:1px}.objective h2{font-size:19px;margin:0;grid-column:1;grid-row:2}.objective p,.route-labels{display:none}.objective-row{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:0;font-size:8px}.objective-row strong{font-size:30px}.route-track{grid-column:1/-1;grid-row:3;margin:4px 0 0;height:4px}.supply-timer{grid-column:1/-1;margin:5px 0 0;padding:0;border:0;background:none;display:flex;justify-content:space-between;font-size:8px;line-height:10px}.supply-timer b{font-size:12px;line-height:10px}.objective:after{display:none}
 .wave-panel{top:calc(174px + env(safe-area-inset-top));left:14px;right:auto;width:auto;display:flex;align-items:center;gap:9px;padding:5px 9px;border:0;border-radius:5px;background:#101a1bd9;box-shadow:none}.wave-panel:before,.wave-panel .section-label,#wave-label{display:none}.wave-panel>div:nth-child(2){margin:0;gap:0}.wave-panel strong{font-size:17px;line-height:18px}.wave-panel strong:before{content:'WAVE ';font:9px var(--mono);color:#ccbaab}.wave-foot{padding:0 0 0 9px;border-top:0;border-left:1px solid #ff956c55;gap:8px}.wave-foot span{font-size:8px}.wave-foot b{font-size:17px}
 .combat-hud{left:10px;right:10px;bottom:calc(8px + env(safe-area-inset-bottom));display:grid;grid-template-columns:1fr;gap:6px;padding:0;min-height:0}.combat-hud .squad-section{padding:9px 12px;border-radius:12px 3px 3px 3px;display:block}.squad-data{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.squad-data>.section-label{font-size:8px;grid-column:1;grid-row:1;letter-spacing:.7px;align-items:center}.squad-data>.section-label span{margin:0;font-size:10px}.squad-data h2{grid-column:1;grid-row:2;font-size:17px;margin:0;line-height:21px}.squad-data h2 b{font-size:21px;margin-left:5px}.hull-label{grid-column:2;grid-row:1;font-size:8px;margin:0;gap:4px}.hull-label strong{font-size:14px}.hull-track{grid-column:2;grid-row:2;height:8px;align-self:center}.squad-bottom{display:none}
 .combat-hud .support-section{padding:7px 8px 8px;border-radius:3px 3px 14px 3px;position:relative}.support-title{position:static;margin:0 2px 5px;display:flex;justify-content:space-between}.support-title .section-label{display:block;font-size:8px}.salvage{font-size:15px;line-height:17px}.salvage small{font-size:8px}.ability-row{gap:7px}.ability{height:54px;min-height:48px;display:grid;grid-template-columns:32px 1fr;grid-template-rows:1fr 1fr;padding:6px 5px;gap:0}.ability svg{width:23px;height:23px;grid-row:1/3;margin:0;justify-self:center}.ability b{font-size:10px;letter-spacing:0;align-self:end;text-align:left}.ability small{font-size:9px;margin-top:2px;align-self:start;text-align:left}.ability kbd{display:none}
 .camera-tools{right:10px;bottom:calc(187px + env(safe-area-inset-bottom));gap:5px}.camera-tools button,#camera-reset{width:44px;height:44px}.combat-hint{display:none}.touch-hint{display:block;position:absolute;left:14px;bottom:calc(196px + env(safe-area-inset-bottom));font:8px/1.8 var(--mono);letter-spacing:.3px;width:130px;color:#e4f5e9;text-shadow:0 1px 5px #000}.touch-hint span{display:none}
 .toast{top:calc(212px + env(safe-area-inset-top));max-width:none;width:calc(100% - 28px);padding:9px 12px;border-radius:4px 12px;justify-content:center}.toast p{font-size:12px;line-height:1.4}.toast>span{display:none}#world-labels span{font-size:7px;padding:3px 5px}#world-labels #convoy-marker{display:none}
 .mission-menu{left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));max-height:calc(100dvh - 84px - env(safe-area-inset-top));overflow:auto;top:auto;width:auto}.menu-body{padding:16px 18px 10px}.menu-topline{font-size:8px}.menu-body h1{font-size:44px}.menu-secondary{gap:3px}.menu-secondary button{font-size:9px;flex:1}.mission-specs{margin:12px 0;padding:10px 0}.menu-bottom{font-size:8px}.loading-label{font-size:9px}.scene-caption{display:none}
 dialog{max-width:calc(100% - 16px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto}.dialog-header{padding:10px 14px}#dialog-content{padding:16px}.supply-card{min-height:120px}.supply-card p{font-size:12px!important}.segments button{min-height:44px}.roster-grid{gap:8px}.roster-card{padding:8px}.roster-card h3{font-size:16px}.roster-card .inspect-button{min-height:44px}.control-row{font-size:12px}
}
@media(max-height:500px) and (min-width:651px){
 .topbar{height:52px;padding:0 max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))}.brand{font-size:19px}.brand small{display:none}.icon-button{width:44px;height:44px}.objective{top:62px;left:12px;width:200px;padding:9px 12px}.objective h2{font-size:17px;margin:4px 0}.objective .section-label{font-size:8px}.objective p,.route-labels,.supply-timer{display:none}.objective-row{font-size:9px}.objective-row strong{font-size:24px}.wave-panel{top:62px;right:12px;width:130px;padding:8px 12px}.wave-panel .section-label{font-size:8px}.wave-panel strong{font-size:26px}.wave-panel div>span#wave-label{font-size:10px}.wave-foot{padding-top:4px}.wave-foot b{font-size:18px}
 .combat-hud{bottom:calc(6px + env(safe-area-inset-bottom));left:12px;right:12px;grid-template-columns:1fr 300px;gap:10px}.radar-section,.unit-portrait,.squad-bottom{display:none}.squad-section{padding:9px 12px}.squad-data h2{font-size:20px;margin:3px 0}.squad-data h2 b{font-size:22px}.squad-data>.section-label{font-size:9px}.hull-label{font-size:9px}.hull-label strong{font-size:16px}.support-section{padding:7px 9px}.support-title{margin-bottom:4px}.salvage{font-size:16px}.ability{height:49px;min-height:44px;display:grid;grid-template-columns:28px 1fr;grid-template-rows:1fr 1fr;padding:5px}.ability svg{grid-row:1/3;width:23px;height:23px;margin:0}.ability b{font-size:10px;align-self:end}.ability small{font-size:9px;margin-top:1px;align-self:start}.ability kbd{display:none}.combat-hint{display:none}.camera-tools{bottom:113px;right:12px}.touch-hint{display:none}.toast{top:65px;max-width:42%;width:42%;padding:8px 10px}.toast p{font-size:12px}.mission-menu{top:62px;bottom:10px;max-height:none;overflow:auto}.scene-caption{display:none}
}
@media(prefers-reduced-motion:reduce){.track i,.toast{transition:none}}
.ability-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.ability{width:auto;min-width:0}
.touch-hint span{display:inline;color:var(--cyan);padding:0 3px}
@media(max-width:650px){.touch-hint{font-size:9px;width:165px;bottom:calc(240px + env(safe-area-inset-bottom));opacity:.8}.touch-hint span{padding:0 2px}}
.combat-hud.critical .hull-track i{background:linear-gradient(90deg,#f24b49,#ffbe7a)!important}.combat-hud.critical #hull-number{color:#ff947d}.combat-hud.critical .squad-section{border-left-color:#ff6b5c!important}
@media(max-width:650px){.ability b{font-size:12px}.ability small{font-size:10px}}
/* Exposed machined metal and side consoles leave the driving corridor clear. */
:root{--hud-surface:linear-gradient(120deg,#0c232b80,#080d15b0),url('assets/textures/hud-armored-metal.png')}
.panel,.combat-hud>section{background-size:auto,260px;box-shadow:inset 0 2px 1px #e0f4ff65,inset 0 -3px 2px #000b,0 8px 18px #0008;border-color:#91a2a6;border-radius:3px;text-shadow:0 2px 3px #000}
.ability,.ability.emp{background-image:linear-gradient(135deg,#163c3577,#071214bb),url('assets/textures/hud-armored-metal.png');background-size:auto,170px;border-radius:3px}
.ability.emp{background-image:linear-gradient(135deg,#49356488,#130b24bb),url('assets/textures/hud-armored-metal.png')}

/* Both console stacks share a bottom baseline and grow upward with their content. */
.hud-rail{display:contents}
@media(min-width:651px){
 .combat-hud{position:absolute;inset:90px 18px max(18px,env(safe-area-inset-bottom));display:flex;align-items:flex-end;justify-content:space-between;gap:24px;pointer-events:none}
 .hud-rail{display:flex;flex-direction:column;gap:10px;width:210px;flex:none;pointer-events:none}
 .hud-rail>section,.hud-rail>.camera-tools{position:static;inset:auto;width:100%;height:auto;box-sizing:border-box;pointer-events:auto;margin:0}
 .hud-rail>section{position:relative;background-image:var(--hud-surface);background-size:auto,260px;border:1px solid #91a2a6;border-radius:3px;box-shadow:inset 0 2px 1px #e0f4ff65,inset 0 -3px 2px #000b,0 8px 18px #0008;text-shadow:0 2px 3px #000}
 .hud-rail .objective{padding:12px 14px}.objective h2{font-size:20px;margin:7px 0}.objective p,.route-labels{display:none}.objective-row strong{font-size:27px}.supply-timer{margin:8px -14px -12px;padding:8px 14px;font-size:9px}.supply-timer b{font-size:16px}
 .hud-rail .squad-section{padding:14px;display:block}.unit-portrait{display:none}.squad-data{width:100%}.squad-data h2{font-size:21px;margin:8px 0}.squad-data h2 b{font-size:24px}.squad-bottom{display:flex;flex-wrap:wrap;gap:5px;font-size:8px}
 .hud-rail .radar-section{display:block;padding:10px 12px}#radar{width:164px;height:68px;border-radius:3px}.radar-bottom{margin-top:7px}
 .hud-rail .wave-panel{padding:12px 14px}.wave-panel strong{font-size:34px}.wave-foot{padding-top:8px}.wave-foot b{font-size:20px}
 .hud-rail .support-section{padding:12px}.support-title{display:flex;flex-wrap:wrap;gap:8px}.support-title .section-label{width:100%}.ability-row{grid-template-columns:1fr;gap:8px}.ability{height:60px;display:grid;grid-template-columns:44px 1fr;grid-template-rows:1fr 1fr;align-items:center;padding:7px 10px}.ability svg{grid-row:1/3;justify-self:center}.ability b,.ability small{text-align:left;margin:0}.ability b{align-self:end}.ability small{align-self:start}.ability kbd{left:auto;right:5px;top:5px;font-size:8px}
 .hud-rail .camera-tools{justify-content:flex-end}.combat-hint{bottom:20px;left:50%;transform:translateX(-50%);font-size:9px;white-space:nowrap}.combat-hint>span:nth-child(n+2){display:none}.toast{top:90px;max-width:calc(100% - 500px)}
}
@media(min-width:651px) and (max-height:680px), (min-width:651px) and (max-width:900px){
 .combat-hud{inset:62px 10px max(10px,env(safe-area-inset-bottom))}.hud-rail{width:160px;gap:8px}.topbar{height:52px}.brand small{display:none}
 .hud-rail .objective{padding:8px 10px}.objective h2{font-size:17px;margin:4px 0}.objective .section-label{font-size:8px}.objective-row{font-size:8px}.objective-row strong{font-size:23px}.supply-timer,.objective:after{display:none}.route-track{margin:6px 0 0}
 .hud-rail .squad-section{padding:10px}.squad-data h2{font-size:17px;margin:5px 0}.squad-data h2 b{font-size:20px}.squad-data>.section-label{font-size:8px}.squad-bottom,.hud-rail .radar-section{display:none}.hull-label{font-size:8px}.hull-label strong{font-size:15px}
 .hud-rail .wave-panel{padding:8px 10px}.wave-panel strong{font-size:23px}.wave-panel>div:nth-child(2){margin:3px 0}.wave-panel .section-label{font-size:8px}.wave-foot{padding-top:3px}.wave-foot b{font-size:16px}
 .hud-rail .support-section{padding:8px}.support-title .section-label{display:none}.support-title{margin-bottom:5px}.salvage{font-size:16px}.ability-row{gap:4px}.ability{height:44px;min-height:44px;grid-template-columns:30px 1fr;padding:4px}.ability svg{width:22px;height:22px}.ability b{font-size:10px}.ability small{font-size:9px}.ability kbd{display:none}.hud-rail .camera-tools{gap:4px}.combat-hint,.touch-hint{display:none}.toast{top:62px;max-width:calc(100% - 370px);width:calc(100% - 370px)}
}
@media(max-width:650px){
 .hud-rail .objective,.hud-rail .wave-panel,.hud-rail .camera-tools{position:fixed}
 .hud-rail .radar-section{display:none}
}
@media(max-width:650px){
 .hud-rail .squad-section,.hud-rail .support-section{pointer-events:auto;background-image:var(--hud-surface);background-size:auto,260px;border:1px solid #91a2a6;box-shadow:inset 0 2px 1px #e0f4ff65,inset 0 -3px 2px #000b,0 8px 18px #0008}
}
@media(min-width:651px) and (max-height:500px){
 .hud-rail .wave-panel>.section-label{display:none}.hud-rail .wave-panel{padding:5px 10px}.wave-panel div>span#wave-label{font-size:9px}
}
/* Textured armor surrounds clean, recessed controls; no repeated bitmap on buttons. */
.ability,.ability.emp{background-image:none;background-color:#15252d;border:1px solid #66818b;box-shadow:inset 0 1px #bce2ee1c,0 2px 3px #0008;text-shadow:none}
.ability.emp{background-color:#28203b;border-color:#9c81bc}
.ability:hover:enabled{background-color:#25434d;border-color:#b0e5ef;box-shadow:inset 3px 0 #8ff4d2}
.ability.emp:hover:enabled{background-color:#40305a;border-color:#d5b5ff;box-shadow:inset 3px 0 #d5b5ff}
.ability:disabled{opacity:1;background-color:#151d23;border-color:#3a484f;color:#849399}
.ability:disabled svg{stroke:#687f83}.ability:disabled small{color:#89979a}
.camera-tools button,#camera-reset{background-image:none;background-color:#17262e;border-color:#697f88;box-shadow:inset 0 1px #c1e7f21c,0 2px 3px #0008}
.camera-tools button:hover{background-color:#2b444e}
.ability:focus-visible,.camera-tools button:focus-visible{outline:2px solid #d5fff1;outline-offset:3px}
.progression-hud{margin-top:12px;grid-column:1/-1}.xp-label{display:flex;justify-content:space-between;align-items:center;font:10px var(--mono);color:#cbdde6}.xp-label strong{color:#ffd78b;font-size:15px}.xp-label span b{font-weight:400}.xp-track,.kill-rate-track{height:6px;background:#050e16;border:1px solid #567180;margin-top:6px}.xp-track i,.kill-rate-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#388ccd,#99efff)}.kill-rate-row{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font:9px var(--mono)}.kill-rate-row small{display:block;color:#9aafb4;font-size:8px;margin-top:3px}.kill-rate-row>b{font:26px var(--display);color:#ffda83}.kill-rate-track i{background:#ffd67a}
@media(max-width:650px){.progression-hud{margin-top:2px}.xp-label{font-size:9px}.xp-label strong{font-size:13px}.xp-track{height:5px;margin-top:3px}.camera-tools{bottom:calc(217px + env(safe-area-inset-bottom))}.touch-hint{bottom:calc(270px + env(safe-area-inset-bottom))}.wave-panel{flex-wrap:wrap;max-width:200px}.kill-rate-row{margin:0;gap:8px}.kill-rate-row small,.kill-rate-track{display:none}.kill-rate-row>b{font-size:17px}.kill-rate-row>span{font-size:7px}}
@media(min-width:651px) and (max-height:680px), (min-width:651px) and (max-width:900px){.hud-rail .wave-panel{display:flex;flex-wrap:wrap;gap:2px 8px;padding:6px 10px}.wave-panel>.section-label,.wave-panel #wave-label,.kill-rate-track,.kill-rate-row small{display:none}.wave-panel>div:nth-child(2){margin:0}.wave-foot{border:0;padding:0;gap:5px}.wave-foot span{font-size:7px}.kill-rate-row{width:100%;margin:0}.kill-rate-row>b{font-size:18px}.progression-hud{margin-top:7px}}
@media(max-width:650px){.wave-panel{max-width:calc(100% - 28px);flex-wrap:nowrap}.kill-rate-row{gap:5px}.kill-rate-row>span{font-size:7px;white-space:nowrap}.wave-foot{gap:5px}}
/* Road supply readout: the moving choice itself is projected onto the road. */
.road-supply{position:absolute;inset:94px 0 auto;display:flex;justify-content:center;gap:clamp(32px,16vw,260px);pointer-events:none;z-index:6}
.road-supply[hidden]{display:none}
.road-supply-label{position:relative;width:200px;padding:12px 14px 17px;background:linear-gradient(135deg,#14232df5,#080e16ed);border:1px solid #4e737e;border-left:3px solid #4e737e;box-shadow:0 6px 18px #0005;color:#abbfc4;transition:border-color .12s,box-shadow .12s,opacity .15s;overflow:hidden}
.road-supply-label small,.road-supply-label strong,.road-supply-label span,.road-supply-label em{display:block;font-style:normal}
.road-supply-label small{font:10px monospace;letter-spacing:2px}.road-supply-label strong{font-size:17px;line-height:1.2;margin:7px 0}.road-supply-label span{font-size:10px}.road-supply-label em{font:10px monospace;margin-top:10px;color:#92b2bd}
.road-supply-label.selected{border-color:#ffd58b;box-shadow:inset 0 0 24px #f6b74616,0 0 16px #f6b74620;color:#fff0d3}.road-supply-label.selected em{color:#ffd58b}
.road-supply-label i{position:absolute;bottom:0;left:0;height:3px;width:var(--arrival,0%);background:#ffd58b;opacity:0}.road-supply-label.selected i{opacity:1;box-shadow:0 0 10px #ffc773}
.road-supply.collected .selected{border-color:#a5ffd5;color:#dbffee}.road-supply.collected .selected em{color:#a5ffd5}.road-supply-label.missed{opacity:0}
.supply-incoming .toast{visibility:hidden}
@media(max-width:650px){.road-supply{inset:76px 10px auto;gap:10px}.road-supply-label{width:calc(50% - 5px);padding:8px 9px 12px}.road-supply-label strong{font-size:14px}.road-supply-label small{font-size:9px;letter-spacing:1px}.road-supply-label span{font-size:9px}.road-supply-label em{font-size:9px;margin-top:7px}.supply-incoming .objective,.supply-incoming .wave-panel{visibility:hidden}}
@media(max-height:500px) and (min-width:651px){.road-supply{top:65px;gap:30px}.road-supply-label{padding:6px 10px 9px;width:170px}.road-supply-label strong{font-size:13px;margin:3px 0}.road-supply-label span{display:none}.road-supply-label em{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.road-supply-label{transition:none}}
/* Preview the actual offered model before contact, with quantity and reward type. */
.road-supply-preview{position:relative;height:112px;margin:7px -4px 6px;background:radial-gradient(ellipse at 50% 75%,#38535d66,transparent 70%);overflow:hidden;border-bottom:1px solid #68828c55}
.road-supply-preview img{display:block;width:100%;height:100%;object-fit:contain;filter:saturate(.65) brightness(.8);transition:filter .15s}
.road-supply-label.selected .road-supply-preview img{filter:saturate(1) brightness(1.1)}
.road-supply-preview svg{display:block;margin:auto;width:96px;height:100%;fill:#85c9be22;stroke:#b5e6dc;stroke-width:3;stroke-linejoin:round}
.road-supply-amount{position:absolute;right:4px;bottom:5px;padding:1px 7px;background:#0b1722ed;border:1px solid #68828c;color:#d3e9ee;font:700 20px monospace;text-shadow:0 1px 3px #000}
.selected .road-supply-amount{border-color:#ffd58b;color:#ffe3ae}
@media(max-width:650px){.road-supply-label{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:6px;align-content:start}.road-supply-label>small{grid-column:1/-1;margin-bottom:5px}.road-supply-preview{grid-column:1;grid-row:2/4;width:52px;height:72px;margin:0}.road-supply-label>strong{grid-column:2;font-size:12px;margin:3px 0;overflow-wrap:anywhere}.road-supply-label>span{grid-column:2;font-size:9px}.road-supply-label>em{grid-column:1/-1}.road-supply-amount{right:1px;bottom:1px;font-size:15px;padding:0 4px}.road-supply-preview svg{width:48px}}
@media(max-height:500px) and (min-width:651px){.road-supply-preview{height:62px}.road-supply-amount{font-size:16px}.road-supply-preview svg{width:58px}}
@media(prefers-reduced-motion:reduce){.road-supply-preview img{transition:none}}
/* Keep the armored frame, quiet the surface behind telemetry. */
:root{--hud-surface:linear-gradient(125deg,#15232dde,#090f18ef),url('assets/textures/hud-armored-metal.png')}
#route-district{letter-spacing:1px;font-size:9px;color:#bcddd5}
.ability,.icon-button,.camera-tools button,.primary{transition:background-color .14s,border-color .14s,box-shadow .14s,transform .12s}
.ability:active:enabled,.icon-button:active:enabled,.camera-tools button:active:enabled,.primary:active:enabled{transform:translateY(2px);box-shadow:inset 0 3px 8px #0007}
.toast{pointer-events:none}
@media(max-width:650px){.toast{top:auto;bottom:220px;left:10px;right:10px;max-width:none;padding:8px 12px}.toast p{font-size:11px;line-height:1.4}.toast>span{display:none}}
@media(prefers-reduced-motion:reduce){.ability,.icon-button,.camera-tools button,.primary{transition:none}}
@media(max-width:650px){.toast,.toast.visible{transform:none;width:auto;margin:0;left:10px;right:10px;bottom:220px;top:auto}.toast p{overflow-wrap:anywhere}}
/* Do not black out rotated battlefield views with a screen-space vignette. */
body:not(.menu-mode) .vignette{background:none}
#attack-order{position:absolute;bottom:56px;left:50%;transform:translateX(-50%);z-index:4;display:flex;align-items:center;gap:12px;max-width:calc(100% - 480px);padding:6px 8px 6px 14px;border:1px solid #e4bc75;background:#131d27ed;color:#ffe1a8;font:11px var(--mono);box-shadow:0 4px 16px #0006}
#attack-order[hidden]{display:none}#attack-order-text{min-width:0;overflow-wrap:anywhere}#clear-attack{min-height:44px;padding:0 12px;background:#283b43;border:1px solid #7d9d9d;color:#d5fff0;font:11px var(--mono);white-space:nowrap}
@media(max-width:650px){#attack-order{bottom:270px;left:10px;right:10px;transform:none;max-width:none;padding:4px 6px 4px 10px;font-size:9px;justify-content:space-between}.combat-hint:after{content:'TAP TO TARGET · DRAG TO STEER'}}
@media(max-height:500px) and (min-width:651px){#attack-order{bottom:18px;max-width:calc(100% - 350px);font-size:9px}}
@media(max-width:650px){.toast,.toast.visible{bottom:330px}#game-ui:has(#attack-order:not([hidden])) .touch-hint{visibility:hidden}}
/* Endless command interface and road upgrades. */
.callsign-label{display:block;font:11px monospace;letter-spacing:.12em;color:#94b7b0;margin:12px 0 6px}.callsign-input{box-sizing:border-box;width:100%;max-width:430px;background:#10282b;border:1px solid #567c75;color:#e1f4ed;padding:12px 14px;margin-bottom:12px;font:16px monospace}.leaderboard-table{width:100%;border-collapse:collapse;font:13px monospace}.leaderboard-table th{text-align:left;color:#84c9b8;font-size:10px;padding:12px 7px}.leaderboard-table td{padding:12px 7px;border-top:1px solid #42635b;overflow-wrap:anywhere}.leaderboard-table td:nth-child(2){max-width:200px}.run-share{padding:18px 0;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.run-share p{width:100%}.run-share a{color:#a4efda}.road-supply.upgrade .road-supply-label{border-color:#8163bb;background:linear-gradient(135deg,#271c3bea,#131d2bef)}.road-supply.upgrade .road-supply-label.selected{border-color:#dab2ff;box-shadow:0 0 24px #aa6af040}.road-supply.upgrade .road-supply-label small,.road-supply.upgrade .road-supply-label em,.road-supply.upgrade .road-supply-amount{color:#dfc1ff}.road-supply.upgrade .road-supply-label i{background:#c38aff}.upgrade-symbol{font:64px monospace;color:#ddc0ff;line-height:1;text-shadow:0 0 20px #b275ef}.road-supply.upgrade .road-supply-amount{font-size:12px}.road-supply.upgrade .road-supply-label strong{font-size:12px}.route-labels #earned-title{max-width:70%;white-space:normal}.menu-secondary{flex-wrap:wrap}@media(max-width:600px){.leaderboard-table{font-size:11px}.leaderboard-table td{padding:10px 4px}.upgrade-symbol{font-size:38px}.callsign-input{padding:9px 12px}.road-supply.upgrade .road-supply-label strong{font-size:10px}}
.road-supply.upgrade .road-supply-preview .upgrade-symbol{display:grid;place-items:center;height:90%;font:64px monospace;color:#ddc0ff}@media(max-width:650px){.road-supply.upgrade .road-supply-preview .upgrade-symbol{font-size:36px;height:55px}.road-supply.upgrade .road-supply-amount{font-size:8px;padding:2px}}
/* Light travelling across the etched surface, separate from the panel texture. */
.road-supply-label,.ability,.primary{isolation:isolate;overflow:hidden;position:relative}
.road-supply-label::after,.ability::after,.primary::after,.surface-light{content:'';position:absolute;inset:0;pointer-events:none;z-index:2;border-radius:inherit;background:linear-gradient(110deg,transparent 27%,#a8dbed08 37%,#d5f4ff24 46%,#ffffff66 49%,#d8f7ff1c 53%,transparent 64%);transform:translateX(-125%);animation:surface-sweep 7s ease-in-out infinite;mix-blend-mode:screen}
.road-supply-label::after{animation-duration:3.2s;opacity:.62}.road-supply-label.selected::after{animation-duration:2.2s;opacity:.95}.road-supply.upgrade .road-supply-label::after{background:linear-gradient(110deg,transparent 27%,#ad85ee10 37%,#c4a0ff33 46%,#f1e4ff88 49%,#bb88ff22 54%,transparent 64%)}
.road-supply-label:nth-child(2)::after{animation-delay:-.7s}.ability::after{opacity:.22;animation-delay:-2s}.ability:nth-child(2)::after{animation-delay:-4s}.ability:disabled::after{animation:none;opacity:0}.primary::after{opacity:.5;animation-duration:5s}.primary:hover::after{animation-duration:1.5s}.surface-light{opacity:.16;animation-duration:11s}.hud-rail section{overflow:hidden}.hud-rail-right .surface-light{animation-delay:-4s}.road-supply.collected .selected::after{animation:collection-flash .6s ease-out both}
@keyframes surface-sweep{0%,15%{transform:translateX(-125%)}65%,100%{transform:translateX(125%)}}
@keyframes collection-flash{from{transform:translateX(-80%);opacity:1}to{transform:translateX(100%);opacity:0}}
@media(prefers-reduced-motion:reduce){.road-supply-label::after,.ability::after,.primary::after,.surface-light{animation:none!important;display:none}}
/* Keep choice readouts off the projected road wherever both flanks have room. */
.road-supply{inset:var(--choice-top,84px) 10px auto;gap:12px;justify-content:center}
.road-supply .road-supply-label{height:142px;width:190px;padding:9px 10px 13px;display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:18px 40px 38px 18px;gap:0 8px;align-content:start}
.road-supply .road-supply-label>small{grid-column:1/-1;margin:0;font-size:9px;letter-spacing:1px}
.road-supply .road-supply-preview{grid-column:1;grid-row:2/4;width:58px;height:78px;margin:0}
.road-supply .road-supply-label>strong{grid-column:2;grid-row:2;font-size:12px;line-height:1.15;margin:3px 0;overflow-wrap:anywhere}
.road-supply .road-supply-label>span{grid-column:2;grid-row:3;font-size:9px;line-height:1.35;overflow-wrap:anywhere}
.road-supply .road-supply-label>em{grid-column:1/-1;grid-row:4;font-size:9px;margin:5px 0 0;white-space:nowrap}
.road-supply .road-supply-amount{font-size:12px;padding:1px 3px;right:1px;bottom:2px}
.road-supply .road-supply-preview svg{width:54px}.road-supply.upgrade .road-supply-preview .upgrade-symbol{font-size:38px;height:55px}.road-supply.upgrade .road-supply-amount{font-size:8px}
.road-supply.side-docked{position:fixed;inset:0;display:block}.road-supply.side-docked .road-supply-label{position:absolute}
@media(max-width:650px){.road-supply .road-supply-label{width:calc(50% - 6px);grid-template-columns:44px minmax(0,1fr);column-gap:5px}.road-supply .road-supply-preview{width:44px}.road-supply .road-supply-preview svg{width:42px}.road-supply .road-supply-label>strong{font-size:10px}.road-supply .road-supply-label>em{font-size:8px}}
#salvage.coin-collected{animation:coin-credit .3s ease-out}
@keyframes coin-credit{from{color:#fff4ad;text-shadow:0 0 14px #ffc338}to{color:inherit;text-shadow:none}}
@media(prefers-reduced-motion:reduce){#salvage.coin-collected{animation:none}}
.fabrication{margin:6px 0 9px;border-top:1px solid #687777;padding-top:7px;color:#ffd98a}.fabrication>div:first-child{display:flex;justify-content:space-between;gap:6px;font-size:10px}.fabrication small{font-size:9px}.fabrication .track{height:3px;margin:5px 0}.fabrication .track i{background:#ffd577}#boss-target{position:fixed;z-index:12;top:80px;left:50%;transform:translateX(-50%);width:320px;max-width:calc(100% - 24px);padding:8px 12px;background:#271719ed;color:#ffbc91;border:1px solid #ff925d;text-align:left;pointer-events:auto;font:11px var(--display)}#boss-target b{float:right;font-size:9px}#boss-target i{display:block;height:5px;background:#591e17;margin-top:7px}#boss-health{display:block;height:100%;background:#ff8254;width:100%}#boss-target[hidden]{display:none}
@media(max-width:650px){#boss-target{top:66px;padding:6px 9px;font-size:9px}.fabrication{margin:3px 0 5px;padding-top:4px}.fabrication .track{margin:3px 0}.camera-tools{bottom:280px}}

@media(max-width:650px){.camera-tools{bottom:250px}#attack-order{right:160px;bottom:250px;gap:5px;font-size:8px;padding-left:6px}#clear-attack{padding:0 8px}.touch-hint{bottom:300px}}

/* Phone command strip: optional telemetry, compact lane previews, open battlefield. */
.mobile-console{display:none}
@media(max-width:650px), (max-height:500px) and (max-width:1000px){
 :root{--mobile-console-height:108px;--mobile-bottom:max(6px,env(safe-area-inset-bottom))}
 .topbar{height:calc(48px + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) 0 max(8px,env(safe-area-inset-left));gap:4px;background:#0b161de0;box-shadow:none}
 .topbar .brand{font-size:15px;letter-spacing:1px;gap:5px}.brand>svg{width:22px;height:26px}.brand small,.top-mission{display:none}.topbar nav{gap:2px}.topbar .icon-button{width:44px;height:44px;min-width:44px;background:transparent;border-color:transparent}.topbar:after{height:1px}
 .combat-hud{position:fixed;inset:auto max(8px,env(safe-area-inset-right)) var(--mobile-bottom) max(8px,env(safe-area-inset-left));height:var(--mobile-console-height);min-height:0;display:grid;grid-template-columns:1fr;grid-template-rows:40px 64px;gap:4px;padding:0;background:none;align-items:stretch;pointer-events:none}
 .hud-rail{display:contents}.hud-rail .radar-section,.unit-portrait,.combat-hint,.touch-hint,#world-labels{display:none}
 .combat-hud .hud-rail .squad-section{position:relative;inset:auto;width:auto;height:40px;margin:0;padding:5px 8px;border:1px solid #618a8366!important;border-radius:6px;display:block;background:#0a1922e8;box-shadow:none}
 .squad-data{display:grid;width:100%;grid-template-columns:85px 1fr 95px;grid-template-rows:16px 7px;gap:3px 10px}
 .squad-data>.section-label{display:none}.squad-data h2{grid-column:1;grid-row:1/3;font-size:0;margin:0;line-height:27px;white-space:nowrap}.squad-data h2:before{content:'UNITS ';font:10px var(--mono);color:#b0bdbb}.squad-data h2 b{font-size:18px;margin-left:2px}
 .hull-label{grid-column:2;grid-row:1;font-size:0;margin:0;line-height:16px}.hull-label span:after{content:'HULL';font:9px var(--mono)}.hull-label strong{font-size:13px}.hull-track{grid-column:2;grid-row:2;height:4px;margin:0;align-self:center}
 .progression-hud{grid-column:3;grid-row:1/3;margin:0}.xp-label{font-size:9px;line-height:16px}.xp-label strong{font-size:12px}.xp-label>span{font-size:8px}.xp-track{height:4px;margin-top:3px;border:0}
 .combat-hud .hud-rail .support-section{position:relative;inset:auto;height:64px;width:auto;margin:0;padding:0 50px 0 0;background:none;border:0!important;box-shadow:none;overflow:visible}
 .support-title{position:static;margin:0;height:16px;display:flex;justify-content:flex-end;align-items:center;padding:0 2px}.support-title .section-label{display:none}.salvage{font:12px/16px var(--mono);white-space:nowrap}.salvage small{font-size:9px}
 .ability-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.ability{width:auto;height:44px;min-height:44px;display:grid;grid-template-columns:22px 1fr;grid-template-rows:17px 15px;padding:5px 4px;gap:0;border-radius:5px}.ability svg{grid-column:1;grid-row:1/3;width:19px;height:19px;margin:0;justify-self:center}.ability b{font-size:10px;letter-spacing:0;align-self:center;text-align:left}.ability small{font-size:9px;align-self:center;text-align:left;margin:0}.ability kbd{display:none}
 .mobile-console{display:block;position:absolute;right:0;bottom:4px;pointer-events:auto;z-index:20}.mobile-console summary{display:grid;place-items:center;list-style:none;width:44px;height:44px;border:1px solid #66818b;border-radius:5px;background:#17262e;color:#bdede1;font-size:20px;cursor:pointer}.mobile-console summary::-webkit-details-marker{display:none}.mobile-console summary:focus-visible{outline:2px solid #8ff4d2}.mobile-console[open] summary{background:#34534e;color:#fff}
 .mobile-console-tray{position:absolute;right:0;bottom:52px;width:min(340px,calc(100vw - 16px));max-height:calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;padding:10px;background-image:var(--hud-surface);border:1px solid #7da99b;border-radius:8px;box-shadow:0 6px 30px #0009;display:grid;grid-template-columns:1fr 1fr;gap:10px;pointer-events:auto}
 .mobile-console-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;font:10px var(--mono);letter-spacing:1px;color:#8ff4d2}.mobile-console-heading button{width:44px;height:44px;background:#203536;border:1px solid #618a83;color:#fff;font-size:24px}
 .mobile-console-tray .objective,.mobile-console-tray .wave-panel{position:static;inset:auto;display:block;visibility:visible;width:auto;height:auto;max-width:none;margin:0;padding:8px;background:#07131a99;border:1px solid #65857955;border-radius:4px;box-shadow:none}
 .mobile-console-tray .objective h2,.mobile-console-tray .objective p,.mobile-console-tray .objective:after,.mobile-console-tray .wave-panel>.section-label,.mobile-console-tray #wave-label{display:none}.mobile-console-tray .objective .section-label{font-size:9px;letter-spacing:0}.mobile-console-tray .objective-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:9px;margin-top:8px}.mobile-console-tray .objective-row strong{font-size:20px}.mobile-console-tray .route-track{height:3px;margin-top:6px}.mobile-console-tray .supply-timer{display:flex;margin:8px 0 0;padding:0;font-size:9px;background:none;border:0}.mobile-console-tray .supply-timer b{font-size:13px}
 .mobile-console-tray .wave-panel strong{font-size:20px}.mobile-console-tray .wave-foot{display:flex;justify-content:space-between;border:0;padding:0;margin:4px 0}.mobile-console-tray .wave-foot b{font-size:16px}.mobile-console-tray .kill-rate-row{display:flex;justify-content:space-between;margin:4px 0}.mobile-console-tray .kill-rate-row>b{font-size:16px}.mobile-console-tray .kill-rate-row small,.mobile-console-tray .kill-rate-track{display:none}
 .mobile-console-tray .fabrication{grid-column:1/-1;margin:0;padding:8px 0}.mobile-console-tray .fabrication small{font-size:10px}.mobile-console-tray .squad-bottom{grid-column:1/-1;display:flex;flex-wrap:wrap;font:10px/1.5 var(--mono);gap:8px;margin:0}
 .mobile-console-tray .camera-tools{position:static;inset:auto;display:flex;justify-content:flex-start;gap:8px;grid-column:1/-1;width:auto;margin:0}.mobile-console-tray .camera-tools:before{content:'CAMERA';align-self:center;font:10px var(--mono);margin-right:auto}.mobile-console-tray .camera-tools button{width:44px;height:44px}
 .road-supply{position:fixed;inset:auto max(8px,env(safe-area-inset-right)) calc(var(--mobile-console-height) + var(--mobile-bottom) + 8px) max(8px,env(safe-area-inset-left));gap:6px;justify-content:center}
 .road-supply .road-supply-label{width:calc(50% - 3px);height:88px;padding:5px 6px 7px;grid-template-columns:38px minmax(0,1fr);grid-template-rows:12px 28px 18px 15px;gap:0 5px;border-radius:5px;background:#0a1724ee}
 .road-supply .road-supply-label>small{font-size:8px;letter-spacing:.5px;line-height:12px}.road-supply .road-supply-preview{width:38px;height:46px;grid-row:2/4;border:0}.road-supply .road-supply-preview svg{width:36px}.road-supply .road-supply-preview .upgrade-symbol{font-size:26px;height:29px}.road-supply .road-supply-label>strong,.road-supply.upgrade .road-supply-label>strong{font-size:11px;line-height:13px;margin:1px 0;overflow-wrap:normal;align-self:center}.road-supply .road-supply-label>span{display:block;font-size:9px;line-height:10px;align-self:center}.road-supply .road-supply-label>em{font-size:9px;line-height:13px;margin:2px 0 0}.road-supply .road-supply-amount{font-size:10px;padding:0 2px;bottom:0}.road-supply.upgrade .road-supply-amount{font-size:8px}
 #boss-target{top:calc(54px + env(safe-area-inset-top));height:44px;width:300px;max-width:calc(100% - 100px);padding:6px 8px;font-size:10px;border-radius:5px;background:#271719e8}#boss-target b{font-size:8px}#boss-target i{height:4px;margin-top:5px}
 #attack-order{top:calc(54px + env(safe-area-inset-top));bottom:auto;left:auto;right:8px;width:44px;max-width:none;padding:0;transform:none;border:0;background:none;box-shadow:none}#attack-order-text{display:none}#clear-attack{width:44px;height:44px;padding:0;font-size:9px;border-radius:5px}
 .toast,.toast.visible{top:calc(106px + env(safe-area-inset-top));bottom:auto;left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:5px 9px;border-radius:4px}.toast p{font-size:11px}.toast>span{display:none}
}
@media(max-height:500px) and (min-width:651px) and (max-width:1000px){
 :root{--mobile-console-height:64px}
 .combat-hud{grid-template-columns:minmax(220px,1fr) minmax(330px,1fr);grid-template-rows:64px;gap:12px}.combat-hud .hud-rail .squad-section{align-self:end;margin-bottom:4px;height:44px;padding-top:7px}.road-supply{justify-content:space-between}.road-supply .road-supply-label{width:190px}.mobile-console-tray{max-height:calc(100dvh - 135px)}
}
@media(max-width:650px), (max-height:500px) and (max-width:1000px){
 .combat-hud:has(.mobile-console[open]){z-index:20}
 .mobile-console-tray{background-color:#0b1720}
}
/* Labels belong to physical rotating equipment, not fixed reward cards. */
.pickup-labels{position:fixed;inset:0;pointer-events:none;z-index:6}.pickup-labels[hidden],.pickup-label[hidden]{display:none}
.pickup-label{position:absolute;padding:4px 6px;color:#d5e4e9;text-shadow:0 1px 3px #000,0 0 6px #000;background:linear-gradient(90deg,#061119d9,#061119b0);border-bottom:2px solid #5be7da;border-radius:3px;text-align:center;max-height:76px}
.pickup-label strong{display:block;font:600 13px/1.15 var(--display);color:#fff}.pickup-label span{display:block;margin:3px 0;font:10px/1.2 var(--mono)}.pickup-label em{display:block;font:9px/1.2 var(--mono);font-style:normal;color:#acb8c0}.pickup-label.selected{border-color:#ffe699;box-shadow:0 2px 10px #ffdc4c25}.pickup-label.selected em{color:#ffe699}.pickup-label.upgrade{border-color:#c49aff}.pickup-label.upgrade.selected{border-color:#f0d8ff}.pickup-label.upgrade.selected em{color:#f0d8ff}
#boss-target{height:auto;min-height:52px}#boss-instruction{display:block;clear:both;font:9px/1.3 var(--mono);color:#ffe8bf;margin-top:4px}
.encounter-status{position:fixed;top:78px;left:50%;transform:translateX(-50%);font:10px var(--mono);letter-spacing:1px;color:#d8fff1;text-shadow:0 2px 4px #000;pointer-events:none;padding:4px 8px;background:#07131c99;border-radius:3px}.encounter-status[hidden]{display:none}
.run-analysis{margin:14px 0;padding:14px;border:1px solid #70998c66;background:#0a1820aa}.run-analysis h3{color:#8ff4d2;margin:0 0 10px;font:18px var(--display)}.run-analysis p{font-size:13px;line-height:1.5;margin:7px 0}.run-analysis b{color:#ffdb97}.run-analysis ul{margin:10px 0;padding-left:18px;font-size:13px;line-height:1.6}
@media(max-width:650px),(max-height:500px) and (max-width:1000px){.encounter-status{top:calc(52px + env(safe-area-inset-top));font-size:9px;white-space:nowrap}.pickup-label strong{font-size:12px}.pickup-label span{font-size:9px}.pickup-label em{font-size:8px}#boss-target{min-height:58px;max-width:calc(100% - 70px)}#boss-instruction{font-size:8px}.toast,.toast.visible{top:calc(118px + env(safe-area-inset-top))}}
.pickup-label span{white-space:pre-line}
.run-analysis small{display:block;font-size:11px;color:#9db4b9;font-weight:400;margin-top:4px}

/* Radio captions are independent of audio mute and stay above the mobile controls. */
#radio-caption{position:fixed;z-index:25;left:50%;bottom:28px;transform:translateX(-50%);width:min(480px,calc(100vw - 36px));box-sizing:border-box;padding:9px 13px;border-left:3px solid #8ce6d2;background:#09171fed;color:#e5f7f0;font:500 13px/1.4 system-ui;box-shadow:0 4px 16px #0006;pointer-events:none;text-align:left}
#radio-caption[hidden]{display:none}
#radio-caption.radio-results{position:static;transform:none;width:100%;margin-top:16px}
@media(max-width:650px){#radio-caption{bottom:calc(128px + env(safe-area-inset-bottom));font-size:11px;padding:7px 10px}}
@media(max-height:500px) and (max-width:1000px){#radio-caption{bottom:84px;max-width:420px;font-size:11px;padding:6px 9px}}

.local-records{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px}
.local-records li{padding:12px 14px;border-left:2px solid #6fbdad;background:#10252c;display:grid;gap:5px}
.local-records li b{color:#c7f5e8;font-size:13px}.local-records li span{font-size:12px;color:#c2d4d8}.local-records li small{font-size:11px;color:#8ea9ae}
.local-best{padding:14px;background:linear-gradient(110deg,#244239,#142b31);border:1px solid #729e83;color:#d8dfac;line-height:1.7}

/* Physical rewards: compact previews explain the objects and projected road regions. */
.pickup-label{box-sizing:border-box;padding:6px 7px 10px;max-height:none;overflow:hidden;isolation:isolate;border:1px solid #56777a;border-bottom:2px solid #5be7da;background:linear-gradient(135deg,#152731f5,#08131beb)}
.pickup-label strong{overflow-wrap:anywhere}.pickup-label i{position:absolute;left:0;bottom:0;width:var(--arrival,0%);height:3px;background:#ffe699;opacity:.35}.pickup-label.selected i{opacity:1;box-shadow:0 0 8px #ffe699}.pickup-label.upgrade i{background:#d6aaff}.pickup-label.collected{border-color:#a5ffd5}.pickup-label.collected i{background:#a5ffd5}
.pickup-label::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,transparent 35%,#d5f4ff16 46%,#ffffff45 50%,transparent 62%);transform:translateX(-125%);animation:surface-sweep 3.2s ease-in-out infinite;z-index:-1}
.pickup-label.selected::after{animation-duration:2.2s}.pickup-label:nth-child(2)::after{animation-delay:-.7s}
@media(prefers-reduced-motion:reduce){.pickup-label::after{animation:none;display:none}}
/* Command console: fixed shell, independently scrolling content, usable in either orientation. */
#modal{width:min(720px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border-radius:3px;border:1px solid #658776;background:linear-gradient(120deg,#24352e,#101b18 65%);box-shadow:0 24px 80px #000b,inset 0 0 0 4px #0c1512;backdrop-filter:none}
#modal[open]{display:flex;flex-direction:column}#modal:before{width:86px;height:3px;background:#ffc27b}.dialog-header{flex:none;padding:10px 18px;background:#0b1512;border-bottom:1px solid #7daa7c50}.dialog-header .section-label{color:#b6c8bc;font-size:10px;letter-spacing:2px}.close-button{width:44px;height:44px;border-radius:2px;background:#283a31;color:#e5f1df}
#dialog-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 24px;scrollbar-color:#7d9e86 #14221b;scrollbar-width:thin}#dialog-content h2{font:700 clamp(25px,4vw,36px)/1.1 var(--display);letter-spacing:2px;color:#f4ead5}#dialog-content>p{line-height:1.4}.dialog-footer{flex:none;background:#0b1512;padding:9px 18px;color:#92aa99;font-size:9px}.dialog-actions{margin-top:18px}.settings-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:18px 0 8px;position:sticky;top:-22px;background:#14221b;padding:8px 0;z-index:2}.settings-tabs button{min-height:44px;border:1px solid #668771;background:#1d3026;color:#a9bbae;font:600 13px var(--display);letter-spacing:1.5px}.settings-tabs button[aria-pressed=true]{color:#151f17;background:#d6e9bc;border-color:#e2f1c9;box-shadow:inset 0 -3px #8faa70}.settings-page .setting{min-height:68px;padding:13px 0;gap:18px}.setting label,.setting .label{color:#e3eadf;font-size:16px}.setting small{color:#a5b8ab;font-size:13px;line-height:1.35;max-width:330px}.setting select{min-width:105px;min-height:44px;padding:8px 12px;border:1px solid #78977f;background:#0d1b14;color:#ecf2e2;border-radius:2px}.setting .segments{flex-wrap:wrap;justify-content:flex-end;border:0;gap:4px;max-width:300px}.setting .segments button{min-height:44px;border:1px solid #526f5c;padding:8px 12px;background:#14251c}.setting .segments button.selected{background:#476345;color:#f0f8df;border-color:#b3d49a}.setting .toggle{width:26px;height:26px;flex:none}.setting input[type=range]{min-height:44px;max-width:45%;width:180px}#performance-report{font:11px/1.6 var(--mono);color:#b7cdbb;background:#09150e;padding:12px;border-left:2px solid #e5b56e}.settings-page .dialog-tip{font-size:13px}.quiet-interface .surface-light{display:none!important}.quiet-interface .panel,.quiet-interface .mission-menu,.quiet-interface .combat-hud,.quiet-interface dialog::backdrop{backdrop-filter:none!important}.quiet-interface .hud-rail *{animation:none!important}
@media(max-width:600px){#modal{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border-radius:2px}#dialog-content{padding:16px}.dialog-header{padding:6px 12px}.dialog-footer{padding:8px 12px}.settings-tabs{top:-16px;margin-top:10px}.settings-page .setting{gap:10px;flex-wrap:wrap}.setting .segments{max-width:none;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.setting .segments button{padding:8px 4px;font-size:9px}.setting label,.setting .label{font-size:15px;flex:1;min-width:0}.setting small{font-size:12px}.setting .toggle{margin:9px}.control-row{flex-wrap:wrap}.settings-intro{font-size:14px}#dialog-content h2{font-size:27px}.settings-page .setting:has([data-camera]) .segments{grid-template-columns:repeat(2,1fr)}}
@media(max-height:500px) and (min-width:601px){#modal{max-height:calc(100dvh - 12px);width:min(760px,calc(100vw - 24px))}.dialog-header{padding:4px 14px}.dialog-footer{display:none}#dialog-content{padding:12px 20px}.settings-tabs{top:-12px;margin:8px 0}.settings-page .setting{min-height:58px;padding:8px 0}}
@media(prefers-reduced-motion:reduce){.settings-tabs button{transition:none}}
.quiet-interface .ability::after,.quiet-interface .primary::after,.quiet-interface .pickup-label::after{animation:none!important;display:none!important}
.boot-quality-label{display:block;font:9px var(--mono);letter-spacing:1px;color:#acc2b0;margin:12px 0 6px}#boot-quality{width:100%;min-height:44px;margin-bottom:12px;padding:8px 12px;color:#dcebd8;background:#15261c;border:1px solid #709077;border-radius:2px}
/* Keep launch controls in view; only the briefing/navigation region scrolls. */
.mission-menu{top:96px;bottom:12px;left:24px;width:365px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 108px);display:flex;flex-direction:column;overflow:hidden;border-radius:3px}.menu-topline,.menu-bottom,.launch-controls{flex:none}.menu-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:18px 22px 12px}.launch-controls{position:relative;padding:12px 20px;background:#0d1b15;border-top:1px solid #77937a70}.launch-controls .loading-label{line-height:1.3;min-height:12px}.menu-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.menu-secondary button{white-space:normal;text-align:left;min-width:0;min-height:44px}.mission-menu .menu-bottom{padding:8px 18px}.menu-mode .top-mission{max-width:40vw;overflow:hidden}.menu-mode .surface-light{pointer-events:none}#travel-boost{position:fixed;top:86px;left:50%;transform:translateX(-50%);padding:7px 12px;border:1px solid #f4c475;background:#142219ec;color:#ffe2a4;font:11px var(--mono);white-space:nowrap;pointer-events:none}
@media(max-width:650px){.mission-menu{top:72px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 80px - env(safe-area-inset-bottom));}.menu-body{padding:14px 16px}.launch-controls{padding:10px 14px}.menu-topline{padding:10px 14px}.mission-menu .menu-bottom{display:none}.menu-mode .top-mission{display:none}#travel-boost{top:65px;font-size:9px}.mission-menu h1{font-size:42px}}
@media(max-height:500px){.mission-menu{top:66px;bottom:6px;max-height:calc(100dvh - 72px)}.mission-menu .menu-topline,.mission-menu .menu-bottom{display:none}.launch-controls{padding:8px 14px}.launch-controls .loading-track{margin-top:5px}.launch-controls .loading-label{font-size:8px}.menu-body{padding:12px 16px}.mission-menu h1{font-size:34px}.mission-menu .lead{font-size:15px}.menu-mode .topbar{height:56px}.menu-mode .top-mission{display:none}}
body:has(#boss-target:not([hidden])) #travel-boost{top:auto;bottom:24px}
@media(max-width:650px){body:has(#boss-target:not([hidden])) #travel-boost{bottom:210px}}
