:root{color-scheme:dark;--ink:#101713;--panel:#151f1a;--paper:#f5f5ed;--muted:#b6bfb7;--lime:#e2efb8;--line:rgba(239,246,229,.16);--amber:#f1c892;font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.5;background:var(--ink);color:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:default;opacity:.5}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--lime);outline-offset:5px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.08}h1{font-weight:500;letter-spacing:-.075em}h2{font-weight:500;letter-spacing:-.04em}h3{font-size:1.2rem;font-weight:500;letter-spacing:-.02em}a{color:var(--lime)}.game{min-height:100svh;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column}.scene{position:absolute;inset:0;z-index:-2;background:#26342b;overflow:hidden}.scene img{width:100%;height:100%;object-fit:cover;object-position:60% center;transition:opacity .7s,filter 1.2s;transform:scale(1.035);will-change:transform}.scene-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,15,12,.86),rgba(8,15,12,.62) 27%,rgba(8,15,12,.02) 76%),linear-gradient(0deg,rgba(8,15,12,.88),transparent 45%,rgba(8,15,12,.4));pointer-events:none}.topbar{height:92px;padding:20px 4vw;display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:5}.wordmark{background:transparent;display:flex;align-items:center;gap:12px;font-size:.78rem;letter-spacing:.16em;font-weight:700;text-align:left}.brand-icon{font-size:1.7rem;line-height:1;border:1px solid #abb698;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;font-weight:400;letter-spacing:-.2em;padding-right:.2em}.top-actions{display:flex;gap:16px;align-items:center}.text-button,.icon-button{background:transparent;padding:9px 7px;font-size:.875rem}.text-button:hover,.icon-button:hover{color:var(--lime)}.icon-button{border:1px solid var(--line);border-radius:4px;padding:8px 12px;min-height:40px}.fullscreen-control{font-size:1.4rem;padding:2px 10px}#main{flex:1;display:flex;flex-direction:column;outline:none}.eyebrow{font-family:monospace;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--lime);display:flex;align-items:center;gap:12px}.eyebrow:before{content:'';width:24px;height:1px;background:currentColor}.start-content{padding:clamp(35px,7vh,95px) 7vw 40px;max-width:770px}.start-content h1{font-size:clamp(4.5rem,7.9vw,8.8rem);margin:24px 0 28px;line-height:.93;letter-spacing:-.07em}.start-description{font-size:1.125rem;max-width:350px;line-height:1.6;color:#e0e5da}.start-buttons{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:36px}.button{display:inline-flex;align-items:center;justify-content:center;gap:26px;min-height:52px;padding:14px 24px;border-radius:3px;font-size:.95rem;font-weight:600;background:var(--lime);color:var(--ink);text-decoration:none;border:1px solid transparent;transition:background .2s,transform .2s}.button:hover{background:#eff8d8;transform:translateY(-1px)}.button.secondary{background:transparent;border:1px solid var(--line);color:var(--paper);font-weight:400}.button.secondary:hover{background:rgba(255,255,255,.08)}.button.small{min-height:42px;padding:10px 15px;font-size:.875rem}.arrow{font-size:1.3rem;font-weight:400}.start-note{font-size:.78rem;color:#c0c8bd;margin-top:22px}.start-bottom{margin-top:auto;padding:24px 7vw 32px;display:flex;justify-content:space-between;gap:24px;align-items:end}.route-preview{display:flex;gap:0;align-items:center;font-size:.78rem;color:#d2d9ce;flex-wrap:wrap}.route-preview span{display:flex;align-items:center;gap:9px}.route-preview span:not(:last-child):after{content:'';width:32px;height:1px;background:#7d897a;margin:0 14px}.route-preview b{color:var(--lime);font-weight:400;font-family:monospace}.mode-label{font-size:.75rem;text-align:right;color:#b4bdaf;line-height:1.7}.page-title{font-size:clamp(2.2rem,4vw,4.3rem);margin:18px 0}.setup{margin:30px 7vw 40px;max-width:1050px;width:86vw}.setup-intro{max-width:550px;color:#d5ddd0}.setup .page-title{margin:16px 0}.policy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:26px}.policy-card{padding:22px;background:rgba(16,25,20,.94);border:1px solid var(--line);border-radius:5px;color:var(--paper);text-align:left;min-height:260px;position:relative}.policy-card.selected{border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}.policy-card h3{font-size:1.55rem;margin:20px 0 10px}.policy-card p{font-size:.9rem;color:var(--muted)}.policy-card .policy-code{font: .8rem monospace;color:var(--lime)}.policy-card .check{position:absolute;right:20px;top:20px;color:var(--lime)}.policy-facts{margin-top:24px;display:grid;gap:8px;font-size:.875rem}.policy-facts div{display:flex;justify-content:space-between;gap:12px}.policy-facts span{color:var(--muted)}.setup-footer{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:20px}.setup-fine{color:var(--muted);font-size:.85rem;max-width:500px}.custom-policy{display:flex;gap:15px;flex-wrap:wrap;background:rgba(16,25,20,.95);padding:20px;margin-top:16px;border:1px solid var(--line)}.custom-policy label{display:flex;flex-direction:column;gap:6px;font-size:.875rem;flex:1;min-width:160px}select{background:var(--ink);color:white;border:1px solid var(--line);border-radius:3px;padding:10px;width:100%}.muted{color:var(--muted)}.hud{padding:10px 4vw;display:flex;justify-content:space-between;align-items:start;gap:20px}.leg-name{font-size:1.125rem;margin-top:8px}.hud .eyebrow{font-size:.75rem}.hud-balance{text-align:right}.hud-balance strong{font-size:1.6rem;font-weight:500;letter-spacing:-.04em}.hud-balance small{display:block;font-size:.75rem;color:#d6dbd2}.hud-policy{margin-top:8px;text-decoration:underline;text-underline-offset:4px;color:#e1e7d8}.mode-drive .scene-shade{background:linear-gradient(180deg,rgba(6,13,10,.78),transparent 34%,transparent 55%,rgba(6,13,10,.85))}.mode-drive .scene img{object-position:center center}.drive-caption{margin:auto 4vw 20px;max-width:450px;text-shadow:0 2px 8px #000}.drive-caption h2{font-size:clamp(1.8rem,3.5vw,3.5rem);margin:12px 0}.drive-caption p{font-size:1rem;max-width:400px;color:#e0e5dc}.drive-panel{margin:0 4vw 26px;display:grid;grid-template-columns:140px 1fr auto;gap:30px;align-items:center;background:rgba(12,22,17,.94);padding:20px 28px;border-top:1px solid #5a6755;border-radius:4px}.speed{display:flex;align-items:baseline;gap:8px}.speed strong{font-size:3rem;line-height:1;letter-spacing:-.07em;font-weight:400;font-variant-numeric:tabular-nums}.speed span{font-size:.8rem;color:var(--muted)}.pace-label{font-size:.78rem;color:var(--muted);margin-top:7px}.progress-head{display:flex;justify-content:space-between;gap:10px;font-size:.8rem;color:#d1dacd;margin-bottom:9px}.progress-track{height:3px;background:#4d5949;overflow:hidden}.progress-track>div{height:100%;width:0;background:var(--lime)}.drive-buttons{display:flex;gap:9px}.drive-controls-note{font-size:.75rem;color:var(--muted);margin-top:10px}.mode-encounter .scene-shade{background:linear-gradient(90deg,rgba(8,15,11,.4),transparent 50%),linear-gradient(180deg,rgba(7,12,9,.6),transparent 30%,rgba(7,12,9,.56))}.encounter-layout{display:grid;grid-template-columns:minmax(320px,450px) 1fr;gap:35px;padding:20px 4vw 32px;flex:1;align-items:end}.encounter-panel{background:rgba(14,24,18,.98);border:1px solid rgba(232,239,217,.23);border-radius:5px;padding:28px;max-height:calc(100svh - 212px);overflow:auto;box-shadow:0 18px 65px #0005;scrollbar-width:thin}.encounter-panel h2{font-size:2.2rem;margin:14px 0 18px;line-height:1.06}.question{margin:20px 0 15px;font-weight:500}.encounter-body{color:#c8d2c2;line-height:1.6}.options{display:grid;gap:9px}.option{background:#263328;border:1px solid #53614d;display:flex;align-items:center;gap:13px;text-align:left;padding:13px 14px;border-radius:3px;font-size:.94rem;line-height:1.4;color:#edf0e7;min-height:54px}.option:hover{background:#354435;border-color:var(--lime)}.option-key{font:.75rem monospace;border:1px solid #6d7863;border-radius:3px;width:25px;min-width:25px;height:25px;display:grid;place-items:center;color:var(--lime)}.scene-caption{align-self:end;padding:20px 0;max-width:420px;text-shadow:0 2px 6px #000}.scene-caption h3{font-size:1.6rem;margin-bottom:10px}.scene-caption p{color:#e2e6dc;font-size:.875rem;max-width:330px;margin-bottom:16px}.paused-badge{display:inline-flex;align-items:center;gap:8px;font-size:.75rem;letter-spacing:.06em;color:var(--lime)}.paused-badge:before{content:'Ⅱ';font-size:.9rem}.feedback-label{font:.78rem monospace;color:var(--lime);letter-spacing:.08em}.feedback-label.review{color:var(--amber)}.explanation{margin:15px 0;color:#d6dfcf;font-size:.97rem;line-height:1.65}.payout{display:grid;gap:10px;padding:18px 0;margin:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.payout>div{display:flex;justify-content:space-between;gap:20px;font-size:.875rem}.payout .your-cost{font-size:1.2rem;color:var(--amber);padding-top:9px;border-top:1px solid var(--line)}.payout b{font-weight:500;font-variant-numeric:tabular-nums}.compare-box{background:#253426;border-left:2px solid var(--lime);padding:13px 14px;margin:16px 0;font-size:.85rem;color:#dbe5d0}.compare-box label{display:block;margin-bottom:10px}.compare-box p{margin-top:10px;line-height:1.5}.compare-box select{font-size:.85rem;padding:8px}.continue-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px}.continue-row .button{flex:1}.scene-source{font-size:.75rem;color:var(--muted);margin-top:16px;line-height:1.6}.scene-source a{color:#bdc8b5}.inspect-close{position:fixed;right:4vw;top:30px;z-index:12}.mode-inspect .topbar{visibility:hidden}.mode-inspect .scene-shade{background:transparent}.mode-inspect .scene img{object-fit:contain;background:#0c120d;transform:none!important}.inspect-description{position:absolute;bottom:22px;left:4vw;right:4vw;max-width:650px;background:#101a12e8;padding:16px 20px;border:1px solid var(--line);font-size:.875rem}.mode-result .scene-shade{background:linear-gradient(90deg,#0d170eed,#0d170ed4 52%,#0d170e44)}.results{max-width:970px;margin:30px 7vw 40px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.result-stat{border-top:1px solid var(--line);padding-top:15px}.result-stat small{display:block;color:var(--muted);font-size:.8rem}.result-stat strong{font-size:2.3rem;font-weight:400;letter-spacing:-.05em}.result-table{background:#111e14eb;width:100%;border-collapse:collapse;font-size:.875rem;margin:20px 0}.result-table th,.result-table td{padding:12px 16px;border-bottom:1px solid var(--line);text-align:left}.result-table th{font-weight:400;color:var(--muted)}.result-table td:nth-child(n+2),.result-table th:nth-child(n+2){text-align:right;font-variant-numeric:tabular-nums}.result-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}.result-note{font-size:.875rem;color:#cbd6c4;max-width:630px}.result-fine{font-size:.78rem;color:var(--muted);margin-top:20px;max-width:630px}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);background:var(--lime);color:#182117;padding:12px 20px;border-radius:4px;max-width:90vw;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:100;font-size:.875rem}.toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid #65715b;border-radius:6px;background:#152019;color:var(--paper);max-width:680px;width:calc(100% - 30px);max-height:85svh;padding:28px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#030906c9;backdrop-filter:blur(5px)}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.dialog-head h2{font-size:1.8rem}.dialog-head button{font-size:1.6rem;line-height:1}.guide-section{margin:24px 0}.guide-section h3{margin-bottom:9px;color:var(--lime)}.guide-section p,.guide-section li{color:#cbd5c5;font-size:.95rem;line-height:1.65}.guide-section ul{padding-left:21px}.guide-section a{overflow-wrap:anywhere}.policy-detail{display:grid;gap:12px}.policy-detail>div{display:flex;justify-content:space-between;gap:20px;padding-bottom:10px;border-bottom:1px solid var(--line)}.sample-card{padding:20px;background:#e1e6d9;color:#17211a;border-radius:4px;font-size:.9rem}.sample-card .sample-stamp{font:700 .75rem monospace;color:#862b20;border-bottom:1px solid #69725c;padding-bottom:12px;margin-bottom:12px}.sample-card p{margin-bottom:7px}.noscript{background:var(--ink);padding:30px}
@media(min-width:1500px){.encounter-layout{grid-template-columns:minmax(380px,490px) 1fr;gap:55px}.encounter-panel{padding:34px}.encounter-panel h2{font-size:2.7rem}.encounter-body,.option,.explanation{font-size:1rem}}
@media(max-width:1000px){.route-preview span:not(:last-child):after{width:15px;margin:0 9px}.encounter-layout{grid-template-columns:370px 1fr;gap:20px}.encounter-panel{padding:22px}.drive-panel{grid-template-columns:110px 1fr;gap:20px}.drive-buttons{grid-column:1/-1;justify-content:end}.setup{margin:20px 4vw 30px;width:92vw}.policy-card{padding:18px}.policy-card h3{font-size:1.25rem}.mode-label{display:none}}
@media(max-width:700px){.topbar{height:72px;padding:14px 20px;gap:12px}.wordmark{font-size:.66rem;gap:8px;letter-spacing:.1em}.brand-icon{width:30px;height:30px;font-size:1.25rem}.top-actions{gap:6px}.text-button,.icon-button{font-size:.78rem;padding:7px;min-height:38px}.fullscreen-control{display:none}.start-content{padding:48px 7vw 35px;max-width:100%}.start-content h1{font-size:clamp(4.3rem,14vw,6rem);margin-top:22px}.start-description{font-size:1rem;max-width:290px}.scene img{object-position:65% center}.mode-start .scene-shade{background:linear-gradient(90deg,#0a120bd4,#0a120b44),linear-gradient(0deg,#0b140bec,transparent 55%,#0b140b70)}.start-bottom{padding:20px 7vw 25px}.route-preview{row-gap:14px;font-size:.75rem}.route-preview span:not(:last-child):after{width:12px;margin:0 8px}.start-buttons{gap:15px;margin-top:28px}.start-note{max-width:310px}.setup{margin:22px 5vw;width:90vw}.setup .page-title{font-size:2.5rem}.policy-grid{grid-template-columns:1fr;gap:10px}.policy-card{min-height:auto;padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:6px 20px}.policy-card .policy-code{grid-column:1}.policy-card h3{grid-column:1;margin:5px 0;font-size:1.35rem}.policy-card p{grid-column:1;font-size:.8rem}.policy-facts{grid-column:2;grid-row:2/4;margin:0;font-size:.75rem;gap:6px}.policy-card .check{right:16px;top:12px;font-size:.8rem}.setup-footer{align-items:stretch;flex-direction:column;gap:18px}.setup-fine{font-size:.8rem}.custom-policy{padding:15px}.mode-setup .scene{position:fixed}.mode-setup .scene-shade{background:#09120ccc}.hud{padding:8px 20px 16px}.hud-balance strong{font-size:1.3rem}.hud .eyebrow{font-size:.7rem}.leg-name{font-size:1rem;margin-top:4px}.hud-policy{font-size:.75rem;padding:2px}.mode-drive .scene img{object-position:50% center}.drive-caption{margin:auto 24px 20px;padding-top:100px}.drive-caption h2{font-size:2.15rem}.drive-caption p{font-size:.9rem;max-width:320px}.drive-panel{margin:0 16px 18px;padding:18px;grid-template-columns:80px 1fr;gap:18px}.speed strong{font-size:2.5rem}.drive-buttons{justify-content:stretch;gap:7px}.drive-buttons .button{padding:10px 12px;gap:6px;flex:1;font-size:.85rem;min-height:48px}.drive-buttons .skip-button{flex:.65}.drive-controls-note{font-size:.75rem}.mode-encounter .scene{top:72px;bottom:auto;height:42svh;min-height:220px}.mode-encounter .scene img{object-position:65% center;transform:none!important}.mode-encounter .scene-shade{background:linear-gradient(180deg,#0b150c85,transparent 35%,#0e191344)}.mode-encounter .topbar{background:var(--ink)}.mode-encounter .hud{height:90px;flex-shrink:0;text-shadow:0 1px 5px #000}.encounter-layout{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;flex:1}.encounter-panel{order:2;max-height:none;overflow:visible;padding:27px 24px 32px;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;min-height:50svh}.encounter-panel h2{font-size:2.2rem;margin:14px 0}.scene-caption{order:1;height:calc(42svh - 90px);min-height:130px;display:flex;align-items:end;justify-content:space-between;padding:18px 20px;max-width:none;gap:15px}.scene-caption h3,.scene-caption p{display:none}.scene-caption .button{padding:8px 13px;min-height:40px;font-size:.8rem;background:#0b160cbc}.scene-caption .paused-badge{background:#0b160cbc;padding:8px 10px;border-radius:3px}.encounter-body{font-size:.97rem}.mode-result .scene{position:fixed}.mode-result .scene-shade{background:#0c170ded}.results{margin:22px 5vw 35px}.result-stats{gap:12px}.result-stat strong{font-size:1.8rem}.result-stat small{font-size:.75rem}.result-table{font-size:.77rem}.result-table th,.result-table td{padding:12px 8px}.result-actions .button{flex:1;min-width:170px}.result-note{font-size:.9rem}.inspect-close{top:20px}.inspect-description{font-size:.8rem;bottom:15px;left:15px;right:15px}.mode-inspect .scene{inset:0;height:100svh}.mode-inspect .scene img{object-position:center}.mode-inspect .topbar{display:none}dialog{padding:22px}.dialog-head h2{font-size:1.55rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.scene img{will-change:auto}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:370px){.wordmark{font-size:.59rem}.topbar{padding-inline:12px}.top-actions{gap:3px}.brand-icon{display:none}.policy-card{grid-template-columns:1fr}.policy-facts{grid-column:1;grid-row:auto;margin-top:12px}.result-stat strong{font-size:1.55rem}}
@media(max-width:700px){.policy-card{display:block}.policy-card h3{margin:12px 0 8px}.policy-card p{font-size:.875rem}.policy-facts{margin-top:17px;font-size:.875rem;gap:7px}.policy-card .check{top:20px}}
/* Live driving view: controls stay below the visible road. */
.speed-limit{margin-top:8px;font-size:.66rem;color:#d5decf;white-space:nowrap}.speed-limit b{display:inline-block;padding:0 4px;border:1px solid #b8c5af;border-radius:2px;color:#f5f7f0;font-size:.82rem}.speeding,.speeding b{color:#ffbd97!important}.speed-limit.speeding b{border-color:#ffbd97}.gas-pedal{flex-direction:column;gap:1px!important;line-height:1.05}.gas-pedal small{font-size:.65rem;font-weight:400}.pressed[data-hold="gas"]{background:#b5d47a;box-shadow:inset 0 0 0 2px #809b4b}.lesson-feedback{margin-top:24px}
.driving-scene{display:none;position:absolute;inset:0;z-index:-1;overflow:hidden;background:#849183}.driving-scene canvas{display:block;width:100%;height:100%}.mode-drive .driving-scene{display:block}.mode-drive .scene{display:none}.mode-drive{height:100svh;min-height:540px}.mode-drive .topbar{height:64px;flex-shrink:0;background:linear-gradient(#0e171bbd,#0e171b30)}.mode-drive #main{min-height:0}.mode-drive .hud{padding-top:5px;text-shadow:0 1px 5px #0009}.mode-drive .hud-balance{background:#132017a6;border-radius:4px;padding:6px 13px}.mode-drive .hud>div:first-child{background:#132017a6;padding:10px 14px;border-radius:4px}.mode-drive .hud-policy{margin-top:2px}.driving-space{flex:1;display:grid;place-items:center;min-height:80px}.road-loading{background:#14221ee8;border:1px solid var(--line);border-radius:4px;padding:20px;max-width:85%;text-align:center;font-size:.95rem}.road-loading[hidden]{display:none}.mode-drive .drive-panel{margin-bottom:18px;grid-template-columns:100px minmax(200px,1fr) auto;padding:16px 22px;gap:14px 26px;background:#101d18ed;box-shadow:0 -10px 40px #0002}.drive-actions{display:flex;align-items:center;gap:25px}.steer-buttons,.pedal-buttons{display:flex;gap:9px}.drive-key{min-width:55px;height:51px;border:1px solid #778369;border-radius:4px;background:#243529;font-size:1.6rem;line-height:1}.drive-key:hover,.drive-key.pressed{background:#e2efb8;color:#112015}.pedal-buttons .button{min-width:80px;min-height:51px}.pressed[data-hold="brake"]{background:#725745;color:#fff}.drive-actions [data-hold]{touch-action:none;user-select:none;-webkit-user-select:none}.road-status{font-size:.82rem;line-height:1.35;color:#e8eddf;margin-top:10px;min-height:2.5em}.drive-footer{grid-column:1/-1;border-top:1px solid var(--line);padding-top:7px;display:flex;justify-content:space-between;align-items:center;gap:10px}.drive-footer>div{display:flex;gap:12px;flex-shrink:0}.drive-footer .drive-controls-note{margin:0}.drive-footer .text-button{font-size:.78rem;min-height:36px}.mode-drive .progress-head{font-size:.8rem}
@media(max-width:1000px){.mode-drive .drive-panel{grid-template-columns:85px 1fr}.drive-actions{grid-column:1/-1;justify-content:space-between}.drive-footer{padding-top:4px}.drive-actions{gap:16px}.road-status{min-height:1.35em}}
@media(max-width:700px){.mode-drive .topbar{height:64px;padding:10px 16px}.mode-drive .hud{padding:0 16px;gap:10px}.mode-drive .hud>div:first-child{padding:8px 10px}.mode-drive .hud-balance{padding:8px 10px}.mode-drive .hud-balance small{font-size:.7rem}.mode-drive .hud-balance small:last-child{display:none}.mode-drive .leg-name{font-size:.9rem}.mode-drive .eyebrow{font-size:.66rem}.mode-drive .drive-panel{margin:0 12px 12px;padding:12px 16px;gap:9px 16px;grid-template-columns:68px 1fr}.mode-drive .speed strong{font-size:2.25rem}.mode-drive .pace-label{font-size:.7rem}.mode-drive .road-status{font-size:.8rem}.drive-key{min-width:54px;height:49px}.pedal-buttons .button{min-width:72px;min-height:49px;padding:10px 16px}.drive-actions{gap:12px}.drive-footer .drive-controls-note{font-size:.7rem;max-width:155px}.drive-footer>div{gap:6px}.drive-footer .text-button{font-size:.75rem;padding:6px 3px}.mode-drive .progress-head{font-size:.75rem}.mode-drive .hud-policy{font-size:.75rem}}
@media(max-height:540px) and (min-width:701px){.mode-drive{min-height:400px}.mode-drive .topbar{height:52px}.mode-drive .hud{padding-top:0}.mode-drive .hud-policy{display:none}.mode-drive .drive-panel{grid-template-columns:75px 1fr auto;padding:10px 18px;margin-bottom:8px}.drive-actions{grid-column:auto}.drive-footer{padding-top:0;border:0}.drive-footer .drive-controls-note{font-size:.7rem}.driving-space{min-height:30px}.mode-drive .hud-balance small:last-child{display:none}}

@media(max-width:700px){.drive-footer{flex-wrap:wrap;gap:0}.drive-footer .drive-controls-note{max-width:none;width:100%;font-size:.66rem}.drive-footer>div{justify-content:space-between;width:100%}.drive-footer .text-button{min-height:32px;padding:4px 8px}.speed-limit{font-size:.58rem}.speed-limit b{font-size:.75rem}}
@media(max-width:360px){.drive-key{min-width:46px}.pedal-buttons .button{min-width:62px;padding-inline:12px}.drive-actions{gap:8px}.steer-buttons,.pedal-buttons{gap:7px}}

/* Keep the photographed cabin visible above the driving controls. */
.mode-drive .drive-panel{margin-top:8px;background:#101a1e;border-top:1px solid #626d71;box-shadow:0 -5px 26px #0005}.mode-drive .hud>div:first-child,.mode-drive .hud-balance{background:#142027ad;backdrop-filter:blur(5px)}.mode-drive .driving-scene{background:#9ba9ad}
.car-tips{margin:42px 0 30px;padding-top:30px;border-top:1px solid var(--line)}.car-tips h2{font-size:clamp(1.9rem,3vw,2.6rem);margin:16px 0 24px}.car-tip-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.car-tip{padding:24px;background:#182723;border:1px solid #52615c;border-radius:5px}.tip-number{display:flex;gap:14px;align-items:center;font:1.35rem monospace;color:var(--lime);margin-bottom:18px}.tip-number span{font: .78rem monospace;letter-spacing:.1em;color:#b8c8c1}.car-tip h3{font-size:1.3rem;margin-bottom:14px;line-height:1.2}.car-tip p{font-size:1rem;line-height:1.65;color:#e1e8e2}.car-tip .tip-note{margin-top:14px;color:#b9c7be;font-size:.9rem}.car-tip .tip-source{margin-top:18px;font-size:.8rem}.car-tip-kit{border-color:#9baf88;background:#22332b}.car-tip:last-child{grid-column:1/-1}
@media(max-width:700px){.car-tip-grid{grid-template-columns:1fr}.car-tip{padding:22px}.car-tips{margin-top:32px}.car-tips .eyebrow{font-size:.75rem;letter-spacing:.05em}}
