/* Machined glass, crisp native bevels and independent showroom staging. */
body:has(#app:is([data-screen="garage"],[data-screen="tracks"])) #illustrated-stage{background:url('../public/assets/setup-v6/garage-backdrop.png') center 54% / cover no-repeat;opacity:1;visibility:visible}
body:has(#app:is([data-screen="garage"],[data-screen="tracks"])) .screen-vignette{background:linear-gradient(0deg,#020611bc,transparent 29%,transparent 74%,#01071365),linear-gradient(90deg,#01061333,transparent 25%,transparent 73%,#0107137a)}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]){--setup-cyan:#61dfff;--setup-blue:#0e84e9;--ride-color:#ff375f;--setup-cut:polygon(16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px),0 16px);min-height:0;height:100dvh}
.setup-v6 .setup-icon{width:32px;height:32px;display:block;flex:none;filter:drop-shadow(0 0 5px currentColor)}
.setup-v6 .setup-panel,.setup-v6 .setup-metal{position:relative;isolation:isolate;border:0;border-image:none;background:transparent;filter:drop-shadow(0 0 6px #137cce78);clip-path:var(--setup-cut)}
.setup-v6 .setup-panel:before,.setup-v6 .setup-metal:before{content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(145deg,#d8f4ff 0,#298dbb 3%,#031327 10%,#1484cf 25%,#b7efff 48%,#1e79bd 52%,#041325 65%,#0d5da7 90%,#a0edff);clip-path:var(--setup-cut)}
.setup-v6 .setup-panel:after,.setup-v6 .setup-metal:after{content:'';position:absolute;inset:4px;z-index:-1;background:linear-gradient(150deg,#0a1a2ae8,#020a14f7 48%,#07182af0);clip-path:var(--setup-cut);box-shadow:inset 0 0 0 1px #55caffb0,inset 0 0 20px #06101c}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .topbar{height:108px;padding:0 1.6%;gap:0;background:linear-gradient(#01071480,transparent);align-items:center;border:0}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand{left:49%;top:0;width:clamp(300px,35vw,560px);height:105px;transform:translateX(-50%);padding:0;background:none;filter:drop-shadow(0 2px 11px #137ded70);z-index:2}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand img{width:100%;height:100%;object-fit:cover;object-position:center 53%;filter:none}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand span{font-size:75px}
.setup-v6 .setup-context{display:flex;align-items:center;gap:17px;z-index:3;position:relative;max-width:29%}
.setup-v6 .setup-context h1{margin:0;font-size:clamp(16px,1.7vw,27px);line-height:1.03;font-weight:900;font-style:italic;letter-spacing:.2px;color:#d6f7ff;text-shadow:0 0 8px #178fce;white-space:nowrap}
.setup-v6 .setup-back{height:67px;width:80px;flex:none;display:grid;place-items:center;padding:0;--setup-cut:polygon(20px 0,calc(100% - 15px) 0,100% 50%,calc(100% - 15px) 100%,20px 100%,0 50%)}
.setup-v6 .setup-back svg{width:31px;height:35px;fill:none;stroke:#e1f9ff;stroke-width:5;filter:drop-shadow(0 0 7px #35bfff)}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .top-actions{margin-left:auto;gap:9px;align-items:center;position:relative;top:auto;right:auto;left:auto;z-index:3}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet{height:64px;min-width:179px;width:auto;padding:8px 19px 8px 12px;margin:0;gap:9px;border:0;background:none}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet .coin-symbol{width:39px;height:42px;flex:none;font-size:0;background:url('../public/assets/ui-v2/coin.png') center/contain no-repeat}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet small{font-size:7px;letter-spacing:1.4px;color:#7dacc5;margin-bottom:2px}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet strong{font-size:27px;letter-spacing:.4px;font-weight:800;font-style:italic;line-height:1}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .icon-button{border:1px solid #3eb8f3;border-image:none;border-radius:3px;background:linear-gradient(135deg,#1a4e755e,#06121de8);box-shadow:inset 0 0 0 3px #132b46,inset 0 0 0 4px #28679755,0 0 8px #008fff3b;width:53px;height:58px;padding:11px;color:#e1f6ff;filter:none;display:grid;place-items:center;font-size:24px;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) #sound-button{width:35px;height:42px;padding:5px;font-size:21px}
#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) #help-button{display:none}
#app.setup-v6:is([data-screen="race"],[data-screen="result"]) .setup-context{display:none}
#garage-screen.setup-screen,#tracks-screen.setup-screen{--tile-height:clamp(106px,16vh,159px);position:absolute;inset:108px 1.7% 103px;padding:0;margin:0;overflow:visible}
#garage-screen .vehicle-details{position:absolute;top:1%;left:1%;width:30%;max-width:none;bottom:auto;border:0;border-image:none;background:linear-gradient(90deg,#030813a6,transparent);padding:7px 13px 13px;min-height:0;z-index:3;filter:none}
.vehicle-detail-heading{display:flex;gap:12px;align-items:center;color:#85c8e5;font-size:8px;letter-spacing:1.8px}
.vehicle-detail-heading>span:first-child{color:#b0d2df;font-size:9px}
#garage-screen #vehicle-name{font-size:clamp(39px,4.5vw,77px);line-height:.95;letter-spacing:1px;margin:7px 0 7px;color:#fff6ff;font-style:italic;font-weight:900;text-shadow:0 0 5px var(--ride-color),0 0 24px color-mix(in srgb,var(--ride-color) 80%,transparent);transform:skewX(-7deg)}
#garage-screen #vehicle-tagline{font-size:12px;letter-spacing:1px;color:#c4d9e9;margin:0;max-width:none;text-transform:uppercase;line-height:1.3;font-weight:600;font-style:italic}
#garage-screen .showroom-hero{position:absolute;left:0;right:28.5%;top:0;bottom:calc(var(--tile-height) + 23px);display:block;z-index:1;pointer-events:none}
#garage-screen .showroom-hero img{position:absolute;inset:auto 0 2%;width:100%;height:96%;object-fit:contain;object-position:center bottom;z-index:2;transform:none;filter:drop-shadow(0 12px 8px #01030a9c) drop-shadow(0 0 11px #1084d92b);animation:setup-car-in .35s ease-out}
#garage-screen .showroom-platform{position:absolute;left:4%;right:4%;bottom:4%;height:44%;border-radius:50%;z-index:1;border:2px solid #9edaff;background:radial-gradient(ellipse,#09132499 18%,#142437c9 60%,#1d4162 65%,#061222 67%,#72ccff 68%,#19a8ff 69%,#071120 70%,#243d51 76%,#030914 80%);box-shadow:0 9px 0 #010710,0 12px 1px #2186bd,0 15px 8px #000a,0 0 18px #038cff7d,inset 0 0 15px #158dcc8a;transform:none}
#garage-screen .showroom-platform i{position:absolute;inset:9% 5%;border-radius:50%;border:2px solid #53d9ff;box-shadow:0 0 10px #20bcff,inset 0 0 14px #1bafff55;opacity:.95}
#garage-screen .showroom-platform b{position:absolute;inset:19% 10%;border-radius:50%;border:1px solid #28a9e766;background:repeating-conic-gradient(from 0deg,#34bcff22 0deg 1deg,transparent 1deg 20deg);opacity:.5}
#garage-screen .vehicle-arrow,#tracks-screen .course-arrow{position:absolute;top:41%;width:42px;height:65px;padding:0;border:0;background:none;z-index:4;filter:drop-shadow(0 0 8px #00aaff);color:#78e5ff}
#garage-screen .vehicle-arrow.previous{left:1%}#garage-screen .vehicle-arrow.next{right:29.5%}
.setup-v6 .vehicle-arrow svg,.setup-v6 .course-arrow svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:6;stroke-linejoin:miter}
#garage-screen .vehicle-specs{position:absolute;left:auto;right:0;top:0;bottom:calc(var(--tile-height) + 158px);width:27.6%;padding:17px 17px 12px;z-index:4;min-height:207px}
#garage-screen .panel-title{font-size:9px;letter-spacing:1.5px;color:#b6e4fa;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 6px;padding-bottom:6px;border-bottom:1px solid #64c9f132}
#garage-screen .panel-title>span{font-size:6px;letter-spacing:1px;color:#5a8daa}
#garage-screen .vehicle-stats{display:grid;grid-template-rows:repeat(5,1fr);height:calc(100% - 25px);gap:0;width:100%}
#garage-screen .stat-row{display:grid;grid-template-columns:27px 63px minmax(0,1fr) 36px;gap:9px;align-items:center;border-bottom:1px solid #69a9ca20;padding:0;min-height:32px}
#garage-screen .stat-row:last-child{border:0}
#garage-screen .stat-row>.setup-icon{width:26px;height:26px;color:var(--stat-color);stroke-width:2.2;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--stat-color) 35%,transparent))}
#garage-screen .stat-row small{width:auto;color:#c5deef;font-size:12px;font-style:italic;font-weight:700;letter-spacing:.3px}
#garage-screen .stat-bar{display:grid;grid-template-columns:repeat(10,1fr);gap:3px;min-width:0}
#garage-screen .stat-bar i{height:16px;width:auto;background:#071522;border:1px solid #37515e;transform:skewX(-19deg);box-shadow:none}
#garage-screen .stat-bar i.on{background:linear-gradient(150deg,color-mix(in srgb,var(--stat-color) 45%,white),var(--stat-color) 65%);border-color:var(--stat-color);box-shadow:0 0 6px color-mix(in srgb,var(--stat-color) 26%,transparent)}
#garage-screen .stat-row>b{font-size:15px;font-style:italic;white-space:nowrap;color:#e5f5ff;font-weight:700;text-align:right}
#garage-screen .stat-row>b>span{font-size:11px;color:#8da9bc}
#garage-screen .vehicle-livery{position:absolute;right:0;bottom:calc(var(--tile-height) + 17px);width:27.6%;height:129px;padding:14px 17px 11px;z-index:4}
#garage-screen .vehicle-livery .panel-title{justify-content:flex-start;margin-bottom:8px;color:#67dcff;font-size:11px;font-style:italic;padding-bottom:4px}
#garage-screen .vehicle-livery .panel-title small{margin-left:auto;font-size:6px;letter-spacing:1.1px;font-style:normal;color:#7f9db3}
#garage-screen .vehicle-livery .panel-title .setup-icon{width:20px;height:20px}
#garage-screen .livery-finish{display:flex;align-items:center;gap:11px;min-height:43px}
#garage-screen .livery-swatch{display:block;width:46px;height:41px;flex:none;transform:skewX(-9deg);border:1px solid #bceaff;background:linear-gradient(140deg,#fff9 0,transparent 17%,#0007 45%,transparent 46%,#ffffff78 54%,transparent 58%),var(--paint-color,#ff375f);box-shadow:0 0 0 3px #031528,0 0 0 4px #28a1e9,0 0 12px color-mix(in srgb,var(--paint-color,#ff375f) 45%,transparent)}
#garage-screen .livery-finish strong{display:block;font-size:11px;font-weight:700;letter-spacing:1px;color:#e1f4ff}
#garage-screen .livery-finish small{display:block;font-size:6px;color:#6b9bb8;letter-spacing:.7px;margin-top:5px}
#garage-screen .vehicle-emblem{margin-left:auto;color:var(--ride-color)}#garage-screen .vehicle-emblem .setup-icon{width:35px;height:35px}
#garage-screen .vehicle-identity{display:flex;justify-content:space-between;gap:8px;margin-top:9px;padding-top:7px;border-top:1px solid #418ab72b;font-size:7px;letter-spacing:1px;color:#6d97b1}
#garage-screen .vehicle-identity b{color:#c3dded;font-weight:600}#garage-screen .vehicle-identity span{font-size:6px;letter-spacing:.5px}
#garage-screen .garage-mantra{position:absolute;left:4.4%;top:40%;font-size:clamp(22px,3vw,46px);line-height:.82;font-weight:900;font-style:italic;letter-spacing:-1px;color:#46aaff5e;text-shadow:0 0 14px #0086ff30;transform:rotate(-9deg) skewX(-8deg);pointer-events:none;z-index:0}
#garage-screen .vehicle-shelf{position:absolute;inset:auto 0 0;height:var(--tile-height);z-index:5}
#garage-screen .shelf-label{display:none}
#garage-screen .vehicle-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;height:100%}
#garage-screen .vehicle-card{position:relative;height:100%;padding:0;border:0;border-image:none;clip-path:var(--setup-cut);background:linear-gradient(145deg,#c8edff,#11659d 4%,#071c2e 28%,#1c8dcd 70%,#89dbfa);filter:none;isolation:isolate;overflow:hidden;transition:filter .18s,transform .18s}
#garage-screen .vehicle-card:before{content:'';position:absolute;inset:3px;background:radial-gradient(ellipse at 50% 18%,color-mix(in srgb,var(--car-color) 16%,#071322),#020915 80%);clip-path:var(--setup-cut);z-index:-1;box-shadow:inset 0 0 0 1px #4cadd666}
#garage-screen .vehicle-card:after{content:'';position:absolute;inset:auto 16% 0;height:2px;background:#167fc0;opacity:.8;box-shadow:none}
#garage-screen .vehicle-card img{position:absolute;inset:2% 1% auto;width:98%;height:76%;object-fit:contain;filter:drop-shadow(0 5px 6px #0009);transform:none}
#garage-screen .vehicle-tile-caption{position:absolute;left:9%;right:7%;bottom:9%;display:flex;align-items:center;gap:7px;height:22px;color:var(--car-color)}
#garage-screen .vehicle-tile-caption>.setup-icon{position:static;width:25px;height:25px;flex:none;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--car-color) 60%,transparent))}
#garage-screen .vehicle-card strong{position:static;display:block;font-size:clamp(12px,1.5vw,23px);font-style:italic;font-weight:800;letter-spacing:.4px;color:#daefff;line-height:1}
#garage-screen .vehicle-card .car-id{position:absolute;top:9px;right:12px;bottom:auto;font-size:7px;color:#496e88;letter-spacing:1px}
#garage-screen .vehicle-card.active{border:0;border-image:none;background:linear-gradient(145deg,#ecffff,#54dfff 4%,#0758b2 30%,#6ee9ff 61%,#d4ffff);box-shadow:none;filter:drop-shadow(0 0 7px #16aaff);transform:none}
#garage-screen .vehicle-card.active:before{background:radial-gradient(ellipse at 50% 15%,color-mix(in srgb,var(--car-color) 20%,#07182b),#05233c 85%);box-shadow:inset 0 0 0 1px #aeecff,inset 0 0 25px #16acff1f}
#garage-screen .vehicle-card.active:after{background:#b4f6ff;box-shadow:0 0 12px #3ad4ff;opacity:1}
#garage-screen .vehicle-card.active .car-id{color:#78d8ff}
#setup-footer.setup-footer{position:absolute;inset:auto 1.7% 0;height:100px;display:grid;grid-template-columns:1fr minmax(260px,390px) 1fr;gap:25px;align-items:center;padding:7px 0 12px;border:0;background:linear-gradient(0deg,#010716e0,transparent);z-index:6}
.setup-footer-left{display:flex;align-items:center;gap:13px;min-width:0}
#setup-footer .setup-secondary{height:61px;min-width:148px;border:2px solid #39b7f5;border-image:none;border-radius:3px;background:linear-gradient(135deg,#123a5ae8,#031021ec);box-shadow:inset 0 0 0 4px #041427,inset 0 0 0 5px #27608c,0 0 14px #1484da35;clip-path:var(--setup-cut);display:flex;align-items:center;justify-content:center;gap:13px;padding:8px 18px;color:#e5f8ff;font-size:20px;font-style:italic;letter-spacing:.8px}
#setup-footer .setup-secondary .setup-icon{width:29px;height:29px;color:#9feaff}
.setup-fairness{color:#9bb7cb;font-size:8px;letter-spacing:1.2px;line-height:1.6;white-space:nowrap}.setup-fairness i{color:#42b9ec;font-style:normal;padding:0 5px}.setup-fairness small{font-size:6px;letter-spacing:1px;color:#63849e}
#setup-footer .setup-gold{position:relative;isolation:isolate;border:0;border-image:none;background:linear-gradient(145deg,#fffbd7 0,#ffdf50 4%,#d98d04 12%,#ffd956 48%,#fff9bc 52%,#d18400 80%,#ffc637);color:#110d03;padding:9px 32px;clip-path:var(--setup-cut);height:78px;min-width:0;width:100%;font-size:clamp(24px,2.65vw,42px);font-weight:1000;font-style:italic;letter-spacing:.3px;display:flex;justify-content:center;align-items:center;gap:17px;text-shadow:0 1px 0 #fff2a3;box-shadow:none;filter:drop-shadow(0 0 9px #ffb80c77)}
#setup-footer .setup-gold:before{content:'';position:absolute;inset:6px;border:1px solid #fffcc1;clip-path:var(--setup-cut);background:linear-gradient(150deg,#ffed8b 0,#ffc519 45%,#ffdf55 46%,#d79400 100%);z-index:-1;box-shadow:inset 0 0 13px #fff7bfa6}
#setup-footer .setup-gold:after{content:'';position:absolute;inset:11px;clip-path:var(--setup-cut);border-top:1px solid #fffaab;border-bottom:1px solid #8e55044a;pointer-events:none}
#setup-footer .setup-gold>b{font-style:normal;font-size:27px;letter-spacing:-3px}
#setup-footer .bet-control{border:0;border-image:none;box-shadow:none;padding:0;background:none;width:200px;justify-self:end;min-height:0}
#setup-footer .bet-control label{font-size:9px;color:#a5cce2;letter-spacing:1.2px;display:flex;justify-content:space-between;margin-bottom:6px}
#setup-footer .bet-control label small{font-size:7px;color:#678fab}
#setup-footer .bet-control>div{height:43px;background:#020b17c9;border:1px solid #368db9;box-shadow:inset 0 0 15px #103655,0 0 0 3px #05152b;display:flex;padding:0}
#setup-footer .bet-control button{border:0;border-image:none;background:linear-gradient(#174d71,#0d253f);height:100%;width:38px;min-width:38px;color:#a1eaff;font-size:29px;line-height:1;box-shadow:none;filter:none;padding:0}
#setup-footer .bet-control input{width:91px;min-width:0;font-size:25px;font-style:italic;background:none;color:#eafaff;padding:0;border:0}
#setup-footer .bet-control .bet-coin{display:block;width:25px;height:25px;min-width:25px;flex:1;background:url('../public/assets/ui-v2/coin.png') center/contain no-repeat;font-size:0;margin:0 7px 0 0}
#app[data-screen="garage"] #race-button,#app[data-screen="garage"] #course-back,#app[data-screen="tracks"] #select-course,#app[data-screen="tracks"] #guide-button{display:none!important}
#app[data-screen="tracks"] #setup-footer{grid-template-columns:1fr 200px minmax(260px,350px);gap:35px}
#app[data-screen="tracks"] #setup-footer .bet-control{justify-self:center}
#app.setup-v6[data-screen="tracks"] .brand{left:0;transform:none;width:28%;max-width:445px;height:103px}
#app.setup-v6[data-screen="tracks"] .setup-context{position:absolute;left:32%;right:25%;justify-content:center;max-width:none}
#app.setup-v6[data-screen="tracks"] .setup-context h1{letter-spacing:5px;font-size:clamp(17px,1.7vw,27px);font-weight:700;text-shadow:0 0 11px #008cff}
#app.setup-v6[data-screen="tracks"] .setup-back{display:none}
#tracks-screen.setup-screen{--tile-height:clamp(125px,23vh,220px);inset:112px 1.7% 109px}
#tracks-screen .track-feature{position:absolute;top:0;bottom:calc(var(--tile-height) + 43px);left:12%;right:12%;padding:7px;overflow:hidden;min-height:200px;display:block;border:0;border-image:none;isolation:isolate;clip-path:var(--setup-cut);filter:drop-shadow(0 0 10px #1483de88)}
#tracks-screen .track-feature-image{position:absolute;inset:7px;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:1;clip-path:var(--setup-cut)}
#tracks-screen .track-feature-image:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#0510203b,transparent 40%),linear-gradient(90deg,#020d2433,transparent 40%,#01091877)}
#tracks-screen .track-feature-title{position:absolute;inset:8px 26% auto 8px;padding:16px 23px 20px;background:linear-gradient(90deg,#031021e8,#041225ac 60%,transparent);display:flex;align-items:center;gap:15px;z-index:2;border:0}
#tracks-screen .track-feature-title .setup-icon{width:53px;height:53px;color:#9feaff;stroke-width:1.7;filter:drop-shadow(0 0 7px #2abfff)}
#tracks-screen .track-feature-title h2{margin:0;font-size:clamp(28px,3.1vw,50px);letter-spacing:1.1px;font-style:italic;line-height:.95;text-shadow:0 0 9px #42b8ff44}
#tracks-screen .track-feature-title small{display:block;font-size:10px;letter-spacing:4px;color:#48caff;margin-top:8px;text-transform:uppercase;font-style:italic}
#tracks-screen .track-feature-details{position:absolute;top:14px;bottom:14px;right:14px;width:24%;padding:10px 16px;background:linear-gradient(135deg,#081423f2,#010812f7);border:1px solid #4abdf9;border-image:none;box-shadow:inset 0 0 0 3px #102b47,inset 0 0 0 4px #245c80;clip-path:var(--setup-cut);display:flex;flex-direction:column;gap:0;z-index:2;justify-content:space-between}
#tracks-screen .course-map{position:relative;height:46%;min-height:74px;padding:0 2px 5px;border-bottom:1px solid #2b91c56e;background:radial-gradient(ellipse,#112d494d,transparent 70%)}
#tracks-screen .course-map svg{width:100%;height:100%;margin:0;overflow:visible;background:none;fill:none;stroke:none;border:0}
#tracks-screen #preview-map{stroke:#c2f7ff;stroke-width:4;fill:none;stroke-linejoin:round;filter:drop-shadow(0 0 3px #2cc8ff) drop-shadow(0 0 8px #008bff)}
#tracks-screen .course-map-finish{position:absolute;right:13%;top:45%;font-size:24px;color:#eafaff;text-shadow:2px 2px #07111e;transform:rotate(20deg)}
#tracks-screen .course-stat{display:flex;align-items:center;gap:12px;min-height:32px;padding:6px 0;border-bottom:1px solid #4ba0c73b;font-style:italic}
#tracks-screen .course-stat:last-child{border:0}
#tracks-screen .course-stat>.setup-icon,#tracks-screen .course-stat>span>.setup-icon{width:25px;height:25px;color:#c6f3ff;filter:drop-shadow(0 0 4px #229fee)}
#tracks-screen .course-stat strong{font-size:25px;line-height:1;font-weight:700;white-space:nowrap}
#tracks-screen .course-stat small{font-size:13px;letter-spacing:1px;color:#accfe4}
#tracks-screen #track-weather{font-size:14px}#tracks-screen #track-risk{font-size:12px;white-space:normal;letter-spacing:.4px}
#tracks-screen .course-risk .setup-icon{color:#ff5874}
#tracks-screen .course-arrow{top:27%;width:47px;height:77px;color:#7ae8ff}
#tracks-screen .course-arrow.previous{left:8%}#tracks-screen .course-arrow.next{right:8%}
#tracks-screen .course-arrow.previous{color:#e16cff;filter:drop-shadow(0 0 8px #d722ff)}
#tracks-screen .course-mantra{position:absolute;left:1.5%;top:5%;font-size:clamp(30px,4vw,61px);line-height:.87;font-weight:900;letter-spacing:-1px;font-style:italic;transform:rotate(-8deg) skewX(-8deg);color:#42a8ff8c;text-shadow:0 0 16px #037cff35;pointer-events:none}
#tracks-screen .track-grid{position:absolute;left:0;right:0;bottom:27px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;height:var(--tile-height);margin:0}
#tracks-screen .track-card{position:relative;isolation:isolate;width:auto;height:100%;padding:4px;border:0;border-image:none;clip-path:var(--setup-cut);background:linear-gradient(145deg,#c3f1ff,#08558a 6%,#092139 36%,#1176ae 80%,#a9e5fc);filter:none;overflow:visible;box-shadow:none}
#tracks-screen .track-card:before{content:'';position:absolute;inset:4px;z-index:-1;clip-path:var(--setup-cut);background:#06121e;box-shadow:inset 0 0 0 1px #5cd6ff}
#tracks-screen .track-card:after{content:'';position:absolute;inset:4px;z-index:1;clip-path:var(--setup-cut);background:linear-gradient(0deg,#020c1bf5,transparent 55%);pointer-events:none}
#tracks-screen .track-card-image{position:absolute;inset:5px;clip-path:var(--setup-cut);background-size:cover;background-position:center!important;opacity:1;transform:none}
#tracks-screen .track-number{position:absolute;left:auto;right:13px;top:12px;font-size:8px;letter-spacing:1px;color:#b6def5;z-index:3;text-shadow:0 1px 4px #000}
#tracks-screen .track-copy{position:absolute;left:12px;right:10px;bottom:14px;z-index:3;display:flex;align-items:center;gap:11px;color:#c5f5ff}
#tracks-screen .track-copy .setup-icon{width:34px;height:34px;filter:drop-shadow(0 0 5px #3abaff)}
#tracks-screen .track-copy strong{font-size:clamp(15px,1.65vw,27px);font-style:italic;font-weight:800;letter-spacing:.4px;white-space:nowrap;color:#e9f8ff}
#tracks-screen .course-risk-dots{position:absolute;bottom:-12px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:5;filter:drop-shadow(0 0 5px #1fbdff)}
#tracks-screen .course-risk-dots i{width:5px;height:5px;border:1px solid #42b7e8;border-radius:50%;background:#031122}
#tracks-screen .course-risk-dots i.on{background:#94edff;box-shadow:0 0 6px #36bfff}
#tracks-screen .track-card.active{background:linear-gradient(145deg,#e6ffff,#66e5ff 4%,#0b69b3 30%,#76dcff 70%,#ebffff);border:0;border-image:none;filter:drop-shadow(0 0 8px #209dff);box-shadow:none}
#tracks-screen .track-card.active .track-number:after{display:none}
#tracks-screen .track-disclosure{position:absolute;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:20px;align-items:center;font-size:8px;letter-spacing:1px;line-height:1.3;margin:0;color:#7d9bb5;height:17px}
#tracks-screen .track-disclosure strong{color:#71cdee;font-size:8px;letter-spacing:2px;font-weight:600}
@keyframes setup-car-in{from{opacity:.3;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1100px) and (min-width:651px){
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet{min-width:152px;padding-right:15px;padding-left:10px;height:57px}.setup-v6 .setup-context{gap:10px}.setup-v6 .setup-back{width:65px;height:58px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .icon-button{width:45px;height:51px;padding:9px}.setup-v6 .top-actions .setup-icon{width:27px;height:27px}
 #garage-screen .vehicle-specs{padding:14px 12px 10px}#garage-screen .stat-row{grid-template-columns:23px 49px minmax(0,1fr) 30px;gap:6px}#garage-screen .stat-row>.setup-icon{width:23px;height:23px}#garage-screen .stat-row small{font-size:10px}#garage-screen .stat-row>b{font-size:13px}#garage-screen .stat-row>b>span{font-size:9px}#garage-screen .stat-bar{gap:2px}#garage-screen .stat-bar i{height:13px}
 #garage-screen .vehicle-livery{padding:13px 12px 9px}#garage-screen .livery-finish{gap:8px}#garage-screen .livery-finish strong{font-size:9px}#garage-screen .livery-finish small{font-size:5px}#garage-screen .livery-swatch{width:35px;height:35px}#garage-screen .vehicle-emblem .setup-icon{width:27px;height:27px}#garage-screen .vehicle-identity span{font-size:5px}#garage-screen .panel-title{font-size:8px;letter-spacing:1px}#garage-screen .panel-title>span{font-size:5px}
 #garage-screen .vehicle-grid{gap:7px}#garage-screen .vehicle-tile-caption{gap:5px;left:9%}#garage-screen .vehicle-tile-caption .setup-icon{width:20px;height:20px}#garage-screen .vehicle-card strong{font-size:15px}
 #setup-footer{gap:16px}.setup-fairness{display:none}#setup-footer .setup-secondary{min-width:133px}#setup-footer .bet-control{width:179px}#setup-footer .bet-control input{width:75px}#setup-footer .setup-gold{font-size:29px;padding-left:18px;padding-right:18px}#setup-footer .setup-gold>b{font-size:23px}
 #tracks-screen .track-feature{left:9%;right:9%}#tracks-screen .track-feature-details{padding:10px 12px;width:25%}#tracks-screen .track-feature-title{padding:14px 17px;gap:10px}#tracks-screen .track-feature-title .setup-icon{width:40px;height:40px}#tracks-screen .track-feature-title small{font-size:8px;letter-spacing:2px}#tracks-screen .course-arrow.previous{left:4.5%}#tracks-screen .course-arrow.next{right:4.5%}#tracks-screen .course-mantra{font-size:34px;left:0}#tracks-screen .course-stat{gap:8px}#tracks-screen .course-stat strong{font-size:22px}#tracks-screen .course-stat small{font-size:11px}#tracks-screen #track-weather{font-size:11px}#tracks-screen #track-risk{font-size:10px}#tracks-screen .track-grid{gap:9px}#tracks-screen .track-copy{gap:8px;left:11px;bottom:13px}#tracks-screen .track-copy .setup-icon{width:27px;height:27px}#tracks-screen .track-copy strong{font-size:17px}
}
@media(max-width:650px){
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .topbar{height:112px;padding:0 12px;align-items:flex-start}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand{left:50%;top:0;transform:translateX(-50%);width:245px;height:63px;max-width:none}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand img{object-position:center 53%}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-context{position:absolute;top:11px;left:11px;right:auto;max-width:none;display:block}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-context h1{position:absolute;top:58px;left:0;font-size:15px;letter-spacing:1px;white-space:nowrap}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-back{display:grid;width:47px;height:41px;--setup-cut:polygon(12px 0,calc(100% - 9px) 0,100% 50%,calc(100% - 9px) 100%,12px 100%,0 50%)}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-back svg{width:20px;height:24px;stroke-width:5}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .top-actions{position:absolute;top:11px;right:12px;width:42px;height:42px;margin:0;gap:0;display:block}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet{position:absolute;right:0;top:49px;height:38px;min-width:122px;width:122px;padding:5px 11px 5px 9px;gap:6px;--setup-cut:polygon(9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px),0 9px)}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet:after{inset:2px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet .coin-symbol{width:25px;height:28px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet small{font-size:5px;letter-spacing:1px;margin-bottom:0}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet strong{font-size:18px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .icon-button{width:42px;height:42px;padding:9px}.setup-v6 .top-actions .setup-icon{width:25px;height:25px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) #sound-button{display:none}
 #garage-screen.setup-screen{--hero-height:clamp(185px,28dvh,280px);--tile-height:100px;inset:111px 10px 124px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#2698d9 #031227;}
 #garage-screen .vehicle-details{left:4px;top:0;width:85%;padding:4px 8px;background:linear-gradient(90deg,#020a1b99,transparent)}
 #garage-screen .vehicle-detail-heading{font-size:6px;letter-spacing:1px;gap:9px}#garage-screen .vehicle-detail-heading>span:first-child{font-size:7px}
 #garage-screen #vehicle-name{font-size:39px;margin:5px 0 4px}#garage-screen #vehicle-tagline{font-size:8px;letter-spacing:.9px}
 #garage-screen .showroom-hero{top:17px;left:0;right:0;bottom:auto;height:calc(var(--hero-height) - 12px)}
 #garage-screen .showroom-hero img{inset:auto -3% 2%;width:106%;height:92%;object-position:center bottom;filter:drop-shadow(0 9px 7px #000a)}
 #garage-screen .showroom-platform{left:1%;right:1%;bottom:5%;height:42%;box-shadow:0 7px 0 #010710,0 9px 1px #2186bd,0 10px 8px #000a,0 0 11px #038cff7d}
 #garage-screen .showroom-platform i{border-width:1px}#garage-screen .showroom-platform b{display:none}
 #garage-screen .vehicle-arrow{top:calc(var(--hero-height) * .55);width:26px;height:41px}#garage-screen .vehicle-arrow.previous{left:0}#garage-screen .vehicle-arrow.next{right:0}
 #garage-screen .garage-mantra{display:none}
 #garage-screen .vehicle-specs{top:calc(var(--hero-height) + 12px);left:0;right:0;bottom:auto;width:auto;height:143px;min-height:0;padding:10px 15px 9px}
 #garage-screen .vehicle-specs .panel-title{font-size:7px;margin:0;padding-bottom:4px;height:15px;letter-spacing:1px}#garage-screen .vehicle-specs .panel-title>span{font-size:5px}
 #garage-screen .vehicle-stats{height:calc(100% - 17px)}#garage-screen .stat-row{grid-template-columns:19px 63px minmax(0,1fr) 30px;gap:10px;min-height:20px}
 #garage-screen .stat-row>.setup-icon{width:18px;height:18px}#garage-screen .stat-row small{font-size:9px}#garage-screen .stat-bar{gap:4px}#garage-screen .stat-bar i{height:11px}#garage-screen .stat-row>b{font-size:12px}#garage-screen .stat-row>b>span{font-size:8px}
 #garage-screen .vehicle-livery{top:calc(var(--hero-height) + 165px);left:0;right:0;bottom:auto;width:auto;height:75px;padding:9px 15px}
 #garage-screen .vehicle-livery .panel-title{height:15px;font-size:8px;letter-spacing:1px;padding-bottom:3px;margin-bottom:5px}#garage-screen .vehicle-livery .panel-title small{font-size:5px}#garage-screen .vehicle-livery .panel-title .setup-icon{width:14px;height:14px}
 #garage-screen .livery-finish{min-height:29px;gap:10px}#garage-screen .livery-swatch{width:34px;height:27px}#garage-screen .livery-finish strong{font-size:9px}#garage-screen .livery-finish small{font-size:5px;margin-top:3px}#garage-screen .vehicle-emblem .setup-icon{width:28px;height:28px}#garage-screen .vehicle-identity{display:none}
 #garage-screen .vehicle-shelf{top:calc(var(--hero-height) + 250px);left:0;right:0;bottom:auto;height:100px;padding-bottom:4px}
 #garage-screen .vehicle-grid{display:flex;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:0 2px 3px;scrollbar-width:thin;scrollbar-color:#3ec4ff #031022}
 #garage-screen .vehicle-card{flex:0 0 108px;height:93px;scroll-snap-align:center;--setup-cut:polygon(11px 0,calc(100% - 11px) 0,100% 11px,100% calc(100% - 11px),calc(100% - 11px) 100%,11px 100%,0 calc(100% - 11px),0 11px)}
 #garage-screen .vehicle-card img{height:73%}#garage-screen .vehicle-tile-caption{bottom:9%;left:9%;gap:5px;height:18px}#garage-screen .vehicle-tile-caption .setup-icon{width:18px;height:18px}#garage-screen .vehicle-card strong{font-size:13px}#garage-screen .vehicle-card .car-id{font-size:5px;top:8px;right:10px}
 #setup-footer.setup-footer{inset:auto 10px 0;height:120px;grid-template-columns:90px minmax(0,1fr);grid-template-rows:53px 43px;gap:9px 13px;padding:6px 0 9px;align-content:center}
 #setup-footer .setup-footer-left{grid-column:1;grid-row:2;gap:0}.setup-fairness{display:none}
 #setup-footer .setup-secondary{height:41px;min-width:90px;width:90px;padding:6px 9px;gap:7px;font-size:14px;border-width:1px;box-shadow:inset 0 0 0 2px #041427,inset 0 0 0 3px #27608c}
 #setup-footer .setup-secondary .setup-icon{width:21px;height:21px}
 #setup-footer #select-course{grid-column:1 / -1;grid-row:1;height:53px;font-size:27px;gap:16px;padding:6px 20px}
 #setup-footer .setup-gold:before{inset:4px}#setup-footer .setup-gold:after{inset:8px}#setup-footer .setup-gold>b{font-size:23px}
 #setup-footer .bet-control{grid-column:2;grid-row:2;width:100%;max-width:246px;padding:0;justify-self:end}
 #setup-footer .bet-control label{font-size:6px;margin-bottom:3px;letter-spacing:1px}#setup-footer .bet-control label small{font-size:5px}#setup-footer .bet-control>div{height:30px}#setup-footer .bet-control button{width:33px;min-width:33px;font-size:24px}#setup-footer .bet-control input{width:100%;font-size:20px}#setup-footer .bet-control .bet-coin{width:20px;min-width:20px;height:21px;margin-right:6px}
 #app[data-screen="tracks"] #setup-footer{grid-template-columns:90px minmax(0,1fr);grid-template-rows:36px 53px;gap:8px 12px;height:113px}
 #app[data-screen="tracks"] #setup-footer .bet-control{grid-column:1 / -1;grid-row:1;justify-self:end;width:200px}
 #app[data-screen="tracks"] #setup-footer .setup-footer-left{grid-row:2;grid-column:1}#app[data-screen="tracks"] #setup-footer .setup-secondary{height:51px}
 #app[data-screen="tracks"] #race-button{grid-column:2;grid-row:2;height:53px;font-size:30px;gap:14px}
 #tracks-screen.setup-screen{--course-height:clamp(254px,40dvh,380px);--tile-height:132px;inset:111px 10px 117px;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#2698d9 #031227;overscroll-behavior:contain}
 #tracks-screen .track-feature{left:0;right:0;top:0;bottom:auto;height:var(--course-height);min-height:0;padding:5px}
 #tracks-screen .track-feature-image{inset:5px}#tracks-screen .track-feature-title{inset:6px 5px auto;padding:15px 16px;gap:10px}
 #tracks-screen .track-feature-title h2{font-size:26px;letter-spacing:.4px}#tracks-screen .track-feature-title small{font-size:7px;letter-spacing:2px;margin-top:5px}#tracks-screen .track-feature-title .setup-icon{width:35px;height:35px}
 #tracks-screen .track-feature-details{inset:auto 10px 10px;width:auto;height:93px;display:grid;grid-template-columns:85px 1fr 1.15fr;grid-template-rows:1fr 1fr;gap:0 10px;padding:8px 11px;--setup-cut:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
 #tracks-screen .course-map{grid-column:1;grid-row:1 / 3;width:85px;height:100%;min-height:0;border-bottom:0;border-right:1px solid #2b91c56e;padding:0 9px 0 0}.course-map-finish{display:none}
 #tracks-screen .course-stat{min-height:0;gap:6px;padding:3px 0}#tracks-screen .course-stat:nth-child(2){grid-column:2;grid-row:1}#tracks-screen .course-stat:nth-child(3){grid-column:3;grid-row:1}#tracks-screen .course-stat:nth-child(4){grid-column:2;grid-row:2;border:0}#tracks-screen .course-stat:nth-child(5){grid-column:3;grid-row:2;border:0}
 #tracks-screen .course-stat>span>.setup-icon{width:19px;height:19px}#tracks-screen .course-stat strong{font-size:20px}#tracks-screen .course-stat small{font-size:9px}#tracks-screen #track-weather{font-size:8px;white-space:normal}#tracks-screen #track-risk{font-size:8px;letter-spacing:0}
 #tracks-screen .course-mantra{display:none}#tracks-screen .course-arrow{top:calc(var(--course-height) * .37);height:43px;width:27px}#tracks-screen .course-arrow.previous{left:10px}#tracks-screen .course-arrow.next{right:10px}
 #tracks-screen .track-grid{top:calc(var(--course-height) + 12px);bottom:auto;height:136px;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;gap:9px;padding-bottom:4px;scrollbar-width:thin;scrollbar-color:#2da5e1 #051122}
 #tracks-screen .track-card{flex:0 0 168px;height:128px;scroll-snap-align:center}#tracks-screen .track-copy{left:12px;bottom:12px;gap:8px}#tracks-screen .track-copy strong{font-size:18px}#tracks-screen .track-copy .setup-icon{width:28px;height:28px}#tracks-screen .course-risk-dots{display:none}#tracks-screen .track-number{font-size:7px}
 #tracks-screen .track-disclosure{top:calc(var(--course-height) + 157px);bottom:auto;height:30px;display:block;text-align:center;font-size:6px;line-height:1.5}#tracks-screen .track-disclosure strong{display:block;font-size:7px;letter-spacing:1.4px}
}
@media(max-width:365px){#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand{width:218px;height:60px}.setup-v6 .setup-context h1{font-size:13px!important}#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet{min-width:113px;width:113px}#garage-screen .stat-row{grid-template-columns:18px 57px minmax(0,1fr) 28px;gap:7px}#garage-screen .stat-bar{gap:3px}#garage-screen .vehicle-livery .panel-title small{font-size:4px}#tracks-screen .track-feature-title h2{font-size:23px}#tracks-screen .track-feature-details{grid-template-columns:70px 1fr 1.15fr;gap:0 7px;padding-left:9px;padding-right:9px}#tracks-screen .course-map{width:70px}}
@media(min-width:651px) and (max-height:560px){
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .topbar{height:65px;padding:0 12px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .brand{top:-1px;left:49%;transform:translateX(-50%);width:235px;height:67px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-context{left:auto;right:auto;top:auto;position:relative;max-width:31%;gap:9px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-context h1{font-size:15px;letter-spacing:.6px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .setup-back{width:48px;height:42px}.setup-v6 .setup-back svg{width:21px;height:27px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .top-actions{gap:7px;top:auto;right:auto}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet{height:42px;min-width:136px;padding:5px 12px;gap:6px}#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet .coin-symbol{width:28px;height:30px}#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet small{font-size:5px}#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .wallet strong{font-size:20px}
 #app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) .icon-button{width:39px;height:41px;padding:7px}#app.setup-v6:is([data-screen="garage"],[data-screen="tracks"]) #sound-button{width:30px;height:36px;padding:3px;font-size:19px}.setup-v6 .top-actions .setup-icon{width:25px;height:25px}
 #garage-screen.setup-screen{--tile-height:72px;inset:68px 12px 71px}#garage-screen .vehicle-details{left:1%;top:0;padding:3px 7px;width:30%}#garage-screen .vehicle-detail-heading{font-size:5px;letter-spacing:.7px}#garage-screen .vehicle-detail-heading>span:first-child{font-size:6px}#garage-screen #vehicle-name{font-size:31px;margin:4px 0}#garage-screen #vehicle-tagline{font-size:7px}
 #garage-screen .showroom-hero{left:4%;right:33%;top:-5px;bottom:calc(var(--tile-height) + 7px)}#garage-screen .showroom-hero img{height:104%;bottom:-1%}#garage-screen .showroom-platform{left:8%;right:8%;height:44%;bottom:4%}
 #garage-screen .vehicle-arrow{width:25px;height:39px;top:29%}#garage-screen .vehicle-arrow.previous{left:4%}#garage-screen .vehicle-arrow.next{right:33.5%}#garage-screen .garage-mantra{display:none}
 #garage-screen .vehicle-specs{width:32%;top:0;bottom:calc(var(--tile-height) + 47px);padding:9px 12px 7px;min-height:0}#garage-screen .vehicle-specs .panel-title{height:13px;margin:0;padding-bottom:3px;font-size:6px}#garage-screen .panel-title>span{font-size:5px}#garage-screen .vehicle-stats{height:calc(100% - 15px)}
 #garage-screen .stat-row{grid-template-columns:17px 53px minmax(0,1fr) 28px;gap:7px;min-height:17px}#garage-screen .stat-row>.setup-icon{width:17px;height:17px}#garage-screen .stat-row small{font-size:8px}#garage-screen .stat-row>b{font-size:11px}#garage-screen .stat-row>b>span{font-size:8px}#garage-screen .stat-bar{gap:2px}#garage-screen .stat-bar i{height:9px}
 #garage-screen .vehicle-livery{width:32%;height:34px;bottom:calc(var(--tile-height) + 7px);padding:6px 13px}#garage-screen .vehicle-livery .panel-title,#garage-screen .vehicle-identity,#garage-screen .livery-finish small{display:none}#garage-screen .livery-finish{min-height:22px;gap:10px}#garage-screen .livery-swatch{width:26px;height:19px}#garage-screen .livery-finish strong{font-size:8px}#garage-screen .vehicle-emblem .setup-icon{width:21px;height:21px}
 #garage-screen .vehicle-grid{gap:7px}#garage-screen .vehicle-card img{height:75%;top:0}#garage-screen .vehicle-tile-caption{bottom:8%;gap:5px;height:17px}#garage-screen .vehicle-tile-caption .setup-icon{width:17px;height:17px}#garage-screen .vehicle-card strong{font-size:13px}#garage-screen .vehicle-card .car-id{top:7px;right:9px;font-size:5px}
 #setup-footer.setup-footer{height:70px;inset:auto 12px 0;grid-template-columns:1fr minmax(250px,330px) 1fr;gap:16px;padding:5px 0 7px}#setup-footer .setup-secondary{min-width:125px;height:44px;padding:5px 15px;font-size:16px;gap:10px}#setup-footer .setup-secondary .setup-icon{width:23px;height:23px}#setup-footer .setup-gold{height:57px;font-size:27px;gap:14px}#setup-footer .setup-gold>b{font-size:22px}
 #setup-footer .bet-control{width:169px}#setup-footer .bet-control label{font-size:6px;margin-bottom:4px}#setup-footer .bet-control label small{font-size:5px}#setup-footer .bet-control>div{height:32px}#setup-footer .bet-control input{width:71px;font-size:21px}#setup-footer .bet-control button{width:31px;min-width:31px;font-size:25px}#setup-footer .bet-control .bet-coin{width:19px;min-width:19px;height:22px}
 #app.setup-v6[data-screen="tracks"] .brand{left:0;transform:none;width:227px}#app.setup-v6[data-screen="tracks"] .setup-context{position:absolute;left:28%;right:27%;justify-content:center;max-width:none}#app.setup-v6[data-screen="tracks"] .setup-context h1{font-size:16px;letter-spacing:2px}#app.setup-v6[data-screen="tracks"] .setup-back{display:none}
 #tracks-screen.setup-screen{--tile-height:78px;inset:68px 12px 76px}#tracks-screen .track-feature{left:8%;right:8%;bottom:calc(var(--tile-height) + 25px);min-height:0}#tracks-screen .track-feature-title{padding:10px 13px;gap:9px;right:30%}#tracks-screen .track-feature-title h2{font-size:26px}#tracks-screen .track-feature-title small{font-size:6px;letter-spacing:1.8px;margin-top:4px}#tracks-screen .track-feature-title .setup-icon{width:31px;height:31px}
 #tracks-screen .track-feature-details{top:11px;right:11px;bottom:11px;width:29%;display:grid;grid-template-columns:58px 1fr 1fr;grid-template-rows:1fr 1fr;gap:0 7px;padding:8px 10px}#tracks-screen .course-map{grid-column:1;grid-row:1 / 3;height:100%;min-height:0;border:0;padding:0 4px 0 0}#tracks-screen .course-map-finish{display:none}
 #tracks-screen .course-stat{min-height:0;gap:4px;padding:2px 0;border:0;flex-wrap:wrap}#tracks-screen .course-stat:nth-child(2){grid-column:2;grid-row:1}#tracks-screen .course-stat:nth-child(3){grid-column:3;grid-row:1}#tracks-screen .course-stat:nth-child(4){grid-column:2;grid-row:2}#tracks-screen .course-stat:nth-child(5){grid-column:3;grid-row:2}
 #tracks-screen .course-stat>span>.setup-icon{width:16px;height:16px}#tracks-screen .course-stat strong{font-size:17px}#tracks-screen .course-stat small{font-size:7px}#tracks-screen #track-weather,#tracks-screen #track-risk{font-size:6px;white-space:normal;letter-spacing:0;line-height:1.2}
 #tracks-screen .course-mantra{font-size:28px;left:0}#tracks-screen .course-arrow{top:18%;height:44px;width:28px}#tracks-screen .course-arrow.previous{left:4%}#tracks-screen .course-arrow.next{right:4%}
 #tracks-screen .track-grid{bottom:17px;gap:9px}#tracks-screen .track-copy{left:10px;bottom:10px;gap:7px}#tracks-screen .track-copy .setup-icon{width:24px;height:24px}#tracks-screen .track-copy strong{font-size:15px}#tracks-screen .track-number{font-size:6px;top:9px;right:11px}#tracks-screen .course-risk-dots{display:none}#tracks-screen .track-disclosure{height:12px;font-size:6px;gap:12px}#tracks-screen .track-disclosure strong{font-size:6px;letter-spacing:1.2px}
 #app[data-screen="tracks"] #setup-footer{height:72px;grid-template-columns:1fr 169px minmax(230px,300px);gap:24px}
}
@media(prefers-reduced-motion:reduce){#garage-screen .showroom-hero img{animation:none}#garage-screen .vehicle-card{transition:none}}
#app[data-reduced-motion="true"] #garage-screen .showroom-hero img{animation:none}

/* Vector-cut chrome rim: a thin luminous channel sits between two dark bevels.
   Nine-slice drawing preserves the chamfers without stretching their corners. */
:root{--setup-frame:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M16 1H48L63 16V48L48 63H16L1 48V16Z' fill='none' stroke='%237a9eb5' stroke-width='1.2'/%3E%3Cpath d='M17 4H47L60 17V47L47 60H17L4 47V17Z' fill='none' stroke='%230a558b' stroke-width='4'/%3E%3Cpath d='M17 4H47L60 17V47L47 60H17L4 47V17Z' fill='none' stroke='%2365dfff' stroke-width='1.2'/%3E%3Cpath d='M18 7H46L57 18V46L46 57H18L7 46V18Z' fill='none' stroke='%233b6984' stroke-width='1'/%3E%3Cpath d='M18 1H43M63 21V43M46 63H20M1 43V22' fill='none' stroke='%23e1f7ff' stroke-width='.75'/%3E%3C/svg%3E")}
.setup-v6 .setup-panel:before{background:linear-gradient(145deg,#19364b,#050e19 17%,#082840 48%,#132d43 52%,#030b16 82%,#1d4257);border:0;border-image:var(--setup-frame) 24 / 24px / 0 stretch;box-shadow:inset 0 0 16px #1b98dc24}
.setup-v6 .setup-panel:after{inset:8px;clip-path:polygon(11px 0,calc(100% - 11px) 0,100% 11px,100% calc(100% - 11px),calc(100% - 11px) 100%,11px 100%,0 calc(100% - 11px),0 11px);box-shadow:inset 0 1px 0 #72bed528,inset 0 0 24px #040c18}
#garage-screen .vehicle-card,#garage-screen .vehicle-card.active,#tracks-screen .track-card,#tracks-screen .track-card.active{background:linear-gradient(140deg,#14394f,#040c16 24%,#10273b 61%,#072139 86%,#265571)}
#garage-screen .vehicle-card:before{inset:7px;box-shadow:inset 0 0 15px #092037}
#garage-screen .vehicle-card:after{inset:0;height:auto;opacity:1;background:none;border:0;border-image:var(--setup-frame) 24 / 24px / 0 stretch;box-shadow:none;z-index:4;pointer-events:none}
#garage-screen .vehicle-card.active:after{background:none;box-shadow:inset 0 0 22px #19b7ff26;filter:drop-shadow(0 0 2px #2cc4ff)}
#tracks-screen .track-card:after{inset:0;border:0;border-image:var(--setup-frame) 24 / 24px / 0 stretch;background:linear-gradient(0deg,#020c1bf5,transparent 55%)}
#tracks-screen .track-card-image{inset:8px}
#tracks-screen .track-feature-image:before,#tracks-screen .track-card-image:before{content:none;display:none}
#tracks-screen .track-feature-details .setup-icon path{fill:none;stroke:currentColor;stroke-width:2;filter:none}
#setup-footer .setup-secondary{position:relative;border-color:transparent;background:linear-gradient(135deg,#102d45eb,#020a16ef 60%,#0e2940);box-shadow:inset 0 0 20px #2a90cc18;isolation:isolate}
#setup-footer .setup-secondary:after{content:'';position:absolute;inset:-2px;pointer-events:none;border:0;border-image:var(--setup-frame) 24 / 24px / 0 stretch;filter:drop-shadow(0 0 3px #39bbff55)}
#setup-footer .setup-gold{filter:drop-shadow(0 0 11px #ffb80c8a)}
#setup-footer .setup-gold:before{box-shadow:inset 0 1px 0 #ffffe6,inset 0 -2px 0 #b16b08,inset 0 0 13px #fff7bf9c}
#setup-footer .setup-gold:after{background:linear-gradient(120deg,transparent 24%,#fff6b925 25%,transparent 26%,transparent 73%,#fff9d622 74%,transparent 75%);border-top-color:#fffec8}
#modal{border:10px solid transparent;border-image:var(--setup-frame) 24 / 24px / 0 stretch;background:linear-gradient(135deg,#102438,#030b16 50%,#081626);padding:clamp(14px,3vw,28px);box-shadow:0 0 80px #000d,inset 0 0 40px #158cd50a;filter:drop-shadow(0 0 11px #1d96eb40);scrollbar-width:thin;scrollbar-color:#2189b7 #06131e;clip-path:polygon(16px 0,calc(100% - 16px) 0,100% 16px,100% calc(100% - 16px),calc(100% - 16px) 100%,16px 100%,0 calc(100% - 16px),0 16px)}
#modal .modal-header{border-bottom:1px solid #3badde55;background:#081422;box-shadow:0 -14px #081422;padding-bottom:12px}
#close-modal{border:1px solid transparent;border-image:var(--setup-frame) 24 / 17px / 0 stretch;background:linear-gradient(135deg,#163b53,#071322);box-shadow:inset 0 0 12px #2b9be226;color:#d5f4ff;filter:none;font-size:23px;clip-path:polygon(10px 0,calc(100% - 10px) 0,100% 10px,100% calc(100% - 10px),calc(100% - 10px) 100%,10px 100%,0 calc(100% - 10px),0 10px)}
#modal .rule-power,#modal .settings-row,#modal .history-row{border:1px solid #2e719655;border-image:none;background:linear-gradient(135deg,#0e2539b0,#040d19b0);box-shadow:inset 0 1px 0 #95e4ff0c;padding:13px}
#modal .rule-power{padding:12px 10px}
#modal .history-row{padding:12px}
/* These scenes use deliberate absolute composition; discard the retired
   responsive grid's placement and sizing before it can alter their anchors. */
#garage-screen.setup-screen,#tracks-screen.setup-screen{display:block;grid-template:none;gap:0}
#garage-screen>.vehicle-details,#garage-screen>.showroom-hero,#garage-screen>.vehicle-specs,#garage-screen>.vehicle-livery,#garage-screen>.vehicle-shelf,#tracks-screen>.track-feature,#tracks-screen>.track-grid,#tracks-screen>.track-disclosure{grid-area:auto;align-self:auto}
#garage-screen .vehicle-stats{grid-template-columns:minmax(0,1fr)}
#garage-screen .showroom-hero img{margin:0;max-height:none}
#garage-screen .stat-bar i{min-width:0;max-width:none}
#garage-screen .vehicle-grid,#tracks-screen .track-grid{grid-template-rows:minmax(0,1fr)}
#garage-screen .vehicle-card,#tracks-screen .track-card{min-height:0}
#garage-screen .vehicle-card:after{display:block}
#garage-screen .vehicle-tile-caption strong{position:static;inset:auto;transform:none}
#tracks-screen .track-feature-title{width:auto;max-width:none}
#tracks-screen .track-feature-details .setup-icon{min-height:0;grid-area:auto}
.setup-v6 button:focus-visible,#close-modal:focus-visible{outline:2px solid #fff2a6;outline-offset:-8px;filter:brightness(1.22) drop-shadow(0 0 7px #ffc94b)}
.preparation-header img{object-fit:cover;object-position:center 53%}
#boot{background:linear-gradient(#02071388,#020713cc),url('../public/assets/setup-v6/garage-backdrop.png') center / cover no-repeat}
.boot-logo{background:none}
.boot-logo img{width:100%;height:100%;object-fit:cover;object-position:center 53%}
