@font-face{font-family:Barlow;src:url('./assets/fonts/barlow-regular.ttf') format('truetype');font-weight:400 500;font-display:swap}@font-face{font-family:Barlow;src:url('./assets/fonts/barlow-semibold.ttf') format('truetype');font-weight:600;font-display:swap}@font-face{font-family:Barlow;src:url('./assets/fonts/barlow-bold.ttf') format('truetype');font-weight:700 900;font-display:swap}@font-face{font-family:'Barlow Condensed';src:url('./assets/fonts/barlow-condensed-semibold.ttf') format('truetype');font-weight:500 700;font-display:swap}@font-face{font-family:'Barlow Condensed';src:url('./assets/fonts/barlow-condensed-extrabold.ttf') format('truetype');font-weight:800 900;font-display:swap}
:root{font-family:Barlow,Arial,sans-serif;color:#f1f0df;background:#06151d;--orange:#ff8553;--mint:#a5edcc;--display:'Barlow Condensed','Arial Narrow',sans-serif;color-scheme:dark;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,canvas{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;user-select:none}a{color:inherit;text-decoration:none}button:disabled{opacity:.35;cursor:default}button:hover:not(:disabled),a:hover{filter:brightness(1.15)}button:focus-visible,a:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid var(--orange);outline-offset:3px}.hidden{display:none!important}
.app{height:100dvh;min-height:540px;max-width:1260px;margin:auto;padding:0 30px;display:grid;grid-template-rows:72px minmax(0,1fr) 48px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:15px}.brand{display:flex;align-items:center;gap:10px}.brand b{font:800 27px var(--display);letter-spacing:-1px}.brand b span{color:var(--orange)}.brand i{font-style:normal;font-size:10px;font-weight:700;letter-spacing:3px;border-left:1px solid #36515c;padding-left:12px}.edition{font:600 13px var(--display);letter-spacing:2px;color:#9ab9bf}.top-actions{display:flex;gap:8px}.icon-button{width:44px;height:44px;border:1px solid #44616a66;border-radius:50%;background:transparent;font-size:23px}.play-layout{min-height:0;display:grid;grid-template-columns:minmax(230px,1fr) minmax(320px,590px);gap:50px;max-width:1000px;width:100%;margin:auto;height:100%}.field-notes{align-self:center;max-width:290px}.eyebrow{font-size:10px;letter-spacing:2.5px;font-weight:700;color:#adc7ca;line-height:1.5}.field-notes h1{font:800 clamp(62px,6vw,95px)/.87 var(--display);margin:20px 0}.field-notes h1 em{font-style:normal;color:var(--orange)}.field-notes>p{font-size:15px;line-height:1.5;color:#94b1b9}.field-notes p b{color:#d4e5e3;font-weight:600}.field-notes h2{font:600 24px var(--display);margin:22px 0 12px}.notes-rule{width:60px;height:2px;background:var(--orange);margin:25px 0}.field-notes>a{display:block;font-size:12px;line-height:1.5;color:#9ab5bc;margin-top:28px;max-width:235px}
.game{min-height:0;display:grid;grid-template-rows:66px minmax(0,1fr) 38px 36px 60px;overflow:hidden;border:1px solid #43636d77;background:#09232d;border-radius:4px}.hud{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 18px;background:#0a2530}.hud>div{display:flex;flex-direction:column;gap:2px}.hud span{font-size:8px;letter-spacing:1.5px;color:#9fbbc1}.hud strong{font:600 28px/1 var(--display);font-variant-numeric:tabular-nums}.hud small{font-size:15px;color:#718f99}.hud .hull-block{text-align:right}.hull-block strong{font-size:16px;letter-spacing:4px;color:var(--orange)}.map-shell{min-height:0;position:relative;background:#071d28;overflow:hidden;touch-action:none}#chart{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline-offset:-4px}.map-caption{position:absolute;bottom:8px;left:0;right:0;pointer-events:none;text-align:center;font-size:9px;font-weight:600;letter-spacing:1.5px;color:#aac5c8;text-shadow:0 1px 4px #000}.plot-badge{position:absolute;top:9px;left:50%;transform:translateX(-50%);background:#08212ee8;border:1px solid #8fcbb066;border-radius:20px;color:var(--mint);padding:5px 10px;font-size:9px;font-weight:600;letter-spacing:1px;white-space:nowrap;pointer-events:none}.radio{border-top:1px solid #42687344;display:flex;align-items:center;justify-content:center;text-align:center;padding:5px 12px;font-size:12px;line-height:1.2;color:#c9dfdf;background:#0c2933;overflow:hidden}.radio.good{color:var(--mint)}.radio.danger{color:#ffae84}.flight-strip{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 15px;font-size:9px;letter-spacing:1px;background:#0a222d;color:#97b2b9}.flight-strip b{color:#edede0;font-weight:600;margin-left:5px}.flight-strip i{font-style:normal;color:var(--orange);font-size:12px;letter-spacing:2px;margin-left:8px}#aboard{font-size:11px;letter-spacing:0;color:#b6d6cc}.clock{font:600 18px var(--display);font-variant-numeric:tabular-nums;color:#d7e4dc}.clock.urgent{color:#ff9566}.tools{display:flex;gap:8px;align-items:center;padding:7px 10px;background:#071d28}.tools button{min-height:44px;border:1px solid #52758066;background:#102e39;font:600 12px var(--display);letter-spacing:.8px;border-radius:3px}.mode-switch{display:flex;flex:1}.mode-switch button{padding:0 12px;flex:1;white-space:nowrap}.mode-switch button+button{margin-left:-1px}.tools .selected{background:#244a4b;color:#d4ffe8;border-color:#9ce5c380}.tools #undo{font-size:26px;width:42px;flex-shrink:0}.tools .fly-button{background:var(--orange);color:#0a2029;border:0;padding:0 13px;min-width:106px;font-size:15px}.fly-button span{margin-left:8px}.waypoint{position:absolute;transform:translate(-50%,-50%);width:40px;height:40px;border:1px dashed #bbe2d866;border-radius:50%;background:#b5f6d409;color:transparent;font-size:0;touch-action:manipulation}.waypoint:hover{background:#b5f6d425}.waypoint:focus-visible{outline-offset:1px}.waypoint.home{width:48px;height:48px;border-color:#ffa46c88}
footer{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:9px;letter-spacing:1px;color:#6f919c}footer button,footer a{border:0;background:transparent;color:#a0bac0;font-size:9px;font-weight:600;letter-spacing:1px;min-height:44px;display:flex;align-items:center;padding:0 4px}.overlay{position:fixed;inset:0;z-index:5;background:#021018bd;backdrop-filter:blur(7px);padding:24px;overflow:auto;display:flex;align-items:flex-start;justify-content:center;overscroll-behavior:contain}.welcome-card,.result-card{position:relative;margin:auto;background:linear-gradient(140deg,#123540,#071f2a);border:1px solid #68828c77;box-shadow:0 24px 80px #0008;max-width:440px;width:100%;padding:35px 36px;border-top:3px solid var(--orange);flex-shrink:0}.welcome-card .eyebrow{display:flex;gap:8px;align-items:center}.live-dot{height:6px;width:6px;border-radius:50%;background:var(--orange)}.welcome-card h2{font:800 78px/.88 var(--display);letter-spacing:-1px;margin:25px 0 20px}.welcome-card h2 em{color:var(--orange);font-style:normal}.lead{font-size:23px;line-height:1.3;color:#e2e6dc;margin:0 0 12px}.route-example{display:flex;align-items:center;gap:4px;height:66px;color:var(--mint)}.route-example svg{width:100%;height:65px}.route-example>span{font-size:30px;color:var(--orange)}.how-line{font-size:14px;line-height:1.5;color:#a9c6cc;margin:10px 0 22px}.how-line b{color:#e6efe6}.primary{width:100%;border:0;border-radius:2px;background:var(--orange);color:#09222a;min-height:56px;display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;padding:12px 19px;font:700 23px var(--display);letter-spacing:1px}.primary>span{font-size:29px}.welcome-foot{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-top:8px;font-size:9px;letter-spacing:1px;color:#89a8b0}.welcome-foot button,.text-button,.result-actions button{min-height:44px;border:0;background:transparent;color:#c0d6d8;font-size:10px;letter-spacing:1px;padding:6px 0}.best{font-size:12px;color:#ebc38f;line-height:1.5;margin:8px 0 0;min-height:0}.best:empty{display:none}.challenge-note{font-size:13px;line-height:1.4;border-left:2px solid var(--orange);padding-left:10px;color:#f2cd9b}.result-card h2{font:700 56px/.95 var(--display);margin:18px 0}.result-card>p{color:#b4cbd0;font-size:16px;line-height:1.5}.result-numbers{display:grid;grid-template-columns:1fr 1fr;border-block:1px solid #61838c55;padding:15px 0;margin:20px 0}.result-numbers>div{display:flex;flex-direction:column;gap:4px}.result-numbers strong{font:600 48px/1 var(--display);color:var(--orange)}.result-numbers span{font-size:10px;letter-spacing:1.3px;color:#9db7bc}.result-actions{display:flex;justify-content:space-between;gap:12px}.watch{display:block;text-align:center;font-size:12px;line-height:1.5;margin-top:18px;padding-top:15px;border-top:1px solid #45666f77;color:#8eb0ba}#share-status{font-size:12px;color:var(--mint)}#share-url{width:100%;font-size:16px;padding:8px;background:#0c2029;border:1px solid #5c8289;color:#eff0df;margin:10px 0}dialog{background:#0a2630;color:#e2e9df;max-width:min(480px,calc(100% - 26px));max-height:calc(100dvh - 30px);border:1px solid #6c9098;padding:0}dialog::backdrop{background:#031018c9;backdrop-filter:blur(6px)}.manual-inner{padding:28px}.manual-inner h2{font:600 44px var(--display);line-height:1;margin:15px 0}.manual-inner p{font-size:15px;line-height:1.5;color:#adcad0}.manual-inner b{color:#e1ebe2}.manual-inner .fine{font-size:11px;color:#83a7b0}
@media(max-width:850px){.app{max-width:630px;padding:0 15px;grid-template-rows:60px minmax(0,1fr) 44px}.play-layout{display:block}.field-notes{display:none}.game{height:100%}.edition{display:none}.topbar{gap:8px}.brand b{font-size:24px}footer>span{display:none}}
@media(max-width:600px){.app{padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);min-height:0;grid-template-rows:54px minmax(0,1fr) 40px}.topbar{padding:0 12px}.icon-button{width:40px;height:40px}.top-actions{gap:7px}.brand i{font-size:9px;letter-spacing:2px}.game{border:0;border-radius:0;grid-template-rows:56px minmax(0,1fr) 38px 32px 56px}.hud{padding:8px 14px}.hud strong{font-size:25px}.hull-block strong{font-size:14px}.hud span{font-size:8px;letter-spacing:1px}.radio{font-size:11px;padding:4px 12px}.flight-strip{padding:0 12px;font-size:9px;letter-spacing:.3px}#aboard{font-size:10px}.tools{padding:6px 9px;gap:6px}.mode-switch button{padding:0 10px;font-size:12px}.tools .fly-button{padding:0 10px;min-width:100px;font-size:14px}.tools #undo{width:38px}.flight-strip i{letter-spacing:1px;margin-left:5px}footer{padding:0 12px;gap:8px}footer button,footer a{font-size:8px;letter-spacing:.7px;min-height:40px}.overlay{padding:16px}.welcome-card,.result-card{padding:26px 25px}.welcome-card h2{font-size:70px}.welcome-card .lead{font-size:21px}.welcome-foot{font-size:8px}.welcome-foot button{font-size:9px}.result-card h2{font-size:47px}.map-caption{font-size:8px;bottom:5px}}
@media(max-width:600px) and (max-height:680px){.game{grid-template-rows:48px minmax(0,1fr) 30px 28px 54px}.hud strong{font-size:23px}.hull-block strong{font-size:13px}.hud{padding:5px 13px}.radio{font-size:10px}.clock{font-size:16px}.welcome-card{padding:20px 23px}.welcome-card h2{font-size:57px;margin:17px 0}.lead{font-size:18px!important}.route-example{height:48px}.route-example svg{height:48px}.how-line{font-size:12px;margin:8px 0 15px}.welcome-card .eyebrow{font-size:8px}.primary{min-height:50px;font-size:21px}.result-card{padding:22px}.result-card h2{font-size:39px}.result-card>p{font-size:14px}.result-numbers{margin:14px 0;padding:12px 0}.result-numbers strong{font-size:41px}.tools .fly-button{min-width:94px}.tools button{min-height:42px}.tools #undo{width:32px}.mode-switch button{padding:0 7px;font-size:11px}}
@media(orientation:landscape) and (max-height:500px){.app{height:100dvh;min-height:0;max-width:none;padding:0 12px;grid-template-rows:46px minmax(0,1fr) 34px}.play-layout{display:block;max-width:900px}.field-notes{display:none}.game{position:relative;height:100%;display:grid;grid-template-columns:96px minmax(0,1fr) 175px;grid-template-rows:minmax(0,1fr) 36px}.map-shell{grid-column:2;grid-row:1 / 3}.hud{grid-column:1;grid-row:1 / 3;flex-direction:column;justify-content:space-around;padding:7px;align-items:flex-start;gap:4px}.hud strong{font-size:23px}.hud .hull-block{text-align:left}.hull-block strong{font-size:12px}.radio{grid-column:3;grid-row:1;align-self:start;font-size:11px;line-height:1.4;padding:12px}.flight-strip{grid-column:3;grid-row:1;align-self:center;flex-wrap:wrap;justify-content:center;padding:4px 8px;font-size:9px;margin-top:10px;gap:5px}.flight-strip #aboard{width:100%;text-align:center}.tools{grid-column:3;grid-row:2;position:relative;align-self:end;flex-wrap:wrap;padding:5px 7px;gap:5px;background:#071d28}.mode-switch{flex-basis:100%}.mode-switch button{min-height:34px;padding:0 7px;font-size:11px}.tools #undo{height:36px;min-height:36px;width:34px}.tools .fly-button{height:36px;min-height:36px;flex:1;min-width:0;font-size:13px}.edition{display:block;font-size:11px}.brand b{font-size:22px}.icon-button{width:38px;height:38px}.map-caption{font-size:8px}.overlay{padding:12px}.welcome-card{max-width:620px;padding:20px 26px;display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.welcome-card .eyebrow{grid-column:1;font-size:8px}.welcome-card h2{grid-column:1;grid-row:2 / span 3;font-size:61px;margin:16px 0}.welcome-card .lead{grid-column:2;grid-row:1 / span 2;font-size:19px}.route-example{display:none}.how-line{grid-column:2;grid-row:3;font-size:12px;margin:8px 0 12px}.welcome-card>.primary{grid-column:2;grid-row:4;min-height:46px;font-size:20px}.welcome-foot{grid-column:1 / -1;margin:0}.welcome-card .challenge-note,.welcome-card .best{grid-column:1 / -1}.result-card{padding:22px 28px;max-width:540px}.result-card h2{font-size:38px;margin:10px 0}.result-numbers{padding:10px 0;margin:12px 0}.result-numbers strong{font-size:37px}footer button,footer a{min-height:34px}.radio{overflow:visible}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
.fuel-panel{padding:8px 15px;background:#0a222d;display:flex;flex-direction:column;justify-content:center;gap:7px}.fuel-reading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;letter-spacing:1px;color:#9ebfc5}.fuel-reading b{font-size:13px;letter-spacing:0;color:#e7efe4;margin-left:5px;font-variant-numeric:tabular-nums}#forecast{font-size:10px;letter-spacing:.4px;color:#c5e9d8;text-align:right}.fuel-meter{height:5px;background:#39525e;position:relative;border-radius:3px;overflow:hidden}.fuel-meter i{position:absolute;top:0;bottom:0;left:0;width:100%;background:#6b938a}#fuel-kept{background:var(--mint)}#fuel-cost{width:0;background:repeating-linear-gradient(120deg,#ff975c,#ff975c 3px,#b46943 3px,#b46943 6px)}.fuel-panel.danger #forecast,.fuel-panel.danger .fuel-reading b{color:#ffac87}.game{grid-template-rows:66px minmax(0,1fr) 38px 48px 60px}
@media(max-width:600px){.game{grid-template-rows:56px minmax(0,1fr) 38px 44px 56px}.fuel-panel{padding:6px 12px}.fuel-reading{font-size:9px}#forecast{font-size:9px}.fuel-reading b{font-size:12px}}
@media(max-width:600px) and (max-height:680px){.game{grid-template-rows:48px minmax(0,1fr) 30px 40px 54px}.fuel-reading{letter-spacing:.5px}#forecast{font-size:8px}}
@media(orientation:landscape) and (max-height:500px){.game{grid-template-rows:minmax(0,1fr) 36px}.fuel-panel{grid-column:3;grid-row:1;align-self:center;padding:6px 10px;margin-top:0}.fuel-reading{flex-direction:column;gap:4px}.fuel-meter{margin-top:2px}#forecast{text-align:center;font-size:8px}.radio{font-size:10px;padding:6px 10px}.hud span{font-size:8px}}
/* The tank shows spendable fuel, the planned line, and the protected return reserve. */
.fuel-panel{gap:5px}.fuel-reading{white-space:nowrap}#reserve{font-size:9px;letter-spacing:.5px;color:#ffb38d}#forecast{display:block;text-align:center;line-height:1.15;min-height:12px}.fuel-meter{height:7px;flex-shrink:0}#fuel-reserve{background:#e77d50;border-right:2px solid #ffdbb0;width:8%}#fuel-cost{background:repeating-linear-gradient(120deg,#c2d8cb,#c2d8cb 3px,#68887d 3px,#68887d 6px)}.game{grid-template-rows:66px minmax(0,1fr) 38px 68px 60px}.field-notes h1{font-size:clamp(55px,5.3vw,80px)}.waypoint{width:44px;height:44px}.icon-button{min-width:44px;min-height:44px}.tools #undo{min-width:44px}#pause-layer .text-button{display:block;width:100%;text-align:left}.fuel-panel.danger #fuel-reserve{background:#fc9560}
@media(max-width:600px){.game{grid-template-rows:52px minmax(0,1fr) 34px 62px 58px}.fuel-reading{font-size:9px}#reserve{font-size:8px;letter-spacing:.2px}#forecast{font-size:9px}.tools{gap:5px;padding:7px}.tools button{min-height:44px}.tools #undo{width:44px}.mode-switch button{font-size:11px;padding:0 8px}.tools .fly-button{min-width:94px;padding:0 8px}footer button,footer a{min-height:44px}.app{grid-template-rows:54px minmax(0,1fr) 44px}}
@media(max-width:600px) and (max-height:680px){.game{grid-template-rows:46px minmax(0,1fr) 30px 58px 56px}.mode-switch button{font-size:10px;padding:0 6px}.tools .fly-button{min-width:89px;font-size:13px}.tools #undo{min-width:44px;width:44px}.welcome-card h2{font-size:54px}.welcome-foot{font-size:7px}.welcome-card .how-line{font-size:12px}.welcome-card .lead{font-size:19px!important}.fuel-panel{padding:5px 10px}}
@media(orientation:landscape) and (max-height:500px){.app{grid-template-rows:46px minmax(0,1fr) 44px}.game{grid-template-columns:78px minmax(0,1fr) 180px;grid-template-rows:minmax(44px,1fr) 72px 102px;gap:0}.hud{grid-column:1;grid-row:1/4}.map-shell{grid-column:2;grid-row:1/4}.radio{grid-column:3;grid-row:1;align-self:stretch;padding:5px 8px;overflow:hidden}.fuel-panel{grid-column:3;grid-row:2;align-self:stretch;padding:5px 8px;margin:0}.fuel-reading{flex-direction:row;gap:4px}.fuel-reading>span{font-size:8px}.fuel-reading b{font-size:10px;margin-left:2px}#reserve{font-size:7px;white-space:normal;max-width:65px;text-align:right}#forecast{font-size:8px}.tools{grid-column:3;grid-row:3;align-self:stretch;padding:5px 7px;gap:4px}.mode-switch{height:44px}.mode-switch button,.tools #undo,.tools .fly-button{min-height:44px;height:44px}.tools #undo{width:44px}.tools .fly-button{min-width:0}.edition{font-size:9px}.hud strong{font-size:21px}.hud .hull-block strong{font-size:12px}.welcome-card h2{font-size:54px}.welcome-card .how-line{font-size:11px}.welcome-card{padding:16px 22px}footer button,footer a{min-height:44px}}
/* Placement and dispatch share one large touch control. */
.fleet-hud{display:grid;grid-template-columns:.7fr 1fr 1fr 1fr 1.15fr;gap:12px}.fleet-hud strong{font-size:27px}.fleet-hud #aboard{color:#f1f0df;font-size:27px;letter-spacing:0}.fleet-hud #timer{color:var(--mint)}.fleet-hud #timer.urgent{color:#ff9566}.fuel-reading #hull{font-size:11px;letter-spacing:3px;color:var(--orange)}.fleet-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:9px 12px;align-items:center}.fleet-controls .eyebrow{font-size:9px;letter-spacing:1px;color:var(--mint)}.fleet-controls p{font-size:11px;line-height:1.25;color:#a7c5c9;margin:5px 0 0}.fleet-controls .fleet-action{min-height:48px;background:var(--orange);color:#08212a;border:0;font:700 15px var(--display);padding:7px 11px;letter-spacing:.4px;min-width:140px}.fleet-action span{padding-left:8px}.game{grid-template-rows:66px minmax(0,1fr) 38px 68px 82px}
@media(max-width:600px){.game{grid-template-rows:54px minmax(0,1fr) 34px 62px 82px}.fleet-hud{gap:8px;padding:7px 12px}.fleet-hud strong,.fleet-hud #aboard{font-size:23px}.fleet-hud span{font-size:7px;letter-spacing:.6px}.fleet-controls{padding:8px 10px;gap:8px}.fleet-controls .fleet-action{min-width:126px;font-size:13px;padding:7px 9px}.fleet-controls .eyebrow{font-size:8px}.fleet-controls p{font-size:10px}.fuel-reading #hull{font-size:10px;letter-spacing:2px}}
@media(max-width:600px) and (max-height:680px){.game{grid-template-rows:48px minmax(0,1fr) 30px 58px 76px}.fleet-hud{gap:6px}.fleet-hud strong,.fleet-hud #aboard{font-size:21px}.fleet-controls .fleet-action{min-width:118px;font-size:12px}.fleet-controls p{font-size:9px}.welcome-card h2{font-size:51px}.welcome-card .lead{font-size:18px!important}}
@media(orientation:landscape) and (max-height:500px){.game{grid-template-rows:minmax(44px,1fr) 72px 102px}.fleet-hud{display:flex;gap:3px;justify-content:space-around}.fleet-hud strong,.fleet-hud #aboard{font-size:19px}.fleet-controls{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:5px;padding:5px 8px}.fleet-controls p{display:none}.fleet-controls .fleet-action{min-width:0;min-height:44px;font-size:13px}.fleet-controls .eyebrow{font-size:8px}.fuel-reading #hull{display:none}}

#storm-state{font-size:8px;letter-spacing:.6px;color:#b9a6dc}#reserve.urgent{color:#ff8a65}.waypoint[aria-pressed="true"]{border:2px solid #ffd4a5;background:#ffc08318}.fleet-controls .fleet-action:disabled{opacity:.65;background:#284550;color:#b9cacc}.fleet-controls .fleet-action:not(:disabled){box-shadow:0 2px 12px #ff85531a}

@media(max-height:680px){.plot-badge{display:none}.map-caption{display:none}}

.fleet-actions{display:flex;align-items:center;gap:6px;min-width:0}.fleet-controls .stop-boat{width:44px;min-width:44px;min-height:48px;font-size:17px;color:var(--mint);border:1px solid #729e9977;background:#173a43}.fleet-controls:has(.stop-boat:not(.hidden)){gap:6px}.fleet-controls:has(.stop-boat:not(.hidden)) .fleet-action{min-width:118px}
@media(max-width:360px){.fleet-controls:has(.stop-boat:not(.hidden)) .fleet-action{min-width:104px;font-size:11px}.fleet-controls:has(.stop-boat:not(.hidden)) .eyebrow{letter-spacing:.3px;font-size:7px}}
@media(orientation:landscape) and (max-height:500px){.fleet-actions{width:100%}.fleet-actions .fleet-action{flex:1;min-width:0!important}.fleet-controls .stop-boat{min-height:44px}}

/* Clear goals and a deliberate breather between rescue levels. */
.fleet-hud #saved{color:var(--mint)}.fleet-hud strong small{font-size:.58em;color:#93afb4;letter-spacing:0}.level-card h2 em{font-style:normal;color:var(--mint)}.next-weather{border:1px solid #b3a0dc55;background:#6d56991a;color:#d7c7ee;padding:12px;margin:18px 0;font-size:12px;font-weight:600;letter-spacing:.8px}.level-card .text-button,#retry-run{min-height:44px;display:block;width:100%;text-align:center}.level-card #level-stats{font-size:14px}.level-card .result-numbers strong{color:var(--mint)}
@media(max-width:600px){.level-card{padding:26px}.level-card h2{font-size:52px;margin:15px 0}.next-weather{font-size:11px;padding:10px;margin:14px 0}.level-card #level-stats{font-size:13px}.level-card .text-button,#retry-run{font-size:11px}}
@media(orientation:landscape) and (max-height:500px){.level-card h2{font-size:37px;margin:8px 0}.level-card h2 br{display:none}.level-card .result-numbers{margin:8px 0;padding:8px 0}.level-card .result-numbers strong{font-size:32px}.level-card .next-weather{margin:10px 0;padding:8px}.level-card{padding:18px 24px}.level-card #level-stats{font-size:12px;margin:8px 0}}

@media(orientation:landscape) and (max-height:500px){.level-card{padding:12px 24px}.level-card h2{font-size:30px;margin:4px 0}.level-card .result-numbers{margin:5px 0;padding:5px 0}.level-card .result-numbers strong{font-size:27px}.level-card #level-stats{margin:4px 0}.level-card .next-weather{margin:6px 0;padding:6px}.level-card .primary{min-height:44px;font-size:21px;padding:8px 14px}}

/* A blocked flight always explains the cause alongside the launch control. */
.fuel-target{border-color:#f6d67575;background:#eabb3810}.fuel-target:hover{background:#eabb3825}.fleet-controls .fleet-action.launch-blocked{background:#4e3028;color:#ffd2a5;border:1px solid #de986c;opacity:1;box-shadow:none;cursor:help}.fuel-panel.launch-blocked #forecast{font-size:12px;font-weight:700;color:#ffd2a5;letter-spacing:.2px}.fuel-panel.launch-blocked{background:#302827}.radio.danger{font-weight:600}
@media(max-width:600px){.fuel-panel.launch-blocked #forecast{font-size:11px}}
@media(orientation:landscape) and (max-height:500px){.fuel-panel.launch-blocked #forecast{font-size:10px;line-height:1.2}}


/* Keep the phone's playable chart large; secondary actions live in Pause. */
.play-layout{grid-template-rows:minmax(0,1fr)}
.field-notes{max-height:100%;overflow-y:auto;scrollbar-width:thin}
.pause-links{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;margin-top:12px;padding-top:8px;border-top:1px solid #61838c55}
.pause-links button,.pause-links a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px;border:0;background:transparent;font-size:10px;letter-spacing:.8px;color:#c0d6d8;text-align:center}
.pause-links a{grid-column:1 / -1;color:#93b5be}
@media(max-width:850px) and (min-height:501px), (max-width:850px) and (orientation:portrait){
  .app{max-width:630px;min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);grid-template-rows:44px minmax(0,1fr)}
  .app>footer{display:none}
  .topbar{padding:0 10px;gap:8px}
  .brand b{font-size:21px}.brand i{display:none}.edition{display:none}
  .top-actions{gap:4px}.icon-button{width:44px;height:44px;border:0;border-radius:4px;font-size:21px}
  .game{position:relative;grid-template-columns:minmax(0,1fr);grid-template-rows:40px minmax(0,1fr) 40px 52px;border:0;border-radius:0}
  .fleet-hud{grid-row:1;grid-column:1;padding:4px 10px;gap:8px}
  .fleet-hud>div{gap:1px}.fleet-hud span{font-size:7px;letter-spacing:.6px}
  .fleet-hud strong,.fleet-hud #aboard{font-size:21px}
  .map-shell{grid-row:2;grid-column:1}
  .map-caption,.plot-badge{display:none}
  .radio{grid-row:2;grid-column:1;align-self:end;z-index:2;min-height:22px;max-height:48px;padding:4px 8px;border:0;background:#08212ee8;font-size:10px;line-height:1.3;pointer-events:none}
  .fuel-panel{grid-row:3;grid-column:1;padding:4px 10px;gap:2px}
  .fuel-reading{font-size:8px;line-height:11px;letter-spacing:.3px}.fuel-reading b{font-size:11px;margin-left:3px}
  #storm-state,#reserve{font-size:8px;letter-spacing:0}.fuel-meter{height:4px}
  #forecast{font-size:9px;line-height:10px;min-height:10px}.fuel-panel.launch-blocked #forecast{font-size:10px}
  .fleet-controls{grid-row:4;grid-column:1;padding:4px 8px;gap:8px;grid-template-columns:minmax(0,1fr) auto}
  .fleet-controls .eyebrow{font-size:8px;line-height:11px;letter-spacing:.5px}
  .fleet-controls p{font-size:10px;line-height:12px;margin:2px 0 0}
  .fleet-controls .fleet-action{min-height:44px;min-width:122px;font-size:13px;padding:6px 9px}
  .fleet-controls .stop-boat{min-height:44px;height:44px}
}
@media(max-width:360px) and (min-height:501px), (max-width:360px) and (orientation:portrait){
  .fleet-hud{gap:5px;padding-inline:8px}.fleet-hud strong,.fleet-hud #aboard{font-size:20px}
  .fleet-controls .fleet-action{min-width:110px;font-size:12px}
  .fleet-controls:has(.stop-boat:not(.hidden)) .fleet-action{min-width:104px}
  .fleet-controls .eyebrow{font-size:7px}.fleet-controls p{font-size:9px;line-height:11px}
}
@media(orientation:landscape) and (max-height:500px){
  .app{grid-template-rows:44px minmax(0,1fr);padding:env(safe-area-inset-top) max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left))}
  .app>footer{display:none}.brand b{font-size:21px}.brand i,.edition{display:none}
  .icon-button{width:44px;height:44px;border:0}.top-actions{gap:4px}
  .game{grid-template-columns:56px minmax(0,1fr) 160px;grid-template-rows:minmax(44px,1fr) 54px 76px}
  .fleet-hud{padding:5px;gap:2px}.fleet-hud strong,.fleet-hud #aboard{font-size:19px}
  .radio{font-size:10px}.map-caption,.plot-badge{display:none}
  .fuel-panel{padding:4px 7px;gap:3px}.fuel-meter{height:4px}
  .fuel-reading #storm-state{display:none}#reserve{max-width:none;font-size:8px}
  .fleet-controls{padding:4px 7px}.fleet-controls .fleet-action{min-height:44px}.fleet-controls .stop-boat{min-height:44px}
}
