:root{--ink:#111b18;--paper:#f2f4e9;--muted:#a9b6ae;--accent:#d4ff64;--line:#ffffff23;--panel:#14221eea;--danger:#ff8773;font-family:Arial,Helvetica,sans-serif;color:var(--paper);color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#111b18}button,a,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;border:0;cursor:pointer;background:none}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button:hover:not(:disabled){filter:brightness(1.14)}a{color:inherit;text-decoration:none}button,select,input{touch-action:manipulation}button{transition:background .16s,transform .16s,border-color .16s}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}#world{position:fixed;inset:0;width:100%;height:100%;display:block}.grain{position:fixed;inset:0;pointer-events:none;opacity:.1;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.3' filter='url(%23n)'/%3E%3C/svg%3E")}
#shell{height:100%;position:relative;display:flex;flex-direction:column;padding:0 4%;background:linear-gradient(180deg,#0b171a80,transparent 35%,#09181996)}#header{height:90px;flex-shrink:0;display:flex;align-items:center;gap:35px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;text-align:left;font-size:15px;font-weight:900;letter-spacing:1px;padding:0}.brand-mark{font-size:37px;line-height:1;font-style:italic;letter-spacing:-5px;color:var(--accent)}.brand-mark span,.race-brand>span{color:var(--paper)}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:5px;font-weight:500}.muted{color:var(--muted)}#nav{display:flex;gap:26px;margin:auto}#nav button{font-size:10px;letter-spacing:1.5px;padding:37px 0;color:#bcc6bd;position:relative;font-weight:700}#nav button.active{color:var(--accent)}#nav button.active:after{content:'';position:absolute;height:2px;background:var(--accent);left:0;right:0;bottom:0}.header-right{display:flex;gap:8px;align-items:center}.square{width:38px;height:38px;border:1px solid var(--line);background:#13221d66;display:grid;place-items:center;font-size:19px;border-radius:50%}.wallet{font-size:12px;white-space:nowrap;color:var(--accent);font-weight:bold;margin-right:12px}#screen{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#9da99135 transparent}#footer{flex-shrink:0;min-height:59px;border-top:1px solid var(--line);display:flex;align-items:center;gap:24px;font-size:9px;letter-spacing:1.5px;color:var(--muted)}#footer>span:first-child{margin-right:auto}#footer b{color:#dee8d9;font-weight:500}#footer a{color:var(--accent);font-weight:bold}#footer button{font-size:9px;letter-spacing:1px;padding:12px 0}.version{font-size:8px}.eyebrow{display:block;font-size:10px;letter-spacing:2.5px;color:var(--accent);font-weight:700;text-transform:uppercase}.eyebrow:before{content:'';display:inline-block;width:22px;height:2px;vertical-align:middle;margin-right:9px;background:currentColor}h1,h2,h3,p{margin:0}h1{font-size:clamp(60px,8.9vw,138px);line-height:.83;font-weight:950;font-style:italic;letter-spacing:-.055em}h1 em{color:var(--accent);font-style:inherit}h2{font-size:clamp(27px,3.4vw,48px);font-style:italic;letter-spacing:-1.5px}h3{font-size:19px;letter-spacing:-.4px}p{color:#b9c5bd;line-height:1.65;font-size:13px}.primary{background:var(--accent);color:#152017;padding:19px 26px;font-size:12px;font-weight:900;letter-spacing:1.5px;display:inline-flex;align-items:center;justify-content:space-between;gap:42px;min-height:52px}.primary span{font-size:21px;line-height:10px}.secondary{padding:16px 23px;border:1px solid #ffffff48;min-height:52px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:1.4px;background:#10201b77}.tiny-button{font-size:10px;letter-spacing:1.2px;padding:11px 16px;border:1px solid var(--line);background:#ffffff09}.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.home{height:100%;min-height:510px;position:relative;display:flex;align-items:center}.hero-copy{width:51%;position:relative;z-index:2;padding:35px 0 45px}.hero-copy .eyebrow{margin-bottom:28px}.hero-copy h1{margin-left:-7px}.subtitle{font-size:13px;font-weight:700;letter-spacing:7px;margin:18px 0 24px}.hero-copy p{max-width:350px;font-size:13px}.hero-stats{display:flex;gap:30px;margin-top:36px}.hero-stats div{border-right:1px solid var(--line);padding-right:28px}.hero-stats div:last-child{border:0}.hero-stats b{display:block;font-size:25px;font-style:italic}.hero-stats span{font-size:8px;letter-spacing:1.5px;color:var(--muted)}.hero-art{position:absolute;left:40%;right:-2%;height:100%;top:0;pointer-events:none}.hero-art:before{content:'';position:absolute;width:70%;height:65%;left:25%;top:12%;border:1px solid #deffa438;transform:skew(-14deg);background:linear-gradient(135deg,#e1ff9f00,#d0ff7915);border-bottom:0}.hero-art .big-num{position:absolute;top:7%;right:7%;font-size:clamp(110px,22vw,340px);font-weight:900;font-style:italic;letter-spacing:-15px;color:#e7ffb312;line-height:1}.hero-art img{position:absolute;object-fit:contain;filter:drop-shadow(0 24px 18px #06131980);width:63%;left:19%;top:43%;transform:rotate(-3deg)}.hero-art img.bike{width:17%;left:78%;top:37%;transform:rotate(9deg)}.hero-art img.truck{width:23%;left:6%;top:29%;transform:rotate(-4deg)}.hero-route{position:absolute;bottom:30px;right:0;display:flex;align-items:center;gap:16px;border-top:1px solid #ffffff55;padding-top:16px;font-size:9px;letter-spacing:2px}.hero-route b{font-size:11px;display:block;margin-bottom:7px}.hero-route span{color:#d5e0d2}.hero-route svg{width:110px;height:55px;color:var(--accent)}.live-pill{position:absolute;top:13%;left:13%;font-size:9px;letter-spacing:2px;padding:10px 14px;border:1px solid var(--line);transform:rotate(-4deg)}.live-pill i{display:inline-block;width:6px;height:6px;background:var(--accent);border-radius:50%;margin-right:7px}
.page{padding:30px 0 28px;min-height:100%}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px;gap:20px}.page-heading .eyebrow{margin-bottom:12px}.page-heading p{font-size:11px;max-width:330px}.back{font-size:10px;letter-spacing:1.5px;color:var(--muted);margin-bottom:20px;padding:0}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto;scrollbar-width:none}.tabs button{padding:14px 20px;font-size:10px;letter-spacing:1.4px;white-space:nowrap;color:var(--muted);border-bottom:2px solid transparent}.tabs button.active{color:var(--accent);border-bottom-color:var(--accent);background:#d4ff640b}.tour-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.world-card{background:#111f1be8;text-align:left;border:1px solid var(--line);padding:0;overflow:hidden;position:relative}.world-card:hover{border-color:#dcff7399}.world-image{height:clamp(105px,12vw,170px);background-size:cover;background-position:center 40%;position:relative}.world-image:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent 25%,#10201c)}.world-index{position:absolute;left:15px;top:12px;font-size:11px;font-family:monospace;z-index:1}.world-stars{position:absolute;right:14px;top:12px;color:var(--accent);letter-spacing:3px;font-size:12px;z-index:1}.world-card .world-info{padding:5px 16px 17px}.world-info h3{font-size:14px;font-style:italic;margin-bottom:7px}.world-info p{font-size:9px;letter-spacing:.5px}.world-info .card-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:15px;font-size:9px;letter-spacing:1px;color:var(--accent)}.page-note{font-size:10px;color:var(--muted);margin-top:15px;letter-spacing:.3px}
.briefing{display:grid;grid-template-columns:1.2fr 1fr;gap:38px;align-items:center;min-height:430px}.route-preview{height:365px;position:relative;border:1px solid var(--line);background:#18292388;overflow:hidden}.route-preview>img{width:100%;height:100%;object-fit:cover;opacity:.5}.route-preview:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#11211cd9)}.route-preview svg{position:absolute;inset:12% 10%;width:80%;height:65%;z-index:1;filter:drop-shadow(0 0 8px #d6ff7480);color:var(--accent)}.route-preview .route-name{position:absolute;bottom:22px;left:24px;z-index:2}.route-name span{display:block;font-size:9px;letter-spacing:2px;color:var(--accent);margin-bottom:9px}.route-name strong{font-size:22px;font-style:italic}.brief-info h2{margin:13px 0 20px}.objective-box{border-left:2px solid var(--accent);padding:6px 0 6px 17px;margin:20px 0}.objective-box b{display:block;font-size:11px;margin-bottom:6px}.objective-box p{font-size:12px}.metric-row{display:flex;gap:30px;border-top:1px solid var(--line);padding-top:18px}.metric-row span{display:block;font-size:9px;color:var(--muted);letter-spacing:1px}.metric-row b{display:block;font-size:21px;margin-top:7px}.current-car{display:flex;align-items:center;gap:15px;margin:18px 0}.current-car img{width:70px;height:50px;object-fit:contain}.current-car b{font-size:12px;display:block}.current-car small{font-size:9px;color:var(--muted)}.current-car button{margin-left:auto}.brief-info .actions{margin-top:16px}
.garage-layout{display:grid;grid-template-columns:1fr 340px;gap:34px}.show-car{height:270px;position:relative;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 80%,#d2ff7920,transparent 65%);border-bottom:1px solid var(--line)}.show-car:before{content:'';position:absolute;bottom:26px;left:15%;width:70%;height:40px;border:1px solid #e3ffab38;border-radius:50%;box-shadow:0 10px 60px #cffb5a12}.show-car img{max-width:70%;max-height:220px;z-index:1;filter:drop-shadow(0 20px 15px #0007)}.show-car .car-number{position:absolute;font-size:150px;font-weight:900;left:8%;top:6px;color:#fff07;font-style:italic;line-height:1}.garage-title{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.garage-title p{font-size:11px}.vehicle-list{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin-top:20px}.vehicle-choice{padding:12px 3px 10px;border:1px solid var(--line);background:#11201be8}.vehicle-choice.active{border-color:var(--accent);background:#d4ff6412}.vehicle-choice img{width:80%;height:48px;object-fit:contain}.vehicle-choice span{font-size:8px;display:block;margin-top:9px}.garage-panel{padding:23px;background:#12211deb;border:1px solid var(--line)}.garage-panel .eyebrow{margin-bottom:20px}.stat{margin:16px 0}.stat>div{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px}.stat-track{height:4px;background:#ffffff13;margin-top:8px}.stat-track i{display:block;height:100%;background:var(--accent)}.upgrade{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:14px 0}.upgrade b{font-size:11px;display:block;margin-bottom:5px}.upgrade small{font-size:9px;color:var(--muted)}.upgrade button{color:var(--accent);border:1px solid #d4ff6444;font-size:10px;padding:9px 12px}.garage-panel>.primary{width:100%;margin-top:12px}.garage-panel>.page-note{font-size:9px}
.modal-page{max-width:760px;margin:0 auto;padding-top:28px}.settings-list{border-top:1px solid var(--line);margin:26px 0}.setting{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-bottom:1px solid var(--line);gap:20px}.setting b{display:block;font-size:13px;margin-bottom:5px}.setting small{color:var(--muted);font-size:11px}.setting select{background:#17291f;color:white;padding:11px 14px;border:1px solid #ffffff44;min-width:145px}.setting input{accent-color:var(--accent);width:145px}.setting button{min-width:100px}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:25px 0}.help-card{background:#12211deb;padding:23px;border:1px solid var(--line)}.help-card h3{margin-bottom:12px;font-size:15px}.help-card p{font-size:12px}.help-card kbd{font-family:inherit;font-size:10px;border:1px solid #ffffff42;padding:3px 5px;white-space:nowrap}.help-card .control-row{margin:12px 0;font-size:12px;color:var(--muted)}.pause-page{max-width:500px;text-align:center;margin:10vh auto}.pause-page h2{font-size:64px;margin:25px 0 15px}.pause-page .actions{justify-content:center}.pause-page .eyebrow:before{display:none}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center;min-height:430px}.result-hero{text-align:center}.result-stars{font-size:47px;color:var(--accent);letter-spacing:9px;margin:20px 0 10px}.result-hero h2{font-size:56px;line-height:1}.result-hero img{height:110px;max-width:220px;object-fit:contain;margin:15px}.result-hero p{font-size:11px}.result-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-left:1px solid var(--line);margin:22px 0}.result-stats div{padding:18px;border-bottom:1px solid var(--line);border-right:1px solid var(--line)}.result-stats span{font-size:9px;letter-spacing:1px;color:var(--muted);display:block}.result-stats b{font-size:24px;display:block;margin-top:9px}.collection-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.collection-item{padding:9px;background:#17251feb;border:1px solid var(--line)}.collection-item img{height:125px;width:100%;object-fit:contain;background:repeating-conic-gradient(#ffffff05 0 25%,transparent 0 50%) 0/16px 16px}.collection-item b{display:block;font-size:9px;line-height:1.4;overflow-wrap:anywhere;margin-top:9px;color:#c6d1c8}.collection-item small{font-size:8px;color:var(--muted)}.collection-pagination{display:flex;align-items:center;justify-content:center;gap:24px;margin:25px 0;font-size:11px}.boot{position:absolute;left:8%;top:25%}.boot h1{font-size:95px;margin:24px 0}.loading-track{height:3px;background:#ffffff20;width:240px;margin-top:22px;overflow:hidden}.loading-track i{display:block;height:100%;width:45%;background:var(--accent);animation:load 1.2s infinite ease-in-out}@keyframes load{from{transform:translateX(-110%)}to{transform:translateX(330%)}}
#race-ui{position:fixed;inset:0;pointer-events:none;padding:24px 3%;background:linear-gradient(#06141b6b,transparent 24%,transparent 75%,#06141b70)}#race-ui button{pointer-events:auto}.race-top{display:flex;gap:25px;align-items:center}.race-brand{font-style:italic;font-weight:900;font-size:27px;color:var(--accent);white-space:nowrap}.race-brand b{font-size:13px;margin-left:10px;color:var(--paper);letter-spacing:1px}.race-brand small{font-size:8px;display:block;font-style:normal;font-weight:500;letter-spacing:2px;color:#e0e7dc;margin-top:6px}#race-stats{display:flex;gap:32px;margin-left:auto;text-shadow:0 2px 10px #0008}#race-stats>div{min-width:65px}#race-stats span{font-size:8px;letter-spacing:2px;display:block;color:#e3e9e0}#race-stats b{font-size:26px;display:block;margin-top:5px;font-variant-numeric:tabular-nums}#race-stats small{font-size:11px;font-weight:400;color:#c4d0c8}#race-progress{height:3px;background:#ffffff38;position:relative;margin-top:20px}#race-progress>i{display:block;width:0;height:100%;background:var(--accent);box-shadow:0 0 8px #c9ff67}#race-progress:before,#race-progress:after{content:'';position:absolute;left:25%;top:-3px;width:2px;height:9px;background:#fff8}#race-progress:after{left:75%}#race-progress span,#race-progress b{position:absolute;top:10px;font-size:7px;letter-spacing:2px;font-weight:500}#race-progress b{right:0}#race-cue{position:absolute;top:24%;left:0;width:100%;text-align:center;font-weight:800;font-style:italic;font-size:20px;color:var(--accent);text-shadow:0 2px 14px #001d12}#race-countdown{position:absolute;top:30%;left:0;width:100%;text-align:center;font-style:italic;font-weight:900;font-size:95px;color:var(--paper);text-shadow:0 3px 25px #122b22}.race-bottom{position:absolute;bottom:28px;left:3%;right:3%;display:flex;justify-content:space-between;align-items:flex-end}.vehicle-hud{max-width:260px;text-shadow:0 2px 10px #081b12}.vehicle-hud>span:first-child{display:block;font-size:9px;letter-spacing:2px;color:var(--accent);margin-bottom:6px}.vehicle-hud>b{font-size:25px;display:block;font-style:italic}.vehicle-hud>small{display:block;font-size:9px;margin:9px 0 15px;color:#d0dbd0}.health-track{height:3px;width:150px;background:#ffffff30}.health-track>i{display:block;height:100%;width:100%;background:#c7f891}.integrity{display:block;font-size:7px;letter-spacing:2px;margin-top:8px}.speed-hud{width:200px;text-align:right}.speed-hud>div:first-child{display:flex;align-items:baseline;justify-content:flex-end;gap:10px}.speed-hud strong{font-size:69px;line-height:1;font-style:italic;letter-spacing:-4px;font-variant-numeric:tabular-nums}.speed-hud span{font-size:9px;letter-spacing:1px}.boost-track{height:7px;background:#ffffff24;margin-top:10px;transform:skew(-22deg)}.boost-track>i{display:block;height:100%;width:100%;background:var(--accent);box-shadow:0 0 20px #d4ff6433}.speed-hud small{display:block;font-size:8px;letter-spacing:1px;margin-top:10px}.keyboard-hint{position:absolute;bottom:12px;left:35%;font-size:7px;letter-spacing:1px;color:#ffffff90}#touch-controls{display:none;position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:3%;right:3%;justify-content:space-between;pointer-events:none}.touch-steering,.touch-pedals{display:flex;gap:10px}#touch-controls button{border:1px solid #ffffff50;background:#14211bcc;border-radius:12px;min-width:62px;height:62px;font-size:22px;touch-action:none;user-select:none}#touch-controls .touch-pedals button{font-size:10px;font-weight:800;letter-spacing:1px;padding:0 12px}#touch-controls button.nitro{background:#d4ff64cc;color:#14251b;min-width:85px}#touch-controls button.held{background:white;color:#111}.touch-enabled #touch-controls{display:flex}.touch-enabled .race-bottom{bottom:104px}.touch-enabled .keyboard-hint{display:none}.touch-enabled .speed-hud strong{font-size:53px}.touch-enabled .vehicle-hud>b{font-size:20px}#toast{position:fixed;bottom:85px;left:50%;transform:translate(-50%,15px);padding:13px 24px;background:#e5f7cb;color:#1a2b20;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90%;text-align:center;box-shadow:0 4px 30px #0005}#toast.show{opacity:1;transform:translate(-50%,0)}#ad-shield{position:fixed;inset:0;background:#101b19f5;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;z-index:30}#ad-shield b{font-size:18px;letter-spacing:4px}#ad-shield span{font-size:12px;color:var(--muted)}.spinner{width:35px;height:35px;border:2px solid #ffffff20;border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}body[data-scene="race"] .grain{display:none}body:not([data-scene="home"]):not([data-scene="race"]) #shell{background:#091612b5}
@container game (min-width:1600px){#shell{padding:0 6%}.page{padding-top:40px}.world-image{height:180px}.home{max-width:1550px;margin:auto;width:100%}.show-car{height:360px}.show-car img{max-height:290px}.briefing{min-height:550px}.route-preview{height:450px}}
@container game (max-width:1050px){#header{gap:20px;height:76px}#nav{gap:15px}#nav button{padding:30px 0;font-size:9px}.brand{font-size:12px}.brand small{font-size:7px;letter-spacing:1px}.brand-mark{font-size:30px}.version{display:none}.header-right{gap:5px}.wallet{margin-right:5px}h1{font-size:9.5vw}.home{min-height:440px}.hero-copy{width:55%}.hero-stats{gap:20px}.hero-stats div{padding-right:20px}.hero-copy p{max-width:300px}.hero-copy .primary{padding:17px 20px;gap:25px}.hero-copy .secondary{padding:16px}.tour-grid{gap:10px}.world-info h3{font-size:12px}.garage-layout{grid-template-columns:1fr 280px;gap:20px}.garage-panel{padding:18px}.vehicle-choice span{font-size:7px}.briefing{gap:25px}.collection-grid{grid-template-columns:repeat(4,1fr)}.collection-item img{height:100px}}
@container game (max-width:760px){#shell{padding:0 5%}#header{height:69px;gap:8px}.brand small{display:none}.brand{font-size:10px;gap:8px}.brand-mark{font-size:28px}#nav{display:none}.header-right{margin-left:auto}.square{width:33px;height:33px;font-size:16px}.wallet{font-size:10px}.fullscreen{display:none}#footer{gap:16px;min-height:53px;font-size:8px;letter-spacing:.7px}#footer>span:first-child{display:none}#footer a{margin-right:auto}#footer button{font-size:8px}.home{min-height:640px;align-items:flex-start}.hero-copy{width:100%;padding:35px 0 0}.hero-copy .eyebrow{font-size:8px;margin-bottom:22px}.hero-copy h1{font-size:76px}.subtitle{font-size:10px;letter-spacing:5px;margin-top:15px;margin-bottom:18px}.hero-copy p{font-size:11px;max-width:290px}.hero-copy .actions{margin-top:20px}.primary,.secondary{font-size:10px;min-height:47px}.hero-stats{margin-top:24px;gap:18px}.hero-stats b{font-size:22px}.hero-stats span{font-size:7px}.hero-art{top:345px;left:8%;height:270px;right:-3%;opacity:1}.hero-art img{top:42%;width:66%;left:15%}.hero-art img.bike{top:33%;left:77%;width:18%}.hero-art img.truck{top:28%;left:2%;width:25%}.hero-art .big-num{top:0;font-size:170px}.hero-art .live-pill{display:none}.hero-route{bottom:-14px;font-size:7px}.hero-route b{font-size:9px}.hero-route svg{height:35px;width:80px}.page{padding-top:23px}.page-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:14px}.page-heading p{font-size:10px}h2{font-size:33px}.tabs{margin-bottom:14px}.tabs button{font-size:8px;letter-spacing:1px;padding:13px 12px}.tour-grid{grid-template-columns:repeat(2,1fr);gap:11px}.world-image{height:100px}.world-card .world-info{padding:5px 12px 13px}.world-info h3{font-size:12px}.world-info p{font-size:8px}.world-info .card-bottom{font-size:8px;padding-top:10px;margin-top:12px}.briefing{grid-template-columns:1fr;gap:23px}.route-preview{height:220px}.route-name strong{font-size:19px}.route-name span{font-size:8px}.brief-info h2{font-size:32px}.brief-info .actions{margin-bottom:15px}.brief-info .primary{flex:1}.garage-layout{grid-template-columns:1fr;gap:25px}.show-car{height:220px}.show-car img{max-height:185px}.show-car .car-number{font-size:130px}.garage-title h3{font-size:20px}.vehicle-list{gap:5px}.vehicle-choice{padding:8px 2px}.vehicle-choice img{height:38px}.vehicle-choice span{font-size:6px;letter-spacing:-.2px}.garage-title p{font-size:10px}.garage-panel{padding:22px}.help-grid{grid-template-columns:1fr;gap:12px}.help-card{padding:20px}.setting{padding:16px 0}.setting b{font-size:12px}.setting small{font-size:10px}.setting select{min-width:110px;font-size:11px;padding:10px}.setting input{width:110px}.result-grid{grid-template-columns:1fr;gap:15px}.result-hero h2{font-size:40px}.result-hero img{height:70px}.result-stars{font-size:30px;margin:15px 0}.result-grid .eyebrow{font-size:9px}.result-stats div{padding:14px}.result-stats b{font-size:22px}.result-grid .actions{margin-bottom:15px}.collection-grid{grid-template-columns:repeat(2,1fr)}.collection-item img{height:100px}.collection-item b{font-size:8px}.pause-page{margin-top:8vh}.pause-page h2{font-size:50px}#race-ui{padding:15px 4%}.race-top{gap:12px}.race-brand{font-size:21px}.race-brand b{display:none}.race-brand small{font-size:6px;max-width:100px;line-height:1.5;letter-spacing:1px}#race-stats{gap:15px}#race-stats>div{min-width:42px}#race-stats b{font-size:21px}#race-stats span{font-size:6px;letter-spacing:1px}#race-stats small{font-size:9px}#race-progress{margin-top:13px}#race-cue{font-size:14px;padding:0 20px}#race-countdown{font-size:75px}.race-bottom{left:4%;right:4%}.vehicle-hud{max-width:175px}.vehicle-hud>b{font-size:18px}.vehicle-hud>span:first-child{font-size:7px}.vehicle-hud>small{font-size:7px;max-width:150px;line-height:1.5}.health-track{width:100px}.integrity{font-size:6px;letter-spacing:1px}.speed-hud{width:125px}.speed-hud strong{font-size:48px}.speed-hud span{font-size:7px}.speed-hud small{font-size:6px;letter-spacing:.4px}.boost-track{height:5px}.keyboard-hint{display:none}.boot h1{font-size:70px}.boot{left:8%;top:28%}}
@container game (max-height:560px) and (min-width:761px){#header{height:58px}#nav button{padding:21px 0}#footer{min-height:38px}.home{min-height:340px}.hero-copy{padding:20px 0}.hero-copy .eyebrow{margin-bottom:15px}.hero-copy h1{font-size:75px}.subtitle{margin:10px 0 13px;font-size:10px}.hero-copy p{font-size:11px}.hero-stats{margin-top:20px}.hero-stats b{font-size:21px}.hero-copy .actions{margin-top:17px}.hero-art img{top:38%}.hero-route{bottom:15px}.page{padding-top:19px}.page-heading{margin-bottom:16px}.race-bottom{bottom:15px}.touch-enabled .race-bottom{bottom:83px}.touch-enabled #touch-controls button{height:50px;min-width:55px}.touch-enabled .vehicle-hud>small{display:none}.touch-enabled .speed-hud strong{font-size:40px}#race-cue{top:29%;font-size:15px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}.loading-track i{animation:none;width:80%}}
@container game (max-width:760px){.hero-copy h1{font-size:clamp(51px,16.8vw,76px);letter-spacing:-.055em}.hero-copy{padding-top:35px}.hero-art{top:330px}#footer{gap:15px}.vehicle-hud>small{max-width:145px}.speed-hud{position:relative;z-index:1}}
/* Every screen uses the same authored 900 × 600 landscape stage. */
html,body{background:#060b0b}
#game-frame{position:absolute;left:50%;top:50%;width:900px;height:600px;transform:translate(-50%,-50%) scale(var(--game-scale,1));transform-origin:center;overflow:hidden;container-type:size;container-name:game;box-shadow:0 0 100px #0008;background:#0d1b16}
#world{position:absolute;inset:0;width:900px;height:600px}
#cover-art{position:absolute;inset:0;width:900px;height:600px;object-fit:cover;pointer-events:none}
body:not([data-scene="home"]):not([data-scene="loading"]) #cover-art{display:none}
#shell{padding:0 32px}
body[data-scene="home"] #shell{background:linear-gradient(180deg,#07131066,transparent 20%,transparent 82%,#07131066)}
#header{height:66px;gap:22px}.brand{font-size:11px;gap:10px}.brand small{font-size:6px;letter-spacing:1.2px}.brand-mark{font-size:29px}#nav{gap:20px}#nav button{font-size:8px;letter-spacing:1px;padding:10px 12px;min-height:32px}#nav button.active:after{bottom:-17px}.header-right{gap:5px}.square{width:31px;height:31px;font-size:15px;border-radius:0}.wallet{font-size:10px;margin-right:7px}
#footer{min-height:43px;gap:18px;font-size:7px;letter-spacing:1px}#footer button{font-size:7px;padding:6px 12px}#footer a{font-size:8px}.version{display:none}
.home{height:100%;min-height:0;align-items:center}.hero-copy{width:440px;padding:18px 0 22px}.hero-copy .eyebrow{font-size:7px;letter-spacing:1.7px;margin-bottom:23px}.hero-copy h1{font-size:78px;letter-spacing:-4px;margin-left:-4px;filter:drop-shadow(0 3px 14px #0005)}.subtitle{font-size:9px;letter-spacing:5px;margin:15px 0 18px}.hero-copy p{max-width:290px;font-size:10px;line-height:1.65}.hero-copy .actions{gap:10px;margin-top:22px}.hero-copy .primary{padding:15px 32px 15px 25px;min-width:225px;font-size:10px;letter-spacing:.7px}.hero-copy .secondary{padding:15px 23px;font-size:9px;letter-spacing:.6px}.hero-copy .primary span{display:none}.hero-stats{margin-top:27px;gap:20px}.hero-stats b{font-size:22px}.hero-stats span{font-size:6px;letter-spacing:1.2px}.hero-stats div{padding-right:20px}.hero-art{display:none}
h2{font-size:32px}.page{padding:22px 0}.page-heading{margin-bottom:17px}.page-heading .eyebrow{font-size:8px;margin-bottom:9px}.page-heading p{font-size:9px;max-width:260px}.tabs{margin-bottom:16px}.tabs button{font-size:8px;padding:10px 15px;min-height:33px}.tour-grid{gap:11px}.world-image{height:97px}.world-card .world-info{padding:4px 12px 12px}.world-index{font-size:8px;left:12px}.world-stars{font-size:9px;right:10px;letter-spacing:1px}.world-info h3{font-size:11px;letter-spacing:0}.world-info p{font-size:7px}.world-info .card-bottom{margin-top:10px;padding-top:9px;font-size:7px}.page-note{font-size:8px;margin-top:12px}
.primary,.secondary,.tiny-button,.upgrade button,.tabs button,#nav button,#footer button,.square,#touch-controls button{background-color:transparent;background-image:url('assets/ui/button-secondary.webp');background-size:100% 100%;background-repeat:no-repeat;border:0;filter:drop-shadow(0 2px 3px #0003)}
.primary,#touch-controls button.nitro{background-color:transparent;background-image:url('assets/ui/button-primary.webp');color:#0f200c}.primary{padding:16px 33px 16px 24px;font-size:10px;min-height:49px;gap:25px}.primary span{visibility:hidden;width:0}.secondary{min-height:49px;font-size:9px;padding:15px 20px}.tiny-button{font-size:8px;padding:10px 16px;min-height:30px}.tabs button.active{background-image:url('assets/ui/button-secondary.webp');filter:brightness(1.4);border-bottom-color:var(--accent)}.tabs button{border-bottom:2px solid transparent}.square{background-size:100% 100%;padding:5px}.primary:hover:not(:disabled){filter:brightness(1.15) drop-shadow(0 0 8px #d4ff6444)}.primary:active:not(:disabled),.secondary:active:not(:disabled){filter:brightness(.9);transform:translateY(2px)}
.briefing{min-height:0;gap:26px;grid-template-columns:1.05fr 1fr}.route-preview{height:320px}.route-name strong{font-size:19px}.route-name span{font-size:8px}.route-preview .route-name{left:18px;bottom:20px}.brief-info h2{font-size:30px;margin:10px 0 13px}.brief-info>p{font-size:10px}.brief-info .eyebrow{font-size:8px}.objective-box{margin:14px 0;padding:5px 0 5px 14px}.objective-box b{font-size:9px}.objective-box p{font-size:10px}.metric-row{gap:24px;padding-top:13px}.metric-row span{font-size:7px}.metric-row b{font-size:18px;margin-top:5px}.current-car{margin:12px 0;gap:12px}.current-car b{font-size:10px}.current-car small{font-size:8px}.current-car img{height:45px;width:60px}.brief-info .actions{margin-top:12px;gap:9px}.brief-info .primary{font-size:8px;padding:15px 28px 15px 21px}.brief-info .secondary{font-size:8px;padding:15px 19px}.brief-info .page-note{font-size:8px}.back{font-size:8px;margin-bottom:16px}
.garage-layout{grid-template-columns:1fr 264px;gap:24px}.show-car{height:205px}.show-car img{max-height:180px}.show-car .car-number{font-size:130px}.garage-title{margin-top:13px}.garage-title h3{font-size:16px}.garage-title p{font-size:8px;max-width:170px;text-align:right}.vehicle-list{gap:6px;margin-top:17px}.vehicle-choice img{height:35px}.vehicle-choice span{font-size:6px;margin-top:8px}.vehicle-choice{padding:10px 2px 8px}.garage-panel{padding:18px}.garage-panel .eyebrow{font-size:8px;margin-bottom:16px}.stat{margin:13px 0}.stat>div{font-size:8px}.upgrade{padding:11px 0}.upgrade b{font-size:9px}.upgrade small{font-size:8px}.upgrade button{font-size:8px;padding:9px 12px}.garage-panel>.primary{font-size:8px;padding:15px 25px 15px 18px;gap:0}.garage-panel>.page-note{font-size:8px}
.collection-grid{grid-template-columns:repeat(5,1fr)}.collection-item img{height:90px}.collection-item b{font-size:7px}.collection-item small{font-size:6px}.modal-page{max-width:680px}.settings-list{margin:18px 0}.setting{padding:13px 0}.setting b{font-size:11px}.setting small{font-size:9px}.setting select{font-size:10px;padding:8px 12px}.help-grid{gap:14px;margin:20px 0}.help-card{padding:19px}.help-card h3{font-size:13px}.help-card p{font-size:10px}.help-card .control-row{font-size:10px;margin:10px 0}.help-card kbd{font-size:8px}.result-grid{gap:32px;min-height:0}.result-hero h2{font-size:44px}.result-stars{font-size:35px;margin:17px 0 9px}.result-hero .eyebrow{font-size:7px}.result-hero img{height:85px;margin:12px}.result-hero p{font-size:9px;max-width:320px;margin:auto}.result-stats{margin:17px 0}.result-stats div{padding:14px}.result-stats span{font-size:8px}.result-stats b{font-size:22px;margin-top:7px}.result-grid .primary{font-size:8px;padding-left:22px;gap:0}.result-grid .secondary{font-size:8px;padding:16px}.result-grid .actions{gap:8px;margin-top:18px}.pause-page{margin:70px auto 0}.pause-page h2{font-size:52px}.boot h1{font-size:78px}
#race-ui{padding:20px 25px}.race-top{gap:20px}.race-brand{font-size:24px}.race-brand b{font-size:11px}.race-brand small{font-size:7px}#race-stats{gap:27px}#race-stats>div{min-width:54px}#race-stats b{font-size:23px}#race-stats span{font-size:7px}#race-progress{margin-top:16px}#race-cue{font-size:17px}#race-countdown{font-size:80px}.race-bottom{bottom:24px;left:25px;right:25px}.vehicle-hud>b{font-size:23px}.vehicle-hud>span:first-child{font-size:8px}.vehicle-hud>small{font-size:8px}.speed-hud{width:175px}.speed-hud strong{font-size:59px}.speed-hud small{font-size:7px}.keyboard-hint{font-size:6px;bottom:10px;left:34%}.touch-enabled .race-bottom{bottom:103px}.touch-enabled .speed-hud strong{font-size:49px}#touch-controls{bottom:20px;left:25px;right:25px}#touch-controls button{height:68px;min-width:76px;border-radius:0;padding:0 15px}#touch-controls button.nitro{min-width:122px}#touch-controls .touch-pedals button{font-size:12px}#touch-controls button.held{filter:brightness(1.6);background-color:transparent;color:var(--accent)}#touch-controls button.nitro.held{color:#10200c}.touch-steering,.touch-pedals{gap:14px}
#rotate-device{display:none;position:fixed;inset:0;z-index:1000;align-items:center;justify-content:center;flex-direction:column;background:radial-gradient(ellipse at 50% 50%,#173329,#081210 75%);text-align:center;padding:25px;gap:22px}.rotate-brand{color:#d4ff64;font-size:12px;font-weight:900;letter-spacing:3px}.phone-outline{width:110px;height:64px;border:3px solid #d4ff64;border-radius:12px;color:#d4ff64;display:grid;place-items:center;font-size:40px;margin:30px 0 10px;box-shadow:0 0 40px #d4ff641c}#rotate-device h2{font-size:28px;letter-spacing:-1px}#rotate-device p{font-size:13px;line-height:1.7}.rotate-size{font-size:8px;letter-spacing:2px;color:#9cb3a4;margin-top:18px}body.portrait #rotate-device{display:flex}body.portrait #game-frame{visibility:hidden}
body[data-scene="tour"] .page{padding:18px 0 12px}body[data-scene="tour"] .page-heading{margin-bottom:13px}body[data-scene="tour"] .tabs{margin-bottom:12px}.world-image{height:74px}.world-info .card-bottom{padding-top:8px;margin-top:8px}.world-card .world-info{padding-bottom:10px}body[data-scene="tour"] .page-note{margin-top:10px;font-size:7px}.garage-panel{padding:14px 17px}.garage-panel .eyebrow{margin-bottom:12px}.garage-panel .stat{margin:10px 0}.garage-panel .upgrade{padding:9px 0}.garage-panel>.primary{min-height:43px;padding-top:12px;padding-bottom:12px}.garage-panel>.page-note{font-size:7px;margin-top:9px}
