:root{color-scheme:dark;--ink:#f4f2e7;--muted:#aab9bc;--acid:#e5fa7b;--line:#ffffff26;--panel:#112129ed}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#172931;color:var(--ink);font-family:-apple-system,'PingFang SC','Microsoft YaHei',sans-serif}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:transparent}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--acid);outline-offset:5px}button{transition:background .2s,transform .2s}button:hover{filter:brightness(1.13)}button:active{transform:translateY(1px)}[hidden]{display:none!important}#game,#weatherfx{position:absolute;inset:0;width:100%;height:100%;display:block}#weatherfx{pointer-events:none;z-index:5}#top{position:absolute;inset:0 0 auto;height:92px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;z-index:15;border-bottom:1px solid var(--line);background:linear-gradient(#09191b6b,transparent)}.wordmark{text-decoration:none;color:var(--acid);font:800 34px 'Avenir Next Condensed','Arial Narrow',sans-serif;letter-spacing:-2px;display:flex;align-items:center;gap:18px}.wordmark span{font:600 12px 'Avenir Next Condensed','Arial Narrow',sans-serif;letter-spacing:3px;color:var(--ink)}.location{font:500 12px 'Avenir Next Condensed','Arial Narrow',sans-serif;letter-spacing:2px;display:flex;align-items:center;gap:12px}.location i{width:6px;height:6px;border-radius:50%;background:var(--acid);box-shadow:0 0 12px var(--acid)}.location span{font:400 11px 'Noto Sans SC';color:#c5d2ce;letter-spacing:1px}.top-actions{display:flex;gap:12px}.top-actions button{font-size:11px;letter-spacing:1px;padding:9px 12px;border:1px solid var(--line);border-radius:3px}.screen{position:absolute;inset:92px 0 0;z-index:6;background:linear-gradient(90deg,#081e25eb 0%,#0a2026b0 30%,#08232900 68%);pointer-events:none}.screen button{pointer-events:auto}.hero{position:absolute;left:6%;top:10%;width:440px;max-width:45%}.eyebrow{font:500 11px 'Avenir Next Condensed','Arial Narrow',sans-serif;letter-spacing:2px;color:#b6c8c9}.hero .eyebrow{display:flex;gap:15px;align-items:center}.eyebrow span{color:var(--acid)}h1{font-size:clamp(40px,4.6vw,76px);letter-spacing:-2px;line-height:1.28;margin:22px 0 22px;font-weight:800}.intro{color:#c4d0cf;font-size:13px;line-height:2;letter-spacing:1px}.race-info{display:flex;gap:32px;margin:30px 0}.race-info div{display:flex;flex-direction:column;gap:3px}.race-info b{font:500 34px 'Barlow Condensed';letter-spacing:1px}.race-info span{font-size:9px;color:#adbdbe;letter-spacing:1px}.start-actions{display:flex;gap:12px}.primary{background:var(--acid);color:#1c2d24;padding:17px 23px;min-height:52px;font-size:13px;font-weight:700;letter-spacing:1px}.primary span{margin-left:40px;font-size:20px}.secondary{border:1px solid #ffffff4a;padding:15px 22px;font-size:12px;background:#152f354d}.best-record{font-size:10px;color:#b9c7c8;margin-top:17px}.garage{position:absolute;right:5%;bottom:11%;width:300px;text-shadow:0 1px 8px #031819}.garage-label{font:500 11px 'Barlow Condensed';letter-spacing:2px;color:var(--acid);display:flex;justify-content:space-between}.garage h2{font:600 43px 'Barlow Condensed';letter-spacing:1px;margin:5px 0}.garage p{font-size:10px;color:#e0e5dc;margin:0 0 20px}.liveries{display:flex;gap:8px}.liveries button{padding:10px 8px;font:600 10px 'Barlow Condensed';letter-spacing:1px;border:1px solid #ffffff44;background:#0e283ab3;display:flex;align-items:center;gap:7px}.liveries button.selected{border-color:var(--acid);background:#223d36}.liveries i{display:block;width:13px;height:13px;background:var(--swatch);border-radius:2px}.specs{display:flex;gap:17px;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.specs span{display:flex;flex-direction:column;gap:6px;font-size:9px;color:#b8c9ca}.specs b{font-size:11px;color:var(--ink);font-weight:500}.menu-bottom{position:absolute;bottom:0;width:100%;padding:20px 4%;display:flex;justify-content:space-between;border-top:1px solid var(--line);font-size:10px;letter-spacing:1px;color:#bdccce}.menu-bottom b{padding:0 12px;color:#759396}#load{position:absolute;inset:0;z-index:100;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#101e26}.brand{font:700 50px 'Barlow Condensed';letter-spacing:4px;color:var(--acid)}.brand span{color:var(--ink)}.brand i{font-size:14px;vertical-align:top;color:#788c94;font-style:normal}#load p{font-size:12px;color:#aabac0}.loadbar{height:2px;width:260px;background:#ffffff17;margin-top:20px;overflow:hidden}.loadbar span{display:block;width:50%;height:100%;background:var(--acid);animation:loading 1.5s ease-in-out infinite}@keyframes loading{from{transform:translateX(-100%)}to{transform:translateX(300%)}}#hud{position:absolute;inset:0;z-index:8;pointer-events:none}.race-top{position:absolute;top:117px;left:4%;display:flex;gap:30px;text-shadow:0 2px 12px #0008}.position,.laps,.timing{display:flex;flex-direction:column}.race-top span{font:500 10px 'Barlow Condensed';letter-spacing:2px;color:#d0dbd8}.race-top b{font:600 47px 'Barlow Condensed';line-height:1.15}.race-top b small{font-size:22px;color:#c3cfca;margin-left:3px}.timing b{font-size:31px;margin:4px 0}.timing small{font-size:10px;color:#d6ded9}.conditions{position:absolute;right:4%;top:115px;display:flex;gap:15px;font-size:11px;text-shadow:0 2px 8px #000}.conditions span+span{border-left:1px solid #fff5;padding-left:15px}#leaderboard{position:absolute;left:4%;top:220px;font:500 13px 'Barlow Condensed';letter-spacing:1px;width:150px}.driver{display:flex;justify-content:space-between;margin:5px 0;padding:6px 10px;background:#10242d80}.driver.me{color:var(--acid);background:#152d2bd9;border-left:2px solid var(--acid)}#notice{position:absolute;top:26%;left:50%;transform:translateX(-50%);font-size:14px;letter-spacing:2px;text-align:center;padding:10px 18px;background:#12212b99;border-radius:3px;opacity:0;transition:opacity .2s;white-space:nowrap}#notice.show{opacity:1}#countdown{position:absolute;top:34%;width:100%;text-align:center;font:700 115px 'Barlow Condensed';text-shadow:0 4px 30px #112b29}.map-wrap{position:absolute;bottom:62px;left:3%;width:185px;text-align:center}.map-wrap canvas{width:185px;height:148px;filter:drop-shadow(0 2px 8px #07191c)}.map-wrap span{font:500 8px 'Barlow Condensed';letter-spacing:1px;color:#e6eee8}.speedometer{position:absolute;right:5%;bottom:72px;display:flex;gap:20px;align-items:center;text-shadow:0 3px 20px #0a1518}.speedometer>div:last-child{display:flex;align-items:baseline;position:relative}.speedometer b{font:500 80px 'Barlow Condensed';letter-spacing:-1px;line-height:1}.speedometer span{font:500 11px 'Barlow Condensed';letter-spacing:2px;margin-left:9px}.speedometer .gear{border:1px solid #fff6;padding:8px 13px;display:flex;flex-direction:column;align-items:center}.gear span{font-size:9px;margin:0 0 2px}.gear b{font-size:32px;color:var(--acid)}.rpm{position:absolute;left:2px;right:0;bottom:-12px;background:#fff3;height:4px}.rpm i{display:block;height:100%;background:var(--acid);width:0}.driving-help{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font-size:10px;color:#e0e6db;white-space:nowrap;text-shadow:0 1px 8px #051920}.driving-help span{margin-left:15px}#cameraButton{position:absolute;right:4%;top:155px;font-size:11px;background:#0e2733a6;border:1px solid #fff3;padding:9px 12px;pointer-events:auto}#cameraButton span{margin-left:18px;color:var(--acid)}#settings{position:absolute;right:4%;top:105px;z-index:35;width:300px;padding:22px;background:var(--panel);backdrop-filter:blur(18px);border:1px solid #ffffff20;border-radius:5px;box-shadow:0 20px 70px #0005}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px;font-size:15px}.panel-heading button{font-size:24px;color:#b7c9ca}#settings label{display:block;font-size:11px;color:#dce6dd;margin:20px 0}#settings select{margin-top:10px;width:100%;background:#22353d;color:#e5eee4;border:1px solid #fff2;padding:10px}#settings input[type=range]{width:100%;margin-top:15px;accent-color:var(--acid)}#settings output{float:right;color:var(--acid)}#settings .check{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#settings .check small{font-size:9px;color:#9db4b7}#settings input[type=checkbox]{accent-color:var(--acid)}#settings p{font-size:10px;line-height:1.9;color:#a5bcbf;border-top:1px solid var(--line);padding-top:15px}.modal{position:absolute;inset:0;z-index:40;background:#07171bb3;backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center}.modal-card{width:380px;max-width:90%;text-align:center;padding:40px;background:#132a31;border:1px solid #fff2}.modal-card h2{font-size:32px;margin:14px 0}.modal-card p{font-size:12px;color:#a8bfc1;line-height:1.8}.modal-card>button{display:block;width:100%;margin-top:12px}.text-button{padding:10px;color:#b8cecd;font-size:11px}.result{width:430px}#results{margin:22px 0}.result-row{display:flex;justify-content:space-between;font-size:12px;padding:10px;border-bottom:1px solid #fff1}.result-row.me{color:var(--acid)}#cockpit{position:absolute;inset:0;pointer-events:none;z-index:7;overflow:hidden}.a-pillar{position:absolute;top:-8%;height:115%;width:5%;min-width:35px;background:linear-gradient(90deg,#101a20,#253136 50%,#10171c);box-shadow:0 0 0 2px #ffffff18}.a-pillar.left{left:1%;transform:rotate(-13deg);transform-origin:bottom}.a-pillar.right{right:1%;transform:rotate(13deg);transform-origin:bottom}.dashboard{position:absolute;bottom:-3%;height:24%;left:-2%;right:-2%;background:linear-gradient(#38474a,#1b272d 10%,#101b22 55%);border-radius:45% 45% 0 0 / 28% 28% 0 0;border-top:4px solid #64706a;box-shadow:0 -12px 35px #0d192741}.dash-center{position:absolute;left:43%;top:14%;width:200px;border:9px solid #152128;background:#09171c;border-radius:8px;padding:7px 13px;box-shadow:0 0 0 1px #75878033}.dash-center>span{font:500 8px 'Barlow Condensed';letter-spacing:2px;color:#a8beba}.dash-center>b{display:block;font:500 43px 'Barlow Condensed';color:var(--acid);line-height:1.1}.dash-center small{font-size:11px;color:#829b98}.dash-leds{color:var(--acid);font-size:10px;letter-spacing:1px}.steering{position:absolute;width:230px;height:230px;left:26%;top:23%;transform:rotate(0deg)}.wheel-ring{position:absolute;inset:0;border:20px solid #0d171d;border-radius:50%;box-shadow:0 0 0 2px #4e6060,inset 0 0 0 2px #394b50,0 7px 10px #0007}.wheel-ring:before{content:'';position:absolute;top:-21px;left:45%;width:14px;height:22px;background:var(--acid);border-radius:3px}.wheel-center{position:absolute;inset:36%;background:#2c3d45;display:flex;align-items:center;justify-content:center;font:600 23px 'Barlow Condensed';color:#d8ece0;border-radius:40%;box-shadow:0 1px 5px #000}.wheel-spoke{position:absolute;width:40%;height:22px;top:46%;left:10%;background:linear-gradient(#536267,#192b32);transform:rotate(10deg)}.wheel-spoke.r{left:50%;transform:rotate(-10deg)}.wheel-spoke.b{left:31%;top:65%;transform:rotate(90deg)}.dash-tag{position:absolute;right:17%;top:50%;font:500 10px 'Barlow Condensed';letter-spacing:3px;color:#8eaaa8}.dash-vents{position:absolute;right:18%;top:20%;height:30px;width:160px;border:4px solid #13232a;background:repeating-linear-gradient(0deg,#111d24 0 3px,#546261 3px 4px);border-radius:8px}.wiper{position:absolute;left:50%;bottom:18%;width:3px;height:63%;background:#18262b;border:1px solid #718280;transform-origin:bottom;transform:rotate(-65deg);opacity:0;box-shadow:2px 1px 2px #0005}.wiper:after{content:'';position:absolute;left:-4px;top:0;height:65%;width:9px;border-radius:6px;background:#162126}body.cockpit-mode .speedometer{display:none}body.cockpit-mode .map-wrap{bottom:27%;width:135px}body.cockpit-mode .map-wrap canvas{width:135px;height:108px}body.cockpit-mode .driving-help{bottom:12px}#touch{position:absolute;bottom:25px;left:20px;right:20px;display:flex;justify-content:space-between;z-index:12;pointer-events:none}#touch>div{display:flex;gap:10px}#touch button{pointer-events:auto;touch-action:none;background:#142a36aa;border:1px solid #ffffff44;border-radius:10px;width:58px;height:58px;font-size:13px;user-select:none;-webkit-user-select:none}#touch .gas{background:#cde784aa;color:#162619}@media(max-width:850px){#top{height:70px;padding:0 20px}.location{display:none}.wordmark span{font-size:10px}.top-actions{gap:6px}.top-actions button{padding:8px;font-size:10px}.screen{top:70px}.hero{top:9%;left:6%;max-width:55%;width:auto}h1{font-size:44px}.hero .eyebrow{font-size:9px;display:block}.hero .eyebrow span{display:block;margin-bottom:5px}.intro{font-size:11px}.race-info{gap:22px;margin:20px 0}.race-info b{font-size:28px}.race-info span{font-size:8px}.primary{padding:14px 16px;font-size:12px}.primary span{margin-left:15px}.secondary{padding:12px;font-size:11px}.garage{right:4%;width:220px;bottom:12%}.garage h2{font-size:33px}.garage-label{font-size:9px}.garage p{font-size:9px}.liveries{gap:4px}.liveries button{padding:8px 5px;font-size:9px}.specs{gap:12px}.menu-bottom{font-size:8px}.menu-bottom span:last-child{display:none}.race-top{top:90px;gap:18px}.race-top b{font-size:36px}.timing b{font-size:26px}.conditions{top:90px}.driving-help{display:none}.speedometer{bottom:110px}.map-wrap{bottom:100px}#cameraButton{top:126px}#leaderboard{top:180px}.dash-center{left:47%;width:160px}.steering{width:190px;height:190px;left:20%}.dash-tag{right:8%;font-size:8px}.dash-vents{right:8%;width:100px}}@media(max-width:540px){.wordmark span{display:none}.hero{max-width:85%;top:6%}h1{font-size:37px;line-height:1.15;margin:18px 0}.intro{font-size:10px;line-height:1.8}.race-info{gap:25px;margin:16px 0}.garage{bottom:10%;left:6%;width:88%;right:auto}.garage h2{font-size:28px}.garage p{margin-bottom:10px}.garage .specs{display:none}.garage-label{max-width:270px}.garage .liveries{max-width:290px}.best-record{font-size:9px;margin-top:12px}.screen{background:linear-gradient(90deg,#081e25e0,#0a202660 70%,transparent)}.conditions{top:175px;left:4%;right:auto;font-size:9px;gap:8px}.conditions span+span{padding-left:8px}.race-top{top:90px;gap:20px}#leaderboard{display:none}#cameraButton{top:213px;right:4%}.speedometer{bottom:115px;right:6%}.speedometer b{font-size:55px}.speedometer .gear b{font-size:25px}.speedometer .gear{padding:5px 9px}.map-wrap{width:130px;bottom:108px}.map-wrap canvas{width:130px;height:104px}.map-wrap span{font-size:7px}#touch{left:10px;right:10px;bottom:25px}#touch>div{gap:5px}#touch button{width:48px;height:54px;font-size:11px}.dashboard{height:23%}.dash-center{left:46%;width:138px;border-width:5px}.dash-center>b{font-size:30px}.dash-center>span{font-size:6px}.dash-leds{font-size:7px}.steering{left:5%;width:145px;height:145px;top:35%}.wheel-ring{border-width:14px}.wheel-ring:before{top:-16px;height:16px;width:10px}.dash-tag,.dash-vents{display:none}.a-pillar{width:5%;min-width:20px}body.cockpit-mode #touch{bottom:12px}#settings{right:12px;top:80px;width:min(300px,calc(100% - 24px))}.modal-card{padding:26px}.brand{font-size:34px}}@media(max-height:650px) and (min-width:541px){#top{height:60px}.screen{top:60px}.hero{top:6%}h1{font-size:36px;margin:12px 0}.intro{font-size:11px}.race-info{margin:16px 0}.garage{bottom:15%}.race-top{top:80px}#leaderboard{top:165px}.conditions{top:80px}#cameraButton{top:116px}.menu-bottom{padding:14px 4%}.dashboard{height:28%}}

#mirror{position:absolute;top:108px;left:50%;transform:translateX(-50%);width:238px;height:70px;border:5px solid #1b2b31;border-radius:5px;box-shadow:0 2px 9px #0009,inset 0 0 0 1px #7f9495;z-index:9;pointer-events:none}#mirror span{position:absolute;right:5px;bottom:2px;font:500 7px Barlow Condensed,sans-serif;letter-spacing:2px;color:#e0e8db;text-shadow:0 1px 3px #000}@media(max-width:850px){#mirror{top:78px;width:180px;height:54px;left:60%}}@media(max-width:540px){#mirror{top:128px;width:120px;height:38px;left:auto;right:15px;transform:none}}

#studio{position:absolute;inset:0;z-index:10;pointer-events:none}.studio-caption{position:absolute;left:4%;bottom:125px;text-shadow:0 2px 12px #071d26}.studio-caption>span{font:500 11px 'Barlow Condensed';letter-spacing:3px;color:#e4eea7}.studio-caption h2{font-size:23px;letter-spacing:1px;margin:10px 0;font-weight:500}.studio-caption p{font-size:11px;letter-spacing:.5px;color:#d7e0d9}.studio-controls{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);display:flex;gap:4px;background:#112630ed;padding:7px;border:1px solid #ffffff28;border-radius:5px;backdrop-filter:blur(14px);pointer-events:auto}.studio-controls button{font-size:11px;white-space:nowrap;padding:12px 18px;color:#c3d4d4;border-radius:2px}.studio-controls button.active{background:#e2edb1;color:#203a38}.studio-controls button:last-child{border-left:1px solid #ffffff20;margin-left:6px}.studio-controls button:hover{background:#2c464c}.studio-controls button.active:hover{background:#e2edb1}body.studio-cockpit .studio-caption{top:110px;bottom:auto;left:4%;max-width:240px}body.studio-cockpit .studio-caption h2{font-size:16px}body.studio-cockpit .studio-caption p{display:none}body.studio-cockpit .studio-controls{bottom:15px}body.studio-cockpit #mirror{top:110px}body.studio-cockpit .steering{left:24%;top:18%;width:250px;height:250px}body.studio-cockpit .dashboard{height:27%;bottom:-5%}@media(max-width:850px){.studio-controls button{padding:11px 9px;font-size:10px}.studio-caption{bottom:110px}.studio-caption p{font-size:10px}}@media(max-width:540px){.studio-controls{width:94%;flex-wrap:wrap;justify-content:center;bottom:15px}.studio-controls button{padding:10px}.studio-caption{bottom:135px}.studio-caption p{max-width:280px;line-height:1.8}body.studio-cockpit .studio-caption{top:83px}body.studio-cockpit .studio-caption>span{font-size:8px}body.studio-cockpit .studio-caption h2{font-size:13px}body.studio-cockpit .steering{width:170px;height:170px;left:7%}body.studio-cockpit .studio-controls{bottom:10px}}

/* Close-range cabin materials: stitched composite, brushed alloy and individually drawn instruments. */
.dashboard{background:linear-gradient(180deg,#475253d9,#182328e0 20%,#0a141bdb 80%),repeating-linear-gradient(45deg,#25373c 0 2px,#1b282d 2px 4px);border-top-color:#87938b;box-shadow:0 -15px 35px #0005,inset 0 4px 3px #c4cebd33}.dash-stitch{position:absolute;top:12%;left:9%;right:9%;height:11%;border-top:2px dashed #69786d88;border-radius:50%}.instrument-cluster{position:absolute;left:21%;top:-9%;width:330px;padding:6px 10px;background:linear-gradient(#24353b,#101a21);border:3px solid #526365;border-radius:48% 48% 15% 15% / 45% 45% 15% 15%;box-shadow:0 -4px 12px #0006,inset 0 2px 4px #0009}.instrument-cluster svg{display:block;width:100%;filter:drop-shadow(0 0 2px #b9ccaf18)}.dash-center{display:none}.steering{z-index:2}.wheel-ring{background:repeating-linear-gradient(45deg,#0d191d 0 2px,#152227 2px 3px);border-color:#172328;box-shadow:0 0 0 2px #586962,inset 0 0 0 2px #283a3d,0 8px 17px #0009}.wheel-ring:after{content:'';position:absolute;inset:-14px;border:1px dashed #798b7f66;border-radius:50%}.wheel-center{flex-direction:column;border:1px solid #7d8a8033;background:linear-gradient(120deg,#47555b,#152b34);font-style:italic}.wheel-center small{font:500 5px sans-serif;letter-spacing:1px;margin-top:3px}.wheel-spoke{background:linear-gradient(#708080,#243b43);box-shadow:0 2px 4px #0008;border-radius:6px}.wheel-button{position:absolute;width:9px;height:9px;border-radius:50%;box-shadow:0 0 0 2px #17292c,inset 0 1px 2px #fff5;z-index:3}.wb1{left:26%;top:45%;background:#d85140}.wb2{left:26%;top:52%;background:#c8b76e}.wb3{right:26%;top:45%;background:#62a4a0}.wb4{right:26%;top:52%;background:#d3dfce}.console{position:absolute;left:59%;top:8%;width:230px;height:220px;padding:12px 18px;background:linear-gradient(115deg,#2c3b40,#111d23);border:1px solid #65777470;border-radius:8px;box-shadow:0 2px 15px #0007;transform:skewY(-3deg)}.console>span{font:500 7px sans-serif;letter-spacing:3px;color:#8faaa3}.console-screen{display:flex;gap:18px;margin:10px 0;padding:10px;background:#06191e;border:1px solid #48605b;border-radius:3px}.console-screen>div{flex:1}.console-screen small{font-size:6px;color:#739788;display:block;letter-spacing:1px}.console-screen b{font:400 20px 'Barlow Condensed';color:#cedda9}.console-screen i{display:block;height:2px;background:#709f91;width:70%;margin-top:5px}.console-switches{display:flex;justify-content:space-between}.console-switches i{font:500 6px sans-serif;font-style:normal;letter-spacing:1px;text-align:center;color:#a5b6ac}.console-switches b{display:block;position:relative;width:20px;height:20px;border:4px solid #526567;border-radius:50%;margin:3px auto 6px;background:#0f1e27}.console-switches b:after{content:'';position:absolute;bottom:3px;left:3px;width:5px;height:14px;border-radius:2px;background:linear-gradient(90deg,#6f8182,#d6dfd3,#6f8182);transform:rotate(13deg)}.console-knob{display:flex;align-items:center;gap:15px;margin-top:16px}.console-knob b{width:24px;height:24px;display:block;border-radius:50%;background:conic-gradient(#63797a,#1c333d,#63797a);border:3px dotted #697f7a}.console-knob span{font:500 7px sans-serif;letter-spacing:1px;color:#a9b8ae}.dash-vents{right:10%;width:130px;height:27px;top:17%;box-shadow:0 0 0 1px #72867b33}.dash-tag{right:8%;top:41%;font-size:8px}.a-pillar{background:linear-gradient(90deg,#131f25,#3e4b4b 40%,#17272c 75%,#0e1b22);box-shadow:0 0 0 1px #d4e2cb22,4px 0 9px #0004}.a-pillar:after{content:'';position:absolute;left:18%;top:0;width:1px;height:100%;border-left:1px dashed #91a29244}
@media(max-width:850px){.instrument-cluster{width:240px;left:17%}.console{width:190px;left:58%;padding:10px 14px}.console-screen{gap:10px}.dash-vents{right:5%;width:75px}.dash-tag{display:none}}@media(max-width:540px){.instrument-cluster{width:180px;left:8%;top:-10%}.console{left:62%;width:130px;padding:8px;height:170px}.console-screen{gap:8px;padding:6px}.console-screen b{font-size:14px}.console-screen small{font-size:4px}.console>span{font-size:5px;letter-spacing:1px}.console-switches i{font-size:4px}.console-switches b{width:15px;height:15px;border-width:3px}.console-switches b:after{width:3px;height:10px;left:3px}.console-knob{display:none}.dash-vents{display:none}}

.menu-bottom a{color:#d4e4bd;pointer-events:auto;text-decoration:none}

.light-studies{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:15px 0 4px}.light-studies button{border:1px solid #8da9a566;border-radius:4px;background:#263c40;color:#e7eee2;padding:8px 2px;font-size:12px;line-height:1.3}.light-studies button[aria-pressed="true"]{background:var(--acid);border-color:var(--acid);color:#203431}.light-studies button:focus-visible{outline:2px solid var(--acid);outline-offset:2px}

/* Race lobby and in-race interface */
:root {
  --edge: clamp(18px, 4vw, 80px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --top-height: calc(68px + var(--safe-top));
  --track-panel: #0a1920e8;
  --display-font: 'Avenir Next Condensed', 'Arial Narrow', system-ui, sans-serif;
  --timing-font: ui-monospace, 'SF Mono', Consolas, monospace;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

#top {
  height: var(--top-height);
  padding: var(--safe-top) max(var(--edge), env(safe-area-inset-right)) 0 max(var(--edge), env(safe-area-inset-left));
  background: #09171dbd;
  border-color: #dfe8e22e;
}

.wordmark { gap: 14px; }
.location { font-family: var(--display-font); }
.top-actions { gap: 7px; }
.top-actions button {
  min-height: 42px;
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0;
  background-color: #14252bdd;
  border-color: #e4ede747;
}

.top-actions button[aria-pressed="true"] {
  color: var(--acid);
  border-color: #e5fa7b8c;
}

#pauseButton { min-width: 44px; font-size: 16px; }

#menu {
  inset: var(--top-height) 0 0;
  padding: 0 max(var(--edge), env(safe-area-inset-right)) var(--safe-bottom) max(var(--edge), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: minmax(0, 432px) minmax(0, 1fr) minmax(240px, 312px);
  grid-template-rows: minmax(min-content, 1fr) auto;
  gap: 0 26px;
  align-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: auto;
  background:
    linear-gradient(90deg, #08151af7 0%, #08151ad1 29%, #08151a1c 63%, transparent 82%),
    linear-gradient(0deg, #08151ae3 0%, #08151a40 30%, transparent 56%);
}

#menu .hero {
  position: static;
  grid-area: 1 / 1;
  width: auto;
  max-width: none;
  padding: 28px 0;
}

.hero .event-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acid);
  font: 700 11px var(--display-font);
  letter-spacing: 2.2px;
}

.hero .event-kicker::before {
  content: '';
  width: 18px;
  height: 3px;
  margin-right: 4px;
  background: var(--acid);
  transform: skewX(-24deg);
}

.hero .event-kicker span { display: inline; margin: 0; }

#eventTitle {
  margin: 12px 0;
  font-size: clamp(46px, 5.4vw, 84px);
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: 1.1;
}

#menu .intro {
  max-width: 31em;
  margin: 14px 0 0;
  color: #d1dedb;
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.7;
}

.event-distance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 15px;
  color: #bfd0ce;
  font: 600 11px var(--timing-font);
  letter-spacing: .1em;
}

.event-distance b {
  color: var(--ink);
  font: 750 24px/1 var(--display-font);
  letter-spacing: .02em;
}

.event-distance span {
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid #d1e1dd46;
  font-family: system-ui, sans-serif;
  letter-spacing: 0;
}

.event-entry { margin-top: 27px; }
.event-entry .start-actions { display: grid; gap: 7px; max-width: 352px; }
.event-entry .event-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 17px;
  border-radius: 4px;
  text-align: left;
  letter-spacing: 0;
}

.event-entry .event-button-copy { display: grid; gap: 3px; margin: 0; }
.event-entry .event-button strong { font-size: 16px; }
.event-entry .event-button small { font-size: 11px; font-weight: 600; }
.event-entry .event-button .event-arrow { margin: 0; font: 500 20px/1 system-ui, sans-serif; }
.event-entry .event-button.secondary {
  min-height: 50px;
  background: #11262bea;
  border-color: #c2d4cf4d;
}

.event-entry .event-button.secondary small { color: #c2d1d0; }

#record {
  margin: 13px 0 0;
  color: #dbe3da;
  font-size: 12px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

.preview-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 7px;
}

.preview-entry button {
  min-height: 44px;
  padding: 4px 7px;
  color: #d2e0dc;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: #b5c7c184;
}

.preview-entry button:first-child { padding-left: 0; }
.preview-entry button span { margin-left: 3px; color: var(--acid); }

#menu .garage {
  position: static;
  grid-area: 1 / 3;
  align-self: end;
  width: auto;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--track-panel);
  border: 1px solid #e3f0ec33;
  border-top: 2px solid #e5fa7bb3;
  border-radius: 4px;
  text-shadow: none;
}

