:root{--bg:#08101c;--panel:#101c2bf2;--cyan:#36e6cf;--orange:#ffb04d;--muted:#9fb2c5}*{box-sizing:border-box}html,body{padding:0;margin:0;width:100%;height:100%;overflow:hidden;font-family:system-ui,'Segoe UI',Tahoma,Arial,sans-serif;background:#070e18;color:#f6fbff}button,input,select{font:inherit}button{border:0;cursor:pointer;touch-action:none;color:inherit}button:focus-visible{outline:2px solid var(--cyan)}#scene{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:none}#shade{pointer-events:none;position:absolute;inset:0;background:linear-gradient(90deg,#02081600 55%,#05132222),linear-gradient(0deg,#01091288,transparent 24%)}.hidden{display:none!important}.topbar{position:absolute;left:0;right:0;top:0;padding:13px 25px;display:flex;align-items:center;gap:14px;direction:ltr;background:linear-gradient(#07111dcc,transparent)}.brand{display:flex;align-items:center;gap:9px}.brand strong{font-size:14px;letter-spacing:1.2px}.brand small{display:block;color:#9fb2c5;font-size:8px;letter-spacing:1.2px}.logo{font-weight:1000;color:white;font-size:21px;letter-spacing:-3px;background:#22374c;padding:8px 10px;border-radius:9px}.logo span{color:var(--cyan)}.top-middle{flex:1;text-align:center;font-size:11px;color:white;direction:rtl}.sun{margin-right:15px;color:var(--orange)}.wallet{font-size:15px;color:var(--cyan);border:1px solid #5d83908a;background:#0b2533b0;border-radius:10px;padding:9px 13px;white-space:nowrap}.wallet span{font-size:9px}.iconbtn{width:39px;height:39px;border-radius:10px;background:#203248ab;font-size:23px}.leftHud{position:absolute;left:24px;top:85px;direction:rtl}.mission{background:#0a1826c9;border-right:3px solid var(--cyan);padding:10px 15px;font-size:13px;max-width:340px;border-radius:7px;box-shadow:0 6px 25px #0004}.event{background:#2c1a14e8;padding:8px 12px;border:1px solid var(--orange);margin-top:10px;border-radius:7px;font-weight:700}.rightHud{position:absolute;right:20px;top:84px;display:flex;flex-direction:column;align-items:center}#minimap{width:158px;height:158px;border-radius:19px;background:#11202bce;border:2px solid #8cb9b566;box-shadow:0 4px 25px #0006}.miniaction{background:#152c3be8;border:1px solid #80a8aa5b;padding:6px 14px;border-radius:0 0 12px 12px;color:#d5e5e6;font-size:11px}.bottomHud{position:absolute;bottom:106px;left:25px;display:flex;align-items:end;gap:25px;direction:ltr;pointer-events:none}.speedCluster{width:146px;height:126px;padding:11px 14px;background:#06101bce;border:1px solid #87aeb333;border-radius:21px;text-align:left;backdrop-filter:blur(4px)}.speedNumber{font-size:58px;font-weight:800;letter-spacing:-4px;line-height:1}.speedMeta{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#b0c5cb}.speedMeta b{font-size:16px;color:var(--cyan)}.speedArc{height:4px;margin:10px 0;background:#28475c;border-radius:5px;overflow:hidden}#speedBar{height:100%;width:0;background:linear-gradient(90deg,#36e6cf,#ffd15d)}.statsLine{display:flex;justify-content:space-between;font-size:9px;color:#c6dce2}.nitroPanel{font-size:11px;min-width:120px;color:#9bffff;text-shadow:0 0 15px #46cde777}.nitroBar{margin-top:6px;height:9px;width:125px;overflow:hidden;border:1px solid #57cdda77;background:#071220;border-radius:10px}.nitroBar div{height:100%;width:100%;background:linear-gradient(90deg,#0ceac6,#3f99ff)}.nitroPanel small{display:block;color:#fff2a2;margin-top:8px}.touchControls{position:absolute;inset:auto 15px 15px;display:flex;justify-content:space-between;direction:ltr;align-items:end;pointer-events:none}.touchControls button{pointer-events:auto;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.controlLeft,.controlRight,.controlCenter{display:flex;align-items:end;gap:9px}.ctl{background:#0a182ac9;border:1px solid #c9ecff75;color:white;font-size:17px;font-weight:800;border-radius:14px;box-shadow:0 4px 19px #0008, inset 0 1px #ffffff30;touch-action:none}.ctl:active,.ctl.pressed{background:#22ceb4c9;transform:scale(.95)}.steer{height:68px;width:65px}.pedal{height:85px;width:66px;font-size:13px}.accel{border-color:#53f9b8;background:#0f795bbd}.brake{border-color:#ff6f70;background:#8c343cc7}.small{height:42px;min-width:52px;font-size:12px}.nos{height:62px;width:56px;background:#1d639bbb;border-color:#52c1ff}.keysHint{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);font-size:10px;color:#ffffff80;white-space:nowrap;pointer-events:none}.toast{position:absolute;left:50%;top:21%;transform:translateX(-50%);max-width:90vw;text-align:center;background:#102b32eb;border:1px solid #5ff2d3;padding:12px 24px;z-index:25;border-radius:12px;font-size:14px;box-shadow:0 8px 20px #0008}.fullScreen{position:absolute;inset:0;display:flex;direction:ltr;background:linear-gradient(120deg,#050b14ee,#081a2bd9 50%,#071c279c);z-index:10;overflow:auto}.menuFog{pointer-events:none;position:absolute;inset:0;background:repeating-linear-gradient(105deg,transparent 0 120px,#ffffff04 120px 122px);opacity:.65}.mainContent{position:relative;width:min(570px,61%);padding:min(7vh,55px) 0 25px clamp(24px,5vw,80px);direction:ltr}.eyebrow{color:#97abbd;font-size:10px;letter-spacing:1.7px;font-weight:700}.liveDot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#4fedb9;margin:0 7px;box-shadow:0 0 9px #4fedb9}.heroTitle{font-size:clamp(38px,6.8vw,94px);font-weight:1000;line-height:1.03;letter-spacing:-5px;margin:18px 0 9px;text-shadow:0 8px 25px #000b;white-space:nowrap}.heroTitle span{color:var(--cyan)}.heroTitle em{display:inline-block;vertical-align:top;line-height:1.2;font-style:normal;font-size:22px;letter-spacing:0;color:#060d11;background:var(--orange);padding:4px 7px;border-radius:5px;margin-left:6px}.heroSub{direction:rtl;text-align:left;max-width:380px;color:#bbccda;font-size:14px;line-height:2}.heroStats{display:flex;flex-wrap:wrap;gap:16px;color:#94a8b8;font-size:11px;margin:17px 0 22px}.heroStats b{color:white}.menuButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:450px;gap:8px;direction:rtl}.menuButtons button{background:#172738d9;border:1px solid #49617599;border-radius:8px;padding:11px 8px;font-size:12px;text-align:right;transition:background .2s,transform .2s}.menuButtons button:hover{background:#27465e;transform:translateY(-1px)}.menuButtons button.primary{grid-column:span 2;background:var(--cyan);border:0;color:#061a23;text-align:center;font-weight:1000;font-size:16px;padding:15px;border-radius:8px;box-shadow:0 6px 21px #25d8c04a}.bottomMark{color:#718a9b;font-size:9px;letter-spacing:1.5px;margin-top:24px}.menuAside{flex:1;position:relative;min-height:100%;display:flex;justify-content:end;align-items:center;overflow:hidden}.heroCar{color:#c8f6ed;position:relative;transform:rotate(-6deg);margin-right:-7vw}.heroCar .carSvg{display:block;width:clamp(490px,56vw,800px);max-width:none;filter:drop-shadow(0 20px 25px #000b)}.heroCarText{position:absolute;top:-25px;left:30px;font-size:18px;letter-spacing:3px;line-height:1.25}.heroCarText b{color:var(--cyan);font-size:33px}.featureSlab{position:absolute;bottom:30px;right:30px;display:flex;gap:16px;color:#89acb4;font-size:10px;letter-spacing:1px}.panelWrap{z-index:15;position:absolute;inset:0;background:#020711b9;display:flex;align-items:center;justify-content:center;padding:16px;backdrop-filter:blur(5px)}.panel{background:linear-gradient(135deg,#152739,#0a1725);width:min(770px,100%);max-height:94vh;overflow:auto;border:1px solid #7093a866;border-radius:20px;box-shadow:0 30px 100px #000c;direction:rtl}.panelTop{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #4760716b;padding:18px 24px}.panelTop h2{margin:4px 0 0;font-size:25px}.panelTop small{font-size:10px;color:var(--cyan);letter-spacing:2px}.close{background:#344759;border-radius:9px;width:38px;height:38px;font-size:18px}.panelBody{padding:20px 24px 25px}#panelBody{padding:20px 24px 25px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.itemCard{background:#152b3f;border:1px solid #476677;padding:14px;border-radius:12px}.itemCard.selected{border-color:var(--cyan);background:#153b46}.carArt{font-size:43px;text-align:center;height:65px;filter:drop-shadow(0 8px 5px #0008)}.itemCard h3{font-size:16px;margin:4px 0}.muted{color:#a9bdce;font-size:12px;line-height:1.8}.price{color:var(--orange);font-size:13px;font-weight:800;margin:9px 0}.action{display:inline-flex;justify-content:center;gap:7px;align-items:center;background:#1f4456;border:1px solid #598196;border-radius:8px;padding:9px 12px;font-size:12px;margin:5px 3px 2px;min-height:38px}.action.primary{background:var(--cyan);color:#062327;border-color:transparent;font-weight:850}.action.warn{background:#6c3d37}.action:disabled{opacity:.37;cursor:not-allowed}.rows{display:grid;gap:11px}.panelRow{padding:12px 16px;border:1px solid #496172;background:#15293a;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panelRow b{font-size:14px}.panelRow small{display:block;color:var(--muted);font-size:11px;line-height:1.6}.info{border-right:3px solid var(--orange);background:#192d3a;padding:13px;font-size:12px;line-height:2;border-radius:8px;margin:10px 0 18px}.section{font-size:16px;margin:20px 0 10px}.swatches{display:flex;flex-wrap:wrap;gap:8px}.swatch{height:35px;width:35px;border:2px solid #ffffff60;border-radius:50%;position:relative}.swatch.active{outline:2px solid white;outline-offset:2px}.fieldset{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:13px 0}.fieldset label{font-size:12px;color:#b1c3d0}select,input[type=range]{accent-color:var(--cyan)}select{background:#1e384c;color:white;border:1px solid #7491a2;padding:8px 13px;border-radius:7px}input[type=checkbox]{accent-color:var(--cyan)}.simpleMap{width:min(100%,420px);height:auto;border-radius:12px;border:1px solid #7fa7ae}.bigStat{font-size:25px;font-weight:800;color:var(--cyan)}.subtle{font-size:11px;color:#8dabc1}.menuPause{direction:rtl}.progressBar{height:6px;margin-top:7px;background:#31495d;border-radius:6px;overflow:hidden}.progressBar div{height:100%;background:var(--cyan)}@media(max-width:800px){.menuAside{display:none}.mainContent{width:100%;padding:24px 20px;max-width:560px;margin:auto}.heroTitle{letter-spacing:-2px;margin:7px 0}.heroSub{font-size:12px;margin:7px 0}.heroStats{margin:9px 0 13px}.bottomMark{margin-top:13px}.menuButtons button{padding:9px}.topbar{padding:7px 9px;gap:7px}.top-middle{font-size:10px}.wallet{padding:5px;font-size:11px}.logo{font-size:15px;padding:6px}.brand strong{font-size:10px}.brand small{display:none}.leftHud{left:9px;top:58px}.mission{font-size:10px;max-width:260px;padding:6px 9px}.rightHud{right:7px;top:54px}#minimap{width:104px;height:104px}.bottomHud{left:8px;bottom:80px;gap:8px}.speedCluster{width:104px;height:92px;padding:7px;border-radius:12px}.speedNumber{font-size:42px}.speedMeta{font-size:8px}.statsLine{font-size:7px}.speedArc{margin:5px 0}.nitroPanel{font-size:9px;min-width:70px}.nitroBar{width:75px}.nitroPanel small{font-size:9px}.touchControls{inset:auto 7px 7px}.controlLeft,.controlRight,.controlCenter{gap:4px}.steer{width:51px;height:53px}.pedal{width:53px;height:65px;font-size:10px}.small{min-width:42px;height:37px;font-size:10px}.nos{width:40px;height:53px;font-size:12px}.keysHint{display:none}.panel{max-height:94vh}.panelTop{padding:12px 17px}.panelTop h2{font-size:20px}#panelBody{padding:12px 15px}.cards{gap:7px}.itemCard{padding:9px}.itemCard h3{font-size:12px}.carArt{font-size:27px;height:43px}.itemCard .action{font-size:10px;padding:6px}.price{font-size:11px}.muted{font-size:10px}}@media(max-height:440px){.mainContent{padding-top:9px}.heroTitle{font-size:42px;margin:3px}.heroStats{margin:5px 0}.heroSub{margin:1px 0}.menuButtons{max-width:610px}.menuButtons button{padding:7px}.bottomMark{display:none}.heroCar{display:none}.panelTop{padding:10px 17px}#panelBody{padding-top:10px}.leftHud{top:49px}.rightHud{top:48px}#minimap{width:100px;height:100px}.bottomHud{bottom:73px}.mission{font-size:10px}}

/* UPDATE 2.0 — landscape game layout and cinematic HUD */
html,body{overscroll-behavior:none}
#weatherFx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
#impactFx{position:absolute;inset:0;background:radial-gradient(circle,transparent 35%,#e9423cdd 100%);z-index:5;opacity:0;pointer-events:none}
#rotateOverlay{display:none;position:fixed;inset:0;z-index:99;background:radial-gradient(circle at 50% 45%,#174957,#070d17 75%);padding:22px;color:#eafdfd;align-items:center;justify-content:center;text-align:center;direction:rtl}
.rotateInner{width:min(340px,98%);margin:auto}
.rotateIcon{font-size:88px;line-height:1;font-weight:800;color:#47f0cf;text-shadow:0 0 35px #36e6cf88}
.rotateIcon span{display:inline-block;font-size:56px;animation:spinCue 1.5s infinite ease-in-out}
@keyframes spinCue{50%{transform:rotate(65deg)}}
.rotateInner h2{font-size:25px;margin:12px 0 10px}
.rotateInner p{color:#b8ccd7;font-size:14px;line-height:1.8}
.rotateInner button{background:#41e6cf;color:#052330;font-weight:800;border-radius:12px;padding:15px 24px;margin-top:14px}
@media (orientation:portrait) and (pointer:coarse){#rotateOverlay{display:flex}}
@media (orientation:portrait) and (max-width:760px){#rotateOverlay{display:flex}}
@media (orientation:landscape) and (max-height:560px){
 .fullScreen{overflow:auto}.mainContent{padding:10px 15px 15px;max-width:660px;width:100%}
 .heroTitle{font-size:clamp(38px,7vw,58px);margin:2px 0;letter-spacing:-2px}
 .heroSub{font-size:11px;line-height:1.6;margin:3px 0}
 .heroStats{margin:6px 0 8px;gap:9px;font-size:10px}
 .menuButtons{max-width:700px;gap:5px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .menuButtons button{font-size:11px;padding:8px 10px}
 .menuButtons button.primary{grid-column:span 3;padding:10px;font-size:14px}
 .topbar{padding:5px 8px;gap:7px}.top-middle{font-size:9px}
 .rightHud{top:48px}.leftHud{top:48px;left:9px}.mission{padding:5px 8px;max-width:210px;font-size:9px}
 #minimap{width:90px;height:90px}.miniaction{font-size:9px;padding:4px 8px}
 .bottomHud{bottom:72px}.speedCluster{height:86px;width:95px}.speedNumber{font-size:35px}
 .nitroPanel{min-width:70px}.controlCenter{margin-left:5px}
 .ctl{border-radius:12px}.steer{height:50px;width:50px}.pedal{height:63px;width:54px}.nos{height:52px;width:44px}
 .panel{max-height:96vh;border-radius:13px}.panelTop h2{font-size:18px}.panelTop{padding:8px 14px}
 #panelBody{padding:9px 14px 15px}.info{padding:7px 10px;line-height:1.7;margin:6px 0 9px}
 .section{font-size:14px;margin:12px 0 7px}.panelRow{padding:7px 10px}
 .itemCard{padding:8px}.itemCard h3{font-size:12px}.cards{gap:7px}
}
@media(max-width:680px) and (orientation:landscape){
 .top-middle{display:none}.leftHud{top:45px}.rightHud{top:45px}
 .heroTitle{font-size:37px}.heroSub{display:none}.heroStats{margin:7px 0}
 .menuButtons button{font-size:10px;padding:6px}.menuButtons button.primary{padding:9px}
 .steer{width:45px;height:46px}.pedal{width:47px;height:56px}.small{min-width:40px;height:32px}.nos{width:40px;height:49px}
 .speedCluster{width:83px;height:75px}.speedNumber{font-size:32px}
 .bottomHud{bottom:67px}.nitroPanel{display:none}
}

/* Tuning for an atmospheric showroom without cropping the hero car */
@media(min-width:810px){.heroCar{margin-right:-2vw}.heroCar .carSvg{width:min(50vw,690px)}.menuAside{min-width:35%;max-width:49%;background:radial-gradient(ellipse at 48% 70%,#237b7b3d,transparent 65%)}.heroCarText{left:5px;top:-38px}.heroCarText b{font-size:26px}}
@media(min-width:810px) and (max-width:1200px){.mainContent{width:64%}.menuAside{max-width:36%}.heroCar .carSvg{width:530px}}
.menuButtons button{backdrop-filter:blur(8px)}
#minimap{box-shadow:0 5px 30px #0009,inset 0 0 0 2px #5fcfc038}
.speedNumber{font-variant-numeric:tabular-nums;text-shadow:0 0 16px #ffffff20}
@media(min-width:810px) and (max-width:1200px){.heroCar{margin-right:0;transform:rotate(-5deg)}.heroCar .carSvg{width:min(36vw,390px)}.heroCarText{display:none}}


/* UPDATE 3.0 — full-width horizontal mobile driving and essential primary touch buttons */
.iconbtn{flex:0 0 auto;display:grid;place-items:center;font-size:17px;min-width:36px;min-height:34px}
#soundBtn{background:#103443d9;border:1px solid #60aaae77}
.reverse{font-weight:1000;color:#fbcf88;border:1px solid #f3c273aa}
.ctl.selected{background:#1f8d7e;color:#fff;border-color:#b5ffee}
.fuelReadout{font-size:10px;color:#d8f5df;margin-top:4px}.fuelLow{color:#ff656d;animation:lowFuel 1s infinite alternate}
@keyframes lowFuel{to{opacity:.4}}
.interactBtn{position:absolute;bottom:104px;left:50%;transform:translateX(-50%);z-index:9;background:#e6bc57;color:#18242a;padding:8px 14px;border-radius:11px;font-weight:850;font-size:12px;box-shadow:0 9px 22px #0009;white-space:nowrap}
.interactBtn:active{background:white}
.interior{position:absolute;z-index:2;inset:0;pointer-events:none}
.windshieldLine{position:absolute;bottom:24%;left:0;right:0;height:7px;background:#243747b0}
.dashboard{position:absolute;bottom:0;left:22%;right:22%;height:18%;border-radius:70px 70px 0 0;background:linear-gradient(#23323ceb,#0b1318ed);box-shadow:0 0 16px #000e;display:flex;justify-content:space-around;align-items:center;font-size:10px;color:#a7bec5}
.dashboardWheel{font-size:95px;line-height:1;color:#263941;text-shadow:0 0 4px #94bacf,1px 1px 5px #000;transition:transform .1s}
.photoOverlay{position:absolute;z-index:16;inset:0;pointer-events:none;background:linear-gradient(#000a,transparent 22%,transparent 78%,#000b)}
.photoTitle{position:absolute;top:10px;left:16px;font-weight:800;color:#dffef7;direction:ltr;text-shadow:0 2px 9px #000}
.photoTools{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);display:flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;pointer-events:auto;direction:ltr}
.photoTools button,.photoTools label{background:#122d3de7;border:1px solid #7ff4df88;color:#ecfffd;padding:9px 13px;border-radius:10px;font-size:12px}
.photoTools label{display:flex;align-items:center;gap:6px;direction:rtl}.photoTools input{width:80px}
#photoCapture{background:#33d9b8;color:#062323;font-weight:850}
.controlCenter{max-width:30vw;display:flex;justify-content:center;flex-wrap:wrap;align-items:end;align-content:end}
.touchControls{z-index:4}
.ctl{box-shadow:0 5px 14px #0009,inset 0 1px 0 #ffffff3d}
@media (max-height:590px) and (orientation:landscape){
 .topbar{height:42px;padding:4px 9px}.wallet{font-size:10px}.iconbtn{height:31px;width:32px;min-width:32px;font-size:16px}
 .controlCenter{max-width:32vw;gap:4px}.controlCenter .small{height:30px;min-width:38px;font-size:13px;padding:0 6px}
 .controlRight{align-items:flex-end}.reverse{height:43px!important;min-width:35px!important}
 .controlLeft{align-items:flex-end}.interactBtn{bottom:73px;padding:6px 11px;font-size:10px}
 .photoTools button,.photoTools label{padding:7px;font-size:10px}.photoTools input{width:55px}
}
@media (max-width:720px) and (orientation:landscape){
 .controlCenter{max-width:32vw;gap:3px}
 .controlCenter .small{height:28px;min-width:34px;font-size:12px;padding:0 5px}
 .reverse{min-width:35px!important;height:40px!important}.controlRight{gap:3px}.controlLeft{gap:3px}
 .photoTools{bottom:6px;gap:4px}.photoTools button,.photoTools label{font-size:9px;padding:7px 6px}
 .dashboardWheel{font-size:58px}
}

.gearShift{border-color:#ffd58b;color:#ffda90;min-width:27px!important}
#indicatorsBtn.selected{animation:flashButton 0.55s steps(2,end) infinite}
@keyframes flashButton{50%{background:#d4a734;color:#0b1622}}
@media (max-height:590px) and (orientation:landscape){.gearShift{height:30px!important;min-width:27px!important}}
@media (max-width:680px) and (orientation:landscape){.controlCenter{max-width:31vw}.controlCenter .small{height:27px;min-width:32px}}
