*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#0f1a16;color:#eef3f1;font:15px/1.45 Segoe UI,system-ui,Arial,sans-serif}#view{position:fixed;inset:0}#view canvas{display:block;width:100%;height:100%;touch-action:none}button{font:inherit;cursor:pointer;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:#101e19b8;color:#fff;padding:8px 14px}button.primary{background:#c2571b;border-color:#c2571b;font-weight:700}button:focus-visible{outline:3px solid #ffd9a8;outline-offset:2px}.muted{color:#b7c7bf}#start{position:fixed;inset:0;display:grid;justify-items:center;align-items:start;padding:16px;overflow-y:auto;background:linear-gradient(180deg,#0a18138c,#0a1813e6)}#start[hidden]{display:none}.start-card{max-width:620px;background:#123a2eeb;border:1px solid rgba(255,255,255,.15);border-radius:18px;padding:22px 24px;box-shadow:0 10px 40px #0006}#start .start-card{margin-block:auto}.kicker{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:#ffd9a8;margin:0 0 6px;font-weight:700}h1{margin:0 0 10px;font-size:30px}.rules{background:#c2571b2e;border-left:3px solid #c2571b;padding:8px 12px;border-radius:6px}.keys{font-size:13.5px;color:#d6e3dd}.start-buttons{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 6px}#hud[hidden]{display:none}.hud-top{position:fixed;top:10px;left:10px;right:10px;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}.readout{background:#0a1813ad;border-radius:10px;padding:4px 10px;min-width:86px}.readout span{display:block;font-size:11px;color:#b7c7bf;text-transform:uppercase;letter-spacing:.5px}.readout b{font-size:16px;font-variant-numeric:tabular-nums}.readout b.warn{color:#ffb37a}.readout span i.lim{font-style:normal;text-transform:none;letter-spacing:0;opacity:.75}.thermal-box{position:fixed;right:10px;top:70px;width:196px;background:#0a1813c7;border-radius:10px;padding:2px}#thermal{width:192px;height:144px;image-rendering:pixelated;display:block;border-radius:8px}#thermal-marks{position:absolute;left:2px;top:2px;width:192px;height:144px;pointer-events:none}.thermal-cap{font-size:11.5px;padding:3px 6px 4px;color:#d6e3dd}#thermal-hot{color:#ffb37a;font-weight:700}.hud-buttons{position:fixed;left:10px;bottom:12px;display:flex;flex-wrap:wrap;gap:6px;max-width:calc(100% - 190px)}#hud-msg{position:fixed;left:50%;top:64px;transform:translate(-50%);margin:0;max-width:90%;background:#0a1813c7;border-radius:10px;padding:6px 12px;text-align:center}#hud-msg:empty{display:none}#touch[hidden]{display:none}.stick{position:fixed;bottom:70px;width:120px;height:120px;border-radius:50%;background:#ffffff14;border:1px solid rgba(255,255,255,.25);touch-action:none}.stick i{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#ffffff4d}#stick-left{left:16px}#stick-right{right:16px}#howreal{position:fixed;inset:0;display:grid;place-items:center;padding:12px;background:#0000008c;z-index:10}#howreal[hidden]{display:none}.howreal-card{position:relative;width:min(900px,100%);max-height:88vh;overflow:auto;background:#f7f2e8;color:#21332b;border-radius:14px;padding:18px 20px}.howreal-card h3{margin:16px 0 6px;color:#123a2e}.howreal-card table{width:100%;border-collapse:collapse;font-size:13.5px}.howreal-card td,.howreal-card th{border-bottom:1px solid #e2d9c6;padding:5px 6px;text-align:left;vertical-align:top}.howreal-card .assume{color:#9a5b00;font-weight:700}.close{position:absolute;right:10px;top:8px;background:#123a2e;border:0;width:34px;height:34px;padding:0;font-size:20px}@media(max-width:600px){.readout{min-width:70px;padding:3px 8px}.readout b{font-size:14px}.hud-buttons{top:108px;bottom:auto;left:8px;max-width:58%;gap:5px}.hud-buttons button{padding:6px 10px;font-size:13px}.stick{bottom:22px}.thermal-box{top:auto;bottom:230px;width:132px}#thermal,#thermal-marks{width:128px;height:96px}}#goal{position:fixed;left:10px;top:66px;margin:0;max-width:calc(100% - 240px);background:#0a1813b8;border-left:3px solid #ffb37a;border-radius:8px;padding:5px 10px;font-size:14px;pointer-events:none}#goal:empty{display:none}#hud-msg{top:192px}#tutorial{position:fixed;left:50%;top:108px;transform:translate(-50%);max-width:min(560px,calc(100% - 240px));background:#c2571bf0;border-radius:12px;padding:8px 12px;font-size:15px;box-shadow:0 4px 18px #00000059}#tutorial[hidden]{display:none}#report-form{position:fixed;left:50%;top:96px;transform:translate(-50%);width:min(600px,calc(100% - 240px));max-height:calc(100% - 200px);overflow-y:auto;background:#0a1813f2;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:8px 14px 6px;font-size:14px;z-index:7;box-shadow:0 4px 18px #0006}#report-form[hidden]{display:none}.fps-readout{position:fixed;left:50%;top:74px;transform:translate(-50%);margin:0;z-index:4;pointer-events:none;font:700 12px ui-monospace,Consolas,monospace;color:#fff;text-shadow:0 0 3px #000,1px 1px 0 #000}.fps-readout[hidden]{display:none}.phone .fps-readout{top:56px;font-size:11px}#checklist{position:fixed;left:10px;top:96px;width:min(440px,calc(100% - 260px));max-height:calc(100% - 200px);overflow-y:auto;background:#0a1813f2;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:8px 12px 4px;font-size:14px;z-index:7}#checklist[hidden]{display:none}#checklist h2{margin:0 34px 4px 0;font-size:17px}#checklist .close{width:30px;height:30px;font-size:18px;top:6px;right:6px}#checklist p{margin:4px 0;font-size:12.5px}.cl-items button{display:block;width:100%;text-align:left;margin:4px 0;padding:6px 10px;border-radius:10px;font-size:13.5px;background:#ffffff0f}.cl-items button[aria-pressed=true]{border-color:#8cffaa;background:#8cffaa1f}#report-form h2{margin:0 0 2px;font-size:17px}#report-form p{margin:4px 0}#report-form .muted{font-size:12.5px}.rf-row{display:grid;grid-template-columns:11em 1fr;gap:6px;align-items:center;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.08)}.rf-chips{display:flex;flex-wrap:wrap;gap:5px}.rf-chips button{padding:4px 10px;font-size:13px;background:#ffffff0f}.rf-chips button[aria-pressed=true]{background:#c2571b;border-color:#c2571b;font-weight:700}#report-form .rf-actions{position:sticky;bottom:-6px;margin:6px 0 0;padding:6px 0;justify-content:flex-end;background:#0a1813}.rf-warn{color:#ffd23d;font-weight:700}.rf-warn[hidden]{display:none}#tutorial p{margin:0 0 6px}#tut-step{font-weight:700;color:#ffe7c7}#tutorial button{padding:4px 12px;font-size:13px;background:#00000040}#legend{position:fixed;left:10px;bottom:60px;width:340px;max-height:calc(100vh - 166px);overflow:auto;background:#0a1813f7;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:8px 12px 10px;font-size:13.5px;z-index:5}#legend[hidden]{display:none}#legend h2{margin:0;font-size:16px}#legend .close{width:30px;height:30px;font-size:18px;top:6px;right:6px}.legend-device{margin:2px 0 6px;color:#ffd9a8;font-size:12.5px}.legend-rows{list-style:none;margin:0 0 8px;padding:0}.legend-rows li{display:grid;grid-template-columns:9.5em 1fr;gap:8px;padding:3px 0;border-bottom:1px solid rgba(255,255,255,.08)}.legend-rows b{color:#fff}.legend-rows span{color:#d6e3dd}#legend-tutorial{padding:4px 12px;font-size:13px}#btn-hold[aria-pressed=false]{border-color:#ffb37a}.settings{border:1px solid rgba(255,255,255,.2);border-radius:10px;margin:10px 0 4px;padding:8px 12px 10px;font-size:14px}.settings legend{font-weight:700;padding:0 4px}.settings label{display:block;margin-top:8px}.settings input[type=range]{width:100%;accent-color:#c2571b}.settings .muted{margin:4px 0 0;font-size:13px}.settings label.check{display:flex;gap:8px;align-items:center;margin-top:10px}.settings label.check input:disabled+*,.settings label.check:has(input:disabled){opacity:.6}.settings label.check input{width:18px;height:18px;accent-color:#c2571b}@media(max-width:600px){#goal{top:102px;left:8px;right:8px;max-width:none;font-size:12.5px}.hud-buttons{top:154px}#hud-msg{inset:auto 148px 272px 8px;transform:none;max-width:none;font-size:13.5px}.thermal-box{bottom:272px}#tutorial{inset:auto 8px 150px;transform:none;max-width:none;font-size:13px}#legend{inset:300px 8px 220px;width:auto;max-height:none;font-size:12.5px;padding:6px 10px 8px}#legend .legend-rows li{grid-template-columns:8.5em 1fr;gap:6px;padding:2px 0}#legend #legend-tutorial{display:none}#hud.legend-open #hud-msg{visibility:hidden}#btn-radio-2,#btn-howreal-2{display:none}}#radio-setup{position:fixed;inset:0;display:grid;place-items:center;padding:12px;background:#0000008c;z-index:11}#radio-setup[hidden]{display:none}.radio-card{width:min(560px,100%)}.radio-card .count{font-size:22px;font-weight:700;color:#c2571b}.radio-card pre{background:#123a2e;color:#eef3f1;padding:10px;border-radius:8px;font-size:13px}.radio-card .muted{color:#5d6f66}.readout b.blink{animation:blink .8s steps(2) infinite}@keyframes blink{50%{opacity:.25}}.thermal-scale{display:flex;align-items:center;gap:6px;font-size:11px;color:#d6e3dd;padding:0 6px 5px}.thermal-scale i{flex:1;height:7px;border-radius:4px;background:linear-gradient(90deg,#00000a,#500a78,#c81e28,#fa8c14,#ffe650,#fff)}#btn-report{opacity:.75}#btn-report.ready{opacity:1;box-shadow:0 0 0 3px #ffb37a8c}.howto{padding-left:20px;margin:8px 0}.howto li{margin:3px 0}details.keys summary{cursor:pointer;font-weight:700;margin:6px 0}#overlay{position:fixed;inset:0;display:grid;place-items:center;padding:16px;background:#0a181399;z-index:9}#overlay[hidden]{display:none}#overlay{overflow-y:auto;align-items:start}#overlay .start-card{margin-block:auto}.ov-map{display:block;width:min(280px,70vw,48vh);height:auto;aspect-ratio:1 / 1;margin:8px auto 4px;border-radius:8px}.ov-legend{font-size:12px;text-align:center;margin:2px 0 6px}.ov-tips{margin:4px 0 8px;padding-left:18px;font-size:14px}.ov-tips li{margin:3px 0}#ov-debrief[hidden]{display:none}#drive{position:fixed;inset:0;display:grid;place-items:center;padding:16px;background:#0a181399;z-index:10;overflow-y:auto}#drive[hidden]{display:none}.seg{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 10px}.seg button[aria-pressed=true]{background:#e8a33c;color:#10261e;font-weight:700}#fpv-noise{position:fixed;inset:0;pointer-events:none;opacity:0;z-index:1;mix-blend-mode:screen;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E")}.drive-choices{display:grid;gap:8px;margin:12px 0}.drive-choices button{text-align:left;padding:10px 12px;min-height:44px}.ov-stats{list-style:none;padding:0;margin:10px 0}.ov-stats li{display:flex;justify-content:space-between;gap:16px;padding:4px 0;border-bottom:1px solid rgba(255,255,255,.12)}.ov-stats b{font-variant-numeric:tabular-nums}#field-bezel{position:fixed;inset:0;pointer-events:none;z-index:2;border:14px solid #15181a;border-radius:18px;box-shadow:inset 0 0 0 2px #2c3236,inset 0 0 60px #0000008c}#field-bezel[hidden],#field-rules[hidden],#field-term[hidden]{display:none}#field-bezel span{position:absolute;left:50%;bottom:-12px;transform:translate(-50%);font:600 11px/1 system-ui,sans-serif;color:#9aa7ad;background:#15181a;padding:2px 10px;border-radius:6px;white-space:nowrap}#field-rules{position:fixed;left:50%;top:92px;transform:translate(-50%);margin:0;max-width:min(640px,90%);z-index:3;background:#3c2808e0;color:#ffe2b0;padding:6px 12px;border-radius:8px;font-size:13px;text-align:center}#field-term{position:fixed;right:10px;bottom:12px;width:min(560px,46vw);max-height:44vh;display:flex;flex-direction:column;background:#0c0f10;color:#d6e2da;border:1px solid #34403c;border-radius:8px;z-index:4;box-shadow:0 6px 24px #00000080}.ft-bar{display:flex;align-items:center;gap:6px;padding:5px 8px;background:#1b2422;border-radius:8px 8px 0 0;font-size:12px}.ft-bar span{flex:1;color:#a9bdb4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ft-bar button,.ft-tabs button{padding:3px 8px;font-size:12px}.ft-tabs{display:flex;gap:4px;padding:5px 8px 0}.ft-tabs button[aria-selected=true]{background:#e8a33c;color:#10261e;font-weight:700}.ft-note{margin:4px 8px 0;font-size:11.5px;color:#9fb3aa}.ft-note[hidden],.ft-out[hidden]{display:none}.ft-out{flex:1;margin:4px 0 0;padding:6px 8px 8px;overflow:auto;min-height:120px;font:12px/1.35 ui-monospace,Consolas,Courier New,monospace;white-space:pre-wrap;overflow-wrap:anywhere}#field-term.folded .ft-tabs,#field-term.folded .ft-note,#field-term.folded .ft-out{display:none}#hud.field-on .thermal-box{top:104px}@media(max-width:600px){#field-term{left:8px;right:8px;width:auto;bottom:8px;max-height:38vh}#field-rules{top:auto;bottom:calc(38vh + 16px);font-size:12px}#field-bezel{border-width:8px;border-radius:12px}}.phone .hud-top{right:auto;max-width:58%}.phone .hud-top .readout:not(.keep){display:none}.phone .readout{min-width:64px;padding:3px 8px}.phone .hud-buttons{position:fixed;top:auto;bottom:max(10px,env(safe-area-inset-bottom));left:50%;transform:translate(-50%);max-width:calc(100% - 300px);display:flex;flex-wrap:wrap;justify-content:center;gap:8px;z-index:5}.phone .hud-buttons>button:not(.core){display:none}.phone .hud-buttons button{min-height:48px;min-width:64px;padding:8px 12px;font-size:15px;border-radius:12px}.phone .hud-buttons.more-open{position:fixed;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(560px,calc(100% - 24px));max-width:none;max-height:calc(100% - 24px);overflow:auto;padding:12px;background:#0a1813f5;border-radius:16px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));z-index:20}.phone .hud-buttons.more-open>button:not(.core){display:block}.phone-wait{display:none!important}.phone #goal{top:60px;bottom:auto;left:max(8px,env(safe-area-inset-left));right:150px;transform:none;max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:auto;cursor:pointer}.phone #goal.open{white-space:normal}.phone #hud-msg,.phone #tutorial{top:64px;max-width:calc(100% - 230px)}.phone #legend{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(420px,calc(100% - 24px));max-height:calc(100% - 24px);z-index:20}.phone .thermal-box{top:10px;right:10px;bottom:auto;width:132px}.phone .thermal-box #thermal,.phone .thermal-box #thermal-marks{width:128px;height:96px}.phone #hud.thermal-big .thermal-box{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(70vw,120vh);z-index:6}.phone #hud.thermal-big .thermal-box #thermal,.phone #hud.thermal-big .thermal-box #thermal-marks{width:100%;height:auto;aspect-ratio:4 / 3}.phone .stick{bottom:max(16px,env(safe-area-inset-bottom));width:132px;height:132px}#demo-cap{position:fixed;left:50%;top:10px;transform:translate(-50%);margin:0;max-width:min(620px,calc(100% - 300px));background:#c45a1eeb;color:#fff;font-weight:700;padding:8px 14px;border-radius:12px;z-index:8}#demo-cap:empty{display:none}.phone #demo-cap{top:64px;bottom:auto;max-width:calc(100% - 170px);font-size:14px}#settings,#pause,#logbook{position:fixed;inset:0;display:grid;justify-items:center;align-items:start;padding:16px;overflow-y:auto;background:#06100cb8;z-index:30}#settings[hidden],#pause[hidden],#logbook[hidden]{display:none}#settings .start-card,#pause .start-card,#logbook .start-card{position:relative;margin-block:auto}.logbook-list{list-style:none;padding:0;margin:8px 0;max-height:50vh;overflow-y:auto;font-size:14px}.logbook-list li{padding:6px 0;border-bottom:1px solid rgba(255,255,255,.12)}.logbook-confirm{margin-top:10px;padding:10px;border:1px solid #c2571b;border-radius:8px}.pause-card{min-width:min(320px,100%);text-align:center}.pause-buttons{display:grid;gap:10px;margin-top:12px}.pause-buttons button{min-height:48px;font-size:16px}.easy-banner{margin:6px 0 10px;padding:8px 12px;border-radius:10px;background:#c45a1ee6;color:#fff;font-weight:700}.easy-banner[hidden]{display:none}.menu-help{margin:8px 0}.menu-help>summary{cursor:pointer;font-weight:700;padding:6px 0}#start .start-buttons button{min-height:44px}.readout b.sig-low{color:#ffd24a}.readout b.sig-crit,.readout b.sig-lost{color:#ff7a6a}.phone #start .start-buttons{display:grid;grid-template-columns:repeat(2,1fr)}.phone #start .start-buttons #btn-start{grid-column:1 / -1}#hud.thermal-full .thermal-box{left:50%;right:auto;top:50%;transform:translate(-50%,-50%);width:min(80vw,107vh);z-index:6}#hud.thermal-full .thermal-box #thermal,#hud.thermal-full .thermal-box #thermal-marks{width:100%;height:auto;aspect-ratio:4 / 3}.minimap{position:fixed;right:10px;bottom:12px;width:150px;height:150px;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,.22);z-index:4;cursor:pointer;touch-action:manipulation}.minimap canvas{display:block;width:100%;height:100%}.minimap.big{z-index:8;box-shadow:0 6px 30px #0009}#hud .hud-top{display:none}#osd{position:fixed;inset:0;pointer-events:none;z-index:3;font:700 15px/1.25 ui-monospace,Consolas,Courier New,monospace;color:#fff;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 0 3px #000}#osd .osd-tl{position:absolute;left:14px;top:10px;display:flex;flex-direction:column}#osd .osd-tl b{font-size:21px}#osd .osd-tc{position:absolute;left:50%;top:10px;transform:translate(-50%);display:flex;flex-direction:column;align-items:center}#osd .osd-warn{position:absolute;left:50%;top:30%;transform:translate(-50%);font-size:22px;color:#ffd23d;white-space:nowrap}#osd .osd-warn.blink{animation:osd-blink 1s steps(1) infinite}@keyframes osd-blink{50%{opacity:0}}#goal{top:92px}.hud-buttons>button[hidden]{display:none!important}.thermal-box{cursor:pointer}#pause .pause-more{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}#pause .pause-more button{font-size:14px}.phone #osd{font-size:12px}.phone #osd .osd-tl{left:max(10px,env(safe-area-inset-left));top:6px}.phone #osd .osd-tl b{font-size:16px}.phone #osd .osd-tc{top:6px}.phone #osd .osd-warn{font-size:17px;top:34%}.phone .long{display:none}.phone .hud-buttons{flex-wrap:nowrap;align-items:flex-end;height:auto;gap:6px;max-width:calc(100% - 2 * (var(--stick, 132px) + 24px))}.phone .hud-buttons button{min-width:56px;padding:8px 12px;white-space:nowrap}@media(max-width:700px){.phone{--stick: 112px}.phone .stick{width:112px;height:112px}}.phone #legend{top:auto;bottom:calc(var(--stick, 132px) + 28px);max-height:calc(100% - var(--stick, 132px) - 100px)}@media(orientation:portrait){.phone #tutorial,.phone #hud-msg,.phone #demo-cap{top:160px}}.phone #report-form{top:58px;left:calc(var(--stick, 132px) + 24px);right:calc(var(--stick, 132px) + 24px);bottom:72px;width:auto;transform:none;max-height:none;font-size:13px;padding:6px 10px}.phone .rf-row{grid-template-columns:8.5em 1fr;gap:4px}.phone .rf-chips button{min-height:36px;padding:4px 10px}.phone #checklist{top:58px;left:calc(var(--stick, 132px) + 24px);right:calc(var(--stick, 132px) + 24px);bottom:72px;width:auto;max-height:none;font-size:13px}@media(orientation:portrait){.phone #checklist,.phone #report-form{top:180px;left:8px;right:8px;bottom:calc(var(--stick, 132px) + 28px)}.phone .rf-row{grid-template-columns:1fr;gap:3px}}.drive-map{display:block;width:min(300px,70vw);height:auto;aspect-ratio:1 / 1;margin:6px auto;border-radius:8px;cursor:pointer}.phone .drive-map{width:min(200px,42vh)}