.garage .garage-label {
  max-width: none;
  color: #c4d3cd;
  font: 600 11px system-ui, sans-serif;
  letter-spacing: .08em;
}

.garage .garage-label span { color: var(--acid); font-family: var(--timing-font); }
.garage h2 {
  margin: 4px 0 5px;
  font: 750 clamp(21px, 2.3vw, 31px)/1.1 var(--display-font);
  letter-spacing: -.015em;
}

.garage #carDesc { margin: 0 0 12px; font-size: 11px; color: #c9d7d2; }
.garage .liveries {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.garage .liveries button {
  justify-content: center;
  min-height: 44px;
  padding: 5px 2px;
  gap: 4px;
  border: 1px solid #e9f3ee38;
  border-radius: 3px;
  background: #132831;
  font: 600 11px system-ui, sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
}

.garage .liveries button.selected { border-color: var(--acid); background: #2b4038; }
.garage .liveries i { width: 10px; height: 10px; box-shadow: 0 0 0 1px #ffffff1f; }
.garage-specs { margin-top: 7px; }
.garage-specs summary {
  cursor: pointer;
  width: fit-content;
  padding: 7px 5px 5px 0;
  color: #c5d4cf;
  font-size: 11px;
}

.garage .race-info { justify-content: space-between; gap: 8px; margin: 8px 0; }
.garage .race-info b { font: 700 16px var(--display-font); }
.garage .race-info b span { color: inherit; font: inherit; letter-spacing: inherit; }
.garage .race-info span { font-size: 10px; letter-spacing: 0; }
.garage #carTop { margin-bottom: 0; font-size: 10px; }

#menu .menu-bottom {
  position: static;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding: 0;
  border-color: #d9ebe12e;
  font-size: 11px;
}

.menu-bottom a { display: block; padding: 14px 0; text-decoration: underline; text-underline-offset: 4px; }

#settings {
  top: calc(var(--top-height) + 9px);
  right: max(var(--edge), env(safe-area-inset-right));
  width: min(320px, calc(100% - 2 * var(--edge)));
  max-height: calc(100% - var(--top-height) - var(--safe-bottom) - 18px);
  overflow: auto;
  overscroll-behavior: contain;
}

#settings .panel-heading button { min-width: 36px; min-height: 36px; }
#settings select { font-size: 13px; }

#hud {
  --hud-top: calc(var(--top-height) + 12px);
  --hud-gap: 10px;
  --hud-bottom: calc(var(--safe-bottom) + 49px);
  font-variant-numeric: tabular-nums;
}

