:root{--paper:#f4f2eb;--ink:#242923;--muted:#666b68;--olive:#536443;--accent:#e65b35;--line:#b8bab1;--radius:18px;color-scheme:light;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,select{color:inherit}button{cursor:pointer;border:0;background:none;font-weight:500;transition:background .15s,color .15s,transform .1s}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:disabled{cursor:default;opacity:.5}button:not(:disabled):active{transform:translateY(1px)}button:hover:not(:disabled){filter:brightness(.94)}[hidden]{display:none!important}.shell{max-width:1520px;padding:0 40px;margin:auto}header{height:82px;border-bottom:1px solid #989e94;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:15px;letter-spacing:3px;font-size:25px;text-decoration:none;color:var(--ink);font-weight:600}.brand svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2.4}.header-right{display:flex;gap:35px;align-items:center;font-size:15px;color:var(--muted)}.outline{border:1px solid var(--ink);border-radius:8px;padding:11px 22px;background:transparent}.header-right button{color:var(--ink)}.intro{padding:24px 0 27px}h1{font-size:clamp(34px,4.3vw,64px);letter-spacing:-2.5px;line-height:1.12;margin:0 0 8px;font-weight:700}.intro p{font-size:clamp(18px,2vw,26px);color:var(--muted);margin:0;line-height:1.4}.workspace{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(280px,1fr);gap:38px;align-items:stretch}.instrument{background:var(--ink);color:var(--paper);border-radius:var(--radius);position:relative;padding:25px 30px 28px;min-width:0;display:flex;flex-direction:column}.instrument-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;letter-spacing:2.8px;z-index:1}.status{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:0}.status i{background:#879476;width:10px;height:10px;border-radius:50%}.status i.running{background:#92d36f}.status i.waiting{background:#e1ba63}.dial-wrap{position:relative;margin:-6px auto 0;width:100%;max-width:800px;aspect-ratio:760/430}#dial{width:100%;height:100%;display:block}#needle{transform-origin:380px 340px;transform:rotate(-105deg)}.rpm{position:absolute;top:43%;left:0;width:100%;text-align:center;pointer-events:none}.rpm span{display:block;font-family:'Courier New',monospace;font-size:clamp(40px,5.5vw,80px);font-weight:700;letter-spacing:-4px;line-height:1}.rpm small{font-size:20px;letter-spacing:4px;display:block;margin-top:10px}.readouts{display:flex;justify-content:center;margin-top:-11px;position:relative}.readouts>div{width:170px;text-align:center;display:flex;align-items:center;flex-direction:column}.readouts>div+div{border-left:1px solid #50554c}.readouts strong{font-size:44px;font-family:'Courier New',monospace;line-height:1.1}.readouts small,.readouts button{font-size:16px;letter-spacing:2px;line-height:1.4;margin-top:4px;padding:2px 5px}.readouts button{text-decoration:underline;text-decoration-color:#6d7467;text-underline-offset:5px}.load-row{display:flex;align-items:center;gap:20px;font-size:12px;letter-spacing:2px;margin-top:auto;padding-top:36px}.load-track{height:9px;background:#41473f;border-radius:10px;flex:1;overflow:hidden}#load-bar{height:100%;width:0;background:#8c9d79;border-radius:10px;transition:width .1s}#load-value{min-width:35px;text-align:right;letter-spacing:0;font-size:14px}.setup{display:flex;flex-direction:column;padding-bottom:2px}.setup h2{font-size:38px;letter-spacing:-1.5px;margin:0 0 22px;line-height:1.1}label,legend{font-size:16px;font-weight:600;display:block}select{width:100%;height:50px;border:1px solid var(--line);border-radius:7px;padding:0 15px;margin-top:8px;background:transparent;font-size:18px}fieldset{border:0;padding:0;margin:22px 0 0;min-width:0}legend{padding:0;margin-bottom:8px}.seg{display:flex;border:1px solid var(--line);border-radius:7px;overflow:hidden}.seg button{flex:1;height:43px;font-size:16px}.seg button[aria-pressed=true]{background:var(--olive);color:white}.slider{margin-top:24px}.slider label{display:flex;justify-content:space-between;gap:10px}.slider output{font-weight:400;font-variant-numeric:tabular-nums}input[type=range]{width:100%;margin:12px 0 0;height:24px;accent-color:var(--olive);cursor:pointer}.primary{background:var(--olive);color:white;border-radius:11px;font-size:21px;font-weight:600;padding:21px 20px;display:flex;align-items:center;justify-content:center;gap:12px;min-height:64px}#start{margin-top:auto}#start svg{width:21px;height:21px}#start.running{background:#a3452b}.demo-controls,.gps-controls{border-top:1px solid #999f95;margin-top:26px;padding:22px 3px;display:flex;gap:32px;align-items:center}.demo-controls h2,.gps-controls h2{font-size:30px;letter-spacing:-1px;margin:0 0 9px}.demo-controls p,.gps-controls p{font-size:18px;color:var(--muted);margin:0;line-height:1.5}.demo-controls>div:first-child{flex:1.1}.pedals{display:flex;gap:16px;flex:1.3}.pedal{min-height:80px;flex:1;display:flex;align-items:center;justify-content:center;gap:18px;font-size:18px;font-weight:600;touch-action:none;user-select:none;-webkit-user-select:none}.pedal svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8}.dark{background:var(--ink);color:var(--paper);border-radius:10px}.pedal.held{background:var(--accent);color:white;border-color:var(--accent)}.keyboard{border-left:1px solid var(--line);padding-left:26px;font-size:12px;color:var(--muted)}.keyboard>span{display:block;color:var(--ink);font-weight:600;margin-bottom:5px}.keyboard div{display:flex;align-items:center;gap:8px;margin-top:5px}kbd{font:17px Arial,sans-serif;border:1px solid #999f95;border-radius:3px;padding:3px 7px;color:var(--ink)}footer{border-top:1px solid #999f95;display:flex;justify-content:space-between;gap:20px;font-size:13px;color:var(--muted);padding:17px 0 24px}.notice{margin-top:18px;border-left:3px solid var(--olive);background:#e8e9df;padding:13px 16px;font-size:15px;line-height:1.5}.notice.error{border-color:var(--accent);background:#f1e4dc}.gps-controls>div{flex:1}dialog{border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);width:min(600px,calc(100% - 32px));max-height:85dvh;padding:32px;box-shadow:0 25px 90px #0003}dialog::backdrop{background:#18221788}dialog h2{font-size:30px;letter-spacing:-1px;margin:12px 35px 20px 0}dialog h3{font-size:17px;margin:24px 0 8px}dialog p{font-size:16px;line-height:1.6;color:#535951}dialog .primary{width:100%;margin-top:24px;font-size:17px;min-height:48px;padding:14px}.close{position:absolute;right:17px;top:17px;font-size:25px;padding:2px 10px}
@media(min-width:1500px){.instrument{min-height:580px}}@media(max-width:1100px){.shell{padding:0 26px}.workspace{gap:26px;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr)}.instrument{padding:24px 22px}.setup h2{font-size:31px;margin-bottom:18px}.instrument-top{font-size:12px;letter-spacing:2px}.dial-wrap{margin-top:30px}.load-row{gap:12px;padding-top:28px}fieldset{margin-top:17px}.slider{margin-top:18px}#start{margin-top:24px}.keyboard{display:none}.demo-controls h2{font-size:26px}.demo-controls p{font-size:15px}.pedals{gap:12px}.pedal{gap:10px;padding:14px;min-height:72px}.readouts{margin-top:0}}
@media(max-width:740px){.shell{padding:0 18px}header{height:72px}.brand{font-size:18px;letter-spacing:2px;gap:8px}.brand svg{width:31px;height:31px}.header-right>span{display:none}.header-right button{font-size:12px;padding:9px 12px}.intro{padding:25px 0 22px}h1{font-size:36px;letter-spacing:-1.5px;max-width:420px}.intro p{font-size:17px;max-width:330px}.workspace{display:flex;flex-direction:column;gap:28px}.instrument{padding:20px 18px 22px}.instrument-top{font-size:11px;letter-spacing:2px}.status{font-size:12px;gap:6px}.dial-wrap{margin-top:6px}.rpm span{font-size:48px;letter-spacing:-2px}.rpm small{font-size:13px;margin-top:6px;letter-spacing:3px}.readouts{margin-top:0}.readouts>div{width:110px}.readouts strong{font-size:32px}.readouts small,.readouts button{font-size:12px}.load-row{font-size:9px;letter-spacing:1.4px;padding-top:24px;gap:12px}#load-value{font-size:12px}.setup h2{font-size:30px;margin-bottom:20px}.setup{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px}.setup h2,.setup>label,.setup>select,#start{grid-column:1/-1}.setup>label{margin-bottom:-12px}.setup>select{margin:0}.setup fieldset,.setup .slider{margin:0}.setup label,.setup legend{font-size:14px}.seg button{font-size:14px}.slider label{font-size:13px}.slider output{font-size:12px}#start{margin-top:3px}.demo-controls{flex-direction:column;align-items:stretch;gap:18px;padding:22px 0}.demo-controls h2{font-size:26px}.demo-controls p{font-size:16px}.pedals{gap:14px}.pedal{min-height:70px;font-size:16px}.gps-controls{align-items:flex-start;flex-direction:column;gap:15px}.gps-controls h2{font-size:26px}.gps-controls p{font-size:16px}footer{font-size:11px;line-height:1.5;gap:20px}footer span{max-width:48%}footer span:last-child{text-align:right}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
/* Keep the complete instrument and pedals in a normal laptop viewport. */
@media(min-width:1101px){.dial-wrap{height:clamp(340px,28vw,410px);aspect-ratio:auto}.instrument{min-height:0}.rpm{top:42%}.setup .slider{margin-top:22px}}
@media(max-width:740px){.rpm{top:37%}.rpm span{font-size:36px;letter-spacing:-1.5px}.rpm small{font-size:11px;margin-top:4px}.setup h2{margin-bottom:0}}
.response-control{margin-top:18px}.hint{font-size:12px;line-height:1.45;color:var(--muted);margin:7px 0 0}.response-control select{font-size:15px;height:42px}.tour-controls{display:flex;gap:18px;align-items:center;padding-top:22px;flex-wrap:wrap}.tour-controls span{font-size:14px;color:var(--muted)}progress{height:8px;width:150px;accent-color:var(--olive)}.header-right{gap:14px}.driving-actions{display:flex;gap:20px;margin-top:20px}.driving-actions .primary{flex:1;background:#a3452b}.driving-actions .primary:not(.running){background:var(--olive)}
.driving-view .intro,.driving-view .setup,.driving-view .demo-controls,.driving-view footer,.driving-view .header-right>span{display:none}.driving-view .workspace{display:block;margin-top:24px}.driving-view .instrument{max-width:1050px;margin:auto}.driving-view .dial-wrap{height:clamp(250px,35vh,390px)}.driving-view .readouts strong{font-size:64px}.driving-view .readouts>div{width:220px}.driving-view .load-row{padding-top:20px}.driving-view .driving-actions{max-width:1050px;margin:18px auto}.driving-view #gps-controls{max-width:1050px;margin:20px auto}
@media(max-width:740px){.header-right{gap:6px}.header-right button{padding:8px;font-size:11px}.brand{font-size:15px;letter-spacing:1px;gap:6px}.brand svg{width:27px}.setup .response-control{grid-column:1/-1;margin:0}.tour-controls{gap:12px}.tour-controls span{font-size:12px}.tour-controls progress{width:100%}.driving-view .dial-wrap{height:auto;aspect-ratio:760/430}.driving-view .readouts strong{font-size:52px}.driving-view .readouts>div{width:140px}.driving-actions{gap:10px}.driving-actions .primary{font-size:18px}.driving-actions .outline{padding:12px;font-size:14px}}
/* Cockpit finish: shared geometry with explicit light and dark surfaces. */
:root{--surface:#eeece5;--field:#faf9f5;--olive:#be4927;--line:#cdcac1;--accent:#e65b35;--radius:22px}
:root[data-theme=dark]{color-scheme:dark;--paper:#101214;--ink:#f2f1ec;--muted:#a5a9ad;--surface:#1b1e21;--field:#121517;--line:#373c40;--olive:#c54b29;--accent:#ff784b}
body{min-height:100vh;background:radial-gradient(ellipse at 15% 0%,#e65b3509,transparent 60%),var(--paper)}
header,footer,.demo-controls,.gps-controls{border-color:var(--line)}
.brand{font-weight:800;font-style:italic;letter-spacing:2px}.brand svg{color:var(--accent)}
.intro{padding:30px 0}.intro h1{letter-spacing:-2px;font-weight:800}.intro p{font-size:18px}
.outline{border-color:var(--line);background:var(--surface);border-radius:10px}.outline:hover:not(:disabled){border-color:var(--accent)}
.instrument{background:radial-gradient(ellipse at 50% 35%,#252b2d 0%,#171b1e 65%);color:#f4f2eb;border:1px solid #3b4144;box-shadow:0 18px 45px #0002,inset 0 1px 0 #ffffff08;overflow:hidden}
.instrument::before{content:'';position:absolute;top:0;left:30px;right:30px;height:2px;background:linear-gradient(90deg,transparent,#e65b35,transparent)}
.instrument-top{font-size:12px;font-weight:600}.status{font-weight:400;color:#b8c0c1}.status i.running{box-shadow:0 0 12px #92d36f66}
.rpm span,.readouts strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;letter-spacing:-2px}.rpm small,.readouts small{color:#a6afb3}
#needle{filter:drop-shadow(0 0 5px #e65b3555)}#load-bar{background:linear-gradient(90deg,#a33c25,#ff8957)}.load-track{background:#30363a}
.setup{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}.setup h2{font-size:25px;letter-spacing:-.7px;margin-bottom:20px}
select{background:var(--field);border-radius:10px}option,optgroup{background:var(--field);color:var(--ink)}.seg{background:var(--field);border-radius:10px}.seg button[aria-pressed=true]{background:var(--olive);box-shadow:inset 0 1px 0 #ffffff15}
.primary{box-shadow:inset 0 1px 0 #ffffff20;font-size:18px}.dark{background:#282e32;color:#f4f2eb;border:1px solid #454c50}.pedal.held{background:var(--olive)}
.notice{background:var(--surface)}.notice.error{background:var(--surface);color:var(--ink)}dialog{background:var(--surface)}dialog p{color:var(--muted)}kbd{border-color:var(--line)}
.header-right>span{display:none}.header-right{gap:8px}.header-right button{font-size:12px;padding:10px 14px;white-space:nowrap}
@media(max-width:740px){header{height:auto;min-height:94px;flex-wrap:wrap;gap:12px;padding:16px 0}.header-right{gap:6px}.header-right button{padding:9px 10px;font-size:11px}.intro{padding:24px 0}.intro h1{font-size:35px}.intro p{font-size:16px}.setup{padding:20px}.setup h2{margin-bottom:0}.instrument-top{font-size:10px}.rpm span{font-size:36px}.brand{font-size:17px}}
@media(max-width:400px){header{align-items:flex-start}.header-right{width:100%}.header-right button{flex:1}.setup{padding:18px}.shell{padding:0 16px}}
.garage-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:12px;grid-column:1/-1}.text-button{color:var(--accent);padding:8px 0;text-align:left}.garage-summary button{font-weight:700}.setup #engine-access{grid-column:1/-1;margin:10px 0 0}.preset-trigger{margin:16px 0;font-size:13px}.purchase-price{font-size:32px!important;color:var(--ink)!important;font-weight:700}.purchase-price small{display:block;font-size:14px;font-weight:400;color:var(--muted)}.benefits{padding-left:20px;color:var(--muted);line-height:1.8}dialog input[type=text]{width:100%;background:var(--field);color:var(--ink);border:1px solid var(--line);padding:12px;margin:8px 0 12px;border-radius:8px}dialog a{color:var(--accent)}#download-code{margin-top:18px;width:100%}.preset-row{display:flex;gap:16px;align-items:center;margin-top:12px}.preset-row .outline{flex:1;overflow-wrap:anywhere;text-align:left}#preset-list{margin-top:20px;color:var(--muted)}.setup .preset-trigger{grid-column:1/-1}

/* Transparent Momentum brand. */
.brand{flex-shrink:0}.brand img{display:block;width:148px;height:74px;object-fit:contain;border-radius:8px}
@media(max-width:740px){.brand img{width:120px;height:60px}}

:root:not([data-theme="dark"]) .brand img{filter:brightness(.2)}

/* Fit the tachometer artwork to the panel instead of its padded SVG canvas. */
.dial-wrap{max-width:none;height:auto;aspect-ratio:620/390;margin:24px auto 0;flex-shrink:0}
.rpm{top:37%}
@media(min-width:741px){body:not(.driving-view) .dial-wrap{margin-top:auto}body:not(.driving-view) .readouts{margin-top:0;margin-bottom:auto}}
.driving-view .dial-wrap{width:min(100%,calc(clamp(250px,35vh,390px) * 620 / 390));height:auto;aspect-ratio:620/390}
@media(max-width:740px){.dial-wrap{margin-top:16px}.driving-view .dial-wrap{width:100%}.rpm{top:37%}}

.customization{grid-column:1/-1;margin:18px 0;border:1px solid var(--line);border-radius:12px;padding:14px}.customization summary{cursor:pointer;font-weight:700;font-size:14px}.customization .slider{margin-top:16px}.customization #tune-reset{width:100%;margin-top:14px;font-size:12px}.digital-revs{display:none}
body[data-dashboard="retro"] .instrument{background:#11190f;border-color:#5d8a3a;box-shadow:inset 0 0 65px #76bb3210;color:#c1ff77}
body[data-dashboard="retro"] #dial{visibility:hidden}
body[data-dashboard="retro"] .rpm{top:32%;color:#c1ff77;text-shadow:0 0 18px #98ff4d55}
body[data-dashboard="retro"] .rpm span{font-size:clamp(48px,7vw,110px)}
body[data-dashboard="retro"] .digital-revs{display:block;position:absolute;left:5%;right:5%;top:15%;height:24px;border:1px solid #89c55c;background:repeating-linear-gradient(90deg,#24401a 0 3%,transparent 3% 4%)}
.digital-revs span{display:block;height:100%;width:0;background:repeating-linear-gradient(90deg,#b5ff71 0 3%,transparent 3% 4%)}
body[data-dashboard="retro"] .readouts,body[data-dashboard="retro"] .rpm small{color:#c1ff77}
body[data-dashboard="space"] .instrument{background:radial-gradient(ellipse at center,#15334c,#080f20 75%);border-color:#4aa7cf;box-shadow:inset 0 0 70px #278dd522;color:#bcf0ff}
body[data-dashboard="space"] #ticks{filter:drop-shadow(0 0 5px #69dfff)}
body[data-dashboard="space"] #needle path{fill:#78e4ff}
body[data-dashboard="space"] .rpm{color:#c2f5ff;text-shadow:0 0 18px #53d7ff77}
body[data-dashboard="space"] .readouts>div{border:1px solid #387b96;border-radius:12px;margin:0 8px;padding:12px}
@media(max-width:740px){body[data-dashboard="retro"] .rpm span{font-size:52px}.customization{margin:0}.digital-revs{max-height:14px}}

/* Dashboard-first: instruments and primary controls precede all setup options. */
.shell .intro{display:none}
.shell .workspace{display:flex;flex-direction:column;gap:16px;margin-top:16px}
.shell .instrument{width:100%;max-width:none;min-height:0;padding:18px 24px}
.shell .dial-wrap,body:not(.driving-view) .shell .dial-wrap{width:min(100%,calc(clamp(190px,34vh,350px) * 620 / 390));height:auto;aspect-ratio:620/390;margin:8px auto 0}
body:not(.driving-view) .shell .readouts{margin:0}.shell .load-row{padding-top:16px}
.shell .readouts strong{font-size:48px}.shell .readouts>div{width:180px}
.shell .driving-actions{width:100%;max-width:none;margin:0;gap:14px}
.shell .setup{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;width:100%;margin-top:12px}
.shell .setup h2,.shell .setup>label,.shell .setup>select,.shell .setup #engine-access,.shell .setup #start{grid-column:1/-1;margin:0}
.shell .setup fieldset,.shell .setup .slider{margin:0}.shell .setup .customization .slider{margin-top:16px}
.shell .setup .garage-summary{margin:0}.shell .setup .response-control{grid-column:auto}
.driving-view .shell .setup{display:none}
.audio-mode-control{grid-column:1/-1}
@media(max-width:740px){.shell .instrument{padding:16px}.shell .readouts strong{font-size:40px}.shell .readouts>div{width:130px}.shell .setup{padding:18px;gap:18px 14px}.shell .setup .response-control{grid-column:1/-1}.shell .dial-wrap{max-width:100%}.shell .rpm span{font-size:42px}}
