:root{color-scheme:dark;--bg:#0d0d0d;--ink:#f5f5f5;--muted:#959595;--accent:#ff4949;--line:rgba(255,255,255,.14);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{opacity:.25;cursor:default}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--accent);outline-offset:5px}[hidden]{display:none!important}.game{position:relative;isolation:isolate;height:100%;height:100dvh;min-height:360px;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;outline:none}.topbar{position:absolute;z-index:4;top:0;left:0;width:100%;height:100px;padding:0 4%;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.07);background:linear-gradient(#0d0d0dba,transparent)}.wordmark{display:flex;align-items:center;color:var(--ink);text-decoration:none;font-size:25px;font-weight:730;letter-spacing:-1.5px;gap:5px}.brand-icon{display:grid;place-items:center;background:var(--accent);color:#ffffff;width:30px;height:30px;border-radius:8px;font-size:24px;margin-right:8px}.brand-divider{color:var(--accent);font-weight:400;margin:0 3px}.brand-caption{font-family:monospace;font-size:9px;letter-spacing:2px;color:var(--muted);margin-left:23px;border-left:1px solid var(--line);padding:7px 0 7px 23px}.top-actions{display:flex;gap:10px;align-items:center}.build-label{font:10px monospace;letter-spacing:1.5px;color:#959595;margin-right:20px}.build-label i,.intro-tag>span{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--accent);box-shadow:0 0 10px #ff494955;margin-right:8px}.icon-button{position:relative;border:1px solid var(--line);background:#1b1b1ba8;color:#d1d1d1;width:38px;height:38px;border-radius:50%;font-size:19px}.icon-button:hover:not(:disabled){background:#303030}.sound-slash{font-size:15px;position:absolute;left:16px;top:10px;color:#8f8f8f}.panel{position:absolute;z-index:3}.intro{top:50%;left:8%;transform:translateY(-46%);max-width:650px}.eyebrow{font:10px monospace;letter-spacing:2px;color:var(--accent)}h1{font-size:clamp(36px,4.4vw,68px);line-height:1.1;letter-spacing:-3px;font-weight:620;margin:26px 0 22px}h1 em{color:var(--accent);font-style:normal}.intro-copy{font-size:15px;line-height:1.85;color:#acacac;margin:0}.journey{display:flex;align-items:center;gap:13px;margin:29px 0 35px;font:10px monospace;color:#6c6c6c}.journey span{white-space:nowrap}.journey b{color:#b8b8b8;font-weight:400;margin-left:4px}.journey i{font-style:normal;color:#646464}.primary-button{display:flex;align-items:center;justify-content:space-between;gap:55px;background:var(--accent);color:#ffffff;border:0;padding:17px 24px;border-radius:9px;font-size:14px;font-weight:700;box-shadow:0 5px 30px #ff49490b;transition:background .15s,transform .15s}.primary-button:hover{background:#ef3030;transform:translateY(-2px)}.primary-button span{font-size:22px;line-height:1}.controls-hint{display:flex;align-items:center;gap:9px;margin-top:18px;font:10px monospace;color:#868686}kbd{padding:4px 6px;border:1px solid #ffffff20;border-bottom-width:2px;border-radius:4px;font:9px monospace;color:#b9b9b9}.rule{color:#808080;font:10px monospace;margin:15px 0 0}.intro-record{font:9px monospace;color:#767676;letter-spacing:1px;margin-top:25px}.intro-record strong{color:var(--accent);margin-left:12px}.bottom-bar{position:absolute;bottom:0;left:0;width:100%;padding:25px 4%;display:flex;justify-content:space-between;align-items:end;pointer-events:none;background:linear-gradient(transparent,#0d0d0dbb)}.bottom-caption,.version-label{font:9px monospace;letter-spacing:1.5px;color:#636363}.version-label span{color:var(--accent);margin-left:12px}.sector-track{width:300px}.sector-track>span{font:8px monospace;letter-spacing:1.7px;color:#9e9e9e}.track{height:3px;background:#282828;margin:11px 0 9px}.track i{display:block;width:0;height:100%;background:var(--accent);transition:width .2s}.track-labels{display:flex;justify-content:space-between;color:#737373;font:8px monospace;letter-spacing:1px}.hud{position:absolute;top:125px;left:4%;right:4%;display:flex;justify-content:space-between;pointer-events:none}.hud-phase{display:flex;flex-direction:column;gap:8px}.hud-phase strong{font-size:16px;font-weight:500}.hud-distance{display:flex;align-items:baseline;gap:10px}.hud-distance>strong{font-size:33px;font-weight:550;font-variant-numeric:tabular-nums}.hud-distance>span{font:9px monospace;color:#979797}.hud-distance small{font:9px monospace;color:#7e7e7e;border-left:1px solid var(--line);padding-left:15px}.hud-distance b{color:#bfbfbf;font-weight:400}.result,.paused{left:50%;top:50%;transform:translate(-50%,-47%);width:440px;max-width:calc(100% - 32px);padding:32px;border:1px solid #bbbbbb22;border-radius:19px;background:#171717f2;box-shadow:0 30px 100px #0008;backdrop-filter:blur(20px)}h2{font-size:35px;letter-spacing:-1.6px;line-height:1.15;font-weight:550;margin:18px 0 12px}h2 span{color:var(--accent)}.result-copy,.paused p{font-size:13px;line-height:1.7;color:#9f9f9f}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:23px 0}.result-stats>div{border:1px solid var(--line);padding:15px;border-radius:8px;background:#ffffff03}.result-stats span{display:block;font:8px monospace;letter-spacing:1px;color:#8f8f8f;margin-bottom:8px}.result-stats strong{font-size:27px;font-weight:550}.result-stats small{font:12px monospace;color:#8b8b8b}.result-stats .sector-value{font-size:17px}.score-heading{display:flex;justify-content:space-between;font:8px monospace;letter-spacing:1px;color:#8e8e8e}.score-heading span:last-child{color:#646464}.scores{list-style:none;padding:0;margin:10px 0 22px}.scores li{display:flex;justify-content:space-between;padding:9px 12px;background:#ffffff03;border-bottom:1px solid #ffffff07;font:11px monospace;color:#bdbdbd}.scores li:first-child{color:var(--accent);background:#ff49490a;border-radius:5px}.scores small{font-size:9px;color:#808080}.result .primary-button,.paused .primary-button{width:100%}.new-best{font:10px monospace;color:var(--accent);margin:-9px 0 20px}.text-button{display:block;margin:14px auto 0;border:0;background:transparent;color:#9e9e9e;font-size:11px;padding:6px}.text-button:hover{color:white}.paused{text-align:center}.paused .primary-button{margin-top:25px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1500px){.intro{left:10%}}@media(max-width:800px){.brand-caption,.build-label,.bottom-caption{display:none}.topbar{height:76px;padding:0 22px}.intro{left:7%;max-width:85%;transform:translateY(-47%)}h1{font-size:48px}.journey{gap:8px;font-size:9px}.hud{top:97px}.hud-distance small{display:none}.bottom-bar{padding:22px 7%}.sector-track{width:270px}.hud-phase strong{font-size:13px}}@media(max-width:480px){h1{font-size:37px;letter-spacing:-1.8px}.intro-tag{font-size:8px;letter-spacing:1.3px}.intro-copy{font-size:12px}.journey{gap:6px;font-size:8px;flex-wrap:wrap;margin:22px 0 27px}.journey b{margin-left:2px}.rule{font-size:8px}.controls-hint{font-size:9px}.topbar{padding:0 6%}.wordmark{font-size:23px}.result,.paused{padding:24px}.result .eyebrow{font-size:8px;letter-spacing:1px}.result h2{font-size:31px}.sector-track{width:235px}.version-label{font-size:8px}.hud-distance>strong{font-size:28px}.result-stats{margin:15px 0}.scores li{padding:7px 10px}.scores{margin-bottom:15px}}@media(max-height:650px) and (min-width:650px){.topbar{height:65px}.intro{transform:translateY(-44%)}h1{font-size:40px;margin:14px 0}.intro-copy{font-size:12px}.journey{margin:14px 0}.primary-button{padding:12px 20px}.controls-hint{margin-top:10px}.intro-record{display:none!important}.bottom-bar{padding-bottom:14px}.hud{top:80px}.result{padding:20px;width:440px}.result h2{margin:10px 0;font-size:28px}.result-copy{margin:8px 0}.result-stats{margin:12px 0}.scores li{padding:5px 10px}.scores{margin:7px 0 12px}.new-best{margin:0 0 10px}.result .text-button{margin-top:6px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

/* Keep menu actions reachable on short windows and phone landscape. */
.result,.paused{max-height:calc(100dvh - 115px);overflow-y:auto;scrollbar-width:thin}
@media(max-height:520px){.topbar{height:58px}.bottom-bar{padding-top:8px;padding-bottom:8px}.bottom-caption,.intro-tag,.intro-copy,.rule,.intro-record{display:none!important}.intro{top:51%;transform:translateY(-50%)}h1{font-size:32px;letter-spacing:-1.5px;margin:0 0 12px}.journey{margin:12px 0}.controls-hint{margin-top:9px}.primary-button{padding:10px 20px}.hud{top:74px}.result,.paused{top:52%;max-height:calc(100dvh - 90px);padding:20px}.sector-track{width:220px}.track-labels{font-size:7px}.sector-track>span{font-size:7px}.track{margin:6px 0}.result .eyebrow{font-size:8px}.result h2{font-size:26px;margin:10px 0}.result-copy{font-size:11px}.result-stats{margin:12px 0}.result-stats>div{padding:10px}}

/* From-To Engineering: red / white / black brand system. */
:root{--bg:#080808;--ink:#f5f5f5;--muted:#a0a0a0;--accent:#ff4949;--line:rgba(255,255,255,.14)}
.wordmark{gap:12px;letter-spacing:0}.brand-mark{width:48px;height:54px;object-fit:contain}.brand-lockup{display:flex;flex-direction:column;gap:3px}.brand-name{font-size:29px;line-height:1;font-weight:750;letter-spacing:-1px}.brand-divider{color:#ff2929;margin:0 2px;font-weight:750}.brand-caption{display:block;margin:0;padding:0;border:0;color:#ff4949;font:9px monospace;letter-spacing:3.2px}
.primary-button{background:#d92323;color:#fff;box-shadow:0 5px 30px #ff292912}.primary-button:hover{background:#ed3030}.journey i{color:#ff4949}.brand-icon{background:#d92323;color:white}.new-best{color:#ff6767}.scores li:first-child{color:#ff7070;background:#ff29290d}.intro-tag>span,.build-label i{background:#ff2929;box-shadow:0 0 10px #ff29294d}
@media(max-width:480px){.brand-mark{width:36px;height:42px}.brand-name{font-size:24px}.brand-caption{font-size:7px;letter-spacing:2.8px}.wordmark{gap:8px}}
@media(max-height:520px){.brand-mark{height:39px;width:34px}.brand-name{font-size:23px}.brand-caption{font-size:7px}}