.race-top {
  top: var(--hud-top);
  left: max(var(--edge), env(safe-area-inset-left));
  gap: 1px;
  overflow: hidden;
  background: #79909452;
  border: 1px solid #e0efeb46;
  border-left: 3px solid var(--acid);
  border-radius: 4px;
  text-shadow: none;
}

.race-top > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 11px 8px;
  background: var(--track-panel);
  white-space: nowrap;
}

.race-top span {
  color: #c7d7d2;
  font: 600 11px system-ui, sans-serif;
  letter-spacing: .02em;
}

.race-top b {
  margin: 0;
  font: 750 clamp(20px, 2.6vw, 35px)/1 var(--display-font);
  letter-spacing: -.015em;
}

.race-top b small {
  font: 600 12px var(--display-font);
  color: #c7d7d2;
  margin: 0;
}

.race-top .timing b, .race-top .sector b {
  font: 700 clamp(16px, 2vw, 25px)/1.25 var(--timing-font);
  letter-spacing: -.06em;
}

#bestLap { font: 500 10px/1.2 system-ui, sans-serif; margin-top: auto; }
.race-top .sector { min-width: 102px; }
#sectorDelta[data-trend="fast"] { color: #e5fa7b; }
#sectorDelta[data-trend="slow"] { color: #ffae96; }

