:root{--ink:#e5e7da;--muted:#a3b0a7;--faint:#687b72;--accent:#edac66;--green:#a9c8ac;--red:#e88d75;--bg:#15241f;--panel:rgba(16,31,27,.88);--line:rgba(188,208,185,.22);font-family:Arial,Helvetica,sans-serif;color:var(--ink);color-scheme:dark;font-size:14px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#17241f}body{overscroll-behavior:none}button,input,select{font:inherit}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.4}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button,select,input{border:1px solid var(--line);background:#1d3029}button{transition:background .15s,color .15s}button:hover{background:#31483a}button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}button[hidden],[hidden]{display:none!important}p{line-height:1.6}kbd,.mono,.eyebrow,.version,.menu-footer,.scenario-stats span,.live-tag,.weather-strip,.radar-bottom,.data-row,.objective-bottom,.meter,.condition-line,.keyboard-hint{font-family:'SFMono-Regular',Consolas,'Liberation Mono',monospace}kbd{font-size:10px;padding:3px 5px;border:1px solid #78908270;border-radius:3px;color:#bcc9bb;font-weight:400}.eyebrow{font-size:10px;letter-spacing:.13em;font-weight:500;line-height:1.5}.dot{display:inline-block;width:5px;height:5px;background:#a9c9a0;border-radius:50%;margin-right:7px;box-shadow:0 0 8px #a9c9a035}.dot.amber{background:var(--accent);box-shadow:0 0 9px #edac6640}.small-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.reticle{position:relative;display:inline-block;flex-shrink:0;width:23px;height:23px;border:1.5px solid var(--accent);border-radius:50%;margin:4px}.reticle:before,.reticle:after{content:'';position:absolute;background:var(--accent);top:50%;left:50%;transform:translate(-50%,-50%)}.reticle:before{width:33px;height:1px}.reticle:after{width:1px;height:33px}.reticle.large{width:40px;height:40px}.reticle.large:before{width:56px}.reticle.large:after{height:56px}.wordmark{display:flex;align-items:center;gap:16px}.wordmark b{font-size:12px;letter-spacing:.16em}.wordmark>span:not(.reticle){font-size:9px;letter-spacing:.12em;color:#b4bfb1}.wordmark i{height:16px;width:1px;background:var(--line)}
#world{position:fixed;inset:0;width:100%;height:100%;display:block;touch-action:none}.film-grain{position:fixed;inset:0;pointer-events:none;opacity:.035;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");z-index:3}#vignette{position:fixed;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(10,22,19,.2),transparent 25%,transparent 60%,rgba(7,19,16,.38));z-index:2}#loading,#fatal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#14221e;z-index:100}#loading h1{font-size:36px;letter-spacing:.23em;margin:30px 0 5px}#loading p{font-size:12px;color:var(--muted)}#fatal{padding:40px;text-align:center}#fatal p{max-width:490px;color:var(--muted)}
#menu{position:fixed;inset:0;z-index:4;background:linear-gradient(90deg,rgba(9,23,19,.9) 0%,rgba(12,29,24,.6) 30%,rgba(12,29,24,.04) 66%),linear-gradient(0deg,rgba(8,23,18,.7),transparent 27%);padding:40px 4.4vw}.menu-header{display:flex;justify-content:space-between;align-items:center}.version{font-size:9px;letter-spacing:.07em;color:#bac7b6}.version b{display:inline-block;padding:5px 7px;border:1px solid var(--line);margin-left:12px}.hero{position:absolute;top:25%;left:6.8vw}.hero .eyebrow{font-size:10px;color:#d2caa9;letter-spacing:.19em}.hero h1{font-family:Impact,'Arial Narrow',Haettenschweiler,sans-serif;font-stretch:condensed;font-size:clamp(66px,8.9vw,140px);line-height:1;letter-spacing:.035em;font-weight:400;margin:19px 0 30px;position:relative;display:inline-block}.title-rule{height:3px;width:48px;position:absolute;left:0;bottom:-12px;background:var(--accent)}.hero-line{font-size:clamp(22px,2.5vw,37px);line-height:1.18;font-weight:500;letter-spacing:-.015em;margin:0 0 18px}.hero-description{color:#bac5b6;font-size:13px;line-height:1.8;margin:0 0 28px}.hero-buttons{display:flex;flex-direction:column;gap:10px;width:280px}.primary{background:var(--accent);color:#1b3026;border:1px solid var(--accent);font-weight:600;padding:15px 21px;display:inline-flex;align-items:center;justify-content:space-between;gap:32px;font-size:12px;letter-spacing:.02em}.primary:hover{background:#f5bf82;color:#17261e}.primary.big{font-size:13px;height:54px}.primary>span{font-size:21px;line-height:1}.secondary{padding:13px 18px;background:rgba(15,34,26,.5);font-size:12px;display:flex;justify-content:space-between;gap:16px}.menu-links{display:flex;gap:26px;margin-top:23px}.menu-links button{border:none;background:none;font-size:11px;color:#c1cbbb;padding:5px 0}.menu-links button span{margin-left:12px;color:var(--accent)}.scenario-card{position:absolute;right:4.4vw;bottom:15%;width:286px;padding:24px;background:rgba(18,35,29,.8);border:1px solid #b5cab536;backdrop-filter:blur(12px)}.live-tag{font-size:8px;color:#c2d2bb;letter-spacing:.06em}.scenario-line{height:1px;background:var(--line);margin:20px 0}.scenario-card h2{font-size:22px;font-weight:400;letter-spacing:-.02em;margin:0 0 7px}.scenario-card>p{color:#a7b8a5;font-size:11px;margin:0}.scenario-stats{display:grid;gap:18px;margin:28px 0}.scenario-stats div{display:grid;gap:7px}.scenario-stats span{font-size:8px;color:#a1b49f;letter-spacing:.1em}.scenario-stats b{font-size:11px;font-weight:400}.risk{border-top:1px solid var(--line);padding-top:16px;color:#c9bb9a;font-size:10px;line-height:1.5}.risk span{border:1px solid #ae9b7160;display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;margin-right:8px;color:var(--accent)}.menu-footer{position:absolute;bottom:27px;left:4.4vw;right:4.4vw;display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:.08em;color:#a3b6a0;border-top:1px solid #b3c4a92b;padding-top:20px}.menu-footer i{font-style:normal;margin:0 14px;color:#657f6b}
#hud{position:fixed;inset:0;pointer-events:none;z-index:4;padding:22px 28px}#hud button,#hud canvas,#kit,#joystick{pointer-events:auto}.hud-header{display:flex;justify-content:space-between;align-items:center;height:37px}.hud-tools{display:flex;gap:6px}.hud-tools button{background:rgba(18,32,27,.78);width:36px;height:34px;padding:7px}.hud-tools button:hover{background:#365142}.session-tag{border-left:1px solid var(--line);padding-left:16px}#compass{position:absolute;top:23px;left:50%;transform:translateX(-50%);width:310px;text-align:center;font-family:Consolas,monospace;color:#d0d8c6;font-size:11px;letter-spacing:.18em;white-space:nowrap;overflow:hidden;text-shadow:0 1px 4px #000}#compass b{display:block;color:var(--accent);line-height:14px;font-size:19px;font-weight:400}#compass small{font-size:9px;color:#bec9b5;letter-spacing:.05em}.panel{background:var(--panel);border:1px solid var(--line);backdrop-filter:blur(10px)}.objective{position:absolute;left:28px;top:84px;width:306px;padding:18px 19px}.objective .eyebrow{font-size:8px;color:#bcbd9f}.objective .mono{font-size:9px;color:var(--accent)}.objective h2{font-size:20px;font-weight:500;line-height:1.15;margin:15px 0 8px}.objective p{font-size:11px;line-height:1.65;color:#b5c2b1;min-height:36px;margin:0 0 18px}.data-row{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.1em}.data-row b{font-size:10px;color:var(--accent)}.progress-track{height:3px;background:#697c672e;margin:9px 0 14px}.progress-track>div{height:100%;width:0;background:var(--accent);transition:width .2s}.objective-bottom{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.02em;color:#91a690}#saveStatus{color:#91ae91}.radar{position:absolute;right:28px;top:84px;width:244px;padding:11px 12px 10px}.radar-heading{border:0;background:none;display:flex;justify-content:space-between;width:100%;padding:1px 0 8px;font-family:Consolas,monospace;font-size:9px;letter-spacing:.09em}.radar-heading kbd{font-size:8px;margin-left:5px}.radar canvas{width:100%;height:auto;display:block;background:#12231d}.radar-bottom{display:flex;justify-content:space-between;align-items:center;font-size:8px;padding-top:8px;color:#aec2a9}.radar-bottom button{background:none;border:0;font-size:8px;letter-spacing:.08em;padding:2px 0;color:#c6d4b6}.radar-legend{display:flex;align-items:center;gap:6px;font-size:7px;color:#94ad91;margin-top:7px;font-family:Consolas,monospace}.radar-legend i{flex:1;height:3px;background:linear-gradient(90deg,#366d53,#74ad64,#c6b35e,#d07f45,#be5a49,#b27890)}.weather-strip{position:absolute;left:28px;top:335px;display:flex;align-items:center;gap:10px;padding:8px 11px;background:#1a2c23cf;font-size:8px;letter-spacing:.05em}.weather-strip .dot{margin-right:0}.weather-strip i{width:1px;height:10px;background:var(--line)}.radio{position:absolute;bottom:90px;left:28px;width:305px;padding:14px 17px}.radio .eyebrow{font-size:8px;color:var(--accent)}.radio .mono{font-size:8px;color:#91aa90}.radio-bars{letter-spacing:-.1em;font-size:11px;margin-left:6px}.radio p{font-size:11px;color:#c2cdbb;margin:8px 0 0;line-height:1.65;min-height:36px}.instruments{position:absolute;right:28px;bottom:75px;width:215px;padding:17px 18px}.instrument-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:14px}.instrument-top .eyebrow{font-size:8px;color:#a6b99f}.speed{display:flex;align-items:baseline;gap:9px}.speed b{font-size:50px;font-weight:300;letter-spacing:-.07em;line-height:1.2;font-variant-numeric:tabular-nums}.speed span{font-size:8px;color:#a5b59a;font-family:Consolas,monospace}.gear{font-family:Consolas,monospace;font-size:15px;color:var(--accent);border:1px solid #bfbd8f44;padding:8px}.meter{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:7px}.meter>span{width:57px;color:#aebfa6}.meter>div{flex:1;height:3px;background:#66786044}.meter i{display:block;height:100%;width:100%;background:#b7c5a3}.meter b{width:23px;font-size:8px;font-weight:400;text-align:right}.condition-line{border-top:1px solid var(--line);padding-top:11px;margin-top:14px;font-size:7px;color:#a5b79e;letter-spacing:.06em}
.context{position:absolute;bottom:62px;left:50%;transform:translateX(-50%);min-width:290px;max-width:340px;pointer-events:auto}.context-main{width:100%;display:flex;align-items:center;flex-wrap:wrap;padding:12px 16px;background:rgba(22,42,33,.95);border-color:#c3c7a467;gap:9px;font-size:13px}.context-main kbd{color:var(--accent);border-color:#bcad7d70}.context-main small{flex-basis:100%;font-size:9px;color:#a5b79e;text-align:left;margin-left:28px}.context-secondary{display:flex;justify-content:space-between;gap:6px;margin-top:8px}.context-secondary button{font-size:9px;padding:8px;background:#182d24e0;white-space:nowrap}.context-secondary kbd{font-size:8px;margin-right:3px}.keyboard-hint{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);font-size:8px;color:#c5ceb9;white-space:nowrap;text-shadow:0 1px 2px #000}.keyboard-hint kbd{font-size:8px;margin-right:4px}.keyboard-hint i{font-style:normal;margin:0 9px;color:#768b71}.kit{position:absolute;bottom:180px;left:50%;transform:translateX(-50%);width:310px;padding:16px;z-index:6}.kit .small-row{margin-bottom:10px}.kit .small-row button{background:none;border:0;padding:4px}.kit>button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:11px 0;border:none;border-top:1px solid var(--line);background:none;font-size:11px}.kit>button span{flex:1}.kit>button b{font:10px Consolas,monospace;color:var(--accent)}.kit>button:hover{color:var(--accent)}.kit .rescue-call{color:#e5b08b}.kit>small{color:#98ad92;font-size:9px;display:block;margin-top:10px}#actionProgress{position:relative;padding:14px 12px;background:#263f31;border:1px solid #c6c09477;margin-bottom:9px;font-size:11px;overflow:hidden;display:flex;align-items:center;justify-content:space-between}#actionFill{position:absolute;inset:0 auto 0 0;background:#b7b47d3d;pointer-events:none;width:0}#actionProgress span,#actionProgress button{position:relative}#actionProgress button{border:0;background:transparent;font-size:10px;color:#e4c39b}#toast{position:fixed;top:72%;left:50%;transform:translate(-50%,-50%);z-index:30;max-width:420px;width:max-content;padding:13px 20px;background:#152c23f5;border:1px solid #c6b68866;color:#e8d8bc;text-align:center;font-size:12px;box-shadow:0 4px 30px #0004}#shelterBanner{position:absolute;top:43%;left:50%;transform:translate(-50%,-50%);background:#1f382df0;padding:20px 32px;text-align:center;font:12px Consolas,monospace;letter-spacing:.12em;border:1px solid var(--line)}#shelterBanner span{display:block;font:11px Arial;margin-top:10px;color:var(--muted);letter-spacing:0}#photoFlash{position:fixed;inset:0;z-index:10;background:#eee7cc;opacity:0;pointer-events:none;transition:opacity .3s}
#touchControls{display:none}#joystick{width:110px;height:110px;border:1px solid #cad2af59;border-radius:50%;background:#182d25a3;position:absolute;bottom:33px;left:32px;touch-action:none}#joystickKnob{position:absolute;left:35px;top:35px;width:40px;height:40px;border:1px solid #cfcea7;border-radius:50%;background:#7b917b85;pointer-events:none}#joystick small{position:absolute;top:-19px;width:100%;text-align:center;font:8px Consolas,monospace;color:#c4ceb3;pointer-events:none}.joystick-axis:before,.joystick-axis:after{content:'';position:absolute;background:#b2c19c2e;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none}.joystick-axis:before{height:1px;width:90px}.joystick-axis:after{height:90px;width:1px}.touch-pedals{position:absolute;bottom:30px;right:28px;display:flex;gap:9px;align-items:flex-end}.touch-pedals button{height:68px;width:67px;background:#163126bd;border:1px solid #bfd0a671;font:8px Consolas,monospace;color:#d7dfc5;touch-action:none;border-radius:5px}.touch-pedals button:last-child{height:94px;background:#6a7654b0;line-height:1.7}.touch-pedals b{font:25px Arial;font-weight:400}#crouchButton{position:absolute;bottom:133px;left:158px;font:8px Consolas,monospace;padding:13px 10px;background:#263f31db}
dialog{max-width:min(780px,94vw);max-height:90dvh;width:780px;color:var(--ink);padding:0;background:#192d25;border:1px solid #aac09a55;box-shadow:0 30px 120px #0008;overflow:auto}dialog::backdrop{background:#0a1915bd;backdrop-filter:blur(5px)}.dialog-inner{padding:35px}.dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:25px;margin-bottom:26px}.dialog-header h2{font-size:30px;font-weight:400;letter-spacing:-.03em;margin:8px 0 0}.dialog-header .eyebrow{color:var(--accent);font-size:9px}.close{border:1px solid var(--line);background:none;width:30px;height:30px;font-size:17px;flex-shrink:0}.dialog-copy{color:#acbfa6;font-size:12px;line-height:1.7;margin:0 0 24px}.prepare-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}.field{display:grid;gap:8px;margin-bottom:20px}.field>span{font:9px Consolas,monospace;letter-spacing:.08em;color:#b8c6ad}.field input,.field select{width:100%;padding:12px;background:#13271f;color:var(--ink);border-color:#a6c0983b;border-radius:0}.swatches{display:flex;gap:10px}.swatches button{width:32px;height:32px;border:2px solid transparent;outline:1px solid #a2b49652}.swatches button.selected{border-color:#e9e3c7;outline:1px solid var(--accent);outline-offset:3px}.loadout{padding:20px;background:#14281f;border:1px solid var(--line)}.loadout h3{font:10px Consolas,monospace;letter-spacing:.1em;color:var(--accent);margin:0 0 18px}.loadout label{display:flex;gap:11px;align-items:flex-start;margin:17px 0;font-size:12px;line-height:1.45}.loadout input{accent-color:var(--accent);margin-top:3px}.loadout label small{display:block;color:#92aa8d;font-size:10px;margin-top:4px}.loadout .included{font-size:10px;color:#b2c5a7;border-top:1px solid var(--line);padding-top:15px;line-height:1.7}.briefing{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid var(--line);padding-top:24px;margin-top:25px}.briefing b{color:var(--accent);font:10px Consolas,monospace}.briefing h4{font-size:12px;font-weight:400;margin:8px 0}.briefing p{color:#9db196;font-size:10px;margin:0}.dialog-footer{margin-top:28px;display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-footer>small{font-size:10px;line-height:1.7;color:#96ac90;max-width:330px}.control-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 30px}.control-grid>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font-size:11px}.manual-note{margin-top:22px;padding:17px;background:#12271f;font-size:11px;color:#b0c1a5;line-height:1.8}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid var(--line);padding:19px 0}.settings-row strong{font-size:12px;font-weight:400}.settings-row small{display:block;font-size:10px;color:#98b091;margin-top:6px}.settings-row select{padding:9px;min-width:140px}.settings-row input[type=checkbox]{accent-color:var(--accent);width:19px;height:19px}.pause-buttons{display:grid;gap:10px}.pause-buttons button{padding:15px;text-align:left;font-size:12px}.pause-buttons .primary{font-size:13px}.save-note{color:#94ac8e;font-size:11px;line-height:1.7;margin:20px 0 0}.map-layout{display:grid;grid-template-columns:minmax(240px,1fr) 175px;gap:24px}.map-layout canvas{width:100%;height:auto;touch-action:manipulation;cursor:crosshair;border:1px solid var(--line)}.map-sidebar{font-size:10px;line-height:1.7;color:#9fb496}.map-sidebar h3{font:9px Consolas,monospace;color:#d3c6a0;letter-spacing:.1em;margin:0 0 12px}.map-sidebar button{width:100%;font-size:10px;padding:11px;margin:5px 0;text-align:left}.map-legend{display:grid;gap:8px;margin:20px 0}.map-legend span{color:#b8cbb0}.map-legend b{display:inline-block;width:22px;color:var(--accent)}.debrief-banner{border:1px solid #c1b78c55;background:#38473333;padding:18px;margin:10px 0 22px;font-size:13px;line-height:1.6;color:#d5cfb1}.debrief-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}.debrief-stats>div{padding:23px;background:#1a2f25}.debrief-stats span{display:block;font:8px Consolas,monospace;letter-spacing:.09em;color:#a5b99c}.debrief-stats b{display:block;font-size:29px;font-weight:400;color:#e5dcbe;margin-top:12px}.debrief-stats small{font-size:11px;color:#9fb493}.no-script{position:fixed;inset:0;background:#13261e;color:white;padding:30px;z-index:200}
@media(min-width:1450px){.hero{top:24%}.scenario-card{bottom:19%}}
@media(max-width:1100px){.session-tag{display:none}.objective{width:260px}.context{min-width:265px;max-width:290px}.context-secondary button{font-size:8px;padding:7px 6px}.radio{width:245px}.instruments{width:186px}#compass{width:230px}.scenario-card{width:250px;right:4vw}.hero{left:5vw}.hero h1{font-size:9.6vw}}
@media(pointer:coarse){#touchControls{display:block}.keyboard-hint{display:none}.radio{bottom:165px}.instruments{bottom:155px}.context{bottom:31px}.context-secondary kbd,.context-main kbd{display:none}.context-main small{margin-left:0}.context-main{padding:12px}.context-secondary button{font-size:10px}.kit{bottom:160px}}
@media(max-height:650px) and (min-width:700px){#menu{padding:24px 4vw}.hero{top:22%}.hero h1{font-size:72px;margin:14px 0 26px}.hero-line{font-size:23px}.hero-description{font-size:11px;margin:0 0 18px}.hero-buttons{width:250px}.primary.big{height:45px}.menu-links{margin-top:13px}.scenario-card{bottom:18%;padding:18px}.scenario-stats{margin:18px 0;gap:14px}.menu-footer{bottom:18px;padding-top:14px}.objective{top:67px;padding:12px;width:239px}.objective h2{font-size:17px;margin:10px 0 6px}.objective p{font-size:10px;line-height:1.4;min-height:0;margin-bottom:10px}.objective-bottom{font-size:7px}.weather-strip{top:267px;font-size:7px}.radar{top:65px;width:190px;padding:9px}.radar-heading{font-size:8px}.radar-legend{display:none}.instruments{width:172px;padding:12px;bottom:51px}.instrument-top{padding-bottom:6px;margin-bottom:8px}.speed b{font-size:34px}.meter{margin:8px 0;font-size:6px}.condition-line{font-size:6px;padding-top:7px;margin-top:8px}.radio{bottom:55px;width:235px;padding:11px}.radio p{font-size:10px;line-height:1.4}.context{bottom:51px}.keyboard-hint{bottom:16px;font-size:7px}.context-secondary{margin-top:5px}.context-main{font-size:11px;padding:9px 12px}.context-main small{font-size:8px}.kit{bottom:140px}.dialog-inner{padding:24px}.dialog-header{margin-bottom:20px}.dialog-header h2{font-size:24px}}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){#hud{padding:12px 18px}.hud-header{height:30px}.hud-tools button{width:32px;height:30px}.hud-header .reticle{transform:scale(.8)}.hud-header .wordmark{gap:10px}.hud-header .wordmark b{font-size:10px}#compass{top:16px;width:200px;font-size:9px}.objective{left:18px;top:53px;width:225px;padding:10px}.objective h2{font-size:15px;margin:8px 0}.objective p{font-size:9px;line-height:1.4;margin:0 0 8px;max-height:26px;overflow:hidden}.objective .eyebrow{font-size:7px}.progress-track{margin:6px 0 9px}.weather-strip{left:18px;top:213px;font-size:6px;padding:6px;gap:7px}.radar{top:53px;right:18px;width:156px;padding:7px}.radar-bottom{font-size:7px;padding-top:5px}.radar-bottom button{font-size:6px}.radar-heading{font-size:7px}.radar-heading kbd{display:none}.radio{display:none}.instruments{right:187px;bottom:20px;width:155px;padding:10px;background:#182d24c9}.instrument-top{padding:0;border:0;margin-bottom:8px}.instrument-top .eyebrow{font-size:6px}.speed b{font-size:28px}.meter{margin:7px 0}.meter>span{width:45px}.condition-line{display:none}.context{bottom:19px;max-width:240px;min-width:240px;left:44%}.context-main{padding:8px 12px;font-size:11px}.context-main small{font-size:8px}.context-secondary button{font-size:8px;padding:8px 6px}.touch-pedals{right:18px;bottom:19px}.touch-pedals button{width:53px;height:48px;font-size:7px}.touch-pedals button:last-child{height:72px}.touch-pedals b{font-size:19px}#joystick{width:90px;height:90px;left:32px;bottom:22px}#joystickKnob{width:34px;height:34px;left:27px;top:27px}.joystick-axis:before{width:74px}.joystick-axis:after{height:74px}#crouchButton{left:135px;bottom:31px;padding:9px 6px}.kit{bottom:105px;left:44%;width:275px;max-height:65vh;overflow:auto}.kit>button{padding:9px 0}.kit>small{font-size:8px}.scenario-card{width:220px;padding:16px;bottom:17%}.scenario-card h2{font-size:19px}.scenario-stats{gap:12px;margin:15px 0}.scenario-stats span{font-size:7px}.scenario-stats b{font-size:10px}.risk{font-size:8px}.hero{top:21%}.hero h1{font-size:62px;margin:12px 0 25px}.hero .eyebrow{font-size:8px}.hero-line{font-size:22px}.hero-description{font-size:10px;line-height:1.5;margin:0 0 14px}.hero-buttons{width:240px}.primary.big{height:40px;font-size:11px}.menu-links{margin-top:9px}.menu-footer{font-size:6px}.menu-footer>span:nth-child(2){display:none}.menu-header .wordmark>span:not(.reticle){font-size:7px}.version{font-size:7px}.menu-header .wordmark b{font-size:10px}.menu-header .wordmark{gap:12px}#toast{top:65%;font-size:11px;max-width:340px}}
@media(max-width:699px) and (orientation:portrait){#menu{padding:23px}.menu-header .wordmark{gap:10px}.menu-header .wordmark b{font-size:9px}.menu-header .wordmark>span:not(.reticle),.menu-header .wordmark i{display:none}.version{font-size:7px}.version b{margin-left:6px}.hero{left:27px;top:22%;right:27px}.hero h1{font-size:clamp(56px,16vw,100px);margin:17px 0 30px}.hero .eyebrow{font-size:8px;letter-spacing:.1em}.hero-line{font-size:30px}.hero-description{font-size:12px;margin-bottom:26px}.hero-buttons{width:min(290px,100%)}.menu-links{margin-top:19px}.scenario-card{display:none}.menu-footer{left:27px;right:27px;bottom:22px;font-size:7px}.menu-footer>span:nth-child(2){display:none}.menu-footer i{margin:0 6px}.menu-footer>span:last-child{font-size:6px}#hud{padding:14px}.hud-header{height:31px}.hud-header .wordmark{gap:8px}.hud-header .wordmark b{font-size:10px}.hud-header .reticle{transform:scale(.75);margin:0}.hud-tools{gap:3px}.hud-tools button{width:29px;height:29px;padding:6px}.hud-tools svg{width:16px;height:16px}#compass{top:58px;width:190px;font-size:9px}#compass small{font-size:8px}.objective{left:14px;top:108px;width:calc(100% - 178px);padding:11px}.objective .eyebrow{font-size:7px;letter-spacing:.05em}.objective .mono{font-size:8px}.objective .small-row{gap:4px}.objective h2{font-size:17px;margin:12px 0 7px}.objective p{font-size:10px;line-height:1.45;min-height:45px;margin-bottom:10px}.objective-bottom{display:block;font-size:7px;line-height:1.8}.objective-bottom #saveStatus{display:none}.data-row{font-size:7px}.radar{right:14px;top:108px;width:150px;padding:7px}.radar-heading{font-size:7px;letter-spacing:.01em;padding-bottom:5px}.radar-heading kbd{display:none}.radar-bottom{font-size:6px;padding-top:5px}.radar-bottom button{font-size:6px}.radar-legend{font-size:6px;margin-top:5px}.weather-strip{top:325px;left:14px;font-size:7px;gap:7px;padding:7px}.radio{left:14px;right:14px;bottom:276px;width:auto;padding:12px 14px}.radio p{font-size:10px;min-height:0;line-height:1.5}.radio .eyebrow{font-size:7px}.instruments{right:14px;bottom:165px;width:165px;padding:10px}.instrument-top{padding-bottom:7px;margin-bottom:8px}.speed b{font-size:30px}.instrument-top .eyebrow{font-size:6px}.gear{font-size:11px;padding:6px}.meter{margin:7px 0;font-size:6px}.meter>span{width:46px}.meter b{font-size:7px}.condition-line{display:none}.context{bottom:31px;left:50%;width:calc(100% - 28px);max-width:none;min-width:0;transform:translateX(-50%)}.context-main{font-size:12px;padding:12px 13px;width:calc(100% - 110px);margin:0 auto}.context-main small{font-size:8px}.context-secondary{margin-top:8px;justify-content:center;gap:6px}.context-secondary button{font-size:9px;padding:9px 12px}.kit{bottom:143px;width:calc(100% - 28px);max-height:55vh;overflow:auto}#joystick{width:99px;height:99px;left:23px;bottom:150px}#joystickKnob{left:32px;top:32px;width:33px;height:33px}.touch-pedals{bottom:178px;right:189px;gap:5px;flex-direction:column-reverse}.touch-pedals button{width:49px;height:32px;font-size:6px}.touch-pedals button:last-child{height:46px}.touch-pedals b{font-size:15px}#crouchButton{left:137px;bottom:150px;font-size:7px;padding:8px}.keyboard-hint{display:none}.dialog-inner{padding:23px}.dialog-header{margin-bottom:22px}.dialog-header h2{font-size:25px}.dialog-header .eyebrow{font-size:8px}.prepare-grid{grid-template-columns:1fr;gap:3px}.loadout{padding:16px}.loadout label{margin:13px 0;font-size:11px}.briefing{gap:15px;margin-top:22px;padding-top:20px}.briefing h4{font-size:11px}.briefing p{font-size:9px}.dialog-footer{flex-direction:column-reverse;align-items:stretch;gap:16px;margin-top:22px}.dialog-footer .primary{justify-content:space-between}.dialog-footer>small{font-size:9px}.control-grid{grid-template-columns:1fr;gap:0}.control-grid>div{padding:10px 0;font-size:10px}.map-layout{grid-template-columns:1fr;gap:16px}.map-sidebar h3{margin-bottom:9px}.map-legend{grid-template-columns:1fr 1fr;margin:9px 0;gap:5px}.map-sidebar button{width:auto;margin:4px;padding:9px;font-size:9px}.map-sidebar>p{margin:7px 0}.debrief-stats{grid-template-columns:repeat(2,1fr)}.debrief-stats>div{padding:18px}.debrief-stats b{font-size:25px}.settings-row{padding:16px 0}.settings-row strong{font-size:11px}.settings-row small{font-size:9px;line-height:1.5}.settings-row select{min-width:112px;font-size:11px}#toast{top:61%;max-width:calc(100% - 40px);width:max-content;font-size:11px}#shelterBanner{width:80%;font-size:11px}}
@media(max-width:699px) and (orientation:portrait) and (max-height:740px){.hero{top:19%}.hero h1{margin:14px 0 26px}.hero-line{font-size:25px}.hero-description{margin-bottom:18px}.primary.big{height:47px}.menu-links{margin-top:13px}.radio{display:none}.weather-strip{top:320px}.instruments{bottom:159px}#joystick{bottom:150px}.touch-pedals{bottom:166px}.objective p{max-height:45px;overflow:hidden}}
@media(prefers-reduced-motion:reduce){button,.progress-track>div,#photoFlash{transition:none}}

/* Reverse sits above the brake without widening the driving controls. */
.hud-panel{pointer-events:auto}
.hud-collapse{position:absolute;top:2px;right:2px;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:4px;background:#1c3029e8;color:#e2d8b9;font:18px Arial;z-index:2;touch-action:manipulation}
.hud-collapse:hover{background:#43584a}
.hud-content>.small-row,.hud-content>.instrument-top,.hud-content>.radar-heading{padding-right:32px}
.hud-content>.context-main{padding-right:37px}
.hud-content>#actionProgress{padding-right:38px}
.weather-strip.hud-panel,#compass.hud-panel,.keyboard-hint.hud-panel{padding-right:38px;min-height:36px}
.weather-strip>.hud-content{display:flex;align-items:center;gap:8px}
.hud-panel.hud-collapsed{width:max-content!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;padding:0!important;border:0;background:transparent;box-shadow:none}
.hud-collapsed>.hud-collapse{position:relative;top:auto;right:auto;width:auto;min-width:72px;min-height:36px;padding:7px 12px;border:1px solid #cad2af40;font:10px 'SFMono-Regular',Consolas,monospace;letter-spacing:.03em;background:#14251dcc}
.hud-tools button.hud-visibility{width:auto!important;min-width:72px;height:36px!important;padding:0 9px;font:10px 'SFMono-Regular',Consolas,monospace;white-space:nowrap}
#hud.hud-hidden .hud-panel{display:none!important}
#hud.hud-hidden .hud-header .wordmark{visibility:hidden}
@media(max-width:699px){.hud-tools button.hud-visibility{min-width:66px;padding:0 6px;font-size:9px}.hud-header .session-tag{display:none}}
@media(pointer:coarse){.hud-collapse{width:36px;height:36px}.hud-collapsed>.hud-collapse{min-height:40px}.hud-tools button.hud-visibility{height:40px!important}}
.touch-pedals #reversePedal{position:absolute;left:0;bottom:78px;height:34px;width:67px;background:#263e35d9}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){.touch-pedals #reversePedal{bottom:58px;width:53px;height:32px}}
@media(max-width:699px) and (orientation:portrait){.touch-pedals #reversePedal{bottom:91px;width:49px;height:30px}}

.weather-source{display:block;margin-top:7px;font:7px Consolas,monospace;letter-spacing:.04em;color:#b9c5aa;line-height:1.4}.save-note a{color:var(--accent)}
@media(max-width:520px){.settings-row:has(#weatherLocation){flex-wrap:wrap}.settings-row #weatherLocation{width:100%}}

.cruise-button{display:block;width:100%;padding:9px 4px;margin-top:10px;font:9px Consolas,monospace;letter-spacing:.04em}.cruise-button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);background:#46503b}.settings-row input[type="range"]{width:150px;max-width:40%;accent-color:var(--accent)}
#flightControls{position:absolute;right:28px;bottom:150px;display:flex;gap:7px}#flightControls[hidden]{display:none}#flightControls button{min-height:44px;padding:9px 12px;background:#203d3be8;border:1px solid #91b7b0;color:#e1e7d3;font:9px Consolas,monospace;touch-action:none;border-radius:5px}
@media(pointer:coarse) and (orientation:landscape) and (max-height:650px){#flightControls{right:18px;bottom:125px}#flightControls button{min-height:36px;padding:7px 9px;font-size:8px}}
@media(max-width:699px) and (orientation:portrait){#flightControls{right:14px;bottom:325px}#flightControls button{min-height:36px;padding:8px;font-size:8px}.hero-buttons:has(#endExpeditionButton:not([hidden])){max-height:240px;overflow:auto}}

.instruments .water-readout{color:#bedbd7;line-height:1.45}.menu-links #progressionToggle[aria-pressed=true]{color:#eed29a;border-bottom:1px solid #bb9a5b}.settings-row select#marineLocation{max-width:290px}
@media(max-width:699px){.settings-row select#marineLocation{max-width:145px}.instruments .water-readout{display:block;font-size:7px;margin-top:6px}.menu-links{flex-wrap:wrap}}

#flightControls{flex-wrap:wrap;max-width:260px;justify-content:flex-end}#vehicleControlReadout,#missionConditions{line-height:1.5;font-size:9px;white-space:normal}.water-readout{white-space:normal}

.radio-repeat{font:9px monospace;color:#c5cdbb;padding:5px 0;background:transparent;border:0;cursor:pointer}#engineTelegraph{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0;font:10px monospace;color:#bdcebf}#engineTelegraph[hidden]{display:none}#engineTelegraph span{margin-right:auto}#engineTelegraph button{font:9px monospace;padding:7px 9px;color:#efdfb5;border:1px solid #728b80;background:#29463f;border-radius:3px;cursor:pointer}.speed span{font-size:9px;max-width:65px}
