@charset "UTF-8";
:root{color-scheme:light;--ink:#163c49;--muted:#607978;--line:#d2ded4;--paper:#f8f8ee;--mint:#e5f1df;--yellow:#f3d555;--teal:#21776f;--orange:#f3d555;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--mint);color:var(--ink);min-width:320px;overflow:hidden}button,input,select{font:inherit}button,a,select,input,summary{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:1px solid var(--line);background:var(--paper);padding:12px 18px;border-radius:8px;font-weight:650;transition:background .18s,border-color .18s,transform .18s}button:hover{background:#fffdf1;border-color:#799e90}button:active{transform:translateY(1px)}button:disabled{opacity:.48;cursor:wait}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #e3b936;outline-offset:4px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{letter-spacing:-.045em}button[aria-pressed="true"]{border-color:var(--teal)}.hidden{display:none!important}
#view{position:fixed;inset:0;display:block;width:100%;height:100%;outline:none;touch-action:none}#shell{position:relative;width:100%;height:100svh;pointer-events:none}#shell button,#shell a,#shell input,#shell select,#shell summary,dialog{pointer-events:auto}.topbar{position:absolute;inset:0 0 auto;z-index:12;display:flex;align-items:center;justify-content:space-between;height:100px;padding:0 48px;border-bottom:1px solid #214f4820;background:#f9f9eeed;backdrop-filter:blur(10px)}.brand{display:flex;align-items:center;gap:12px;font-size:14px;letter-spacing:2.1px;font-weight:850}.brand-mark{position:relative;font-size:25px;letter-spacing:-2px;font-style:italic;line-height:1;padding:8px 9px 9px 5px;border-bottom:3px solid var(--ink)}.brand-mark>span{font-style:normal;font-size:17px;position:absolute;top:-3px;right:-3px}.brand small{display:block;font-size:8px;letter-spacing:2.3px;font-weight:650;margin-top:6px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:18px;font-size:12px}.nav-link{border:0;background:transparent;font-size:13px;padding:10px 6px}.nav-divider{height:22px;width:1px;background:var(--line);margin:0 2px}.quiet{padding:8px 11px;background:transparent;border:1px solid #173d4925;font-size:12px;border-radius:6px}.icon-button{width:32px;height:32px;padding:0;font-size:16px;border-radius:50%}.language{border:0;padding-inline:2px}.eyebrow{font-size:10px;letter-spacing:2.3px;font-weight:750;color:var(--teal);margin-bottom:14px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 22px;font-size:14px;font-weight:750;border-radius:7px;transition:background .18s,transform .18s}.primary{background:var(--yellow);color:#273d38;border:1px solid #e6c64d;box-shadow:0 2px 0 #d3b54c}.primary:hover{background:#fce177;border-color:#ccab31}.secondary{background:#f7f9edc9;color:var(--ink);border:1px solid #93ada2}.secondary:hover{background:#fffef2}.text-button{background:transparent;border:0;padding:0;border-radius:0;font-size:11px;text-decoration:underline;text-underline-offset:4px;box-shadow:none}.text-button:hover{background:none}.minor{font-size:12px;line-height:1.7;color:var(--muted)}
/* An editorial opening: words on the left, a real, live water scene on the right. */
#home{position:absolute;inset:100px 0 0}#home::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#f3f7eefa 0%,#edf4e8ee 26%,#e8f2e677 43%,#e9f4e100 62%);pointer-events:none}.home-copy{position:absolute;left:64px;top:15%;width:530px}.home-copy .eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:27px;font-size:10px}.status-dot{width:6px;height:6px;border-radius:50%;background:#609c79;box-shadow:0 0 0 4px #649c7916}.home-copy h1{font-size:clamp(58px,5.65vw,86px);line-height:1.015;font-weight:780;letter-spacing:-.065em;max-width:540px;color:#183f47}.home-description{font-size:17px;line-height:1.7;margin-top:25px;color:#526f6b;max-width:400px}.home-actions{display:flex;gap:13px;margin-top:33px}.home-actions button{min-width:169px;min-height:53px}.home-hint{font-size:11px;color:#778c7f;margin-top:18px}.home-caption{position:absolute;right:64px;bottom:174px;display:flex;gap:15px;align-items:center;max-width:250px;color:#174a55;text-shadow:0 1px 15px #fff}.caption-rule{display:block;width:39px;height:1px;background:#336776}.home-caption strong{display:block;font-size:10px;letter-spacing:2.5px;margin-bottom:7px}.home-caption p>span{font-size:12px}.home-surfaces{position:absolute;left:64px;right:64px;bottom:63px;display:flex;align-items:center;gap:42px;border-top:1px solid #23574c3a;padding-top:21px}.home-surfaces>div{display:flex;align-items:center;gap:13px;min-width:94px}.home-surfaces>div>span{font-size:10px;color:#728579;font-variant-numeric:tabular-nums}.home-surfaces strong{font-size:14px;font-weight:650}.home-surfaces>p{margin-left:auto;font-size:11px;color:#4a736b}
/* One craft, one screen. The canvas stays unobscured through the entire left stage. */
#garage{position:absolute;inset:100px 0 0}.garage-heading{position:absolute;left:52px;top:32px;max-width:calc(100% - 530px)}.garage-heading .eyebrow{margin-bottom:8px;font-size:9px}.garage-heading h1{font-size:clamp(40px,4.3vw,63px);line-height:1.12;font-weight:780}.garage-heading #craft-subtitle{font-size:15px;line-height:1.5;color:#5c7772;margin-top:12px;letter-spacing:-.2px}.showroom-toolbar{position:absolute;left:54px;bottom:224px;display:flex;align-items:center;gap:18px;color:#597b73}.showroom-toolbar>span{font-size:10px;color:#7e9384}.product-panel{position:absolute;top:26px;bottom:55px;right:40px;width:398px;padding:8px 0 0 25px;border-left:1px solid #446c5030;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c0d2c2 transparent;pointer-events:auto}.product-intro{font-size:13px;line-height:1.65;color:#5d7970;max-width:350px;min-height:42px;margin-bottom:16px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.section-heading h2{font-size:16px;font-weight:750;letter-spacing:-.5px}.section-heading>span{font-size:8px;font-weight:750;color:#749381;letter-spacing:1.2px;white-space:nowrap}.mechanics-row{display:grid;grid-template-columns:22px 1fr;gap:9px;border-bottom:1px solid #54785425;padding:8px 0 5px}.mechanics-number{font-size:9px;color:#85a185;margin-top:3px}.mechanics-row label{display:flex;align-items:center;justify-content:space-between;margin:0;font-size:12px;line-height:1.3}.mechanics-row label strong{font-weight:700}.mechanics-row output{font-size:9px;font-variant-numeric:tabular-nums;color:#658b77}.mechanics-row p{font-size:11px;line-height:1.4;color:#567465;margin-top:3px;min-height:14px}.lights-heading{font-size:12px;line-height:1.3}.lights-heading strong{font-weight:700}.light-switches{display:flex;gap:8px;margin:7px 0 4px}.light-switch{display:inline-flex;align-items:center;gap:7px;padding:6px 12px 6px 9px;border:1px solid #54785440;border-radius:999px;background:#fbfff8;color:#2f5243;font-size:11px;font-weight:700;line-height:1;cursor:pointer;transition:background .15s,border-color .15s,color .15s}.light-switch[hidden]{display:none}.light-switch:hover{border-color:#54785480}.light-switch[aria-pressed="true"]{background:#16303b;border-color:#16303b;color:#fff}.light-switch:focus-visible{outline:2px solid #e6a82a;outline-offset:2px}.light-dot{width:10px;height:10px;border-radius:50%;background:#c9d6cf;box-shadow:inset 0 0 0 1px #0000001a}.light-switch[aria-pressed="true"] .light-dot.display{background:#ffd9a8;box-shadow:0 0 8px 2px #ffc27a}.light-switch[aria-pressed="true"] .light-dot.headlight,.light-switch[aria-pressed="true"] .light-dot.roof{background:#fff3cf;box-shadow:0 0 8px 2px #ffe6a0}.light-switch[aria-pressed="true"] .light-dot.lightbar{background:linear-gradient(90deg,#ff3b30 50%,#2f6bff 50%);box-shadow:0 0 8px 2px #ff6a5c88;animation:lightbar-dot .72s steps(1) infinite}/* Garage lamps on (craft-lights.mjs): the copy sits straight on the darkened 3D view. */#garage,#garage .garage-heading #craft-subtitle,#garage .product-intro,#garage .mechanics-row p,#garage .specs dt,#garage .variant-note,#garage .spec-source,#garage .showroom-toolbar{transition:color .35s ease}body[data-screen="garage"].garage-night #garage{color:#eef5f1}body[data-screen="garage"].garage-night #garage .garage-heading #craft-subtitle,body[data-screen="garage"].garage-night #garage .product-intro,body[data-screen="garage"].garage-night #garage .mechanics-row p,body[data-screen="garage"].garage-night #garage .showroom-toolbar,body[data-screen="garage"].garage-night #garage .skin-row>strong{color:#b3cac4}body[data-screen="garage"].garage-night #garage .eyebrow,body[data-screen="garage"].garage-night #garage .section-heading>span,body[data-screen="garage"].garage-night #garage .mechanics-number,body[data-screen="garage"].garage-night #garage .mechanics-row output,body[data-screen="garage"].garage-night #garage .specs dt,body[data-screen="garage"].garage-night #garage .spec-source,body[data-screen="garage"].garage-night #garage .variant-note{color:#8fb0a7}body[data-screen="garage"].garage-night .product-panel{border-left-color:#ffffff24}body[data-screen="garage"].garage-night .mechanics-row{border-bottom-color:#ffffff1c}body[data-screen="garage"].garage-night #garage .craft-card,body[data-screen="garage"].garage-night #garage .variant-selector button,body[data-screen="garage"].garage-night #garage .store-actions a{color:var(--ink);background-color:#eef4e6f0}body[data-screen="garage"].garage-night #garage .craft-card[aria-pressed="true"]{background-color:#f8f8e7}body[data-screen="garage"].garage-night #garage .craft-card small{color:#6f8269}body[data-screen="garage"].garage-night .light-switch{background:#ffffff14;border-color:#ffffff3a;color:#eef5f1}body[data-screen="garage"].garage-night .light-switch[aria-pressed="true"]{background:#f8f8e7;border-color:#f8f8e7;color:#163c49}@keyframes lightbar-dot{50%{background:linear-gradient(90deg,#2f6bff 50%,#ff3b30 50%);box-shadow:0 0 8px 2px #5c8cff88}}@media(prefers-reduced-motion:reduce){.light-switch[aria-pressed="true"] .light-dot.lightbar{animation:none}}.mechanics-row input[type="range"]{display:block;height:14px;margin:5px 0 0;accent-color:#497e69}.specs{display:grid;grid-template-columns:1.35fr .85fr .9fr;gap:14px;padding:16px 0 0;margin:0}.specs>div+div{border-left:1px solid #54785425;padding-left:14px}.specs dt{font-size:10px;color:#658070;margin-bottom:6px}.specs dd{font-size:16px;letter-spacing:-.7px;font-weight:700;margin:0;white-space:nowrap}.specs dd small{font-size:9px;letter-spacing:0;font-weight:500}.spec-source{font-size:8px;color:#7f927b;margin:9px 0 18px}.purchase-block .section-heading{margin-bottom:10px}.purchase-block .section-heading h2{font-size:12px;letter-spacing:0}.variant-selector{display:grid;grid-template-columns:1fr 1fr;gap:9px}.variant-selector button{display:flex;justify-content:space-between;align-items:center;text-align:left;padding:9px 11px;border-radius:6px;background:#f4f5e98f;border-color:#95aa8655;box-shadow:none}.variant-selector button[aria-pressed="true"]{background:#fff9d8;border:1px solid #b4a458}.variant-selector strong{font-size:11px;letter-spacing:.7px}.variant-selector small{display:block;font-size:9px;font-weight:500;color:#688265;margin-top:3px}.variant-selector b{font-size:17px;font-weight:750;letter-spacing:-.7px}.variant-note{font-size:9px;line-height:1.45;color:#607e68;margin-top:9px;min-height:13px}.test-drive{width:100%;margin-top:13px;min-height:46px;font-size:13px}.store-actions{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;margin-top:10px}.store-actions a{display:flex;align-items:center;justify-content:center;min-height:37px;padding:7px 8px;font-size:11px;font-weight:650;border:1px solid #6b938255;border-radius:5px;background:#eff5e7b3;pointer-events:auto}.store-actions a:hover{background:#fffbe8;border-color:#8b9f74}.store-actions .buy-link{color:#2e6859;border-color:#3e846377;background:#d3e8cda8}.race-setup{position:relative;border-top:1px solid #527b4e30;margin-top:14px;font-size:10px}.race-setup summary{cursor:pointer;padding:11px 0;color:#5d7f65;font-weight:600;list-style:none}.race-setup summary::after{content:"+";float:right;font-size:14px;font-weight:500}.race-setup[open] summary::after{content:"−"}.setup-panel{padding:2px 0 20px}.setup-panel label{display:block;font-size:11px;margin:10px 0 7px}.setup-panel select{width:100%;font-size:11px;padding:9px;color:var(--ink);background:#f4f8ea;border:1px solid #bfd1b4;border-radius:5px}.setup-panel output{float:right;color:#698566}.setup-panel .description{font-size:10px;line-height:1.5;color:var(--muted);margin-top:7px}.track-preview{position:relative;height:105px;margin-top:10px;overflow:hidden;border-radius:6px}.track-preview img{height:100%;width:100%;object-fit:cover}.track-preview span{position:absolute;left:9px;bottom:8px;color:#fff;background:#1e535bc9;padding:4px 8px;border-radius:4px;font-size:10px}input[type="range"]{width:100%;cursor:pointer;accent-color:var(--teal);margin:0}input[type="range"]::-webkit-slider-thumb{cursor:grab}.watch-button{display:block;width:100%;font-size:11px;margin-top:10px;padding:9px;background:#dcebd3}
.fleet-dock{position:absolute;left:52px;right:486px;bottom:55px}.skin-row{display:flex;align-items:center;gap:15px;margin-bottom:25px;min-height:25px}.skin-label{font-size:9px;letter-spacing:1.7px;font-weight:700;color:#738970}.skin-row>strong{font-size:10px;font-weight:600;color:#64836d}.preview-only{font-size:8px;color:#8da18a;margin-left:auto}.skin-row #skin-list{display:flex;gap:11px}.swatch{width:22px;height:22px;padding:0;border:3px solid #f3f6e9;border-radius:50%;outline:1px solid #aabda380;box-shadow:none}.swatch[aria-pressed="true"]{outline:2px solid #1f615c;border-color:#f7f7e9}.swatch:hover{transform:scale(1.1)}.fleet-navigation{display:flex;align-items:center;gap:14px}.fleet-arrow{width:26px;height:30px;padding:0;background:transparent;border:0;border-radius:0;font-weight:400;font-size:20px;color:#719180}.craft-list{display:flex;align-items:stretch;gap:12px;width:100%}.craft-card{flex:1;min-width:0;position:relative;background:#edf4e16b;border:1px solid #96ac8c38;border-radius:6px;padding:10px 9px 11px;text-align:left;box-shadow:none;min-height:91px;overflow:hidden}.craft-card:hover{background:#f3f7e4;border-color:#91aa7e}.craft-card[aria-pressed="true"]{border-color:#7f9e6d;background:#f8f8e7;box-shadow:inset 0 -2px #577b56}.craft-card img{display:block;width:89px;height:49px;object-fit:contain;margin:-8px auto -1px;filter:drop-shadow(0 4px 3px #38513118)}.craft-card strong{display:block;position:relative;font-size:10px;font-weight:700;text-align:center;line-height:1.3;white-space:nowrap}.craft-card small{display:block;font-size:8px;line-height:1.4;white-space:nowrap;text-align:center;color:#81927c;margin-top:3px}.game-disclaimer{position:absolute;bottom:17px;left:48px;right:48px;font-size:9px;color:#577863;line-height:1.5;z-index:3;text-align:center;letter-spacing:.15px}.loading{position:absolute;inset:0;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;background:#eff7e9f2;z-index:20;font-size:12px;letter-spacing:.5px;backdrop-filter:blur(15px)}.loader{width:29px;height:29px;border:2px solid #b6cbae;border-top-color:#508277;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* The race retains its readable, toy-like enamel instruments. */
body.driving .topbar{background:linear-gradient(#214f6099,transparent);border:0;backdrop-filter:none}body.driving .brand,body.driving .brand small{color:#fff}body.driving .brand-mark{border-color:#fff}body.driving .nav-link{color:#fff}body.driving .quiet{background:#f5fcebdf;color:#23565c;border-color:#fff8}body.driving .nav-divider{background:#fff5}body.driving .game-disclaimer{color:#edfff5a1;bottom:5px;font-size:8px;text-shadow:0 1px 4px #174367}.race-top{position:absolute;left:26px;right:26px;top:108px;display:flex;gap:18px;align-items:start;color:#fff}.position{padding:10px 19px;background:linear-gradient(135deg,#ffe577,#efc24b);border:3px solid #fff6d2;border-radius:18px;box-shadow:0 5px 0 #a763264d;color:#493b1e;transform:skew(-5deg)}.position>span{font-size:10px;letter-spacing:1px;font-weight:800;display:block;color:#806226}.position strong{font-size:54px;font-style:italic;line-height:1.1;font-weight:900}.position small{font-size:22px;font-weight:750;margin-left:8px}.timing{display:flex;flex-direction:column;gap:4px;padding:12px 18px;background:#173f65db;border:2px solid #a6e8ff99;border-radius:17px;box-shadow:0 5px 0 #163a5766}.timing>span{font-size:13px;font-weight:750}.timing strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:1.5px}.timing small{color:#d5f6ff;font-size:10px}#pause{margin-left:auto}#minimap{position:absolute;top:181px;right:16px;width:184px;height:184px;filter:drop-shadow(0 3px 5px #0a2a3659)}#countdown{position:absolute;top:30%;left:0;right:0;text-align:center;font-size:118px;font-weight:950;font-style:italic;text-shadow:4px 5px 0 #174970,-3px -3px 0 #fff,3px -3px 0 #fff,-3px 3px 0 #fff;color:#ffdc54}#lift-status{position:absolute;top:calc(30% + 140px);left:0;right:0;text-align:center;color:#fff;font-size:18px;font-weight:600;text-shadow:0 2px 4px #1b4f70}#race-message{position:absolute;top:25%;left:20%;right:20%;text-align:center;color:#fff7cb;font-size:21px;font-weight:850;letter-spacing:.4px;text-shadow:0 3px 0 #144367}.race-bottom{position:absolute;bottom:27px;left:32px;right:32px;display:flex;justify-content:space-between;align-items:end;color:#fff;text-shadow:0 2px 5px #154367}.surface-label{background:#17476bcc;padding:12px 17px;border:2px solid #dbfaff88;border-radius:17px}.surface-label span{display:block;font-size:20px;font-weight:650}.surface-label small{display:block;color:#fff;font-size:12px;margin-top:7px}.speed{text-align:right;min-width:170px;padding:13px 20px;background:#163d61de;border:2px solid #b2e8ffb3;border-radius:20px}.speed strong{display:block;font-size:58px;letter-spacing:-3px;font-weight:650;line-height:1;color:#fff}.speed>span{display:block;font-size:12px;color:#d2e9f5;margin:5px 0 11px}.throttle-meter{height:7px;background:#ffffff40;border-radius:3px;overflow:hidden}.throttle-meter i{height:100%;display:block;width:0;background:#ffda4c}.rescue-button{position:absolute;bottom:126px;left:32px;font-size:11px;background:#f0fbffdf;color:#245372;border:2px solid white;border-radius:11px;padding:9px 13px}.item-slot{position:absolute;left:26px;bottom:180px;display:grid;grid-template-columns:74px 1fr;grid-template-rows:1fr 1fr;align-items:center;gap:0 12px;padding:10px 16px 10px 6px;min-width:230px;border:4px solid #fff;border-radius:25px;background:linear-gradient(145deg,#f5fcff,#c3e7ff);color:#16445c;box-shadow:0 6px 0 #37729677,0 0 25px color-mix(in srgb,var(--item-color),transparent 65%);text-align:left}.item-slot img{width:82px;height:82px;object-fit:contain;grid-row:1/3;filter:drop-shadow(0 5px 3px #184f7c44)}.item-slot strong{grid-row:1/3;font-size:40px;text-align:center;color:var(--item-color,#a2c9d5)}.item-slot span{font-size:16px;font-weight:700}.item-slot small{font-size:12px;color:#36708a}.item-slot:disabled{cursor:default;opacity:.75}.item-slot:not(:disabled){animation:item-ready 2s ease-in-out infinite}.item-slot.roulette img{animation:spin .22s linear infinite}.item-slot.pressed{background:#9cc7df}@keyframes item-ready{50%{transform:translateY(-4px);box-shadow:0 10px 0 #37729644,0 0 32px var(--item-color)}}#drift-status{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);width:212px;text-align:center;color:white;background:#163f68dc;border:2px solid #bfedff;border-radius:15px;padding:12px 12px 17px;font-size:13px;font-weight:700;overflow:hidden}#drift-fill{position:absolute;left:0;bottom:0;height:7px;background:linear-gradient(90deg,#4fe9ff,#b28cff,#ffd46b)}.boosting #drift-status{border-color:#ffdd5d}.boosting #view{filter:saturate(1.15)}#race-flash{position:absolute;inset:0;pointer-events:none;opacity:0;box-shadow:inset 0 0 110px var(--flash-color,#ffda53)}#race-flash.flash{animation:raceflash .55s ease-out}@keyframes raceflash{0%{opacity:.8}100%{opacity:0}}
.overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#143b4890;backdrop-filter:blur(13px);z-index:10;pointer-events:auto;padding:24px}.dialog{width:min(510px,100%);background:var(--paper);border:1px solid #fff9;border-radius:18px;padding:36px;box-shadow:0 25px 85px #092b4140}.dialog h2{font-size:35px;font-weight:750;margin-bottom:15px;line-height:1.15}.dialog p{font-size:13px;line-height:1.7;color:var(--muted)}.dialog .eyebrow{font-size:10px;color:var(--teal);margin-bottom:14px}.dialog-actions{display:flex;gap:12px;margin-top:24px}.dialog-actions button{flex:1;font-size:12px;min-height:45px}.dialog button:not(.primary){background:#e7eee0;border-color:#cbd8c1}.results-dialog{width:min(900px,100%);display:grid;grid-template-columns:1.2fr 1fr;gap:38px;padding:38px;max-height:calc(100svh - 48px);overflow-y:auto}.results-score{min-width:0}#result-ranking{padding:0;list-style:none;margin:20px 0 0}#result-ranking li{display:flex;justify-content:space-between;gap:10px;padding:11px 0;font-size:11px;border-bottom:1px solid #c4d5c6}#result-ranking li.player{color:#214f47;font-weight:750;background:#f4e39e;margin:0 -9px;padding:12px 9px;border-radius:5px;border:0}.result-product{display:flex;flex-direction:column;padding:25px 24px 23px;border-radius:10px;background:#e3edda;min-width:0}.result-product .eyebrow{font-size:8px;letter-spacing:1.8px}.result-product h3{font-size:29px;line-height:1.15;font-weight:750;margin-bottom:10px}.result-product>p:not(.eyebrow){font-size:11px;line-height:1.6}.result-variant-label{font-size:11px;font-weight:700;margin-top:15px;color:#54725c}.result-product-art{display:flex;align-items:center;justify-content:center;flex:1;min-height:148px;margin:0 -20px}.result-product-art img{width:100%;height:190px;object-fit:contain;filter:drop-shadow(0 12px 8px #32503820)}.result-product>a{width:100%;min-height:40px;font-size:11px;padding:9px 14px;margin-top:10px}.result-product>a.secondary{background:#f1f5e5;border-color:#afc3a4}dialog{color:var(--ink);background:var(--paper);border:1px solid #fff9;border-radius:18px;max-width:630px;padding:33px;line-height:1.8;max-height:85svh;box-shadow:0 25px 80px #163e4e3d}dialog::backdrop{background:#10354099;backdrop-filter:blur(8px)}dialog h2{font-size:29px;margin-bottom:14px}dialog p{font-size:12px;color:var(--muted)}dialog dl{display:grid;grid-template-columns:123px 1fr;font-size:11px;line-height:2}dialog dt{color:#31715d;font-weight:650}dialog dd{margin:0}.close{float:right;background:transparent;border:0;font-size:25px;line-height:1;padding:0 0 15px 20px}.item-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:18px 0}.item-guide article{display:flex;align-items:center;background:#e3edda;border-radius:7px;padding:4px;font-size:11px}.item-guide img{width:48px;height:48px}.item-guide strong{display:block;font-size:11px}.item-guide span{display:block;color:#617b66;font-size:9px;line-height:1.5}#touch-controls{display:none;position:absolute;inset:auto 22px 150px;justify-content:space-between}#touch-controls>div{display:flex;gap:12px}#touch-controls button{touch-action:none;width:62px;height:62px;border-radius:50%;background:#effbffe0;color:#164264;border:3px solid white;font-size:12px;box-shadow:0 4px 0 #326e9177;user-select:none;-webkit-user-select:none;padding:0}#touch-controls button.pressed{background:var(--yellow);color:#14212a}
@media(min-width:1600px){.product-panel{right:55px;width:430px;padding-left:31px}.fleet-dock{right:550px}.garage-heading{max-width:calc(100% - 595px)}}
@media(max-height:800px) and (min-width:901px){.topbar{height:80px}#garage,#home{top:80px}.garage-heading{top:25px}.garage-heading h1{font-size:46px}.garage-heading #craft-subtitle{font-size:12px;margin-top:8px}.product-panel{top:18px;bottom:40px;padding-top:0}.product-intro{font-size:11px;min-height:32px;margin-bottom:9px}.section-heading{margin-bottom:6px}.section-heading h2{font-size:14px}.mechanics-row{padding:6px 0 4px}.mechanics-row p{font-size:9px}.mechanics-row input[type="range"]{height:11px;margin-top:3px}.specs{padding-top:11px}.spec-source{margin:6px 0 11px}.variant-selector button{padding-block:7px}.variant-note{font-size:8px;margin-top:6px}.test-drive{margin-top:9px;min-height:40px}.store-actions{margin-top:8px}.store-actions a{min-height:33px}.race-setup{margin-top:8px}.race-setup summary{padding:8px 0}.fleet-dock{bottom:44px}.skin-row{margin-bottom:18px}.showroom-toolbar{bottom:201px}.home-copy{top:12%;width:475px}.home-copy h1{font-size:65px}.home-copy .eyebrow{margin-bottom:20px}.home-description{margin-top:20px;font-size:15px}.home-actions{margin-top:24px}.home-surfaces{bottom:47px}.home-caption{bottom:150px}.game-disclaimer{bottom:12px}.race-top{top:87px}}
@media(max-width:1200px) and (min-width:901px){.topbar{padding-inline:32px}.product-panel{right:27px;width:345px;padding-left:21px}.garage-heading{left:36px;max-width:calc(100% - 430px)}.garage-heading h1{font-size:45px}.fleet-dock{left:32px;right:412px}.showroom-toolbar{left:38px}.craft-list{gap:7px}.fleet-navigation{gap:6px}.craft-card{padding-inline:4px}.craft-card strong{font-size:9px}.craft-card small{font-size:7px}.skin-row{gap:10px}.skin-row #skin-list{gap:8px}.preview-only{display:none}.home-copy{left:45px;width:445px}.home-copy h1{font-size:65px}.home-surfaces{left:45px;right:45px}.home-caption{right:40px}.specs dd{font-size:13px}.specs{gap:10px}.specs>div+div{padding-left:10px}}
@media(max-width:900px){body{overflow:auto}#shell{height:auto;min-height:100svh}#view{height:70svh}.topbar{height:80px;padding:0 22px}.brand{font-size:11px;gap:8px;letter-spacing:1.5px}.brand small{font-size:6px;letter-spacing:1.3px}.brand-mark{font-size:21px}.top-actions{gap:12px}.nav-link{font-size:11px}.quiet{font-size:10px;padding:7px 8px}.nav-divider{display:none}.icon-button{width:27px;height:27px;padding:0}.language{padding:5px 0}#home{position:relative;inset:auto;min-height:100svh;padding-top:80px}#home::before{background:linear-gradient(90deg,#f3f7eefa,#e9f3eabb 46%,#e9f3e000 85%)}.home-copy{left:35px;top:19%;width:430px}.home-copy h1{font-size:65px}.home-copy .eyebrow{font-size:8px}.home-description{font-size:14px;max-width:280px}.home-actions{gap:10px}.home-actions button{font-size:12px;min-width:145px;padding-inline:15px}.home-surfaces{left:35px;right:35px;gap:25px;bottom:60px}.home-surfaces>div{min-width:65px}.home-surfaces>p{display:none}.home-caption{right:28px;bottom:143px}.home-caption p>span{font-size:10px}#garage{position:relative;inset:auto;padding-top:80px;min-height:1500px}.garage-heading{position:absolute;left:28px;top:110px;max-width:90%}.garage-heading h1{font-size:44px}.garage-heading #craft-subtitle{font-size:12px;margin-top:8px}.showroom-toolbar{position:absolute;left:28px;top:calc(60svh - 8px);bottom:auto}.fleet-dock{position:relative;left:auto;right:auto;bottom:auto;margin:calc(60svh - 40px) 24px 0;padding-bottom:25px}.skin-row{margin-bottom:20px}.fleet-navigation{gap:7px}.craft-card{min-height:95px}.product-panel{position:relative;inset:auto;width:auto;max-height:none;margin:0 24px 65px;padding:28px 20px 18px;border-left:0;border-top:1px solid #52784f38;overflow:visible;background:#f2f6e8ed;border-radius:10px}.product-intro{max-width:none;font-size:14px}.section-heading h2{font-size:18px}.mechanics-row{grid-template-columns:24px 1fr;padding:13px 0 9px}.mechanics-row label{font-size:13px}.mechanics-row p{font-size:11px}.mechanics-row input[type="range"]{margin-top:10px;height:16px}.specs{padding-top:20px}.specs dt{font-size:11px}.specs dd{font-size:18px}.spec-source{font-size:10px;margin-block:12px 22px}.purchase-block .section-heading h2{font-size:14px}.variant-selector button{padding:12px 15px}.variant-selector strong{font-size:14px}.variant-selector small{font-size:10px}.variant-selector b{font-size:20px}.test-drive{min-height:49px;font-size:14px}.store-actions a{min-height:43px;font-size:12px}.race-setup summary{font-size:12px;padding:14px 0}.game-disclaimer{position:relative;inset:auto;padding:0 30px 20px;font-size:9px}body:has(#home:not(.hidden)) .game-disclaimer{position:absolute;bottom:11px;left:0;right:0;padding-bottom:0}body:has(#home:not(.hidden)) #view{height:100svh}body.driving{overflow:hidden}body.driving #view{height:100svh}body.driving #shell{height:100svh}body.driving .game-disclaimer{position:absolute;padding:0 15px;left:0;right:0;bottom:4px}#hud{height:100svh}.overlay{position:fixed}.results-dialog{gap:25px;padding:25px}.result-product{padding:20px 18px}.dialog h2{font-size:28px}.result-product h3{font-size:24px}}
@media(max-width:600px){.topbar{height:72px;padding-inline:16px}.brand{font-size:10px}.brand small{font-size:5px}.brand-mark{font-size:20px}.top-actions{gap:10px}#garage-link{font-size:10px;padding:5px 0}#sound{font-size:9px;max-width:64px;padding:6px}#help-open{display:none}.home-copy{left:25px;top:17%;width:calc(100% - 45px)}.home-copy h1{font-size:clamp(49px,12vw,66px);max-width:380px}.home-copy .eyebrow{margin-bottom:20px;letter-spacing:1.5px}.home-description{font-size:13px;margin-top:20px;max-width:250px}.home-actions{margin-top:25px}.home-actions button{min-width:134px;min-height:47px}.home-hint{font-size:10px}.home-caption{bottom:150px;right:23px}.home-surfaces{left:25px;right:25px;gap:25px;bottom:63px}.home-surfaces strong{font-size:12px}.home-surfaces>div{gap:8px;min-width:58px}.garage-heading{top:100px;left:23px}.garage-heading h1{font-size:35px}.garage-heading .eyebrow{font-size:8px;letter-spacing:1.7px}.garage-heading #craft-subtitle{font-size:11px;max-width:285px}.showroom-toolbar{left:23px;gap:15px}.showroom-toolbar>span{font-size:8px}.showroom-toolbar>.text-button{font-size:9px}.fleet-dock{margin-inline:15px}.skin-row{gap:10px}.skin-label{font-size:8px;letter-spacing:1px}.skin-row #skin-list{gap:8px}.skin-row>strong{font-size:9px}.preview-only{display:none}.swatch{width:21px;height:21px}.fleet-navigation{gap:5px}.fleet-arrow{width:15px;font-size:17px;flex-shrink:0}.craft-list{gap:6px}.craft-card{padding:7px 2px;min-height:89px}.craft-card img{width:74px;height:45px;margin-top:-4px}.craft-card strong{font-size:8px;white-space:normal;line-height:1.25;min-height:20px}.craft-card small{font-size:6px;letter-spacing:-.1px}.product-panel{margin-inline:15px;padding:24px 18px}.specs dd{font-size:14px}.specs dt{font-size:9px}.specs{gap:10px}.specs>div+div{padding-left:10px}.race-top{top:85px;left:14px;right:14px;gap:9px}.position{padding:8px 12px}.position strong{font-size:37px}.position small{font-size:17px}.position>span{font-size:9px}.timing{padding:9px 12px}.timing strong{font-size:19px}.timing small{max-width:130px;font-size:9px}.timing>span{font-size:11px}#minimap{width:120px;height:120px;right:10px;top:176px}.item-slot{top:195px;left:14px;bottom:auto;min-width:170px;grid-template-columns:53px 1fr;border-radius:19px;padding:6px;gap:0 8px}.item-slot img{width:57px;height:63px}.item-slot span{font-size:12px}.item-slot small{font-size:10px}.race-bottom{left:14px;right:14px;bottom:21px}.speed{min-width:122px;padding:10px 12px}.speed strong{font-size:40px}.surface-label{padding:10px}.surface-label span{font-size:17px}.surface-label small{font-size:10px}#drift-status{bottom:122px;width:170px;font-size:11px}#touch-controls{bottom:178px;left:14px;right:14px}#touch-controls button{width:48px;height:53px;font-size:10px}#touch-controls>div{gap:8px}.rescue-button{bottom:112px;left:14px;font-size:10px}#race-message{top:39%;left:10%;right:10%;font-size:17px}#countdown{top:30%;font-size:95px}#lift-status{top:calc(30% + 110px);font-size:14px}.overlay{padding:16px}.dialog{padding:25px}.dialog h2{font-size:27px}.dialog-actions{flex-wrap:wrap;gap:8px}.dialog-actions button{font-size:11px;padding-inline:10px}.results-dialog{grid-template-columns:1fr;gap:26px;max-width:410px}.result-product-art img{height:150px}.result-product-art{min-height:100px}.result-product h3{font-size:27px}#result-ranking li{font-size:10px;padding-block:9px}dialog{padding:25px 23px;max-width:calc(100% - 30px)}dialog h2{font-size:25px}dialog dl{grid-template-columns:105px 1fr;font-size:10px}.item-guide{grid-template-columns:1fr}}
@media(pointer:coarse){#touch-controls{display:flex}}
@media(prefers-reduced-motion:reduce){button,a{transition:none}.loader,.item-slot:not(:disabled),.item-slot.roulette img,#race-flash.flash{animation:none}.boosting #view{filter:none}}

/* Hover School overlays are UI-only; the bay, boat geometry and race simulation stay unchanged. */
body:has(#home:not(.hidden)) .topbar{background:#f3f7ee;backdrop-filter:none;border-bottom-color:transparent}
#home::before{background:linear-gradient(180deg,#f3f7ee 0,#f3f7ee70 47px,#f3f7ee00 150px),linear-gradient(90deg,#f3f7eefa 0%,#edf4e8ee 26%,#e8f2e677 43%,#e9f4e100 62%)}
.school-entry{display:inline-block;margin-top:23px;font-size:12px;font-weight:700;color:#28645c;letter-spacing:.1px}.help-school{margin-top:20px;font-size:12px;min-height:42px}.school-overlay{z-index:16;background:#143b486b;backdrop-filter:blur(8px)}.school-invite-dialog{width:min(550px,100%);padding:40px}.school-invite-dialog h2{font-size:42px;margin-bottom:10px}.school-invite-dialog .school-invite-lead{font-size:20px;line-height:1.4;font-weight:650;color:#285c59;margin-bottom:15px;letter-spacing:-.4px}.school-invite-mark{display:flex;align-items:center;gap:10px;margin:21px 0 28px}.school-invite-mark span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #95bbb0;background:#e9f3e3;border-radius:50%;font-size:11px;font-weight:700}.school-invite-mark span:first-child{background:#f3d555;border-color:#ceae40}.school-invite-mark i{display:block;width:25px;height:1px;background:#afc5b2}
.school-panel{position:absolute;top:122px;left:28px;width:390px;z-index:8;padding:22px 24px 19px;background:#fffef5f7;border:1px solid #fff;border-radius:16px;box-shadow:0 10px 35px #123f591c;pointer-events:none}.school-panel-top{display:flex;align-items:center;gap:10px;margin-bottom:20px}.school-panel-top>.eyebrow{margin:0;font-size:9px;letter-spacing:1.4px}.school-panel-top>#school-progress{font-size:8px;font-weight:750;letter-spacing:.6px;color:#749180;margin-left:auto;white-space:nowrap}.school-panel-top button{font-size:9px;padding:5px 7px;border-color:#bdd2bc}.school-panel h2{font-size:34px;font-weight:780;line-height:1.08;margin-bottom:12px;letter-spacing:-1.4px}.school-description{font-size:19px;font-weight:650;line-height:1.4;color:#214d55;letter-spacing:-.4px}.school-detail{font-size:11px;line-height:1.6;color:#617c73;margin-top:12px}.school-detail:empty{display:none}.school-command{padding:16px 0 15px;margin-top:16px;border-top:1px solid #d5e1d0;border-bottom:1px solid #d5e1d0}.school-keys{display:flex;align-items:center;gap:7px;min-height:38px;margin-bottom:11px;color:#59746a;font-size:10px;letter-spacing:1px;font-weight:700}.school-keys kbd{display:inline-grid;place-items:center;min-width:37px;height:36px;border:1px solid #b1c6b2;border-bottom-width:3px;border-radius:7px;background:#eef4e6;font-family:inherit;font-size:15px;font-weight:750;letter-spacing:0;color:#315c54}.school-keys kbd.active,.school-keys kbd.pressed{background:#f9dc69;border-color:#b69b41;animation:school-key 1.25s ease-in-out infinite}.school-keys kbd.released{background:transparent;opacity:.65;border-style:dashed;animation:school-release 1.5s ease-in-out infinite}.school-keys:empty{display:none}#school-hint{font-size:12px;line-height:1.65;color:#446d65;min-height:39px}.school-slip{display:inline-block;margin-top:12px;padding:5px 9px;border-radius:5px;background:#deeff0;color:#22636a;font-size:11px;font-variant-numeric:tabular-nums}.school-panel[data-state=paused] #school-hint{padding:9px 12px;border-radius:8px;background:#ffe9a8;color:#5a4300;font-weight:750}.school-panel[data-state=paused] #school-pause{font-size:11px;padding:7px 11px;background:#ffd84d;border-color:#e2b500;color:#3b2d00;font-weight:800}.school-feedback{margin-top:14px;padding:12px 14px;border-left:3px solid #429873;border-radius:0 7px 7px 0;background:#e6f2dc;color:#397347;font-size:12px;line-height:1.5;font-weight:650}.school-panel-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-top:17px}.school-panel-actions .text-button{font-size:9px;color:#668374;min-height:22px}.school-panel-actions .primary{width:100%;min-height:40px;font-size:12px;margin-top:1px}body:has(#school-panel:not(.hidden)) .race-top,body:has(#school-panel:not(.hidden)) #countdown,body:has(#school-panel:not(.hidden)) #lift-status,body:has(#school-panel:not(.hidden)) #race-message,body:has(#school-panel:not(.hidden)) #drift-status,body:has(#school-panel:not(.hidden)) #rescue{display:none}body:has(#school-panel:not(.hidden)) #minimap{top:122px;width:133px;height:133px}
.school-complete-dialog{width:min(570px,100%);text-align:center;padding:36px 42px;max-height:calc(100svh - 48px);overflow:auto}.school-complete-dialog h2{font-size:40px;line-height:1.05;max-width:420px;margin:22px auto 16px}.school-complete-dialog>.eyebrow{font-size:9px}.school-unlock-badge{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;margin:23px auto 15px;width:126px;height:126px;background:linear-gradient(150deg,#ffe994,#eaca47);border:5px solid #fff3b8;outline:1px solid #d6bc53;border-radius:50%;box-shadow:0 8px 0 #ad863c18;transform:rotate(-5deg);color:#6d641e}.school-unlock-badge b{font-size:42px;line-height:1.1;font-weight:550;color:#47685a}.school-unlock-badge>span{font-size:8px;letter-spacing:1.2px;font-weight:800;margin-top:6px}.school-unlock-badge i{width:42px;height:7px;border-top:1px solid #a39a4a;border-bottom:1px solid #a39a4a;border-radius:50%;margin-top:8px}.school-unlock-card{padding:17px 16px;margin-top:24px;border:1px solid #e1d8a2;border-radius:9px;background:#fff7d7}.school-unlock-card strong{font-size:13px;color:#4e664d}.school-unlock-card p{font-size:11px;line-height:1.5;margin-top:6px}.school-store{display:inline-block;margin-top:22px;font-size:12px;text-decoration:underline;text-underline-offset:4px;color:#467460}.swatch[aria-disabled="true"]{position:relative;filter:saturate(.65)}.swatch[aria-disabled="true"]::after{content:"";position:absolute;inset:3px 4px 2px;background:#53684f;border-radius:2px}.swatch[aria-disabled="true"]::before{content:"";position:absolute;top:0;left:5px;width:5px;height:7px;border:1px solid #53684f;border-radius:4px;z-index:1}
.first-race-controls{position:absolute;left:50%;bottom:26px;transform:translateX(-50%);z-index:7;min-width:530px;padding:12px 19px 10px;background:#f7fbe9ee;border:1px solid #fff;border-radius:10px;box-shadow:0 4px 16px #19466c24;text-align:center;color:#285d5b;transition:opacity .65s,transform .65s}.first-race-controls>span{font-size:11px;font-weight:650;word-spacing:2px}.first-race-controls>small{display:block;margin-top:5px;font-size:9px;color:#6b8976;word-spacing:1px}.first-race-controls.fading{opacity:0;transform:translate(-50%,8px);pointer-events:none}body:has(#first-race-controls:not(.hidden)) #drift-status{bottom:109px}
@keyframes school-key{0%,100%{transform:translateY(0);box-shadow:0 0 0 0 #ebce6055}50%{transform:translateY(2px);box-shadow:0 0 0 5px #ebce6000}}@keyframes school-release{0%,100%{transform:translateY(-2px)}50%{transform:translateY(1px)}}
@media(max-height:800px) and (min-width:901px){.school-panel{top:96px;width:360px;padding:18px 21px}.school-panel h2{font-size:29px}.school-description{font-size:17px}.school-panel-top{margin-bottom:15px}.school-command{padding-block:12px;margin-top:12px}.school-panel-actions{margin-top:12px}.school-complete-dialog{padding-block:25px}.school-unlock-badge{width:96px;height:96px;margin-block:17px}.school-unlock-badge b{font-size:31px}.school-complete-dialog h2{font-size:34px;margin-block:15px}.school-unlock-card{margin-top:15px;padding:12px}.school-store{margin-top:17px}body:has(#school-panel:not(.hidden)) #minimap{top:96px}}
/* Below ~1460 px the screen-centred reminder slid under the NITRO panel (204–424 px): centre it in the gap to the speed panel instead. */
@media(max-width:1459px) and (min-width:901px){.first-race-controls{left:calc(50% + 112px);min-width:0;max-width:calc(100% - 688px)}}
@media(max-width:900px){.school-panel{top:100px;left:20px;width:min(365px,calc(100% - 40px))}.first-race-controls{min-width:0;width:calc(100% - 290px);bottom:25px;padding:10px}.first-race-controls>span{font-size:10px}.first-race-controls>small{font-size:8px}.school-entry{margin-top:20px}.school-complete-dialog{padding:30px}.school-invite-dialog h2{font-size:35px}}
@media(max-width:600px){.school-panel{top:89px;left:14px;width:calc(100% - 28px);padding:17px 19px}.school-panel h2{font-size:27px}.school-description{font-size:16px}.school-panel-top{margin-bottom:13px}.school-command{padding-block:12px;margin-top:12px}.school-panel-top>#school-progress{font-size:7px}.school-panel-actions{margin-top:12px}.school-panel-actions .text-button{font-size:9px}.school-detail{font-size:10px}.school-complete-dialog h2{font-size:32px}.school-complete-dialog{padding:25px}.school-invite-dialog{padding:28px}.school-invite-dialog .school-invite-lead{font-size:18px}.first-race-controls{bottom:110px;width:calc(100% - 28px);padding:8px 10px}.first-race-controls>span{font-size:9px;word-spacing:0}.first-race-controls>small{display:none}body:has(#school-panel:not(.hidden)) #minimap{display:none}body:has(#first-race-controls:not(.hidden)) #drift-status{bottom:150px}body:has(#first-race-controls:not(.hidden)) .rescue-button{bottom:185px}}
@media(prefers-reduced-motion:reduce){.school-keys kbd.active,.school-keys kbd.pressed,.school-keys kbd.released{animation:none}.first-race-controls{transition:none}}
/* Teaching uses world-space gates instead of the race-only minimap. */
body.schooling #minimap{display:none}
/* M4 delivery: real render replaces the still; neither blocks the DOM-first shell. */
#home-hero{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:1;transition:opacity .45s ease}
#view{opacity:0;transition:opacity .45s ease}body.scene-ready #view{opacity:1}body.scene-ready #home-hero{opacity:0}
.loading-brand{font-size:17px;font-weight:850;letter-spacing:2px;color:var(--ink)}.loading-brand>span{color:var(--teal);padding:0 9px 0 2px}
#loading-progress{display:block;width:min(300px,65vw);height:5px;border:0;border-radius:4px;overflow:hidden;appearance:none;background:#cfdecb;accent-color:#34776a}
#loading-progress::-webkit-progress-bar{background:#cfdecb;border-radius:4px}#loading-progress::-webkit-progress-value{background:#34776a;border-radius:4px}#loading-progress::-moz-progress-bar{background:#34776a;border-radius:4px}
#loading-bytes{font-size:10px;font-variant-numeric:tabular-nums;letter-spacing:.6px;color:#567765}
/* Keep scenery behind navigation in both race and school; pair the opaque bar with dark text. */
body.driving .topbar{background:#f3f7ee;backdrop-filter:none}
@media(prefers-reduced-motion:reduce){#home-hero,#view{transition:none}}
body.driving .brand,body.driving .nav-link{color:var(--ink)}
body.driving .brand small{color:var(--muted)}
body.driving .brand-mark{border-color:var(--ink)}
body.driving .nav-divider{background:#244c4330}
.checkpoint-arrow{position:absolute;right:45px;top:365px;display:grid;place-items:center;min-width:116px;padding:10px 14px;color:#173f50;background:#fff4cfeF;border:2px solid #fff;border-radius:18px;box-shadow:0 3px 12px #133b4f22;text-align:center}.checkpoint-arrow>span{display:block;font-size:42px;line-height:1;transform-origin:center}.checkpoint-arrow>small{font-size:11px;font-weight:750;margin-top:7px;max-width:130px}
.nitro-status{position:absolute;left:204px;bottom:30px;width:220px;padding:10px 13px 9px;background:#173f62ed;color:#fff;border:2px solid #dff8ff;border-radius:16px;box-shadow:0 4px 0 #1c5b7155}.nitro-status header{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:1.5px}.nitro-status kbd{padding:3px 7px;border:1px solid #e9fbff88;border-radius:5px;font:700 10px system-ui;letter-spacing:0}.nitro-gauge{height:8px;border-radius:5px;background:#0b293f;margin:8px 0 5px;overflow:hidden}.nitro-gauge i{display:block;height:100%;width:0;background:linear-gradient(90deg,#40bfd8,#e0fcff);border-radius:5px}.nitro-status small{font-size:9px;letter-spacing:.2px}.nitro-status.ready{border-color:#aff6ff;box-shadow:0 0 19px #71e7ff66}.nitro-status.active{background:#21698ef2;box-shadow:0 0 25px #a5f8ff88}.nitro-active #hud:after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 45px #70dfff44}body.schooling #nitro-status{display:none}@media(max-width:700px){.nitro-status{left:14px;bottom:215px;width:170px}.checkpoint-arrow{top:300px;right:16px}}
/* M11 workbench: the showroom copy sits over a busy RC bench, so its panels get a soft backdrop. */
@media(min-width:901px){body[data-screen="garage"] .product-panel{background:#f9f6eee0;-webkit-backdrop-filter:blur(14px) saturate(1.05);backdrop-filter:blur(14px) saturate(1.05);border:1px solid #ffffffb0;border-radius:14px;padding:14px 18px 10px 24px;box-shadow:0 12px 32px #3d2c1626;transition:background-color .35s ease}body[data-screen="garage"] .fleet-dock{background:#f9f6eed4;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #ffffffa0;border-radius:14px;padding:12px 16px 10px;margin-left:-16px;box-shadow:0 10px 28px #3d2c1620;transition:background-color .35s ease}body[data-screen="garage"] .showroom-toolbar{background:#f9f6eed4;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:999px;padding:7px 15px;margin-left:-15px}body[data-screen="garage"] .garage-heading{background:#f9f6eed4;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #ffffffa0;border-radius:14px;padding:12px 20px 14px 18px;margin:-12px 0 0 -18px;box-shadow:0 10px 28px #3d2c161a;transition:background-color .35s ease}body[data-screen="garage"].garage-night .product-panel,body[data-screen="garage"].garage-night .fleet-dock,body[data-screen="garage"].garage-night .showroom-toolbar{background:#0f1f26c4;border-color:#ffffff1f}body[data-screen="garage"].garage-night .garage-heading{background:#0f1f26c4;border-color:#ffffff1f}}
/* M11 hotspots: numbered dots on the craft's working parts (hotspots.mjs). */
.hotspots{position:absolute;inset:0;pointer-events:none;z-index:3}.hotspot{position:absolute;left:0;top:0;display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin:-15px 0 0 -15px;padding:0;border-radius:50%;border:2px solid #fffdf5;background:#16303bde;color:#fffdf5;font-size:10px;font-weight:800;letter-spacing:.3px;box-shadow:0 0 0 5px #16303b24,0 4px 12px #0b1a2059;cursor:pointer;transition:opacity .25s ease,background-color .15s ease,box-shadow .15s ease}.hotspot::before{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid #fffdf5b0;animation:hotspot-pulse 2.4s ease-out infinite;pointer-events:none}#shell .hotspot.away{opacity:0;pointer-events:none}.hotspot:hover,.hotspot:focus-visible{background:#e6a82a;color:#16303b;outline:none;box-shadow:0 0 0 6px #e6a82a55,0 4px 12px #0b1a2059}.hotspot-label{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);white-space:nowrap;padding:5px 9px;border-radius:7px;background:#fffdf5f2;color:#16303b;font-size:11px;font-weight:750;letter-spacing:0;box-shadow:0 4px 12px #0b1a2033;opacity:0;transition:opacity .15s ease;pointer-events:none}.hotspot:hover .hotspot-label,.hotspot:focus-visible .hotspot-label{opacity:1}@keyframes hotspot-pulse{0%{transform:scale(.8);opacity:.9}70%,100%{transform:scale(1.35);opacity:0}}@media(prefers-reduced-motion:reduce){.hotspot::before{animation:none;opacity:.45}}.mechanics-row.spotlit{background:linear-gradient(90deg,#e6a82a2e,transparent 85%);border-radius:6px}.hotspot-hint::before{content:"·";margin-right:6px}
/* M11 spec card (product-specs.mjs). */
.spec-card{border-top:1px solid #527b4e30;margin-top:14px;font-size:10px}.spec-card summary{cursor:pointer;padding:11px 0;color:#2f5a4c;font-weight:700;list-style:none;font-size:11px}.spec-card summary::-webkit-details-marker{display:none}.spec-card summary::after{content:"+";float:right;font-size:14px;font-weight:500}.spec-card[open] summary::after{content:"−"}.spec-body{padding:0 0 12px}.spec-list{display:grid;gap:0;margin:0 0 12px}.spec-list>div{display:grid;grid-template-columns:118px 1fr;gap:10px;padding:6px 0;border-bottom:1px solid #54785420}.spec-list dt{color:#658070;font-size:10px}.spec-list dd{margin:0;font-size:11px;font-weight:650;color:#23443c}.box-lists{display:grid;grid-template-columns:1fr 1fr;gap:14px}.box-lists h3{font-size:10px;letter-spacing:.8px;text-transform:uppercase;color:#4c7a67;margin:0 0 6px}.box-lists ul{margin:0;padding:0;list-style:none;display:grid;gap:5px}.box-lists li{position:relative;padding-left:16px;font-size:10.5px;line-height:1.35;color:#2f4b43}.box-lists li::before{content:"✓";position:absolute;left:0;top:0;color:#3f8a64;font-weight:800}.box-lists>div+div li::before{content:"+";color:#b07b1c}.spec-card .spec-source{margin:12px 0 0}body[data-screen="garage"].garage-night .spec-card summary,body[data-screen="garage"].garage-night .spec-list dd,body[data-screen="garage"].garage-night .box-lists li{color:#e6efeb}body[data-screen="garage"].garage-night .spec-list dt,body[data-screen="garage"].garage-night .box-lists h3{color:#8fb0a7}
/* M11 Power up + Compare all four. */
.power-row{display:flex;align-items:center;gap:10px;margin:0 0 6px;min-height:28px}.power-up{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;padding:6px 13px 6px 10px;border-radius:999px;border:1px solid #16303b;background:#16303b;color:#fffdf5;font-size:11px;font-weight:750;line-height:1;cursor:pointer;transition:background .15s,color .15s,border-color .15s}.power-up:hover{background:#244857}.power-up[aria-pressed="true"]{background:#e6a82a;border-color:#e6a82a;color:#16303b}.power-up:focus-visible{outline:2px solid #e6a82a;outline-offset:2px}.power-icon{font-size:12px}.power-status{margin:0;font-size:10.5px;line-height:1.3;color:#3f6f5c;font-weight:650}body[data-screen="garage"].garage-night .power-status{color:#bfe0d2}body[data-screen="garage"].garage-night .power-up{background:#f8f8e7;border-color:#f8f8e7;color:#16303b}.compare-open{margin-left:14px;font-size:10px;white-space:nowrap}.compare-dialog{width:min(1000px,calc(100% - 32px));max-width:min(1000px,calc(100% - 32px));line-height:1.45}.compare-dialog h2{margin-bottom:6px}.compare-scroll{overflow-x:auto;margin:14px -6px 0;padding:0 6px}.compare-table{width:100%;border-collapse:collapse;font-size:12px;min-width:640px}.compare-table th,.compare-table td{padding:9px 10px;border-bottom:1px solid #54785426;text-align:left;vertical-align:top;font-variant-numeric:tabular-nums}.compare-table thead th{vertical-align:bottom;border-bottom:2px solid #54785440}.compare-table thead strong{display:block;font-size:13px;margin-bottom:4px}.compare-table tbody th{color:#658070;font-weight:600;font-size:11px;white-space:nowrap}.compare-table .current{background:#fff6d4}.compare-table thead .text-button{font-size:10px}.compare-dialog .spec-source{margin-top:14px}
/* Phones: the 3D bench first, then the craft picker, then the product panel. The panel comes
   first in the markup (desktop reads it beside the view) and used to cover the view on phones. */
.tuning-dialog{max-width:1040px;max-height:calc(100vh - 40px);overflow:hidden}.tuning-dialog[open]>form{display:flex;flex-direction:column;max-height:calc(100vh - 100px)}.tuning-dialog[open]>form>.close{align-self:flex-end}.tuning-note{font-size:12px;color:#5d7466;margin:-8px 0 12px}.tuning-presets-row{display:flex;align-items:center;gap:12px;margin-bottom:14px}.tuning-preset-name{font-size:12px;font-weight:700;color:var(--teal)}
.tuning-body{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);gap:22px;flex:1;min-height:0;overflow:auto;padding-right:4px}.tuning-side{align-self:start;position:sticky;top:0}
.tuning-group h3,.tuning-side h3{font-size:12px;letter-spacing:.8px;text-transform:uppercase;color:#55705f;margin:4px 0 8px}
.tuning-param{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:8px 10px;margin-bottom:6px;border:1px solid #e1e7df;border-radius:9px;background:#fff}.tuning-param strong{font-size:13px}.tuning-param output{font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}.tuning-param input{grid-column:1/-1;width:100%;accent-color:var(--teal)}.tuning-param small{grid-column:1/-1;font-size:11px;color:#6b7f72;line-height:1.35}.tuning-param.moved{border-color:var(--teal);box-shadow:inset 3px 0 0 var(--teal)}.tuning-param.off{opacity:.55}
.tuning-stats{width:100%;border-collapse:collapse;font-size:12px;background:#fff;border-radius:9px;overflow:hidden}.tuning-stats th,.tuning-stats td{padding:6px 8px;border-bottom:1px solid #edf1eb;text-align:right;font-variant-numeric:tabular-nums}.tuning-stats td:first-child,.tuning-stats th:first-child{text-align:left}.tuning-stats .up{color:#1f8a4c;font-weight:700}.tuning-stats .down{color:#c0482f;font-weight:700}
.tuning-small{font-size:11px;color:#6b7f72}.tuning-curves{width:100%;max-width:300px}.tuning-actions{align-items:center}.tuning-use{display:flex;gap:7px;align-items:center;font-size:13px;margin-right:auto}
.tuning-badge{position:absolute;top:92px;left:50%;transform:translateX(-50%);margin:0;padding:5px 11px;border-radius:999px;background:#0b3b46d9;color:#ffe08a;font-size:12px;font-weight:700;letter-spacing:.3px;pointer-events:none}
@media(max-width:900px){.tuning-body{grid-template-columns:1fr}.tuning-side{position:static}}
@media(max-width:900px){#garage{display:flex;flex-direction:column}#garage>.fleet-dock{order:1}#garage>.product-panel{order:2}body[data-screen="garage"] .fleet-dock{background:#f9f6eee0;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:14px;padding:10px 12px 8px}}
/* Loading that never looks stuck (loading-screen.mjs): real bytes fill the bar to 85%, then it creeps on while the scene is set up. The shimmer and the tips are compositor animations: they keep moving while shaders compile. The <progress> stays for screen readers. Fixed to the viewport: on a phone the page scrolls and an absolute panel centred itself off screen. */
.loading{position:fixed}#loading-progress{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);opacity:0}.loading-track{position:relative;width:min(300px,65vw);height:5px;border-radius:4px;overflow:hidden;background:#cfdecb}.loading-fill{position:absolute;inset:0;border-radius:4px;background:#34776a;transform-origin:0 50%;transform:scaleX(0);transition:transform .3s ease-out}.loading.preparing .loading-fill{animation:loading-creep 16s cubic-bezier(.08,.7,.12,1) forwards}@keyframes loading-creep{from{transform:scaleX(.85)}to{transform:scaleX(.985)}}.loading-track::after{content:"";position:absolute;inset:0;width:40%;background:linear-gradient(90deg,#fff0,#ffffffa6,#fff0);transform:translateX(-100%);animation:loading-shimmer 1.4s linear infinite}@keyframes loading-shimmer{to{transform:translateX(250%)}}.loading-meta{display:flex;gap:10px;align-items:baseline;margin:-8px 0 0;color:#749180;font-size:11px}.loading-prepare{display:none}.loading.preparing .loading-prepare{display:inline}.loading-tips{position:relative;width:min(440px,86vw);height:3.4em;margin:6px 0 0;padding:0;list-style:none;text-align:center;color:var(--ink);font-size:14px;line-height:1.45}.loading-tips li{position:absolute;inset:0;opacity:0;animation:loading-tip 24s infinite}.loading-tips li:nth-child(2){animation-delay:4s}.loading-tips li:nth-child(3){animation-delay:8s}.loading-tips li:nth-child(4){animation-delay:12s}.loading-tips li:nth-child(5){animation-delay:16s}.loading-tips li:nth-child(6){animation-delay:20s}@keyframes loading-tip{0%{opacity:0;transform:translateY(6px)}2%,15%{opacity:1;transform:none}16.6%,100%{opacity:0;transform:translateY(-6px)}}
@media(pointer:coarse){.loading-tips{display:none}}
@media(prefers-reduced-motion:reduce){.loading-track::after{animation:none;display:none}.loading-tips li{animation:none}.loading-tips li:first-child{opacity:1}}
/* Results card (result-card.mjs): the live portrait replaces the picture when it renders; a record stamp lands on it with an overshoot, right above the buy button. */
.result-product-art{position:relative}.result-portrait{width:100%;height:190px;object-fit:contain}.result-stamp{position:absolute;top:2px;right:16px;padding:7px 12px 6px;border:2.5px solid #c8412f;border-radius:8px;background:#fff7ec;color:#b8391f;font-size:13px;font-weight:850;letter-spacing:.4px;box-shadow:0 6px 14px #6b2a1a26;transform:rotate(-8deg);animation:result-stamp .6s cubic-bezier(.3,1.5,.5,1) .35s both}@keyframes result-stamp{from{opacity:0;transform:rotate(-8deg) scale(1.9)}to{opacity:1;transform:rotate(-8deg) scale(1)}}
@media(max-width:600px){.result-portrait{height:150px}}
@media(prefers-reduced-motion:reduce){.result-stamp{animation:none}}
/* Racing: the site bar slides away (back on pause and results); the HUD takes its place. */
.topbar{transition:transform .25s ease}body.racing .topbar{transform:translateY(-100%)}
body.racing .race-top{top:22px}body.racing #minimap{top:96px}
.free-practice .position{display:none}
.result-school{display:block;margin:14px 0 4px;font-size:12px;color:var(--teal)}.result-school.hidden{display:none}

/* The race screen (Rick 2026-10-04: picking a map was buried under the garage's prices). */
details.race-setup{display:none}
.race-open,.tune-open{margin-top:8px;width:100%}
.race-dialog{max-width:760px;width:calc(100% - 40px);padding:30px 34px;border:0;border-radius:16px;background:#f7f8f0;color:var(--ink)}
.race-dialog::backdrop{background:#0d2a3399;backdrop-filter:blur(3px)}
.race-dialog h2{font-size:28px;margin:0 0 18px}
.race-maps{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}
.race-map{display:flex;flex-direction:column;gap:6px;padding:8px;border:2px solid #d7ddd2;border-radius:12px;background:#fff;text-align:left;cursor:pointer}
.race-map img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:8px;background:#dfe7e2}
.race-map strong{font-size:14px}.race-map small{font-size:11px;color:var(--muted)}
.race-map[aria-pressed="true"],.race-craft[aria-pressed="true"]{border-color:var(--teal);box-shadow:0 0 0 2px #2c8f8a33}
.race-row{display:flex;align-items:center;gap:14px;margin:10px 0}.race-row>span{width:92px;font-size:12px;font-weight:700;color:var(--muted)}
.race-seg{display:flex;flex-wrap:wrap;gap:6px}
.race-seg button{padding:8px 13px;border:1px solid #c9d2c8;border-radius:8px;background:#fff;font-size:12px}
.race-seg button[aria-pressed="true"]{background:var(--teal);border-color:var(--teal);color:#fff}
.race-crafts{display:flex;flex-wrap:wrap;gap:8px}
.race-craft{display:flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border:2px solid #d7ddd2;border-radius:10px;background:#fff;font-size:12px}
.race-craft img{width:52px;height:32px;object-fit:contain}
.race-dialog .dialog-actions{margin-top:20px}
@media(max-width:700px){.race-maps{grid-template-columns:1fr}.race-row{flex-direction:column;align-items:flex-start;gap:6px}}
.race-crafts{display:grid;grid-template-columns:repeat(4,1fr)}.race-craft{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:700px){.race-crafts{grid-template-columns:repeat(2,1fr)}}

/* The simulated transmitter (controller.mjs), mirroring the keys. */
.transmitter{position:absolute;right:32px;bottom:150px;width:190px;padding:10px 12px 8px;border:2px solid #b2e8ff88;border-radius:16px;background:#163d61c4;color:#fff;pointer-events:none}
.transmitter svg{display:block;width:100%;height:auto}.transmitter text{fill:#d2e9f5;font-size:10px;font-family:inherit}
@media (max-width: 900px){.transmitter{display:none}}

/* Photo mode: everything but the picture and its own bar goes. */
body.photo #hud,body.photo .topbar,body.photo .game-disclaimer,body.photo #pause-menu{display:none!important}
.photo-bar{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:30;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:#10303fd9;color:#fff;backdrop-filter:blur(6px);max-width:calc(100% - 32px)}
.photo-hint{width:100%;margin:0;font-size:11px;color:#cfe6ee}.photo-fov{display:flex;align-items:center;gap:6px;font-size:12px}.photo-fov input{width:110px}
.photo-seg{display:flex;gap:4px}.photo-seg button,#photo-exit{padding:7px 11px;border-radius:8px;border:1px solid #ffffff55;background:transparent;color:#fff;font-size:12px}
.photo-seg button[aria-pressed="true"]{background:#fff;color:#10303f}.photo-status{font-size:11px;color:#cfe6ee}

/* The local leaderboard and sharing on the results; the challenge line on the race screen. */
.result-board{margin-top:14px;padding-top:12px;border-top:1px solid #d5ddd5}.result-board .eyebrow{margin-bottom:6px}
#board-list{margin:0 0 8px;padding:0;list-style:none;font-size:12px}#board-list li{display:flex;justify-content:space-between;gap:10px;padding:4px 6px;border-radius:6px}
#board-list li.you{background:#fff3c4;font-weight:700}.board-name{display:flex;align-items:center;gap:8px;font-size:12px}.board-name input{width:150px;padding:5px 8px;border:1px solid #c9d2c8;border-radius:6px}
.board-share{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:8px;font-size:12px}#share-status{font-size:11px;color:var(--muted);word-break:break-all}
.result-challenge-note{margin:10px 0 0;font-weight:700;color:var(--teal)}.race-challenge{margin:-8px 0 14px;padding:8px 12px;border-radius:8px;background:#fff3c4;font-weight:700}

/* Phones: a notice that the game is made for a computer, with the real craft's shop links. */
.phone-notice{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:16px;background:#0d2a33e6}
.phone-notice.hidden{display:none}.phone-card{width:100%;max-width:420px;padding:24px 20px;border-radius:16px;background:#f7f8f0;color:var(--ink)}
.phone-card h2{font-size:24px;margin:0 0 10px}.phone-card p{font-size:14px;line-height:1.5}
.phone-crafts{list-style:none;margin:14px 0;padding:0;display:grid;gap:8px}.phone-crafts a{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #d5ddd5;border-radius:10px;background:#fff;color:inherit;text-decoration:none;font-size:14px;font-weight:600}
.phone-crafts img{width:64px;height:40px;object-fit:contain}.phone-crafts small{display:block;font-weight:500;color:var(--muted)}
.home-real{margin-top:10px;font-size:12px}.home-real a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
#error{z-index:25}