#leaderboard {
  top: calc(var(--hud-top) + 83px);
  left: max(var(--edge), env(safe-area-inset-left));
  width: 154px;
  font: 650 11px/1.4 var(--display-font);
  letter-spacing: .05em;
}

#leaderboard .driver {
  margin: 0 0 2px;
  padding: 5px 8px;
  background: #0d1d25de;
  border-left: 2px solid transparent;
}

#leaderboard .driver.me { background: #24382ff2; border-left-color: var(--acid); }

.conditions {
  top: var(--hud-top);
  right: max(var(--edge), env(safe-area-inset-right));
  left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 3px;
  background: var(--track-panel);
  color: #d9e3df;
  text-shadow: none;
  font-size: 11px;
  white-space: nowrap;
}

.conditions span+span { padding-left: 9px; border-left-color: #d2e4e245; }
.race-tools {
  position: absolute;
  display: flex;
  gap: 5px;
  top: calc(var(--hud-top) + 37px);
  right: max(var(--edge), env(safe-area-inset-right));
  pointer-events: auto;
}

#cameraButton, #resetButton {
  position: static;
  min-height: 44px;
  padding: 7px 10px;
  background: var(--track-panel);
  border: 1px solid #ddeae54d;
  border-radius: 3px;
  font-size: 11px;
  white-space: nowrap;
}

