/* In-mission HUD only (body.hud-live = running / paused / clearing). One slim strip, icon pause button, corner radar, docked key-badge bar. */
body.hud-live .location-panel{transition:opacity .8s ease}
body.hud-live.hud-faded .location-panel{opacity:0;pointer-events:none}
body.hud-live:not(.touch-game) .location-panel{top:50px}
body.hud-live:not(.touch-game) .location-panel .wordmark>span:not(.brand-mark){display:none}
body.hud-live:not(.touch-game) .location-panel h1{font-size:44px;margin:6px 0}
body.hud-live:not(.touch-game) .location-panel .location{margin-top:14px}
/* Strip */
body.hud-live .objective-strip{position:fixed;top:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 132px);height:32px;padding:0 14px;display:flex;align-items:center;gap:12px;white-space:nowrap;overflow:hidden;border-radius:8px;background:#17251eeb;backdrop-filter:none}
body.hud-live .objective-title{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.8px}
body.hud-live .objective-title b{display:none}
body.hud-live #unit-wallet{margin-left:0;font-size:12px}
body.hud-live .objective-health{flex:0 0 52px;height:4px;margin:0;border-radius:2px}
body.hud-live .objective-meta{flex-wrap:nowrap;display:flex;align-items:center;justify-content:flex-start;gap:12px;font-size:12px;letter-spacing:.6px}
body.hud-live .objective-meta i,body.hud-live .objective-health-label i{font-style:normal}
body.hud-live #objective-health-label.low{color:#ff9a84}
body.hud-live .objective-strip #scenario-status{position:static;transform:none;display:flex;gap:0;padding:0;margin:0;border:0;background:none;font:12px/1 Arial,sans-serif;letter-spacing:.6px;color:#b7c6ae;max-width:none}
body.hud-live .objective-strip #scenario-status[hidden]{display:none}
body.hud-live .objective-strip #scenario-status .site-integrity{display:none}
body.hud-live .objective-strip #scenario-status p{margin:0;font:12px Arial,sans-serif}
/* Pause: small always-visible icon button (desktop; touch keeps its own 44px button) */
body.hud-live:not(.touch-game) #mission-pause-control.running{display:block;position:fixed;inset:auto;top:8px;right:12px;left:auto;bottom:auto;width:38px;height:38px;padding:0;opacity:1;pointer-events:none}
body.hud-live:not(.touch-game) #mission-pause-control.running .pause-card{width:38px;padding:0;border:0;background:none;box-shadow:none}
body.hud-live:not(.touch-game) #mission-pause-control.running :is(#pause-kicker,#mission-pause-hint,#mission-pause-label,#mission-mute,#mission-hangar-options){display:none}
body.hud-live:not(.touch-game) #mission-pause-control.running #mission-pause{display:flex;width:38px;height:38px;min-height:38px;padding:0;gap:0;font-size:18px;border-radius:9px;background:#17251eeb;color:#e8f1d8;border:1px solid #d6e3c744;pointer-events:auto}
body.hud-live:not(.touch-game) #mission-pause-control.running #mission-pause:hover{background:#2a4130}
body.hud-live.aim-mode:not(.touch-game) #mission-pause-control.running{display:block;opacity:.7}
/* Radar */
body.hud-live:not(.touch-game) .tactical-radar.map-panel{display:block;position:fixed;left:auto;top:auto;right:12px;bottom:36px;width:clamp(120px,12vw,150px);aspect-ratio:1;height:auto;padding:0;border-radius:50%;background:#10251fcc;border:1px solid #99c3b647;box-shadow:0 4px 14px #0004;overflow:hidden}
body.hud-live .tactical-radar #threat-radar{width:100%;height:100%}
body.hud-live .tactical-radar .north{position:absolute;top:2px;left:50%;transform:translateX(-50%);font:700 12px/1 monospace;color:#cfe6c4;pointer-events:none;z-index:1}
body.hud-live .tactical-radar .radar-readout{position:absolute;left:0;right:0;bottom:9%;margin:0;display:flex;justify-content:center;pointer-events:none}
body.hud-live .tactical-radar #radar-count{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
body.hud-live .tactical-radar #radar-nearest{font:12px/1 monospace;color:#ffe9b0;background:#0a1612b3;padding:2px 5px;border-radius:4px}
body.hud-live .tactical-radar #radar-offline{inset:0;font:12px monospace;letter-spacing:1px;border-radius:50%}
/* Weapon / ability bar */
body.hud-live:not(.touch-game) .weapon-strip{position:fixed;left:50%;bottom:36px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;flex-wrap:nowrap;max-width:calc(100vw - 340px);padding:5px 10px;border-radius:10px;background:#15231de6;backdrop-filter:none}
body.hud-live .weapon-strip .wslot{position:relative;display:flex;align-items:center;gap:6px;pointer-events:auto;max-width:none;border-radius:8px;cursor:default}
body.hud-live .weapon-strip .wslot[hidden]{display:none}
body.hud-live .weapon-strip .wslot:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
body.hud-live .weapon-strip .wtext{display:block!important;overflow:visible!important;max-width:none!important;min-width:30px}
body.hud-live .weapon-strip .wtext b{display:block;margin:0;font:12px monospace;letter-spacing:0;color:#dfe9cf;white-space:nowrap}
body.hud-live .weapon-strip .wname{position:absolute;left:0;bottom:calc(100% + 10px);font:12px/1.2 Arial,sans-serif;font-style:normal;letter-spacing:.4px;white-space:nowrap;color:#f2f6e6;background:#0b1712f2;border:1px solid #d5e7ca44;padding:5px 8px;border-radius:5px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s;z-index:3}
body.hud-live .weapon-strip .wslot:hover .wname,body.hud-live .weapon-strip .wslot:focus-visible .wname{opacity:1;visibility:visible}
body.hud-live .weapon-key{position:relative;isolation:isolate;width:36px;height:36px;border:0;font:700 12px monospace;background:conic-gradient(var(--ring,#d5eab3) calc(var(--ready,1)*360deg),#d5e7ca2e 0);flex:none}
body.hud-live .weapon-key::before{content:'';position:absolute;inset:3px;border-radius:50%;background:#16251e;z-index:-1}
body.hud-live #ultimate-ring{--ring:#ff8c78}
body.hud-live .ultimate-weapon.ready .wtext b{color:#ffb4a6;font-weight:700}
body.hud-live .ultimate-weapon.ready #ultimate-ring{box-shadow:0 0 10px #ff6a5acc}
body.hud-live .weapon-strip .wind-readout{display:flex;align-items:center;gap:4px;font:12px monospace!important;color:#b9c9ad}
body.hud-live .weapon-strip .wind-readout>span:first-child{display:inline-block;font-size:15px}
body.hud-live #hud-help-toggle{pointer-events:auto;width:26px;height:26px;padding:0;border-radius:50%;border:1px solid #d5e7ca66;background:#0b1712aa;color:#e6efd6;font:700 13px Arial,sans-serif}
body.hud-live #hud-help-toggle[aria-pressed=true]{background:#d3e5ad;color:#243324}
body.hud-live #hud-help-toggle:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
/* Controls help: right column under the pause button, only first two missions or via '?' */
body.hud-live:not(.touch-game) .bottom-bar{display:none;position:fixed;left:auto;bottom:auto;top:56px;right:12px;transform:none}
body.hud-live.hud-help-on:not(.touch-game) .bottom-bar{display:block}
body.hud-live:not(.hud-help-on) .bottom-bar .help{display:none}
body.hud-live:not(.touch-game) .bottom-bar .explore-caption{display:none}
body.hud-live:not(.touch-game) .bottom-bar .help{flex-direction:column;align-items:flex-start;gap:3px;padding:8px 10px;max-width:230px;background:#17251ee6;backdrop-filter:none}
body.hud-live:not(.touch-game) .bottom-bar .help b{margin-right:4px}
/* Toasts */
body.hud-live #radio-transmission{position:fixed;left:50%;right:auto;top:46px;bottom:auto;transform:translateX(-50%);width:max-content;max-width:max(260px,min(480px,calc(100vw - 560px)));padding:6px 12px;border-radius:7px;z-index:6;transition:opacity .5s}
body.hud-live #radio-transmission .radio-top{display:none}
body.hud-live #radio-transmission.fade{opacity:0;visibility:hidden;transition:opacity .6s,visibility 0s .6s}
body.hud-live #radio-caption{margin:0;font-size:13px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.hud-live:not(.touch-game) #combat-toast{bottom:92px;text-align:center;max-width:60vw;letter-spacing:1px}
body.reduce-motion.hud-live .location-panel,body.reduce-motion.hud-live #radio-transmission,body.reduce-motion.hud-live .weapon-strip .wname{transition:none!important}
body.reduce-motion.hud-live .ultimate-weapon.ready #ultimate-ring{animation:none}
@media(prefers-reduced-motion:reduce){body.hud-live .location-panel,body.hud-live #radio-transmission,body.hud-live .weapon-strip .wname{transition:none!important}}
@media(max-width:1150px){body.hud-live .weapon-strip .wind-readout{display:none}body.hud-live .objective-meta,body.hud-live .objective-strip{gap:10px}}
/* Phone: strip beside the 44px pause button, no desktop bar / radar */
body.hud-live.touch-game .objective-strip{top:calc(10px + var(--safe-top));left:calc(64px + var(--safe-left));right:auto;max-width:calc(100vw - 76px - var(--safe-left) - var(--safe-right));transform:none;padding:0 10px;gap:8px;border-radius:10px;height:32px}
body.hud-live.touch-game .objective-meta{gap:8px}
body.hud-live.touch-game .objective-meta .crew-count,body.hud-live.touch-game .objective-meta i,body.hud-live.touch-game .objective-health{display:none}
body.hud-live.touch-game .objective-health{display:block;flex-basis:34px}
@media(orientation:portrait){body.hud-live.touch-game .objective-title>span:nth-child(2){display:none}}
body.hud-live.touch-game #radio-transmission{left:50%;right:auto;top:calc(50px + var(--safe-top));bottom:auto;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 150px);padding:5px 10px}
@media(orientation:landscape){body.hud-live.touch-game #radio-transmission{top:calc(46px + var(--safe-top));max-width:min(420px,calc(100vw - 340px))}body.hud-live.touch-game #radio-caption{-webkit-line-clamp:1;font-size:12px}}
body.hud-live.touch-game #combat-toast{top:calc(100px + var(--safe-top));bottom:auto;left:50%;max-width:calc(100vw - 140px);text-align:center;letter-spacing:1px}
@media(orientation:landscape){body.hud-live.touch-game #combat-toast{top:calc(74px + var(--safe-top))}}
