/* V36 Console Edition — a real, layered 32/64-bit menu skin.
   Everything remains DOM-based and interactive; the race simulation is unchanged. */
@font-face{font-family:Vila Console;src:url('assets/vila-console.ttf') format('truetype');font-display:swap;font-weight:400}
:root{--console-face:'Vila Console','Vila Arcade',monospace;--console-navy:#091d48;--console-blue:#153875;--console-gold:#ffce26;--console-cream:#fff1c1;--console-shadow:#03122e;--console-metal:#b9d9ef;--console-rim:#f4c343;--console-panel:linear-gradient(145deg,#153e77f5,#071b41f5 83%);--console-yellow:linear-gradient(#fff8b9 0 12%,#ffe45a 12% 39%,#ffcf29 39% 78%,#ed9e1b 78% 92%,#ad6815 92%);--console-bluebtn:linear-gradient(#4779ac 0 9%,#23549a 9% 40%,#183c78 40% 88%,#0a2453 88%);--console-corner:polygon(0 9px,9px 0,calc(100% - 9px) 0,100% 9px,100% calc(100% - 9px),calc(100% - 9px) 100%,9px 100%,0 calc(100% - 9px));--checker:repeating-conic-gradient(#fff3c6 0 25%,#103571 0 50%) 0 0/24px 24px}
/* Give the actual illustrated garage room to breathe. */
#mode.active,#select.active,#tracks.active,#options.active,#career.active,#history.active,#awards.active,#ranking.active{background:linear-gradient(180deg,#09153315,#07163725 56%,#09162d44),url('assets/paddock-v110.webp') center/cover no-repeat}
#career.active,#awards.active,#ranking.active{background:linear-gradient(180deg,#10294c25,#07182f45),url('assets/podium-art.webp') center/cover no-repeat}
#select:before,#tracks:before,#career:before,#options:before,#history:before,#awards:before,#ranking:before{background:none}
.mode-frame,#career .career-panel,#options .settings-panel{background:none;border:0;box-shadow:none;overflow:visible;padding:clamp(8px,1.3vw,18px);width:min(1420px,100%)}
.mode-frame:before,#career .career-panel:before,#options .settings-panel:before{display:none}
.garage-frame,.circuit-frame{max-width:1420px;background:none;padding:clamp(8px,1.3vw,20px)}
.flow-heading,.garage-header,.circuit-header{position:relative;display:grid!important;grid-template-columns:minmax(76px,1fr) auto minmax(76px,1fr);align-items:center;gap:12px;border:0;background:none;box-shadow:none;padding:0 0 12px;text-shadow:none}
.flow-heading>div,.garage-heading{position:relative;filter:drop-shadow(3px 5px 0 #07132a);text-align:center;min-width:0}
.flow-heading>div>span,.garage-heading>span{display:table;margin:0 auto -1px;padding:6px 20px;color:#fff0c4;background:#0e2e63;border:2px solid #8bb5e0;border-bottom:0;clip-path:polygon(7% 0,100% 0,93% 100%,0 100%);font-family:var(--console-face);font-weight:400;font-size:clamp(9px,1vw,13px);letter-spacing:.015em;text-shadow:2px 2px #06122e}
.flow-heading h1,.garage-header h1,.circuit-header h1{position:relative;margin:0;padding:.26em .85em .33em;color:#143567;background:linear-gradient(#fff9df 0 11%,#fff0b9 11% 73%,#ffc83f 73% 91%,#e6931f 91%);font:italic 400 clamp(20px,3.25vw,47px)/1.05 var(--console-face);letter-spacing:-.055em;text-shadow:1px 2px #c58e26;-webkit-text-stroke:.55px #091f48;border:3px solid #ffe981;box-shadow:inset 0 0 0 2px #b47922,inset 0 4px #fff9e0;clip-path:polygon(12px 0,100% 0,calc(100% - 12px) 100%,0 100%);white-space:nowrap;isolation:isolate}
.flow-heading h1:before,.garage-header h1:before,.circuit-header h1:before{content:'';width:17px;height:28px;position:absolute;top:50%;left:7px;transform:translateY(-50%) skewX(-12deg);background:var(--checker);background-size:12px 12px;opacity:.75}
.flow-heading h1:after,.garage-header h1:after,.circuit-header h1:after{content:'';width:17px;height:28px;position:absolute;top:50%;right:7px;transform:translateY(-50%) skewX(-12deg);background:var(--checker);background-size:12px 12px;opacity:.75}
.garage-header:after,.circuit-header:after{display:none}
.flow-mark,.garage-kicker,.circuit-count{justify-self:end;align-self:center;background:#0b2456;border:2px solid #6a9bc8;border-bottom:4px solid #041633;box-shadow:3px 3px #051229;color:#fff4ce;padding:8px 11px;font-family:var(--console-face);font-weight:400;font-size:10px;line-height:1.3;letter-spacing:0}
.flow-mark b,.garage-kicker b,.circuit-count b{font-family:var(--console-face);color:#ffd84a}
.flow-heading>.arcade-btn,.garage-header>.arcade-btn,.circuit-header>.arcade-btn{justify-self:start}
.flow-footer,.garage-footer,.circuit-footer{border:2px solid #6e9ece;background:linear-gradient(#153c75eb,#081c41f7);box-shadow:0 3px #03112c;color:#f9efcd;padding:8px 12px;font-weight:800;border-radius:6px}
.flow-footer:before{display:none}
/* Beveled cream / gold and cobalt buttons, with crisp pixel highlights. */
.arcade-btn,.career-btn,.career-tabs button,.mode-picker button,.pilot-arrow,.pilot-view{font-family:var(--console-face);font-weight:400;letter-spacing:-.035em;line-height:1.15;text-shadow:1px 2px #06112c;-webkit-text-stroke:.25px currentColor;paint-order:stroke fill}
.arcade-btn.secondary,.career-btn:not(.primary),.career-tabs button,.mode-picker button,.driver-platform .pilot-arrow,.driver-platform .pilot-view{background:var(--console-bluebtn);color:#fff3ca;border:2px solid #9fc7eb;border-bottom:4px solid #071b43;border-radius:5px;box-shadow:inset 0 0 0 2px #163d73,3px 4px #03132c;clip-path:none}
.arcade-btn.primary,.career-btn.primary:not(:disabled),.career-tabs button[aria-selected=true],.mode-picker button.selected,.mode-picker button[aria-pressed=true]{background:var(--console-yellow);border:2px solid #fff8c1;border-bottom:4px solid #ad6a1b;color:#102950;text-shadow:1px 1px #ffeaa6;-webkit-text-stroke:.45px #102950;box-shadow:inset 0 0 0 2px #e3a02d,3px 4px #07132d;border-radius:5px;clip-path:none}
.arcade-btn:focus-visible,.career-btn:focus-visible,.career-tabs button:focus-visible,.mode-picker button:focus-visible{outline:3px solid #fff29c;outline-offset:2px}
.arcade-btn:hover,.career-btn:not(:disabled):hover,.mode-picker button:hover{filter:brightness(1.10)}
/* Paddock: three big arcade cabinets instead of a website panel. */
.mode-cards{gap:clamp(10px,1.4vw,20px);padding:10px 0 5px}
.mode-card{--rim:#9bc6f0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;grid-template-columns:minmax(0,1fr);border:4px solid var(--rim);border-radius:9px;overflow:hidden;background:var(--console-panel);box-shadow:inset 0 0 0 3px #1c4b8b,4px 6px #061532,0 0 0 2px #05152e;padding:5px;transition:transform .12s,filter .12s;isolation:isolate}
.mode-card:before{content:'';position:absolute;top:0;left:10px;right:10px;height:4px;background:repeating-linear-gradient(90deg,#fff2c6 0 14px,#6086ae 14px 19px,transparent 19px 42px);z-index:3}
.mode-card:focus-visible,.mode-card:hover{--rim:#ffdc44;transform:translateY(-3px);outline:2px solid #fff4b6;outline-offset:2px;box-shadow:0 0 0 3px #e4a422,4px 6px #081331,0 0 16px #ffc83a7d}
.mode-card:focus-visible:after,.mode-card:hover:after{content:'P1 ▶';position:absolute;top:6px;right:8px;background:#ffdc3d;color:#11234e;font:400 12px/1.1 var(--console-face);padding:5px 7px;border:2px solid #fff3ab;box-shadow:2px 2px #07132a;z-index:4}
.mode-number{grid-row:1;background:none;color:#fff1c8;font:400 11px/1 var(--console-face);padding:10px 8px 4px;border:none;text-shadow:2px 2px #06112e}
.mode-card:focus-visible .mode-number,.mode-card:hover .mode-number{background:none;color:#ffef8a}
.mode-info{display:contents}
.mode-info strong{grid-row:2;display:block;background:linear-gradient(#244f87,#0a2556);border-bottom:3px solid #ffce43;color:#fff0c6;font:italic 400 clamp(15px,1.9vw,27px)/1.1 var(--console-face);letter-spacing:-.04em;padding:7px 9px 11px;text-shadow:2px 2px #061433;-webkit-text-stroke:.4px #061433}
.mode-card:focus-visible .mode-info strong,.mode-card:hover .mode-info strong{background:var(--console-yellow);color:#0b2451;text-shadow:1px 1px #ffed98;-webkit-text-stroke:.35px #0b2451}
.mode-art{grid-row:3;height:clamp(155px,23vw,320px);border-bottom:3px solid #91b8df;box-shadow:none}
.mode-art::after{background:linear-gradient(0deg,#07172a40,transparent 40%)}
.mode-career .mode-emblem{width:36%;height:48%;inset:auto 32% 7% auto}
.mode-settings .mode-emblem{width:22%;height:38%;inset:auto 9% 8% auto}
.mode-info small{grid-row:4;min-height:0;padding:8px 10px 4px;color:#fff1d2;font-size:clamp(11px,1vw,13px)}
.mode-info b{grid-row:5;margin:7px 5px 5px;padding:9px 5px;background:var(--console-yellow);font:italic 400 clamp(11px,1.45vw,19px)/1.1 var(--console-face);border:2px solid #fff1b0;border-bottom:4px solid #a96d25;clip-path:none;border-radius:5px;box-shadow:3px 3px #03112a;-webkit-text-stroke:.35px #102950;color:#102950}
.mode-career .mode-info b{background:linear-gradient(#ffffe4 0 10%,#fff0c3 10% 75%,#d9b46a 75% 90%,#a7752d 90%)}.mode-settings .mode-info b{background:linear-gradient(#caffff 0 10%,#76e4f5 10% 65%,#3bb8dc 65% 90%,#1683a3 90%);border-color:#c8ffff #89e9f6 #2878a1}
/* Driver selection: faceted colored cards and a real garage turntable. */
.driver-grid{gap:clamp(5px,.65vw,10px)}
.driver-card{border:3px solid color-mix(in srgb,var(--accent) 65%,#b5cde5);border-bottom:4px solid color-mix(in srgb,var(--accent) 65%,#061a42);border-radius:7px;background:linear-gradient(155deg,color-mix(in srgb,var(--accent) 40%,#24477b),#122c5b 77%);box-shadow:inset 0 0 0 2px #fff1c52e,3px 4px #07152c;isolation:isolate}
.driver-card img{width:116%;object-position:center 68%;filter:drop-shadow(2px 3px 0 #051732)}
.driver-card span{font:400 clamp(8px,.9vw,14px)/1.05 var(--console-face);letter-spacing:-.05em;background:linear-gradient(#183767,#071d42);border-top:2px solid var(--accent);text-shadow:1px 2px #06132d;padding:9px 1px}
.driver-card:before{font-family:var(--console-face);color:#ffefc4}
.driver-card.selected{background:radial-gradient(ellipse at 50% 43%,#fff7ba 0,#ffcd43 35%,#a96a23 90%);border-color:#ffea83;box-shadow:0 0 0 2px #ffce27,3px 4px #523818,0 0 14px #ffdc4880}
.driver-card.selected span{background:var(--console-yellow);color:#122747;text-shadow:1px 1px #fff4bd}
.driver-card.selected:after{background:#ffdf47;color:#102a50;box-shadow:1px 2px #14233c;border:1px solid #fff4c4;font-family:var(--console-face)}
.driver-detail{border:4px solid #ffdd63;border-radius:8px;background:var(--console-panel);box-shadow:inset 0 0 0 2px #fff0ba55,4px 5px #06132e;padding:10px;gap:7px}
.driver-id span:last-child{font-family:var(--console-face);background:#f7d96a;color:#102a50}
.driver-title{font:italic 400 clamp(25px,4vw,49px)/1.1 var(--console-face);color:#fff0b6;text-shadow:2px 3px #08132e,4px 4px #a26a23;-webkit-text-stroke:.8px #071a42;paint-order:stroke fill;letter-spacing:-.035em;text-align:center;padding:6px 4px;background:linear-gradient(#214e90,#0d2b5b);border:2px solid #7eafd8;border-bottom:3px solid #071d41}
.driver-platform{background:linear-gradient(0deg,#10274935,#08193355),url('assets/paddock-v110.webp') 49% center/cover;border:2px solid #9bbade;overflow:hidden}
.driver-platform:before{bottom:5%;height:18%;width:89%;border:3px solid #d8e4ea;background:var(--checker);background-size:18px 18px;box-shadow:inset 0 0 0 7px #66819b,0 7px #081b42;z-index:-1}
.driver-watermark{color:#ffe7a7;opacity:.10;font-family:var(--console-face)}
.driver-stats{padding:7px 8px;background:#071b40;border:2px solid #739ac7;box-shadow:0 3px #04122c}
.driver-stats>div{font-family:var(--console-face);letter-spacing:-.04em;font-size:clamp(8px,.9vw,12px);text-shadow:1px 1px #02112b}
.driver-description{font-size:clamp(10px,.9vw,13px);color:#fff4d6}
.stat-meter i{border:1px solid #789dc4;background:#163764;box-shadow:inset 0 -2px #07182e}
.stat-meter i.on{box-shadow:inset 0 2px #fff9d8aa,inset 0 -3px #061a4466}
.driver-detail .primary,.circuit-footer .primary{font-family:var(--console-face);font-style:italic;font-size:clamp(15px,1.65vw,24px)}
/* Circuit signs: illustrated panels, lock state clearly readable. */
.circuit-grid{gap:clamp(7px,1.1vw,15px)}
.pista-card{border:3px solid #a4c9ed;border-radius:7px;box-shadow:inset 0 0 0 2px #1b4275,3px 4px #061630;background:#102b5d}
.pista-card.selected{border:4px solid #ffe371;box-shadow:0 0 0 2px #eaa724,3px 4px #061833,0 0 12px #ffd7465a}
.pista-top,.pista-card.selected .pista-top,.pista-card.locked .pista-top{background:linear-gradient(#224f89 0 12%,#102e62 12% 100%);border-bottom:2px solid #9ebbe1;padding:6px 9px}
.pista-card.selected .pista-top{border-bottom-color:#ffd74a}
.pista-top b,.pista-top strong{font-family:var(--console-face);font-style:italic;text-shadow:2px 2px #06152d;letter-spacing:-.055em}
.pista-top b{background:var(--console-yellow);text-shadow:1px 1px #fff2af;border:1px solid #fff0b0;clip-path:var(--console-corner);padding:6px 8px}
.pista-card.locked .pista-top b{background:#6d8aaf;border-color:#a1b6cd;text-shadow:none}
.pista-card.locked .pista-top strong{color:#c6d7e8}
.pista-art img{image-rendering:auto}
.pista-lock,.pista-card.locked .pista-lock,.pista-ready{font-family:var(--console-face);letter-spacing:-.035em;border:2px solid #a9c6e4;border-radius:4px;padding:6px 8px;text-shadow:1px 1px #062039}
.pista-ready{background:linear-gradient(#2d9d6a,#145b41);border-color:#b9f1b2}
.pista-bottom{background:#0b2854;color:#f4e8ca;text-shadow:1px 1px #07132b}
.pista-bottom b{font-family:var(--console-face);font-weight:400}
.circuit-footer{padding:7px 10px}
.mode-picker{border:2px solid #f6d367;border-radius:6px;background:#071c44;padding:4px;gap:5px}
/* Career: a real trophy shelf and illuminated championship signs. */
#career .career-panel{height:min(900px,100%);gap:clamp(8px,1vw,12px)}
.career-summary{padding:7px;background:#071b42;border:2px solid #f3ce64;border-radius:7px;box-shadow:3px 4px #07112b;gap:8px}
.career-summary div{background:var(--console-bluebtn);border:2px solid #9ec6e4;border-bottom:3px solid #0a2454;border-radius:4px;box-shadow:2px 3px #04132e}
.career-summary b,.career-summary div:last-child b{font-family:var(--console-face);letter-spacing:-.045em;color:#ffdb48;text-shadow:2px 2px #04142e;-webkit-text-stroke:.45px #07132e}
.career-tabs{gap:9px}
.career-tabs button{font-family:var(--console-face);font-size:clamp(10px,1.25vw,17px);font-style:italic}
.career-content{padding:8px 8px 5px;background:#0a2454e8;border:2px solid #829fc6;border-radius:7px;box-shadow:3px 4px #06132d;scrollbar-color:#9bbbe6 #10274e}
.career-content h2,.career-content strong,.career-card strong{font-family:var(--console-face);letter-spacing:-.04em;color:#fff0bf;-webkit-text-stroke:.45px #071a3c;text-shadow:1px 2px #04132c}
.career-content h2{margin:4px 0 7px;font-size:clamp(11px,1.12vw,15px)}
.career-content p{color:#eee7d3;font-size:clamp(10px,.9vw,13px)}
.career-cups-grid{gap:12px}
.career-cup{border:3px solid var(--cup-metal);border-radius:8px;box-shadow:inset 0 0 0 2px #172f5a,3px 4px #06142d;background:var(--console-panel)}
.career-cup:not(.locked){border-color:#ffdb57;box-shadow:0 0 0 2px #b98125,3px 4px #04132c}
.career-cup.locked{opacity:.91}
.cup-art{height:clamp(115px,17vw,205px);border-bottom:3px solid var(--cup-metal)}
.cup-trophy{width:clamp(65px,9vw,116px);height:clamp(65px,9vw,116px)}
.career-cup .career-line{padding:10px;min-height:110px}
.career-cup .career-line strong{display:block;background:linear-gradient(#285084,#0f2a5b);border:2px solid var(--cup-metal);padding:6px 5px;text-align:center;font:italic 400 clamp(12px,1.25vw,18px)/1.15 var(--console-face);letter-spacing:-.055em;text-shadow:1px 2px #05132c}
.career-cup .career-btn{font-family:var(--console-face);font-style:italic;min-height:37px}
.career-cup.locked .career-btn{background:#8e9eaf;color:#152b4c;border:2px solid #bdc9d5;opacity:.8;text-shadow:none}
.career-card,.career-table-wrap,.history-entry{background:var(--console-panel);border:2px solid #9bc0e3;border-radius:5px;box-shadow:3px 3px #07152e}
.career-card.done,.career-card.equipped,.history-entry.earned,.history-entry.my-rank{border-color:#ffdc58}
.career-table th{font-family:var(--console-face);background:#205184;color:#fff0bd}
/* Pit stop: controls on garage equipment, not HTML settings. */
.pit-layout{grid-template-columns:minmax(190px,.8fr) minmax(0,2fr);gap:15px}
.pit-hero{min-height:300px;border:3px solid #a7c7ec;border-radius:7px;background:linear-gradient(0deg,#08153010,#10284d33);box-shadow:3px 4px #07142f;justify-content:center}
.pit-hero:before{width:90%;bottom:23%;border-radius:50%;clip-path:none;background:repeating-conic-gradient(#ffe0a3 0 25%,#122b59 0 50%) 0 0 / 20px 20px;border:3px solid #abb9d2;box-shadow:inset 0 0 0 6px #8098b0,0 8px #10274f}
.pit-hero img{max-width:100%;height:clamp(140px,23vw,315px);filter:drop-shadow(4px 6px #061329)}
.pit-hero b{position:relative;background:#09264f;border:2px solid #ffdc5c;padding:7px 10px;font-family:var(--console-face);font-style:italic;color:#fff0b8;text-shadow:2px 2px #07112c;box-shadow:3px 3px #07132b}
.pit-hero small{color:#fff1c3;text-shadow:2px 2px #06112d}
.pit-hero>span{background:var(--console-yellow);color:#10284c;box-shadow:2px 3px #082444;font-family:var(--console-face)}
.settings-group{background:var(--console-panel)!important;border:3px solid #f6d365!important;border-radius:7px!important;box-shadow:inset 0 0 0 2px #ffeb9e33,3px 4px #07132d!important;padding:10px!important;gap:8px}
.settings-group h2{width:fit-content;background:var(--console-yellow);color:#102c58;font:italic 400 clamp(12px,1.3vw,18px)/1.15 var(--console-face);padding:5px 10px;clip-path:polygon(0 0,100% 0,calc(100% - 7px) 100%,0 100%);text-shadow:none;-webkit-text-stroke:.3px currentColor;letter-spacing:-.035em}
.settings-group h2 span{background:#0d2a5d!important;color:#ffda52;border:0;padding:4px 5px}
.settings-group .arcade-btn{background:var(--console-bluebtn);color:#fff4d2;border:2px solid #8db9e4;border-bottom:4px solid #061a44;border-radius:4px;font-family:var(--console-face);font-style:normal;font-size:clamp(9px,.9vw,13px);text-shadow:1px 1px #05132c;letter-spacing:-.035em}
.settings-group .option-toggle:after{width:37px;height:19px;border:2px solid #91b4cf;border-radius:3px;box-shadow:inset 0 -3px #0f284b,2px 2px #06132a;background:linear-gradient(90deg,#c7d7df 0 40%,#263d59 40%)}
.settings-group .option-toggle[aria-pressed=true]:after{border-color:#b4f6c4;background:linear-gradient(90deg,#19aa51 0 58%,#e4fff3 58%);box-shadow:inset 0 -3px #14763f,2px 2px #06132a}
.pit-tips .pixel-icon{width:27px;height:27px;filter:drop-shadow(2px 2px #041330)}
.pit-controls .controls-guide{background:#09244fea;border:2px solid #f6d25b;border-radius:5px}
.controls-guide strong{font-family:var(--console-face);color:#83edff;text-shadow:2px 2px #05132e}
.controls-keys kbd{background:#fff0ca;color:#152d51;box-shadow:2px 2px #04142e;font-weight:900}
/* Apply the same typography to the entire remaining experience. */
.history-panel,.modal{background:var(--console-panel);border:3px solid #ffdf73;border-radius:8px;box-shadow:inset 0 0 0 2px #c29e4a,4px 5px #06132c}
.history-panel:before{display:none}
.history-panel h1,.modal h2,.intro-panel h1,.podium-header h1,.title-edition b,.finish-cinematic strong{font-family:var(--console-face);font-weight:400;font-style:italic;color:#ffe783;-webkit-text-stroke:1px #06152e;paint-order:stroke fill;text-shadow:2px 3px #9c631d,4px 5px #07152e;letter-spacing:-.045em}
.history-panel h1,.modal h2,.podium-header h1{padding:.15em 0}
.podium-bottom,.podium-stats,.ceremony-call,.replay-banner,.personal-reaction{border-color:#f8d263!important;box-shadow:3px 3px #04152f}
.title-version{font-family:var(--console-face);color:#fff4bd;text-shadow:1px 2px #05112a}
#race .pos strong,#race .hud-lap strong,#race .hud-speed strong,#race #time,#race-message,#pickup-toast strong,#pass-toast strong,#launch-hint{font-family:var(--console-face);font-weight:400;letter-spacing:-.055em;text-shadow:2px 2px #07122b;-webkit-text-stroke:.4px #07122b}
#race .pos strong,#race .hud-speed strong,#race .hud-lap strong{color:#ffe162}
#race .boost-label,#race .drift-label,#race #item-label{font-family:var(--console-face);font-size:clamp(8px,.85vw,11px);font-weight:400}
#race .pos,#race .hud-lap,#race .hud-speed,#race #time{border-color:#f5ce65}
@media(min-width:900px) and (min-height:650px){#mode .mode-frame{padding-top:0}#mode .flow-heading{margin-bottom:10px}.career-content{padding:12px 14px}.career-cup .career-line{min-height:133px}.pit-hero{min-height:380px}}
@media(max-width:700px){.flow-heading,.garage-header,.circuit-header{grid-template-columns:auto minmax(0,1fr);gap:6px;justify-content:start;padding-bottom:6px}.flow-heading>div,.garage-heading{min-width:0}.flow-heading>div>span,.garage-heading>span{font-size:7px;padding:4px 5px}.flow-heading h1,.garage-header h1,.circuit-header h1{font-size:clamp(13px,3.3vw,23px);padding:.3em .35em;letter-spacing:-.06em}.flow-heading h1:before,.flow-heading h1:after,.garage-header h1:before,.garage-header h1:after,.circuit-header h1:before,.circuit-header h1:after{display:none}.flow-mark,.garage-kicker,.circuit-count{display:none}.flow-heading>.arcade-btn,.garage-header>.arcade-btn,.circuit-header>.arcade-btn{font-size:8px!important;padding:4px 6px;min-height:28px}.mode-cards{grid-template-columns:1fr;gap:9px;padding:0}.mode-card{display:grid;grid-template-columns:40% minmax(0,1fr);grid-template-rows:auto auto auto auto;padding:3px;border-width:2px}.mode-number{grid-row:1;grid-column:2;padding:6px;font-size:8px}.mode-art{grid-area:1/1/5/2;height:100%;min-height:100px;border:0;border-right:2px solid #b7c7e0}.mode-info strong{grid-row:2;grid-column:2;font-size:12px;padding:5px}.mode-info small{grid-row:3;grid-column:2;font-size:9px;padding:4px 5px}.mode-info b{grid-row:4;grid-column:2;margin:3px;font-size:10px;min-height:25px;padding:5px}.mode-card:focus-visible:after,.mode-card:hover:after{display:none}.driver-card{border-width:2px;padding-top:10px}.driver-card span{font-size:clamp(6px,1.7vw,9px);padding:4px 0}.driver-detail{border-width:2px;padding:6px;gap:4px}.driver-title{font-size:25px;padding:4px}.driver-stats{padding:4px}.driver-stats>div{font-size:8px}.career-summary{padding:4px;gap:4px}.career-summary div{padding:5px 3px}.career-content{padding:6px}.career-tabs button{font-size:9px;letter-spacing:-.06em}.career-cups-grid{gap:7px}.cup-art{height:96px}.cup-trophy{width:55px;height:55px}.career-cup .career-line{min-height:0;padding:7px}.career-cup .career-line strong{font-size:11px}.pit-layout{grid-template-columns:1fr;gap:8px}.pit-hero{min-height:100px;height:115px;padding:4px;border-width:2px;display:grid;grid-template-columns:40% 60%}.pit-hero img{height:100px;grid-row:1/3}.pit-hero b{font-size:10px;padding:4px}.pit-hero:before{display:none}.pit-hero small{font-size:8px}.settings-group{padding:5px!important;border-width:2px!important;gap:4px}.settings-group h2{font-size:10px;padding:4px 5px}.settings-group .arcade-btn{min-height:29px;font-size:8px;padding:5px}.settings-group .option-toggle:after{width:24px;height:13px}.pit-tips .pixel-icon{width:18px;height:18px}.pista-top{padding:3px 5px}.pista-top strong{font-size:clamp(8px,2.3vw,13px)}.pista-top b{padding:3px;font-size:11px}.pista-lock,.pista-card.locked .pista-lock,.pista-ready{font-size:7px;padding:4px}.circuit-footer{padding:4px;gap:5px}.circuit-footer .primary{font-size:12px}.mode-picker button{font-size:8px;min-height:28px;padding:3px}.circuit-selection strong{font-size:10px}.flow-footer,.garage-footer{font-size:7px;padding:5px}.flow-footer .arcade-btn{min-height:25px;font-size:8px}}
@media(max-height:490px) and (orientation:landscape){.flow-heading,.garage-header,.circuit-header{padding:0 0 5px;gap:6px}.flow-heading>div>span,.garage-heading>span{font-size:7px;padding:3px 8px}.flow-heading h1,.garage-header h1,.circuit-header h1{font-size:clamp(15px,2.7vw,25px);padding:.2em .65em}.flow-heading h1:before,.flow-heading h1:after,.garage-header h1:before,.garage-header h1:after,.circuit-header h1:before,.circuit-header h1:after{display:none}.mode-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0}.mode-card{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto minmax(0,1fr) auto auto;padding:3px;border-width:2px}.mode-number{grid-row:1;grid-column:1;padding:5px;font-size:8px}.mode-info strong{grid-row:2;grid-column:1;padding:4px;font-size:11px}.mode-art{grid-area:3/1/4/2;height:clamp(65px,22vh,115px);min-height:0}.mode-info small{grid-row:4;grid-column:1;padding:3px;font-size:9px}.mode-info b{grid-row:5;grid-column:1;min-height:25px;font-size:10px;margin:3px;padding:4px}.driver-title{font-size:24px;padding:3px}.driver-detail{padding:5px;gap:3px}.driver-stats{padding:3px}.driver-stats>div{font-size:8px}.driver-card span{font-size:8px;padding:3px}.career-summary{padding:3px;gap:4px}.career-tabs button{min-height:26px;font-size:9px}.cup-art{height:75px}.cup-trophy{width:46px;height:46px}.career-cup .career-line{min-height:74px;padding:5px}.pit-layout{grid-template-columns:minmax(115px,.65fr) minmax(0,2fr);gap:7px}.pit-hero{min-height:160px;max-height:none;height:auto;display:flex;padding:5px}.pit-hero img{height:110px}.pit-hero b{font-size:10px;padding:4px}.pit-hero small{margin:3px}.settings-group{padding:4px!important;gap:4px}.settings-group h2{font-size:10px;padding:3px 5px}.settings-group .arcade-btn{min-height:25px;font-size:8px;padding:3px 5px}.pit-tips p{font-size:9px;margin:3px}.pit-tips .pixel-icon{width:15px;height:15px}.flow-footer,.garage-footer{font-size:7px;padding:4px}.pista-top{padding:3px 5px}.pista-top strong{font-size:clamp(9px,1.7vw,14px)}.pista-top b{padding:3px;font-size:11px}.circuit-footer{padding:4px}.circuit-footer .primary{min-height:30px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.mode-card{transition:none}}
/* Stepped, high-contrast cartridge-era lettering: keep long labels solid. */
@supports (background-clip:text){
  .history-panel h1,.modal h2,.intro-panel h1,.podium-header h1,.title-edition b,.finish-cinematic strong,.career-summary b{
    background-image:linear-gradient(to bottom,#fff8cf 0 32%,#ffe577 32% 65%,#ffa928 65% 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;color:#ffe577;text-shadow:none;-webkit-text-stroke:.55px #132039;filter:drop-shadow(2px 3px #07152e)
  }
}