#cameraButton span { margin-left: 5px; }
#resetButton { display: none; }

#notice {
  top: max(23%, calc(var(--hud-top) + 110px));
  width: max-content;
  max-width: calc(100% - 2 * var(--edge));
  padding: 8px 12px;
  white-space: normal;
  background: var(--track-panel);
  color: #f8f8e9;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .03em;
}

#countdown {
  top: 34%;
  color: var(--acid);
  font: 900 clamp(52px, 9vw, 112px)/1 var(--display-font);
  letter-spacing: -.07em;
  text-shadow: 0 4px 25px #000c, 0 1px 4px #000e;
}

.map-wrap, body.cockpit-mode .map-wrap {
  bottom: var(--hud-bottom);
  left: max(var(--edge), env(safe-area-inset-left));
  width: clamp(116px, 12vw, 194px);
}

.map-wrap canvas, body.cockpit-mode .map-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 4px #07191c);
}

.speedometer, body.cockpit-mode .speedometer {
  right: max(var(--edge), env(safe-area-inset-right));
  bottom: var(--hud-bottom);
  align-items: center;
  gap: 8px;
  padding: 5px 12px 13px;
  border: 1px solid #dae8e045;
  border-radius: 4px;
  background: var(--track-panel);
  text-shadow: none;
}

