@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');
:root{--cream:#fff4dd;--gold:#ffc064;--ink:#092431;--green:#a8f3c2}*{box-sizing:border-box}body{margin:0;overflow:hidden;background:var(--ink);color:var(--cream);font-family:'DM Sans',sans-serif;touch-action:none}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}#scene{position:fixed;inset:0}#scene canvas{display:block;width:100%;height:100%;touch-action:none}#shade{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#061b2ad9,transparent 75%),linear-gradient(0deg,#051d2ccc,transparent 35%,transparent 80%,#06202c55);transition:opacity .8s}body.playing #shade{opacity:0}header{position:fixed;left:0;right:0;top:0;padding:24px 33px;display:flex;align-items:center;justify-content:space-between;z-index:5}.brand{color:var(--cream);display:flex;align-items:center;font-size:24px;font-weight:700;letter-spacing:-1px;text-decoration:none}.brand svg{width:30px;height:30px;margin-right:5px}.brand span{font-size:8px;letter-spacing:2px;font-weight:500;border-left:1px solid #fff4;padding-left:20px;margin-left:20px}.top-controls{display:flex;gap:8px}.top-controls button{font-size:8px;letter-spacing:1px;border:1px solid #ffffff30;border-radius:4px;background:#0824326e;padding:10px 12px;backdrop-filter:blur(10px)}.top-controls button#pause,.top-controls button#fullscreen{font-size:14px;padding:7px 12px}#intro{position:fixed;left:6%;top:20%;z-index:4;max-width:460px}.eyebrow{display:flex;align-items:center;gap:9px;font-size:9px;font-weight:600;letter-spacing:2px}.eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 15px var(--gold)}.series{font-size:10px;letter-spacing:4px;color:#d0b284;margin-top:28px}h1{font-family:'Barlow Condensed',Impact,sans-serif;font-size:clamp(84px,8.8vw,137px);font-weight:800;letter-spacing:-1.5px;line-height:.83;margin:18px 0 23px;text-shadow:0 5px 40px #041b3055}h1 span{color:var(--gold)}#intro>p{font-size:14px;line-height:1.7;color:#c2d3d2;margin:0 0 26px}.primary{width:100%;border:0;border-radius:4px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--gold);color:#15313a;font-size:12px;font-weight:800;letter-spacing:1px;transition:.15s;box-shadow:0 7px 35px #ffb04b22}.primary:hover{background:#ffd18b;transform:translateY(-1px)}.primary>span{font-size:23px;line-height:1}#intro>.primary{max-width:330px}.start-caption{font-size:7px;letter-spacing:1.15px;color:#9bb5bc;margin-top:13px}.how{display:flex;gap:24px;margin-top:30px}.how>div{display:flex;flex-direction:column;gap:6px}.how span{font-size:9px;color:#e1b376}.how strong{font-size:9px;letter-spacing:1.3px}.how small{font-size:9px;color:#98b4b9}.how>div+div{padding-left:24px;border-left:1px solid #ffffff22}#hero-caption{position:fixed;right:38px;bottom:95px;text-align:right;pointer-events:none}#hero-caption>span{font-size:8px;letter-spacing:2px;color:#c8dbd0}#hero-caption strong{display:block;font-family:'Barlow Condensed';font-size:36px;line-height:1;margin:12px 0 16px}#hero-caption small{font-size:7px;letter-spacing:1.5px;color:#a9c7c2}footer{position:fixed;bottom:0;left:0;right:0;padding:17px 33px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #fff2;z-index:4;font-size:7px;letter-spacing:1.2px;color:#9ab5b9;background:linear-gradient(0deg,#061e2ba6,transparent)}footer b{color:#d2e0d3}footer a{color:#cfdfd2;text-decoration:none}#hud{position:fixed;top:90px;left:34px;right:34px;display:flex;align-items:flex-start;justify-content:space-between;gap:22px;z-index:4;pointer-events:none}.score{display:flex;flex-direction:column;gap:4px;text-shadow:0 2px 12px #02232c}.score>span,.hull>span{font-size:8px;letter-spacing:2px;color:#d4e5dd}.score strong{font-family:'Barlow Condensed';font-size:43px;line-height:1;font-weight:700}.route{width:min(340px,42vw);padding:13px 18px;background:#082936ba;backdrop-filter:blur(10px);border:1px solid #fff2;border-radius:6px}.route>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:20px}.route span{font-size:7px;letter-spacing:1.2px;color:#d3e2cd}.route b{font-family:'Barlow Condensed';font-size:24px;font-weight:600}.progress{height:3px;background:#ffffff25;margin:9px 0}.progress i{height:100%;width:0%;display:block;background:var(--gold)}.route small{font-size:6px;letter-spacing:1.2px;color:#9fbfbc}.hull{width:110px;margin-top:7px}.hull>span{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1px}.hull b{font-size:9px;color:var(--green)}.hull>div{background:#102e3c99;border:1px solid #b4ddc34d;margin-top:9px;height:7px;padding:1px;border-radius:5px}.hull i{display:block;height:100%;width:100%;background:var(--green);border-radius:4px;transition:width .2s}#crosshair{position:fixed;left:50%;top:44%;width:22px;height:22px;transform:translate(-50%,-50%);pointer-events:none;opacity:.6;z-index:3}#crosshair span{position:absolute;inset:0;border:1px solid #ffebba;border-radius:50%}#crosshair i{position:absolute;width:3px;height:3px;background:#fff2ce;left:10px;top:10px;border-radius:50%}#play-bottom{position:fixed;bottom:68px;left:32px;right:32px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;z-index:4;pointer-events:none}.cargo-box>span{font-size:7px;letter-spacing:1.4px;color:#bad1c5}.cargo-box>strong{display:block;font-family:'Barlow Condensed';font-size:34px;margin-top:2px}.cargo-box i{font-style:normal;font-size:23px;color:var(--gold);margin-right:5px}.cargo-box small{font-size:7px;letter-spacing:1px;color:#d5c398;display:block;margin-top:5px}.control-hint{background:#082a35a8;padding:10px 14px;border:1px solid #ffffff15;border-radius:5px;font-size:7px;color:#b3cac5;letter-spacing:.7px;margin-bottom:2px}.control-hint kbd{font:inherit;color:#f3e6c8;background:#fff1;border:1px solid #fff2;padding:4px 5px;border-radius:3px;margin-right:3px}.control-hint>span{margin:0 6px;color:#768e8c}.actions{display:flex;align-items:center;gap:9px;pointer-events:auto}.actions button{border:1px solid #ffffff40;background:#082c3bd9;backdrop-filter:blur(12px);border-radius:5px;padding:12px 15px;font-size:8px;letter-spacing:.8px;font-weight:600}#auto{display:flex;align-items:center;gap:7px;color:#bbdac6}#auto i{width:5px;height:5px;border-radius:50%;background:#657c7b}#auto[aria-pressed=true] i{background:#b0f4c7;box-shadow:0 0 9px #b0f4c7}#boost{min-width:85px;color:var(--gold);border-color:#ffc06577}#boost>div{height:3px;background:#ffc06422;margin-top:7px}#boost-bar{display:block;width:100%;height:100%;background:var(--gold)}#boost.active{background:#916527c9}#fire{font-size:25px;width:48px;height:48px;padding:0;border-radius:50%;color:var(--gold);touch-action:none}#notice{position:fixed;left:50%;top:195px;transform:translate(-50%,-10px);opacity:0;background:#082b3ad9;color:#fff0ce;border:1px solid #ffca6d50;padding:12px 22px;border-radius:5px;z-index:6;text-align:center;font-size:11px;max-width:90%;pointer-events:none;backdrop-filter:blur(12px);transition:.2s}#notice.show{transform:translate(-50%,0);opacity:1}#world-labels,#pops{position:fixed;inset:0;pointer-events:none;z-index:3}.world-label{position:absolute;transform:translate(-50%,-50%);font-size:7px;letter-spacing:1px;color:#ffe2ab;padding:5px 8px;border:1px solid #ffc16855;background:#17333ba1;border-radius:4px;white-space:nowrap}.world-label.dodge{color:#ffe3d2;border-color:#ff9d8055}.world-label.gold{color:#ffe9a4;border-color:#ffdc8a77}.pop{position:absolute;font-family:'Barlow Condensed';font-size:34px;font-weight:700;color:#ffda86;transform:translate(-50%,-50%);text-shadow:0 2px 15px #082e3b}#hit-flash{position:fixed;inset:0;box-shadow:inset 0 0 160px #ff7753cc;opacity:0;pointer-events:none;z-index:10}#speed-lines{position:fixed;inset:0;pointer-events:none;opacity:0;box-shadow:inset 0 0 120px #6bdeea44;border:1px solid #c0f4fa22;transition:opacity .2s}body.boosting #speed-lines{opacity:1}#loading{position:fixed;inset:0;background:#082432;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;z-index:50}#loading span{font-size:10px;letter-spacing:3px;color:#e8c18a}#loading strong{font-family:'Barlow Condensed';font-size:35px;font-weight:600}dialog{border:1px solid #bad9cc33;border-radius:12px;background:#092b38;color:var(--cream);width:440px;max-width:calc(100vw - 28px);max-height:92dvh;padding:33px;box-shadow:0 40px 120px #00142199}dialog::backdrop{background:#041b28a8;backdrop-filter:blur(7px)}dialog h2{font-family:'Barlow Condensed';font-size:51px;line-height:.93;margin:22px 0;font-weight:700}dialog .eyebrow{font-size:8px;letter-spacing:1.4px;color:#e5c596}.result-score{display:flex;gap:16px;align-items:baseline}.result-score strong{font-family:'Barlow Condensed';font-size:79px;color:var(--gold);line-height:1}.result-score span{font-size:8px;letter-spacing:1.3px;color:#a8c2be}.stats{display:flex;justify-content:space-between;gap:20px;border-block:1px solid #ffffff20;padding:16px 0;margin:20px 0}.stats>div{display:flex;flex-direction:column;gap:5px}.stats strong{font-family:'Barlow Condensed';font-size:29px}.stats span{font-size:6px;letter-spacing:1px;color:#acc5bc}dialog p{font-size:11px;line-height:1.6;color:#b2cabe}.result-actions{display:flex;justify-content:space-between;gap:15px;margin-top:17px}.result-actions button,.text-button{padding:7px 0;background:transparent;border:0;border-bottom:1px solid #ffffff33;color:#dce6cb;font-size:8px;letter-spacing:.7px}dialog>a{display:block;text-align:center;font-size:10px;color:#afcdb7;margin-top:18px}#share-url{width:100%;padding:8px}#pause-dialog .text-button{margin-top:18px}#challenge{font-size:11px!important;color:var(--gold)!important;margin-top:20px!important}body.playing #scene{cursor:crosshair}
@media(max-width:1000px){#intro{top:19%;left:5%}h1{font-size:91px}.how{gap:17px}.how>div+div{padding-left:17px}#hero-caption strong{font-size:29px}.control-hint{display:none}.actions button{padding:12px}#play-bottom{left:24px;right:24px}#hud{left:24px;right:24px}}
@media(max-width:650px){header{padding:17px 17px}.brand{font-size:21px}.brand span{display:none}.brand svg{width:24px}.top-controls button{font-size:6px;padding:8px}.top-controls button#pause,.top-controls button#fullscreen{padding:6px 10px;font-size:13px}#intro{top:auto;left:23px;bottom:82px;max-width:320px}.eyebrow{font-size:7px;letter-spacing:1.2px}.series{font-size:8px;letter-spacing:2.5px;margin-top:18px}h1{font-size:77px;margin:15px 0 18px;letter-spacing:-1px}#intro>p{font-size:12px;line-height:1.6;margin-bottom:20px}#intro>.primary{max-width:285px;padding:17px;font-size:11px}.start-caption{font-size:6px;letter-spacing:.8px}.how{display:none}#hero-caption{display:none}#shade{background:linear-gradient(0deg,#051d2ce8,transparent 90%),linear-gradient(90deg,#061b2a77,transparent)}footer{padding:15px 17px;font-size:6px;letter-spacing:.4px}footer a{max-width:145px;text-align:right;line-height:1.6}#hud{top:72px;left:17px;right:17px;gap:12px}.score strong{font-size:31px}.score>span{font-size:6px;letter-spacing:1px}.route{width:46vw;padding:9px 12px}.route span{font-size:6px;letter-spacing:.4px}.route b{font-size:22px}.route>div:first-child{gap:10px}.progress{margin:7px 0}.route small{font-size:5px;letter-spacing:.5px}.hull{width:62px}.hull>span{font-size:6px}.hull b{font-size:7px}#notice{top:164px;padding:10px 14px;font-size:10px;width:max-content;max-width:92%}#play-bottom{bottom:65px;left:17px;right:17px}.cargo-box>span{font-size:6px;letter-spacing:1px}.cargo-box>strong{font-size:28px}.cargo-box small{font-size:6px;letter-spacing:.3px}.actions{gap:7px;flex-wrap:wrap;justify-content:flex-end;max-width:196px}#auto{font-size:6px;padding:10px 8px;letter-spacing:.4px}#boost{font-size:7px;min-width:65px;padding:10px}#fire{display:none}.world-label{font-size:6px;padding:4px 5px;letter-spacing:.4px}dialog{padding:27px}dialog h2{font-size:44px}.result-score strong{font-size:65px}#crosshair{top:42%}.primary{font-size:10px}}@media(max-height:650px) and (min-width:651px){#intro{top:17%}h1{font-size:74px}.series{margin-top:16px}#intro>p{margin:12px 0 17px;font-size:12px}.how{display:none}#hero-caption{bottom:80px}#hud{top:70px}#notice{top:165px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

header{background:linear-gradient(180deg,#061d2d77,transparent)}.hull{text-shadow:0 1px 8px #092735}
@media(max-width:650px){body.manual-fire #fire{display:block;width:39px;height:39px;font-size:22px}body.manual-fire .actions{max-width:200px}}

/* Combat is readable at a glance: warm hostile fire, cool upgrades. */
#power-hud{display:none;position:fixed;left:50%;bottom:130px;transform:translateX(-50%);gap:7px;z-index:4;pointer-events:none;white-space:nowrap}body.playing #power-hud{display:flex}#power-hud>span{font-size:8px;letter-spacing:1px;padding:9px 12px;background:#092a36c9;border:1px solid #ffffff20;border-radius:5px;color:#8aa4aa}#power-hud b{margin-left:8px}#power-hud>span.active{color:#87dbff;border-color:#87dbff99;box-shadow:0 0 22px #67d5ff22}#power-hud #power-rapid.active{color:#d7b0ff;border-color:#d7b0ff99}#power-hud #power-shield.active{color:#9ff5d1;border-color:#9ff5d199}#boss-hud{position:fixed;left:50%;top:184px;transform:translateX(-50%);width:min(400px,70vw);padding:12px 17px;background:#2c202be8;border:1px solid #ff826066;border-radius:6px;z-index:4;pointer-events:none;box-shadow:0 0 40px #ff57331a}#boss-hud>div:first-child{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.4px;color:#ffc6a9}.boss-track{height:7px;background:#ffb69d22;margin:10px 0 8px}.boss-track i{display:block;height:100%;background:linear-gradient(90deg,#e85b49,#ffc18c);transition:width .1s}#boss-hud small{font-size:6px;letter-spacing:1.2px;color:#d6afa1}body:has(#boss-hud:not([hidden])) #notice{top:280px}.world-label.enemy{color:#ffd2ba;border-color:#f88e6777;background:#492c34c9}.world-label.firing{color:#fff2da;background:#b6452c;border-color:#ffb075;box-shadow:0 0 20px #ff513555}
@media(max-width:650px){#power-hud{bottom:147px;gap:5px}#power-hud>span{font-size:6px;letter-spacing:.5px;padding:8px 10px}#power-hud b{margin-left:4px}#boss-hud{top:158px;width:76vw;padding:10px 12px}#boss-hud>div:first-child{font-size:7px;letter-spacing:.6px}body:has(#boss-hud:not([hidden])) #notice{top:245px}}
@media(max-height:650px) and (min-width:651px){#boss-hud{top:155px}body:has(#boss-hud:not([hidden])) #notice{top:244px}#power-hud{bottom:115px}}

#cinema-bars{position:fixed;inset:0;pointer-events:none;z-index:2}#cinema-bars:before,#cinema-bars:after{content:"";position:absolute;left:0;right:0;height:0;background:#04131be0;transition:height .45s}#cinema-bars:before{top:0}#cinema-bars:after{bottom:0}body.cinematic #cinema-bars:before,body.cinematic #cinema-bars:after{height:16px}#cinematic-caption{position:fixed;top:28%;left:50%;width:94%;transform:translate(-50%,12px);text-align:center;z-index:5;pointer-events:none;opacity:0;transition:opacity .3s,transform .45s;text-shadow:0 3px 26px #04161e}#cinematic-caption.show{opacity:1;transform:translate(-50%,0)}#cinematic-caption span{display:block;font-size:9px;letter-spacing:3px;color:#f1d1a4}#cinematic-caption strong{display:block;margin-top:9px;font:800 clamp(35px,6.5vw,82px)/.95 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.5px;color:#fff0d0}#cinematic-caption.boss strong{color:#ffb48f}#cinematic-caption.victory strong{color:#bdf5d9}body.cinematic #notice.show{opacity:0}#cinematic-caption.boss,#cinematic-caption.victory{top:31%}@media(max-width:650px){#cinematic-caption{top:26%}#cinematic-caption span{font-size:6px;letter-spacing:1.5px}#cinematic-caption strong{font-size:41px}#cinematic-caption.boss,#cinematic-caption.victory{top:31%}body.cinematic #cinema-bars:before,body.cinematic #cinema-bars:after{height:8px}}@media(prefers-reduced-motion:reduce){#cinema-bars{display:none}#cinematic-caption{transform:translate(-50%,0)}}

#cinematic-caption{visibility:hidden}#cinematic-caption.show{visibility:visible}