.speedometer b {
  font: 750 clamp(41px, 5.4vw, 74px)/1 var(--display-font);
  letter-spacing: -.035em;
}

.speedometer .gear { padding: 3px 7px; border-color: #e0eee446; }
.speedometer .gear b { font-size: 25px; }
.speedometer span { margin-left: 5px; font-family: var(--display-font); }
.speedometer .gear span { margin: 0 0 3px; }
.speedometer .rpm { bottom: -6px; height: 3px; }

.driving-help, body.cockpit-mode .driving-help {
  bottom: calc(var(--safe-bottom) + 10px);
  display: flex;
  gap: 12px;
  padding: 6px 10px;
  background: #09181ec9;
  border-radius: 4px;
  color: #e1eae4;
  font-size: 11px;
}

.driving-help span { margin: 0; }
.driving-help kbd { color: #eef3c0; }

#touch, body.cockpit-mode #touch {
  left: max(9px, env(safe-area-inset-left));
  right: max(9px, env(safe-area-inset-right));
  bottom: calc(var(--safe-bottom) + 9px);
}

#touch > div { gap: 5px; }
#touch button {
  width: clamp(43px, 13vw, 65px);
  height: 54px;
  border-radius: 5px;
  background: #112630e8;
  font-weight: 700;
}

#touch .gas { background: #d9f185eb; color: #152419; }
#touch button:active { background: #344f57; }
#touch .gas:active { background: var(--acid); }

.modal {
  padding: calc(var(--safe-top) + 14px) var(--edge) calc(var(--safe-bottom) + 14px);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-card {
  width: min(100%, 364px);
  max-width: none;
  flex-shrink: 0;
  margin: auto;
  padding: clamp(18px, 4vw, 32px);
  background: #10252df5;
  border-top: 3px solid var(--acid);
  border-radius: 4px;
  text-align: left;
}

.modal-card.result { width: min(100%, 454px); }
.modal-card.result::before {
  content: '';
  display: block;
  width: 40px;
  height: 16px;
  margin-bottom: 11px;
  background: repeating-conic-gradient(var(--acid) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px;
}
.modal-card h2 { margin: 6px 0 10px; font-size: clamp(24px, 5vw, 38px); line-height: 1.14; }
.modal-card p { margin: 0; color: #d2ded8; font: 500 13px/1.5 system-ui, sans-serif; }
.modal-card button { min-height: 44px; margin-top: 7px; border-radius: 3px; font-size: 13px; }
.modal-card h2 + button { margin-top: 20px; }
.modal-card .text-button { color: #d6e3df; }
#results { margin: 16px 0 12px; border-top: 1px solid #e6f0e62f; }
#results:empty { display: none; }
.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border-bottom-color: #e6f0e626;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.result-row.me { background: #e5fa7b12; }
.result-row span:last-child { text-align: right; }

@media (max-width: 1000px) {
  #menu { grid-template-columns: minmax(0, 380px) minmax(0, 1fr) minmax(230px, 270px); }
}

@media (max-width: 740px) {
  :root { --edge: 16px; --top-height: calc(56px + var(--safe-top)); }

  #menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    background: linear-gradient(
      180deg, #08151adb 0%, #08151aab 18%, #08151a1f 35%,
      transparent 49%, #08151ad8 71%, #08151af5 100%
    );
    background-attachment: local;
  }

  #menu .hero {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    min-height: calc(clamp(245px, 57dvh, 530px) - var(--top-height) + 157px);
    padding: 16px 0 0;
  }

  .hero .event-kicker { font-size: 10px; letter-spacing: 1.7px; }
  #eventTitle { margin: 7px 0; font-size: clamp(39px, 10vw, 60px); }
  #menu .intro { margin-top: 8px; font-size: 12px; }
  .event-distance { margin-top: 8px; }
  .event-distance b { font-size: 21px; }
  .event-entry { margin-top: 0; }
  .event-entry .start-actions { max-width: 412px; }
  .event-entry .event-button { min-height: 52px; padding: 7px 12px; }
  .event-entry .event-button.secondary { min-height: 48px; }
  .preview-entry { margin-top: 2px; }

  #menu .garage { align-self: stretch; max-width: 412px; margin: 0; padding: 12px; }
  #menu .menu-bottom { flex-shrink: 0; }

  #hud { --hud-top: calc(var(--top-height) + 7px); }
  .race-top > div { padding: 6px 7px; }
  .race-top .sector { min-width: 61px; }
  .race-top .timing b, .race-top .sector b { font-size: 16px; }
  .race-top b small { font-size: 11px; }
  #bestLap { font-size: 9px; }
  #leaderboard { top: calc(var(--hud-top) + 76px); }
  .conditions { top: calc(var(--hud-top) + 71px); right: max(var(--edge), env(safe-area-inset-right)); font-size: 10px; }
  .race-tools { top: calc(var(--hud-top) + 105px); right: max(var(--edge), env(safe-area-inset-right)); }
  #notice { top: max(25%, calc(var(--hud-top) + 152px)); }
  .driving-help, body.cockpit-mode .driving-help { display: none; }
}

@media (max-width: 540px) {
  #menu .intro { max-width: 25em; }
  .race-top { right: max(var(--edge), env(safe-area-inset-right)); display: grid; grid-template-columns: repeat(2, minmax(0, .7fr)) minmax(0, 1.4fr) minmax(0, 1fr); }
  .race-top > div { min-width: 0; }
  .race-top .sector b { font-size: clamp(13px, 4.2vw, 16px); }
  .conditions { left: max(var(--edge), env(safe-area-inset-left)); right: auto; gap: 5px; padding: 5px 6px; }
  .conditions span+span { padding-left: 5px; }
  .race-tools { top: calc(var(--hud-top) + 96px); }
  #notice { top: max(25%, calc(var(--hud-top) + 143px)); }
  .map-wrap, body.cockpit-mode .map-wrap { width: clamp(100px, 28vw, 131px); }
  .speedometer { padding-inline: 7px; }
  .speedometer span { margin-left: 4px; letter-spacing: .05em; }
}

@media (pointer: coarse) {
  #hud { --hud-bottom: calc(var(--safe-bottom) + 75px); }
  #resetButton { display: block; }
  #cameraButton span, .driving-help, body.cockpit-mode .driving-help { display: none; }
}

@media (max-height: 500px) and (min-width: 541px) {
  :root { --top-height: calc(48px + var(--safe-top)); }
  #menu {
    display: grid;
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr) minmax(0, 256px);
    gap: 0 9px;
    background: linear-gradient(90deg, #08151af7 0%, #08151adb 32%, #08151a38 62%, #08151a99 100%);
  }
  #menu .hero { display: block; min-height: 0; padding: 12px 0; }
  #eventTitle { margin-block: 5px; font-size: clamp(34px, 5vw, 55px); }
  #menu .intro { margin-top: 6px; font-size: 11px; }
  .event-distance { margin-top: 6px; }
  .event-distance b { font-size: 21px; }
  .event-entry { margin-top: 12px; }
  .event-entry .event-button { min-height: 47px; padding-block: 5px; }
  .event-entry .event-button.secondary { min-height: 43px; }
  #record { margin-top: 4px; }
  .preview-entry { margin-top: 0; }
  .preview-entry button { min-height: 35px; }
  #menu .garage { margin-bottom: 8px; }
  .menu-bottom a { padding-block: 6px; }
  .conditions { top: var(--hud-top); }
  .race-tools { top: calc(var(--hud-top) + 34px); }
  #notice { top: max(31%, calc(var(--hud-top) + 68px)); }
  #leaderboard { display: none; }
  .map-wrap, body.cockpit-mode .map-wrap { width: 110px; }
}

@media (max-height: 500px) and (min-width: 541px) and (max-width: 680px) {
  #grip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  button, #notice { transition: none; }
}

.studio-controls .studio-race{color:#132029;background:#e5fa7b;font-weight:700}

#scenicPicker:not([hidden]){pointer-events:auto;display:inline-flex;align-items:center;gap:.75em;margin-top:.4em;padding:.25em .65em;background:#153438eb;color:#f2ecd7;border-left:2px solid #d7eb81;text-shadow:none;font:500 12px system-ui}
#scenicPicker select{min-height:34px;background:transparent;color:inherit;border:0;font:inherit;cursor:pointer}
#scenicPicker select option{color:#182a29;background:#eae8dc}
