:root{--bg:#15181c;--panel:#1e2227;--panel2:#272c32;--line:#353a41;--ink:#edf0f2;--muted:#969fa9;--accent:#eda66f;--lime:var(--accent);--orange:var(--accent);--red:#f2817c;--paper:#e9e8e3;--ease:cubic-bezier(.2,.75,.25,1);font-family:'Avenir Next','Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;height:100dvh;display:grid;grid-template-rows:64px minmax(0,1fr) 30px;overflow:hidden}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button,a,input,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button:disabled{cursor:not-allowed;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:active:not(:disabled){transform:scale(.975)}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:23px;line-height:1.15;letter-spacing:-.7px;font-weight:650}h2{font-size:21px;letter-spacing:-.6px;font-weight:650}h3{font-size:13px;line-height:1.3;font-weight:650}p{line-height:1.55}small{font-size:10px;color:var(--muted)}.muted{color:var(--muted)}.accent{color:var(--accent)}.orange{color:var(--orange)}.danger{color:var(--red)}.mono{font-family:Menlo,Consolas,monospace;font-variant-numeric:tabular-nums}.icon{width:20px;height:20px;display:inline-block;flex-shrink:0}.eyebrow{display:block;font-size:9px;line-height:1.3;letter-spacing:1.7px;font-weight:600;color:var(--muted)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 24px;border-bottom:1px solid var(--line);background:#191c20}.brand{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;text-align:left;font-size:19px;font-weight:800;letter-spacing:-1px;line-height:1}.brand-mark{display:grid;place-items:center;width:38px;height:36px;background:var(--accent);color:#272321;font-family:Arial,sans-serif;font-size:18px;font-style:italic;letter-spacing:-2px;border-radius:4px}.brand-one{color:var(--accent);font-size:14px;margin-left:1px}.brand i{font-size:7px;letter-spacing:1.3px;color:var(--muted);display:block;margin-top:5px;font-style:normal;font-weight:500}.topbar nav{display:flex;align-items:stretch;height:100%;gap:8px}.nav-button{position:relative;border:0;padding:0 17px;display:flex;align-items:center;gap:8px;background:none;color:var(--muted);font-size:12px;font-weight:600}.nav-button .icon{width:17px;height:17px}.nav-button.active{color:var(--accent)}.nav-button.active::after{content:'';height:2px;position:absolute;bottom:0;left:17px;right:17px;background:var(--accent)}.wallet{display:flex;align-items:center;gap:8px}.wallet span{font-size:8px;letter-spacing:1.3px;color:var(--muted);margin-right:8px}.wallet strong{font-family:Menlo,monospace;font-size:17px;font-weight:500}.wallet b{font-size:17px;color:var(--accent)}main{min-width:0;min-height:0;padding:16px 24px;display:flex;flex-direction:column;gap:14px;max-width:1800px;width:100%;margin:auto;height:100%;overflow:hidden}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-shrink:0;min-height:42px}.page-heading .eyebrow{margin-bottom:6px}.page-heading .text-button{display:flex;align-items:center;gap:7px}.page-heading .icon{width:15px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--accent);background:var(--accent);color:#26221e;min-height:40px;padding:9px 16px;border-radius:5px;font-size:11px;font-weight:750;white-space:nowrap;transition:transform 160ms var(--ease),background 160ms var(--ease)}.button .icon{width:17px;height:17px}.button.secondary{background:transparent;border-color:#555d66;color:var(--ink)}.button.danger-button{background:#472f30;border-color:#845354;color:#f9b4ad}.button.small{min-height:31px;padding:6px 11px;font-size:10px}.button.wide{width:100%}.text-button{background:none;border:0;padding:3px 0;color:var(--muted);font-size:10px;text-decoration:none}.text-button:hover{color:var(--ink)}.flex{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.chip{font-size:9px;padding:6px 9px;border:1px solid var(--line);border-radius:4px;white-space:nowrap;letter-spacing:.4px}.chip.lime{color:var(--accent);border-color:#7a5d45}.notice{font-size:11px;padding:10px 14px;border-left:2px solid var(--accent);background:#eda66f0a;line-height:1.5;flex-shrink:0}.panel{background:var(--panel);border:1px solid var(--line);padding:18px;border-radius:7px}.section-label{font-size:9px;letter-spacing:1.2px;color:var(--muted);font-weight:600}.car-art{display:block;object-fit:contain;opacity:0;transition:opacity 160ms var(--ease);min-width:0}.car-art.art-ready{opacity:1}.car-art.art-error{opacity:1}.garage-shell{display:grid;grid-template-columns:182px minmax(260px,1fr) 310px;gap:16px;min-height:0;flex:1}.car-picker{display:flex;flex-direction:column;gap:8px;min-height:0;overflow:auto;scrollbar-width:thin}.rail-heading{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);letter-spacing:1.5px;flex-shrink:0;padding:2px 2px 5px}.rail-heading span{color:var(--accent)}.car-tile{position:relative;display:grid;grid-template-columns:68px 1fr;align-items:center;gap:7px;text-align:left;background:var(--panel);border:1px solid transparent;border-radius:5px;padding:9px 9px 17px;min-height:84px;flex:1;max-height:112px;transition:border-color 160ms,background 160ms}.car-tile.active{border-color:var(--accent);background:#282b2d}.car-tile .car-art{width:72px;height:53px;filter:drop-shadow(0 5px 3px #0003)}.car-tile b{display:block;font-size:11px;line-height:1.3;max-width:90px}.car-tile .price{display:block;margin-top:6px;font-size:10px;color:var(--muted)}.car-tile.active .price{color:var(--accent)}.ownership{position:absolute;bottom:7px;left:10px;font-size:7px;letter-spacing:1px;color:#737d88}.car-tile.active .ownership{color:var(--accent)}.rail-note{margin-top:auto;padding:12px 3px 0;font-size:10px;line-height:1.6;color:#7d8792}.car-showcase{min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--paper);color:#25292b;border-radius:7px;overflow:hidden;position:relative}.showcase-top{padding:22px 24px 0;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-shrink:0;z-index:1}.showcase-top .eyebrow{color:#727875;font-size:8px;letter-spacing:1.2px}.showcase-top h2{font-size:27px;letter-spacing:-1px;margin-top:5px}.edition-number{font-family:Menlo,monospace;font-size:25px;color:#6d716f}.edition-number small{font-size:10px;margin-left:3px}.hero-car{position:relative;min-height:170px;flex:1;display:flex;justify-content:center;align-items:center;padding:25px 14px 15px;isolation:isolate}.hero-art{position:relative;width:96%;height:100%;max-height:330px;z-index:2;filter:drop-shadow(0 14px 8px #2c352128)}.garage-watermark{position:absolute;top:20%;left:0;right:0;text-align:center;color:#d7d8d2;font-family:'Arial Black',Arial,sans-serif;font-weight:950;font-size:clamp(65px,8.5vw,140px);font-style:italic;line-height:1;letter-spacing:-5px;z-index:-1;white-space:nowrap;overflow:hidden}.platform-ring{position:absolute;bottom:20%;left:8%;right:8%;height:20%;border:1px solid #b8c1b77a;border-radius:50%;transform:rotate(-4deg);z-index:0}.hero-caption{position:absolute;bottom:9px;left:24px;font-size:9px;color:#777e77;letter-spacing:.2px}.damage-tag{position:absolute;right:20px;bottom:15px;color:#92382f;background:#f9d7cc;padding:8px;font-size:9px;border:1px solid #b98a78;border-radius:4px;z-index:3}.paint-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 24px;border-top:1px solid #ccd0c8;border-bottom:1px solid #ccd0c8;flex-shrink:0}.paint-controls>span{font-size:8px;letter-spacing:1px;color:#737b73}.paint-controls>small{color:#687064;font-size:9px}.swatches{display:flex;gap:9px}.swatch{background:var(--swatch);height:22px;width:22px;border:2px solid transparent;border-radius:50%;position:relative;outline:1px solid #737c6c44}.swatch.active::after{content:'';position:absolute;inset:-5px;border:1px solid #454d42;border-radius:50%}.showcase-stats{padding:16px 24px 13px}.stats{display:grid;gap:14px}.showcase-stats .stats{grid-template-columns:repeat(3,1fr);gap:20px}.stat-line{display:flex;align-items:baseline;justify-content:space-between;gap:6px;font-size:10px;margin-bottom:8px}.showcase-stats .stat-line{display:block;font-size:10px}.showcase-stats .stat-line b{display:block;font-size:22px;line-height:1.2;margin-top:7px;font-weight:500}.showcase-stats .stat-line small{font-size:9px;color:#7e867d}.bar{height:3px;background:#363e45;overflow:hidden;border-radius:2px}.bar i{height:100%;display:block;background:var(--accent);border-radius:2px}.showcase-stats .bar{background:#ccd0c8}.showcase-stats .bar i{background:#5f6f5b}.hero-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 24px 10px;border-top:1px solid #cdd0c9}.hero-foot>div{display:flex;flex-direction:column;gap:3px}.hero-foot small{color:#6c746e;font-size:9px}.hero-foot strong{font-size:21px;font-weight:500}.hero-foot .button{background:#282d2e;border-color:#282d2e;color:#fff5e8;padding-left:22px;padding-right:22px}.hero-foot .danger-button{background:#77423a;border-color:#77423a}.showcase-meta{display:flex;justify-content:space-between;padding:0 24px 13px;gap:8px;font-size:8px;color:#80867e}.workshop{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:7px;background:#1c2024;min-height:0;overflow:hidden}.workshop-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 18px 12px;flex-shrink:0}.workshop-header h2{font-size:18px;margin-top:6px}.workshop-header .eyebrow{color:var(--accent);font-size:8px}.workshop-count{font-size:25px;font-family:Menlo,monospace;color:var(--accent)}.workshop-count small{font-size:10px;color:var(--muted);margin-left:2px}.tab-row{display:flex;gap:18px;padding:0 18px;border-bottom:1px solid var(--line);flex-shrink:0}.tab-row button{border:0;border-bottom:2px solid transparent;background:none;padding:9px 0;color:var(--muted);font-size:11px}.tab-row button.active{color:var(--ink);border-color:var(--accent)}.tab-row button span{font-size:8px;padding:2px 4px;border:1px solid var(--line);border-radius:3px}.workshop-body{padding:13px 16px;min-height:0;flex:1;overflow:auto;scrollbar-width:thin}.part-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.part-tab{background:#262b30;border:1px solid transparent;padding:7px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;position:relative;border-radius:4px;color:var(--muted);font-size:8px}.part-tab .icon{width:18px;height:18px}.part-tab.active{border-color:#967053;background:#382f29;color:var(--accent)}.part-tab b{position:absolute;top:4px;right:5px;font-size:8px}.part{padding-top:14px}.part-title{display:flex;justify-content:space-between;align-items:center;gap:5px}.part-title h3{font-size:13px}.part-title small{font-size:8px;color:var(--accent)}.installed{font-size:10px;color:var(--muted);margin:5px 0 12px}.field-label{display:block;color:var(--muted);font-size:8px;letter-spacing:1px;margin-bottom:9px}select{width:100%;background:#171b1e;color:var(--ink);border:1px solid var(--line);border-radius:4px;font-size:11px;padding:8px 10px;margin-top:5px;letter-spacing:0;min-height:34px}.delta{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;border-top:1px solid var(--line);padding-top:11px;margin:11px 0}.delta small{font-size:8px;display:block;margin-bottom:5px}.delta b{font-size:11px;font-weight:400}.delta b span{color:var(--accent)}.forecast{font-size:9px;color:var(--muted);line-height:1.7;margin-bottom:12px}.part-remove{display:block;margin:9px auto 0}.garage-tools{padding:8px 16px;border-top:1px solid var(--line);flex-shrink:0}.garage-tools .text-button{font-size:9px}.garage-tools .field-label{margin:0 0 6px}.garage-tools select{padding:5px 8px;min-height:28px}.first-drive{padding:25px 20px;display:flex;flex-direction:column;gap:28px;min-height:0;overflow:auto;flex:1}.step{display:flex;gap:15px}.step>b{font-family:Menlo,monospace;font-size:12px;color:var(--accent);padding-top:2px}.step h3{font-size:13px;margin-bottom:7px}.step p{font-size:11px;color:var(--muted);line-height:1.7}.step p strong{color:#d6dadc;font-weight:500}.first-drive-note{font-size:10px;color:#75818b;line-height:1.7;border-top:1px solid var(--line);padding-top:20px;margin-top:auto}.style-intro h3{font-size:16px;margin-bottom:8px}.style-intro p{font-size:11px;color:var(--muted);line-height:1.6}.cosmetic-row{display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:8px;border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.cosmetic-row h3{font-size:11px;margin-bottom:4px}.cosmetic-row small{font-size:9px}.cosmetic-row .button{padding:5px 7px;min-height:29px;font-size:9px}.decal-preview{font-size:30px;font-style:italic;font-weight:900;color:var(--accent)}.wheel-preview .icon{width:30px;height:30px;color:var(--accent)}.micro-note{font-size:10px;color:var(--muted);line-height:1.7;margin-top:18px}.inventory-row{border-bottom:1px solid var(--line);padding:12px 0;font-size:11px;display:flex;flex-direction:column;gap:10px}.inventory-row small{display:block;margin-top:5px}.inventory-row>div:last-child{display:flex;gap:12px;align-items:center}.empty-small{padding:14px 0}.empty-small h3{margin-bottom:10px}.empty-small p{font-size:11px;color:var(--muted)}.damage-state{padding:20px 4px}.damage-state>.icon{width:40px;height:40px;color:var(--red);margin-bottom:18px}.damage-state h3{font-size:18px}.damage-state p{color:var(--muted);font-size:12px;margin:12px 0 24px}.prep-shell{display:grid;grid-template-columns:250px minmax(250px,1fr) 255px;gap:16px;flex:1;min-height:0}.route-grid{display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto}.route-card{flex:1;position:relative;display:flex;flex-direction:column;justify-content:center;min-height:140px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:14px 16px}.route-card.active{border-color:var(--accent);background:#28292a}.route-card-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.route-card .eyebrow{font-size:7px;letter-spacing:1px}.route-radio{width:10px;height:10px;border:1px solid #65707c;border-radius:50%}.route-card.active .route-radio{background:var(--accent);border-color:var(--accent);box-shadow:inset 0 0 0 2px #28292a}.route-card h2{font-size:18px;margin-top:5px}.route-mini{width:100%;height:70px;display:block}.route-card small{font-size:8px;margin-top:8px}.sequence{display:flex;gap:4px}.sequence span{display:flex;justify-content:center;align-items:center;flex:1;min-width:0;font-family:Menlo,monospace;font-size:8px;border-bottom:2px solid var(--t);background:#293137;color:#c8cfd5;height:25px}.sequence span.current{background:var(--accent);border-color:var(--accent);color:#2c2823}.sequence span.done{opacity:.38}.prep-scene{background:#242a2e;border:1px solid var(--line);border-radius:7px;display:flex;flex-direction:column;min-height:0;overflow:hidden;background-image:linear-gradient(#ffffff03 1px,transparent 1px),linear-gradient(90deg,#ffffff03 1px,transparent 1px);background-size:32px 32px}.scene-title{padding:26px 24px 0}.scene-title h2{font-size:33px;margin:10px 0}.scene-title p{font-size:12px;color:var(--muted)}.prep-scene>.route-mini{flex:1;min-height:80px;height:auto}.route-legend{display:flex;justify-content:center;gap:20px;color:var(--muted);font-size:9px;padding:12px}.prep-car{border-top:1px solid var(--line);padding:16px;display:flex;align-items:center;gap:18px;background:#1d2226}.prep-car .car-art{width:42%;height:100px}.prep-car h3{font-size:14px;margin:6px 0}.prep-car p{font-size:10px;color:var(--muted);margin-bottom:10px}.prep-car small{font-size:8px;letter-spacing:1px}.race-ticket{border:1px solid var(--line);border-radius:7px;background:var(--panel);padding:24px 20px;display:flex;flex-direction:column;min-height:0;overflow:auto}.race-ticket>.eyebrow{font-size:8px}.race-ticket h2{font-size:25px;margin-top:12px}.reward-list{display:flex;flex-direction:column;margin:20px 0;gap:17px}.reward-list>div{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding-bottom:15px}.reward-list small{font-size:10px}.reward-list strong{font-family:Menlo,monospace;font-size:16px;font-weight:400;white-space:nowrap}.check{display:flex;align-items:center;gap:10px;font-size:11px;line-height:1.4;margin:9px 0}.check input{accent-color:var(--accent);width:16px;height:16px;flex-shrink:0}.check small{font-size:9px;display:block;margin-top:3px}.ticket-bottom{margin-top:auto;padding-top:25px}.ticket-bottom p{font-size:10px;line-height:1.7;color:var(--muted);margin-bottom:15px}.deck-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}.deck-toolbar p{font-size:10px;color:var(--muted)}.deck-count{font-size:29px;font-family:Menlo,monospace;color:var(--accent)}.deck-count small{font-size:13px;margin-left:3px}.deck-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:12px;flex:1;min-height:0;overflow:auto}.deck-item{border:1px solid var(--line);border-radius:6px;background:var(--panel);display:flex;min-height:155px;overflow:hidden}.deck-item.in-deck{border-color:#7e6754}.deck-card-info{padding:12px 14px;flex:1;min-width:0}.kind{font-size:8px;letter-spacing:1px;text-transform:uppercase;font-weight:600}.deck-item .kind{color:var(--accent)}.deck-item .card-illustration{height:35px;margin:6px 0;justify-content:space-between}.deck-item .card-illustration .icon{width:28px;height:28px}.deck-item .card-effect{font-size:23px}.deck-item h3{font-size:12px;margin-bottom:4px}.deck-item p{font-size:9px;color:var(--muted);line-height:1.4}.condition{font-size:8px;color:#b39e8b;line-height:1.4;margin-top:5px}.counter{display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:9px 8px;background:#15191d77;border-left:1px solid var(--line)}.counter button{width:24px;height:26px;border:1px solid #454d55;border-radius:3px;background:#282f34;font-size:18px;line-height:1}.counter b{font-family:Menlo,monospace;font-size:14px;font-weight:400;color:var(--accent)}.counter small{display:block;font-size:8px;text-align:center;margin-top:5px;color:var(--muted)}
/* Race cockpit: stage, five cards and confirmation stay inside the viewport. */
.screen-race{gap:10px}.race-heading{min-height:34px}.race-heading h1{font-size:21px}.race-heading .eyebrow{font-size:8px;margin-bottom:4px}.section-counter{font-size:21px;color:var(--accent)}.section-counter small{font-size:10px;color:var(--muted);margin-left:3px}.race-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:12px;flex:1;min-height:180px}.track-stage{position:relative;border:1px solid var(--line);border-radius:6px;background:#24292d;min-height:0;overflow:hidden}.track-svg{display:block;width:100%;height:100%;min-height:0}.stage-label{position:absolute;left:20px;top:17px;z-index:1}.stage-label .eyebrow{font-size:8px}.stage-label h3{font-size:19px;margin-top:5px}.track-badge{position:absolute;top:18px;right:18px;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.5px;color:#89959e}.track-badge i{height:5px;width:5px;background:var(--accent);border-radius:50%}.stage-data{position:absolute;left:20px;right:20px;bottom:13px;display:flex;justify-content:space-between;align-items:end;gap:12px}.speed{display:flex;align-items:center;gap:9px}.speed strong{font-family:Menlo,monospace;font-size:32px;font-weight:400;line-height:1;color:#f0f1e9}.speed>div{display:flex;flex-direction:column;gap:3px}.speed small{font-size:8px;letter-spacing:1px}.speed span{font-family:Menlo,monospace;font-size:8px;color:#87949c}.speed span b{font-weight:400}.gap-pill{border:1px solid #656766;background:#252a2ee6;border-radius:3px;font-size:10px;color:var(--accent);padding:7px 10px}.race-info{min-height:0;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:6px;padding:13px 15px;display:flex;flex-direction:column;scrollbar-width:thin}.pilot-label{display:flex;justify-content:space-between;gap:8px;color:var(--accent);font-size:8px;letter-spacing:.7px}.pilot-car{display:flex;align-items:center;gap:9px;margin-top:8px}.pilot-car .car-art{width:74px;height:44px}.pilot-car h3{font-size:11px}.resource{margin-top:11px}.resource .stat-line{font-size:9px;margin-bottom:5px}.resource .stat-line b{font-family:Menlo,monospace;font-size:11px;font-weight:400}.resource .stat-line small{font-size:8px;margin-left:2px}.nitro-dots{display:flex;gap:5px}.nitro-dots span{height:5px;background:#3b444b;flex:1;border-radius:1px}.nitro-dots span.full{background:var(--accent)}.opponent{margin-top:auto;padding-top:13px;border-top:1px solid var(--line);margin-top:13px}.opponent .pilot-label{color:#9db4c2}.opponent h3{font-size:11px;margin-top:8px}.public-stats{display:flex;gap:17px;font-family:Menlo,monospace;font-size:9px;margin-top:8px;color:var(--muted)}.public-stats b{color:var(--ink);font-weight:400}.opponent>small{display:block;font-size:8px;margin-top:7px;color:#7e8a95}.segment-row{flex-shrink:0}.segment-row .sequence span{height:23px;font-size:9px}.hand-section{flex-shrink:0;display:flex;flex-direction:column;gap:8px;min-height:0}.race-choice{display:flex;align-items:center;gap:15px;min-height:29px}.race-choice>div:first-child{display:flex;align-items:baseline;gap:12px;flex:1}.race-choice h2{font-size:17px;letter-spacing:-.3px;white-space:nowrap}.race-choice small{font-size:10px}.hand-count{font-size:8px;color:#b8c1c9}.hand-count span{color:#717d87;margin-left:12px}.timer{font-size:21px;font-family:Menlo,monospace;color:var(--accent);min-width:48px;text-align:right}.hand{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding-top:4px;min-height:0}.action-card{position:relative;background:#e5e3da;color:#313738;border:1px solid #c6c9bb;border-radius:6px;text-align:left;padding:10px 13px 15px;min-width:0;height:158px;display:flex;flex-direction:column;transition:transform 180ms var(--ease),border-color 180ms,box-shadow 180ms;isolation:isolate;overflow:hidden}.action-card::before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(-40deg,transparent,transparent 17px,#47544105 17px,#47544105 18px)}.action-card[data-kind="Нитро"]{background:#cbd9db;border-color:#a6bfc4}.action-card[data-kind="Контроль"]{background:#cbd4c8;border-color:#b6c3b2}.action-card[data-kind="Риск"]{background:#e9c09e;border-color:#cba583}.action-card[data-kind="Защита"]{background:#cdd0d4;border-color:#a9afb8}.action-card[data-kind="Обгон"]{background:#dbd7ca;border-color:#bdb9aa}.action-card.selected{border:2px solid var(--accent);padding:9px 12px 14px;transform:translateY(-4px);box-shadow:0 0 0 2px #eda66f22}.action-card.marked{box-shadow:inset 0 0 0 2px #a76b35}.action-card.unavailable{opacity:.32;filter:saturate(.5)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.card-top .kind{color:#66716a;font-size:7px}.slot{font-family:Menlo,monospace;font-size:8px;color:#66716a}.card-illustration{display:flex;align-items:center;justify-content:space-between;height:45px;flex-shrink:0;margin:4px 0 6px}.card-illustration .icon{width:34px;height:34px}.card-effect{font-family:Menlo,monospace;font-size:30px;font-weight:400;letter-spacing:-2px;line-height:1;color:inherit}.card-effect small{font-size:13px;color:inherit;letter-spacing:0;margin-left:2px}.action-card h3{font-size:12px;font-weight:750;letter-spacing:-.3px;margin-bottom:5px;line-height:1.2}.action-card p{font-size:9px;line-height:1.45;color:#58645d}.reason{font-size:8px;line-height:1.3;margin-top:4px;color:#73573a}.card-bottom{display:flex;justify-content:space-between;position:absolute;left:13px;right:13px;bottom:7px;font-size:5px;font-weight:700;letter-spacing:1px;color:#879184}.card-bottom i{width:22px;height:3px;background:repeating-linear-gradient(90deg,#68745d88 0 1px,transparent 1px 3px)}.command-row{display:grid;grid-template-columns:1fr 1fr 1.8fr;gap:10px;min-height:62px}.permanent{border:1px solid var(--line);background:var(--panel);text-align:left;display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:5px;min-width:0}.permanent>.icon{width:24px;height:24px;color:#b2bfc4}.permanent b{display:block;font-size:11px;margin-bottom:5px}.permanent small{font-size:8px;line-height:1.3;display:block;white-space:nowrap}.permanent.selected{border-color:var(--accent);background:#322d28}.forecast-box{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#292b2c;border:1px solid #65574b;border-radius:5px;padding:8px 12px;min-width:0}.forecast-box>div>small{font-size:8px;line-height:1.3;display:block}.forecast-box .time{font-size:18px;font-weight:500;color:var(--accent);line-height:1.3}.forecast-box .time.muted{font-size:13px;color:var(--muted);margin-top:3px}.forecast-box .time small{font-size:11px}.forecast-box .button{min-height:39px;padding:9px 14px;font-size:10px}.forecast-detail>small{font-family:Menlo,monospace;font-size:8px}.mulligan-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:62px}.mulligan-controls p{font-size:11px;color:var(--muted)}.duel-zone{position:absolute;inset:0;pointer-events:none}.is-reveal{height:269px;justify-content:center}.reveal-summary{display:grid;grid-template-columns:160px minmax(160px,1fr) 160px;gap:25px;align-items:center;padding:14px 24px;background:#1e2327;border:1px solid var(--line);border-radius:6px;height:100%}.reveal-card{padding:17px;border-radius:5px;background:var(--paper);color:#303536;transform:rotate(-3deg)}.reveal-card.bot{background:#c5d0d7;transform:rotate(3deg)}.reveal-card .eyebrow{font-size:8px;color:#6b7778}.reveal-card .card-illustration{height:50px;margin:16px 0}.reveal-card h3{font-size:12px;min-height:30px}.reveal-card strong{font-size:21px;font-weight:500;display:block;margin-top:12px}.reveal-center{text-align:center}.reveal-center h2{font-size:23px;margin:12px 0}.reveal-center p{font-size:11px;color:var(--muted);max-width:400px;margin:0 auto 18px}.reveal-center .button{min-width:210px}.throwing .reveal-summary{opacity:0;pointer-events:none}.throwing .track-stage{box-shadow:inset 0 0 0 1px #eda66f55}.throwing [data-act="surrender"]{pointer-events:none;opacity:.4}#card-flight-layer{position:fixed;inset:0;pointer-events:none;z-index:30;perspective:1000px}.flying-card{position:fixed;transform-style:preserve-3d;border-radius:7px;box-shadow:0 16px 40px #080b0e99;color:#303632;pointer-events:none}.flight-face,.flight-back{position:absolute;inset:0;padding:13px;border:2px solid #f0bd8e;border-radius:7px;backface-visibility:hidden;overflow:hidden;background:#e5e3da}.flight-face .card-illustration{height:55px;margin:13px 0}.flight-face h3{font-size:13px;margin-bottom:8px}.flight-face p{font-size:9px;color:#68705f}.flight-face .kind{font-size:7px;color:#66715e}.flight-back{background:#292f33;color:var(--accent);transform:rotateY(180deg);display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:40px;font-style:italic;font-weight:900;letter-spacing:-3px}.flight-back span{font-size:5px;letter-spacing:1px;font-style:normal;margin-top:10px}.opponent-flight .flight-face{background:#cdd7dc}
/* Result / archive */
.screen-result{overflow:auto}.result-hero{text-align:center;padding:10px 20px 14px}.result-hero>.eyebrow{font-size:9px}.result-hero h1{font-size:36px;font-style:italic;margin:14px 0;color:var(--accent)}.result-hero>p{font-size:12px}.result-times{display:flex;justify-content:center;gap:45px;margin:15px 0}.result-times strong{font-family:Menlo,monospace;font-size:25px;font-weight:400;display:block;margin-top:6px}.result-times span{font-size:9px;color:var(--muted)}.result-actions{display:flex;gap:10px;justify-content:center;margin-top:14px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:5px;flex:1;min-height:100px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:10px}th{font-size:8px;letter-spacing:.6px;color:var(--muted);padding:10px;background:var(--panel);position:sticky;top:0}td{padding:10px;border-top:1px solid var(--line)}.stat-caption{font-size:9px;line-height:1.5;color:var(--muted)}.screen-history{overflow:auto}.heading{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;min-height:50px}.heading h1{font-size:23px;margin-top:6px}.heading p{font-size:11px;color:var(--muted);margin-top:8px}.history-list{display:flex;flex-direction:column;gap:9px;overflow:auto}.history-item{display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:16px}.history-item h3{margin:7px 0}.history-item p{font-size:10px;color:var(--muted)}.history-item>.flex{font-size:13px}.empty{padding:45px;text-align:center}.empty p{font-size:12px;color:var(--muted);margin:15px 0 22px}.empty h1,.empty h2{font-size:25px}footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:0 24px;color:#717f89;font-size:7px;letter-spacing:.8px}footer>div{display:flex;align-items:center;gap:18px}footer .text-button{font-size:8px;color:#8b969f}.live-dot{display:inline-block;width:4px;height:4px;margin-right:5px;background:var(--accent);border-radius:50%}dialog{width:min(620px,calc(100% - 32px));max-height:85dvh;padding:26px;border:1px solid #56616a;border-radius:9px;background:#20262b;color:var(--ink);box-shadow:0 20px 90px #080c10aa}dialog::backdrop{background:#0c111acc;backdrop-filter:blur(4px)}dialog h2{font-size:23px;margin-bottom:15px}dialog p,dialog li{font-size:12px;line-height:1.7;color:#b5c0c9}dialog form{margin-top:20px}.rules-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.rules-grid div{font-size:11px;line-height:1.7;border:1px solid var(--line);padding:12px}.rules-grid b{display:block;color:var(--accent);margin-bottom:5px}.credit{border-top:1px solid var(--line);padding:12px 0;font-size:11px;line-height:1.7}.credit a{color:var(--accent)}#toast{position:fixed;bottom:45px;left:50%;transform:translate(-50%,8px);opacity:0;padding:12px 18px;background:#343c42;border:1px solid #65716e;border-radius:5px;box-shadow:0 8px 25px #0a111455;z-index:60;font-size:12px;pointer-events:none;transition:opacity 160ms,transform 160ms;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(hover:hover) and (pointer:fine){.button:not(:disabled):hover{background:#f7b987}.button.secondary:not(:disabled):hover{background:#343c43}.hero-foot .button:not(:disabled):hover{background:#454c49}.car-tile:hover{border-color:#727c86}.part-tab:hover{background:#323940}.action-card:not(:disabled):hover{transform:translateY(-4px)}.nav-button:hover{color:var(--ink)}}
@media(min-width:1600px) and (min-height:900px){body{grid-template-rows:70px minmax(0,1fr) 34px}.garage-shell{grid-template-columns:210px minmax(300px,1fr) 350px}.action-card{height:190px;padding:14px 18px}.action-card.selected{padding:13px 17px}.action-card h3{font-size:15px}.action-card p{font-size:11px}.card-illustration{height:55px;margin:7px 0 10px}.card-illustration .icon{width:40px;height:40px}.action-card .card-effect{font-size:36px}.is-reveal{height:301px}.race-layout{grid-template-columns:1fr 260px}.race-info{padding:22px}.pilot-car .car-art{width:95px;height:60px}.resource{margin-top:18px}.opponent{margin-top:auto}.workshop-body{padding:20px}.part-tab{padding:13px 5px}.part{padding-top:20px}.field-label{margin-bottom:14px}.showcase-top h2{font-size:36px}}
@media(max-width:1150px){.topbar{padding:0 16px}.wallet span{display:none}main{padding:12px 16px;gap:12px}.garage-shell{grid-template-columns:135px minmax(240px,1fr) 275px;gap:12px}.car-tile{grid-template-columns:1fr;gap:0;padding:7px 9px 14px;min-height:83px}.car-tile .car-art{position:absolute;width:64px;height:46px;right:4px;top:9px}.car-tile .info{position:relative;z-index:1;padding-top:32px}.car-tile b{font-size:10px;max-width:none}.car-tile .price{font-size:9px;margin-top:3px}.ownership{display:none}.rail-note{display:none}.showcase-top{padding:18px 18px 0}.showcase-top h2{font-size:23px}.edition-number{font-size:21px}.paint-controls{padding:12px 18px}.paint-controls>span{font-size:7px;letter-spacing:.5px}.paint-controls>small{display:none}.showcase-stats{padding:14px 18px}.showcase-stats .stats{gap:12px}.showcase-stats .stat-line{font-size:9px}.hero-foot{padding:13px 18px 10px}.hero-foot .button{padding:10px 13px}.showcase-meta{padding:0 18px 11px;font-size:7px}.workshop-body{padding:11px 13px}.workshop-header{padding:15px 13px 11px}.workshop-header h2{font-size:17px}.part-tab{font-size:7px}.prep-shell{grid-template-columns:215px minmax(200px,1fr) 240px;gap:12px}.scene-title{padding:22px 18px 0}.scene-title h2{font-size:26px}.scene-title p{font-size:10px}.route-legend{gap:12px;font-size:8px}.prep-car{gap:10px;padding:13px}.prep-car .car-art{width:40%}.prep-car h3{font-size:12px}.race-choice small{font-size:9px}.hand-count{display:none}.deck-card-info{padding:10px}.deck-item h3{font-size:11px}.deck-item p{font-size:8px}.condition{font-size:7px}.deck-grid{gap:8px}.race-layout{grid-template-columns:1fr 190px}.race-info{padding:11px}.pilot-car h3{font-size:10px}.pilot-car .car-art{width:62px}.command-row{grid-template-columns:1fr 1fr 1.5fr}.permanent{padding:10px;gap:7px}.permanent b{font-size:10px}.permanent small{font-size:7px}.forecast-box .button{padding:9px 11px}.forecast-box{padding:8px 10px}.forecast-box .time{font-size:16px}.action-card{padding:9px 11px 15px}.action-card.selected{padding:8px 10px 14px}}
@media(max-height:760px) and (min-width:801px){body{grid-template-rows:56px minmax(0,1fr) 25px}main{padding-top:10px;padding-bottom:10px;gap:9px}.page-heading{min-height:35px}.page-heading h1{font-size:21px}.page-heading .eyebrow{font-size:7px;margin-bottom:4px}.rail-heading{display:none}.car-tile{min-height:74px}.showcase-top{padding-top:15px}.showcase-top h2{font-size:23px}.hero-car{min-height:120px}.paint-controls{padding-top:9px;padding-bottom:9px}.showcase-stats{padding-top:10px;padding-bottom:10px}.hero-foot{padding-top:10px}.showcase-stats .stat-line b{font-size:19px}.workshop-header{padding-top:12px;padding-bottom:10px}.workshop-body{padding-top:10px;padding-bottom:10px}.part-tab{padding:6px 3px;gap:3px}.part-tab .icon{width:16px;height:16px}.part{padding-top:10px}.installed{margin:4px 0 8px}.field-label{margin-bottom:7px}select{min-height:30px;padding:6px 8px;margin-top:4px}.delta{margin:8px 0;padding-top:8px}.forecast{font-size:8px;margin-bottom:8px}.part .button{min-height:34px}.first-drive{gap:23px;padding:22px 18px}.race-layout{min-height:170px}.race-info{padding:10px 12px}.pilot-car{margin-top:5px}.pilot-car .car-art{height:30px;width:55px}.resource{margin-top:8px}.opponent{padding-top:9px;margin-top:9px}.opponent h3{margin-top:5px}.opponent>small{display:none}.action-card{height:140px;padding-top:8px;padding-bottom:13px}.action-card.selected{padding-top:7px;padding-bottom:12px}.card-illustration{height:34px;margin:3px 0 5px}.card-illustration .icon{width:28px;height:28px}.card-effect{font-size:25px}.action-card h3{font-size:11px;margin-bottom:4px}.action-card p{font-size:8px}.reason{font-size:7px}.hand-section{gap:6px}.race-choice{min-height:25px}.race-choice h2{font-size:15px}.command-row{min-height:56px}.forecast-box .button{min-height:34px}.is-reveal{height:232px}.reveal-card{padding:13px}.reveal-card .card-illustration{height:35px;margin:10px 0}.reveal-center h2{font-size:21px}.deck-grid{gap:8px}.deck-item{min-height:132px}.deck-item .card-illustration{height:26px;margin:3px 0}.deck-item .card-illustration .icon{width:23px;height:23px}.deck-item .card-effect{font-size:20px}.deck-item .condition{font-size:7px}.deck-card-info{padding:9px 12px}.race-ticket{padding:20px 17px}.reward-list{gap:14px;margin:15px 0}.ticket-bottom{padding-top:15px}}
@media(max-width:800px){body{grid-template-rows:91px minmax(0,1fr) 27px}.topbar{flex-wrap:wrap;padding:10px 13px 0;gap:4px;height:91px;align-content:space-between}.brand{font-size:16px;gap:7px}.brand-mark{width:29px;height:28px;font-size:15px}.brand i{display:none}.brand-one{font-size:12px}.topbar nav{order:3;height:38px;width:100%;justify-content:space-between;gap:0}.nav-button{font-size:10px;padding:0 11px;gap:6px}.nav-button .icon{width:15px;height:15px}.nav-button.active::after{left:11px;right:11px}.wallet strong{font-size:15px}.wallet b{font-size:14px}main{padding:10px 12px;gap:9px}.page-heading{min-height:32px}.page-heading h1{font-size:18px;letter-spacing:-.5px}.page-heading .eyebrow{font-size:7px;letter-spacing:1px;margin-bottom:4px}.page-heading>.text-button,.page-heading>.chip{display:none}.garage-shell{grid-template-columns:1fr 285px;grid-template-rows:65px minmax(0,1fr);gap:10px}.car-picker{grid-column:1/-1;flex-direction:row;overflow-x:auto;gap:7px;min-height:65px}.rail-heading,.rail-note{display:none}.car-tile{min-width:112px;max-width:none;flex:1;min-height:60px;padding:6px 8px;display:block}.car-tile .car-art{width:64px;height:38px;right:3px;top:0}.car-tile .info{padding-top:28px}.car-tile b{font-size:9px;line-height:1.1}.car-tile .price{font-size:8px;display:inline}.car-showcase{grid-column:1}.workshop{grid-column:2}.hero-car{min-height:100px;padding:14px 8px 20px}.showcase-top{padding:13px 14px 0}.showcase-top h2{font-size:21px}.showcase-top .eyebrow{font-size:7px}.edition-number{font-size:18px}.hero-caption{font-size:8px;left:14px}.paint-controls{padding:9px 14px}.paint-controls>span{font-size:6px}.swatches{gap:8px}.swatch{width:19px;height:19px}.showcase-stats{padding:12px 14px}.showcase-stats .stats{gap:10px}.showcase-stats .stat-line{font-size:8px}.showcase-stats .stat-line b{font-size:18px}.hero-foot{padding:10px 14px 8px}.hero-foot strong{font-size:18px}.hero-foot .button{padding:9px 11px;min-height:36px;font-size:10px}.showcase-meta{padding:0 14px 10px;font-size:6px}.garage-watermark{font-size:80px;top:32%}.workshop-header{padding:12px}.workshop-header h2{font-size:16px}.workshop-header .eyebrow{font-size:7px}.workshop-count{font-size:21px}.tab-row{padding:0 12px;gap:16px}.tab-row button{font-size:10px;padding:8px 0}.workshop-body{padding:10px 12px}.garage-tools{padding:7px 12px}.garage-tools .text-button{font-size:8px}.first-drive{padding:18px;gap:23px}.step{gap:10px}.step h3{font-size:12px}.step p{font-size:10px}.prep-shell{grid-template-columns:210px 1fr;grid-template-rows:minmax(0,1fr) auto;gap:10px}.prep-scene{grid-column:2;grid-row:1}.route-grid{grid-column:1;grid-row:1}.race-ticket{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:7px 20px;padding:15px}.race-ticket>.eyebrow,.race-ticket>h2{display:none}.reward-list{margin:0;gap:8px;grid-row:1/5}.reward-list>div{padding-bottom:6px}.reward-list small{font-size:9px}.reward-list strong{font-size:13px}.race-ticket .check{margin:0;font-size:10px}.race-ticket .micro-note{margin:0;font-size:9px}.ticket-bottom{padding:0;grid-column:2}.ticket-bottom p{display:none}.route-card{min-height:120px;padding:12px}.route-card .route-mini{height:55px}.route-card h2{font-size:17px}.route-card small{font-size:7px}.scene-title{padding:20px 16px 0}.scene-title h2{font-size:23px}.scene-title p{font-size:10px}.prep-car{flex-direction:column;gap:6px;align-items:start}.prep-car .car-art{width:100%;height:95px}.prep-car h3{font-size:13px}.route-legend{font-size:7px;gap:10px}.deck-grid{grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(4,minmax(0,1fr));gap:7px}.deck-item{min-height:128px}.deck-card-info{padding:8px}.deck-item .card-illustration{height:24px;margin:4px 0}.deck-item .card-illustration .icon{width:22px;height:22px}.deck-item .card-effect{font-size:21px}.deck-item h3{font-size:10px}.deck-item p{font-size:8px}.deck-item .condition{display:none}.counter{padding:7px 5px}.counter button{width:22px;height:24px}.deck-toolbar p{font-size:9px;max-width:240px}.deck-toolbar .text-button{font-size:9px}.deck-toolbar .flex{gap:9px}.race-layout{grid-template-columns:1fr 165px;gap:9px;min-height:150px}.race-info{padding:10px}.pilot-label{font-size:7px}.pilot-car{gap:6px}.pilot-car .car-art{width:50px;height:31px}.pilot-car h3{font-size:9px}.resource{margin-top:8px}.resource .stat-line{font-size:8px;margin-bottom:4px}.resource .stat-line b{font-size:9px}.opponent{padding-top:9px;margin-top:10px}.opponent h3{font-size:10px;margin-top:5px}.public-stats{font-size:8px;gap:13px;margin-top:6px}.opponent>small{display:none}.stage-label{top:13px;left:14px}.stage-label h3{font-size:17px}.track-badge{top:15px;right:13px;font-size:6px}.stage-data{left:14px;right:14px;bottom:12px}.speed strong{font-size:27px}.gap-pill{font-size:8px;padding:6px}.race-choice>div:first-child{display:block}.race-choice h2{font-size:16px}.race-choice small{font-size:9px;display:block;margin-top:3px}.race-choice{min-height:35px}.hand{gap:7px}.action-card{height:155px;padding:8px 9px 15px}.action-card.selected{padding:7px 8px 14px}.action-card h3{font-size:10px;min-height:24px}.action-card p{font-size:8px}.card-top .kind{font-size:6px}.card-illustration{height:35px;margin:5px 0}.card-illustration .icon{width:25px;height:25px}.card-effect{font-size:24px}.card-effect small{font-size:10px}.reason{font-size:7px}.command-row{grid-template-columns:1fr 1fr;gap:7px}.forecast-box{grid-column:1/-1;min-height:50px}.permanent{padding:9px 11px;min-height:48px}.permanent b{font-size:10px}.permanent small{font-size:8px}.permanent>.icon{width:20px;height:20px}.forecast-box .time{font-size:17px}.forecast-box .button{min-height:34px}.is-reveal{height:310px}.reveal-summary{grid-template-columns:100px 1fr 100px;gap:12px;padding:14px}.reveal-card{padding:12px}.reveal-card .eyebrow{font-size:6px}.reveal-card .card-illustration{height:32px;margin:10px 0}.reveal-card .card-effect{font-size:22px}.reveal-card .icon{width:24px}.reveal-card h3{font-size:10px}.reveal-card strong{font-size:16px;margin-top:9px}.reveal-center h2{font-size:20px}.reveal-center p{font-size:10px}.reveal-center .button{min-width:0;font-size:10px;padding:9px 12px}.reveal-center .eyebrow{font-size:7px}footer{padding:0 13px;font-size:6px}.footer-detail{display:none}footer>div{gap:12px}footer .text-button{font-size:7px}.result-hero h1{font-size:29px}.result-hero>p{font-size:11px}.result-times strong{font-size:20px}.result-times{gap:25px}.history-item{padding:12px}.history-item .eyebrow{font-size:7px}.history-item p{font-size:9px}.history-item>.flex{font-size:11px}.history-item .button{font-size:9px}.heading h1{font-size:21px}}
@media(max-width:540px){body{grid-template-rows:83px minmax(0,1fr) 24px}.topbar{height:83px;padding:8px 10px 0}.topbar nav{height:34px}.nav-button{font-size:9px;padding:0 8px}.nav-button .icon{width:14px;height:14px}.nav-button.active::after{left:8px;right:8px}.brand{font-size:15px}.brand-mark{width:27px;height:26px}.wallet strong{font-size:14px}main{padding:8px 10px;gap:7px}.page-heading{min-height:31px}.page-heading h1{font-size:16px}.page-heading .eyebrow{font-size:6px;letter-spacing:.9px;margin-bottom:3px}.garage-shell{grid-template-columns:1fr;grid-template-rows:57px minmax(215px,1fr) minmax(180px,.8fr);gap:8px}.car-picker{min-height:57px;gap:5px;grid-column:1}.car-tile{min-width:88px;min-height:55px;max-height:55px;padding:5px 7px}.car-tile .car-art{width:48px;height:28px;top:0;right:3px}.car-tile .info{padding-top:22px}.car-tile b{font-size:8px}.car-tile .price{font-size:7px}.car-showcase{grid-row:2;grid-column:1;display:grid;grid-template-columns:1fr;grid-template-rows:33px minmax(50px,1fr) 31px 46px 39px;overflow:hidden}.showcase-top{padding:8px 12px 0}.showcase-top h2{font-size:17px;margin-top:2px}.showcase-top .eyebrow{font-size:6px}.edition-number{font-size:16px}.edition-number small{font-size:7px}.hero-car{padding:0 12px;min-height:0}.hero-art{max-width:260px;max-height:120px;width:88%;height:100%}.hero-caption{display:none}.garage-watermark{font-size:69px;top:18%}.platform-ring{bottom:12%;height:20%}.paint-controls{padding:5px 12px}.paint-controls>span{font-size:6px;letter-spacing:1px}.paint-controls>small{display:block;font-size:7px}.swatches{gap:10px}.swatch{width:17px;height:17px}.swatch.active::after{inset:-4px}.showcase-stats{padding:7px 12px}.showcase-stats .stats{gap:20px}.showcase-stats .stat-line{display:flex;align-items:center;font-size:7px;margin-bottom:5px}.showcase-stats .stat-line b{font-size:13px;margin:0}.showcase-stats .stat-line small{display:none}.showcase-stats .bar{height:2px}.hero-foot{padding:5px 12px 7px}.hero-foot>div{flex-direction:row;align-items:center;gap:8px}.hero-foot small{font-size:7px}.hero-foot strong{font-size:16px}.hero-foot .button{min-height:29px;font-size:9px;padding:5px 11px;gap:7px}.hero-foot .icon{width:14px;height:14px}.showcase-meta{display:none}.damage-tag{padding:5px;font-size:7px;bottom:6px;right:10px}.workshop{grid-column:1;grid-row:3;display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);min-height:0}.workshop-header{display:none}.tab-row{height:30px;padding:0 12px;gap:24px;grid-row:1}.tab-row button{font-size:9px;padding:6px 0}.workshop-body{padding:9px 11px;grid-row:2;overflow:auto}.workshop-body:has(.part-picker){display:grid;grid-template-columns:102px minmax(0,1fr);gap:12px;align-items:start}.part-picker{grid-template-columns:repeat(3,1fr);gap:4px;position:sticky;top:0}.part-tab{height:43px;padding:4px 1px;font-size:5px;gap:4px}.part-tab .icon{width:15px;height:15px}.part-tab b{font-size:6px;top:2px;right:3px}.part{padding:0;min-width:0}.part-title h3{font-size:10px}.part-title small{font-size:6px}.installed{font-size:8px;margin:4px 0 6px}.field-label{font-size:6px;letter-spacing:.7px;margin-bottom:6px}select{font-size:9px;padding:4px 6px;min-height:26px;margin-top:3px}.delta{margin:7px 0;padding-top:7px;gap:3px}.delta small{font-size:6px;margin-bottom:3px}.delta b{font-size:9px}.forecast{font-size:7px;margin-bottom:7px}.part .button{min-height:29px;font-size:9px;padding:6px 9px}.part-remove{font-size:8px;margin-top:7px}.garage-tools{display:none}.first-drive{padding:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;grid-row:1/-1}.step{display:block}.step>b{font-size:10px;display:block;margin-bottom:7px}.step h3{font-size:10px;margin-bottom:5px}.step p{font-size:8px;line-height:1.6}.first-drive-note{grid-column:1/-1;font-size:8px;margin:0;padding-top:8px}.style-intro h3{font-size:12px}.style-intro p{font-size:9px}.cosmetic-row{margin-top:10px;padding-top:10px;grid-template-columns:30px 1fr auto}.cosmetic-row h3{font-size:10px}.cosmetic-row small{font-size:8px}.cosmetic-row .button{font-size:8px;min-height:25px}.style-workshop .micro-note{font-size:8px;margin-top:10px}.damage-state{padding:8px}.damage-state>.icon{display:none}.damage-state h3{font-size:16px}.damage-state p{font-size:10px;margin:10px 0}.inventory-row{padding:7px 0;font-size:10px}.inventory-row>div:last-child{gap:15px}.prep-shell{grid-template-columns:1fr;grid-template-rows:98px minmax(130px,1fr) 185px;gap:8px}.route-grid{grid-column:1;grid-row:1;flex-direction:row;gap:6px}.route-card{padding:9px 7px;min-width:0;min-height:0;overflow:hidden;justify-content:space-between}.route-card .eyebrow{font-size:5px;letter-spacing:.6px}.route-card h2{font-size:12px;letter-spacing:-.3px}.route-card .route-mini{height:28px}.route-card .sequence{gap:2px}.route-card .sequence span{height:12px;font-size:5px}.route-card small{display:none}.route-radio{width:7px;height:7px;flex-shrink:0}.prep-scene{grid-column:1;grid-row:2}.scene-title{padding:12px 14px 0}.scene-title h2{font-size:22px;margin:5px 0}.scene-title .eyebrow{font-size:6px}.scene-title p{font-size:9px}.prep-scene>.route-mini{min-height:40px}.route-legend{display:none}.prep-car{flex-direction:row;padding:9px 12px;gap:10px;align-items:center}.prep-car .car-art{width:90px;height:48px}.prep-car small{font-size:6px}.prep-car h3{font-size:11px;margin:3px 0}.prep-car p{font-size:8px;margin-bottom:4px}.prep-car .text-button{font-size:8px}.race-ticket{grid-column:1;grid-row:3;padding:12px;gap:8px 12px;grid-template-columns:1fr 1.1fr}.reward-list{gap:10px}.reward-list strong{font-size:12px}.reward-list small{font-size:8px}.race-ticket .check{font-size:9px;align-items:start}.race-ticket .check input{width:14px;height:14px;margin:0}.race-ticket .check small{font-size:7px}.ticket-bottom .button{min-height:34px;font-size:10px}.race-ticket .micro-note{font-size:8px}.deck-count{font-size:24px}.deck-toolbar{gap:10px}.deck-toolbar p{font-size:8px;line-height:1.4;max-width:150px}.deck-toolbar .text-button{font-size:8px}.deck-toolbar .button{font-size:8px;padding:5px 8px;min-height:28px}.deck-toolbar .button .icon{display:none}.deck-toolbar .flex{gap:7px}.deck-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(6,minmax(88px,1fr));gap:6px;overflow:auto}.deck-item{min-height:88px}.deck-card-info{padding:7px}.deck-item .kind{font-size:6px}.deck-item .card-illustration{height:17px;margin:2px 0 4px}.deck-item .card-illustration .icon{width:17px;height:17px}.deck-item .card-effect{font-size:17px}.deck-item .card-effect small{font-size:8px}.deck-item h3{font-size:9px;line-height:1.2;margin-bottom:3px}.deck-item p{font-size:6px;line-height:1.3}.counter{padding:6px 4px}.counter button{width:20px;height:22px;font-size:15px}.counter b{font-size:10px}.counter small{display:none}.screen-race{gap:7px}.race-heading h1{font-size:18px}.race-heading .eyebrow{font-size:6px}.race-heading .text-button{font-size:9px}.section-counter{font-size:19px}.section-counter small{font-size:8px}.race-layout{grid-template-columns:1fr;grid-template-rows:minmax(120px,1fr) 73px;gap:7px;min-height:200px}.track-stage{min-height:120px}.stage-label{top:9px;left:11px}.stage-label .eyebrow{font-size:6px}.stage-label h3{font-size:15px;margin-top:3px}.track-badge{top:11px;right:11px;font-size:5px;letter-spacing:1px}.stage-data{left:11px;right:11px;bottom:9px}.speed strong{font-size:25px}.speed small,.speed span{font-size:6px}.speed{gap:6px}.gap-pill{font-size:7px;padding:5px 7px}.race-info{display:grid;grid-template-columns:1fr 1fr 1fr;grid-template-rows:16px 1fr;padding:8px 10px;gap:0 12px;overflow:hidden}.race-info>.pilot-label{grid-column:1;grid-row:1;font-size:6px}.pilot-car{grid-column:1;grid-row:2;margin:0;gap:4px;align-items:center}.pilot-car .car-art{width:40px;height:30px}.pilot-car h3{font-size:7px;max-width:50px}.race-info>.nitro{grid-column:2;grid-row:1;margin:0}.nitro .stat-line{font-size:6px;margin:0}.nitro .stat-line b{font-size:7px}.nitro .stat-line small{font-size:6px}.nitro-dots{margin-top:2px;gap:3px}.nitro-dots span{height:3px}.heat-resources{grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px}.heat-resources .resource{margin:0}.heat-resources .stat-line{display:block;margin-bottom:3px;font-size:6px}.heat-resources .stat-line b{display:block;font-size:9px;margin-top:2px}.heat-resources .stat-line small{display:none}.heat-resources .bar{height:2px}.opponent{grid-column:3;grid-row:1/-1;padding:0 0 0 9px;margin:0;border-top:0;border-left:1px solid var(--line)}.opponent .pilot-label{font-size:5px;letter-spacing:.3px}.opponent h3{font-size:8px;margin-top:7px}.public-stats{font-size:6px;gap:7px;margin-top:6px}.segment-row .sequence{gap:3px}.segment-row .sequence span{height:18px;font-size:7px}.race-choice{min-height:30px;gap:8px}.race-choice h2{font-size:14px}.race-choice small{font-size:7px;margin-top:2px}.timer{font-size:19px;min-width:32px}.hand{display:flex;overflow-x:auto;overflow-y:hidden;gap:7px;padding:5px 1px 4px;scrollbar-width:thin;scroll-snap-type:x proximity}.action-card{flex:0 0 112px;min-width:112px;max-width:112px;height:136px;padding:8px 9px 13px;scroll-snap-align:center}.action-card.selected{padding:7px 8px 12px;transform:translateY(-3px)}.card-top .kind{font-size:6px;letter-spacing:.6px}.slot{font-size:7px}.card-illustration{height:31px;margin:4px 0 6px}.card-illustration .icon{width:24px;height:24px}.card-effect{font-size:24px}.action-card h3{font-size:10px;min-height:23px;margin-bottom:4px}.action-card p{font-size:7px}.reason{font-size:6px;margin-top:3px}.card-bottom{font-size:4px;left:9px;right:9px;bottom:6px}.command-row{gap:6px;min-height:0}.permanent{min-height:42px;padding:7px 9px;gap:7px}.permanent b{font-size:9px;margin-bottom:4px}.permanent small{font-size:6px}.permanent>.icon{width:17px;height:17px}.forecast-box{padding:7px 10px;min-height:48px}.forecast-box .time{font-size:17px}.forecast-box .time.muted{font-size:12px}.forecast-box>div>small{font-size:7px}.forecast-box .button{font-size:10px;min-height:31px;padding:7px 12px}.forecast-box .button .icon{width:14px;height:14px}.mulligan-controls{min-height:54px;gap:10px}.mulligan-controls p{font-size:9px;max-width:155px}.mulligan-controls .button{font-size:10px;padding:9px 12px}.is-reveal{height:274px}.reveal-summary{grid-template-columns:90px 1fr 90px;grid-template-rows:132px auto;padding:12px;gap:10px}.reveal-card{padding:10px;grid-row:1}.reveal-card.you{grid-column:1}.reveal-card.bot{grid-column:3}.reveal-card .eyebrow{font-size:5px;letter-spacing:.9px}.reveal-card .card-illustration{height:24px;margin:8px 0}.reveal-card .card-illustration .icon{width:21px;height:21px}.reveal-card .card-effect{font-size:19px}.reveal-card .card-effect small{font-size:9px}.reveal-card h3{font-size:9px;min-height:23px}.reveal-card strong{font-size:14px;margin-top:7px}.reveal-center{grid-column:1/-1;grid-row:2}.reveal-center .eyebrow{display:none}.reveal-center h2{font-size:18px;margin:0 0 6px}.reveal-center p{font-size:9px;margin-bottom:10px}.reveal-center .button{min-height:33px;font-size:10px;width:100%}.result-hero{padding:6px 0 10px}.result-hero h1{font-size:25px;margin:10px 0}.result-hero>.eyebrow{font-size:7px}.result-hero>p{font-size:10px}.result-times{gap:18px;margin:14px 0}.result-times strong{font-size:18px}.result-times span{font-size:7px}.result-actions{gap:8px}.result-actions .button{font-size:9px;padding:8px 10px;min-height:34px}.result-hero .chip{font-size:7px}.table-wrap{min-height:200px}.screen-result .stat-caption{font-size:8px}.history-item{flex-wrap:wrap;gap:10px}.history-item>.flex{justify-content:space-between;width:100%}.heading h1{font-size:18px}.heading p{font-size:10px}.heading .eyebrow{font-size:7px}footer{padding:0 10px;font-size:5px;letter-spacing:.6px}footer>div{gap:11px}footer .text-button{font-size:6px}.rules-grid{grid-template-columns:1fr}dialog{padding:20px}dialog p{font-size:11px}}
@media(max-width:540px) and (max-height:740px){.garage-shell{grid-template-rows:48px minmax(190px,1fr) minmax(145px,.7fr)}.car-picker{min-height:48px}.car-tile{min-height:48px;max-height:48px}.car-tile .info{padding-top:19px}.car-tile .car-art{height:25px}.car-showcase{grid-template-rows:31px minmax(43px,1fr) 28px 42px 35px}.showcase-stats{padding:6px 12px}.hero-foot{padding-top:3px;padding-bottom:4px}.hero-foot .button{min-height:27px}.hero-foot strong{font-size:14px}.hero-art{max-height:85px}.race-layout{min-height:170px;grid-template-rows:minmax(100px,1fr) 62px}.track-stage{min-height:100px}.race-info{padding:6px 9px}.pilot-car .car-art{width:34px;height:24px}.race-info .pilot-car h3{font-size:6px}.heat-resources{padding-top:7px}.action-card{height:120px;min-width:108px;flex-basis:108px}.card-illustration{height:23px;margin:3px 0 4px}.card-illustration .icon{width:21px;height:21px}.card-effect{font-size:21px}.action-card h3{font-size:9px;min-height:21px}.action-card p{font-size:6px}.reason{font-size:6px}.card-bottom{display:none}.race-choice{min-height:26px}.race-choice small{font-size:6px}.permanent{min-height:37px}.forecast-box{min-height:43px}.forecast-box .time{font-size:15px}.is-reveal{height:246px}.race-layout .stage-label h3{font-size:12px}.stage-label .eyebrow{font-size:5px}.stage-label{top:7px;left:9px}.stage-data{bottom:7px;left:9px;right:9px}.speed strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.flying-card{display:none}}
/* Compact workshop keeps the purchase action in view on laptop displays. */
@media(min-width:801px) and (max-height:900px){.workshop-header{padding:13px 16px 10px}.workshop-header h2{font-size:17px}.workshop-body{padding:10px 15px}.part-tab{padding:6px 2px;gap:4px}.part-tab .icon{width:16px;height:16px}.part{padding-top:10px}.part-title h3{font-size:12px}.installed{margin:4px 0 9px;font-size:9px}.field-label{margin-bottom:7px;font-size:7px}.field-label select{min-height:29px;padding:6px 8px;margin-top:4px;font-size:10px}.delta{margin:9px 0;padding-top:9px}.delta small{font-size:7px;margin-bottom:4px}.forecast{font-size:8px;margin-bottom:9px}.part .button{min-height:34px}.part-remove{font-size:9px;margin-top:7px}.tab-row{gap:14px}.tab-row button{font-size:10px}}
.fleet-panel h3{margin-bottom:14px}.fleet-list{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.fleet-active{border-color:var(--accent)!important;color:var(--accent)!important}
#toast{top:76px;bottom:auto;right:24px;left:auto;transform:translateY(-8px);max-width:340px}#toast.visible{transform:translateY(0)}
@media(max-width:540px){.part{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px}.part-title{grid-column:1/-1}.part>.installed{display:none}.part>.field-label{min-width:0;margin:0}.part>.field-label select{font-size:8px;padding:4px 3px;min-height:26px}.part>.delta{grid-column:1/-1;margin:2px 0;padding-top:6px}.part>.forecast{grid-column:1/-1;margin:0;font-size:6px;line-height:1.5}.part>.button,.part>.part-remove{grid-column:1/-1}.part>.button{min-height:28px;margin-top:2px}.part>.part-remove{margin-top:0;font-size:7px}.tab-row{gap:20px}.tab-row button{font-size:8px}.tab-row button span{font-size:6px}.garage-shell{grid-template-rows:57px minmax(205px,1fr) minmax(210px,.8fr)}.fleet-list{gap:6px;margin-bottom:12px}.fleet-panel .button{font-size:9px}.fleet-panel h3{font-size:11px;margin-bottom:9px}#toast{top:90px;right:10px;max-width:calc(100vw - 20px);font-size:10px;padding:9px 13px}}
@media(max-width:540px) and (max-height:740px){.garage-shell{grid-template-rows:48px minmax(178px,1fr) minmax(185px,.8fr)}.workshop-body:has(.part-picker){grid-template-columns:90px minmax(0,1fr);gap:10px}.part-picker{gap:3px}.part-tab{height:39px}.part>.field-label select{min-height:23px}.part>.delta{padding-top:4px}.part>.forecast{font-size:5px}.part{gap:5px}.part>.button{font-size:8px;min-height:25px}}
/* A discard selection is visually distinct from playing an action. */
.action-card .replacement-label{position:absolute;left:8px;right:8px;bottom:8px;padding:5px 3px;border-radius:3px;background:#303b40;color:#fff2db;text-align:center;font-size:9px;letter-spacing:1px;font-weight:750;z-index:2}
.action-card.marked .card-bottom{visibility:hidden}
.regroup-hand .action-card .card-illustration,.regroup-hand .action-card p,.regroup-hand .action-card .reason{opacity:.45}
.regroup-hand .action-card.marked{border-color:var(--accent);box-shadow:inset 0 0 0 2px #a76b35;transform:none}
.regroup-hand .action-card.marked .card-effect{text-decoration:line-through;text-decoration-thickness:1px}
.regroup-forecast{min-width:0}.forecast-box .regroup-forecast .regroup-notice{font-family:inherit;color:var(--accent);font-size:9px;line-height:1.35;margin-top:4px;max-width:310px}
.permanent[data-card="regroup"] small{white-space:normal}
@media(max-width:800px){.forecast-box:has(.regroup-forecast){align-items:center}.forecast-box .regroup-forecast .regroup-notice{font-size:8px;max-width:280px}}
@media(max-width:540px){.action-card .replacement-label{font-size:7px;letter-spacing:.7px;left:5px;right:5px;bottom:5px;padding:4px 2px}.forecast-box .regroup-forecast .regroup-notice{font-size:7px;max-width:180px}.regroup-forecast>small:first-child{font-size:6px!important}.forecast-box:has(.regroup-forecast) .button{padding:7px 9px;font-size:9px}.regroup-hand .action-card.marked h3{position:relative;z-index:1}}

/* Pre-race card exchange has its own screen, without a live track or countdown. */
.screen-mulligan{max-width:1200px;gap:clamp(12px,2vh,22px);justify-content:center;overflow:auto}
.screen-mulligan>.page-heading{min-height:24px}
.screen-mulligan .page-heading>.text-button{display:flex}
.mulligan-intro{flex-shrink:0}
.prestart-steps{display:flex;gap:20px;margin-bottom:22px;color:var(--muted);font-size:12px}
.prestart-steps [aria-current]{color:var(--accent);border-bottom:2px solid var(--accent);padding-bottom:8px}
.mulligan-intro h1{font-size:clamp(30px,4vw,50px);line-height:1.08;letter-spacing:-1.5px;margin:9px 0 14px}
.mulligan-intro>p{color:var(--muted);font-size:15px;line-height:1.55}
.mulligan-intro>p b{color:var(--ink);font-weight:600}
.prestart-note{display:flex;align-items:center;gap:10px;border-left:2px solid var(--accent);background:#eda66f0a;padding:12px 14px;margin-top:18px;font-size:13px;line-height:1.4}
.prestart-note .icon{width:22px;height:22px;flex-shrink:0;color:var(--accent)}
.prestart-note b{color:var(--accent)}
.mulligan-hand-section{flex-shrink:0;min-width:0}
.mulligan-hand-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;align-items:center}
.mulligan-hand-heading>.mono{font-size:12px;color:var(--accent)}
.screen-mulligan .hand{padding:4px 1px}
.screen-mulligan .action-card{height:clamp(168px,23vh,230px);padding-bottom:34px}
.screen-mulligan .regroup-hand .action-card .card-illustration,.screen-mulligan .regroup-hand .action-card p{opacity:.7}
.action-card .keep-label{background:transparent;color:#3b4640;font-weight:600;letter-spacing:.5px}
.regroup-hand .action-card .card-bottom{display:none}
.mulligan-hint{display:block;margin-top:8px;color:var(--muted);font-size:11px;line-height:1.4}
.screen-mulligan .mulligan-controls{border-top:1px solid var(--line);padding-top:16px;flex-shrink:0;gap:20px}
.screen-mulligan .mulligan-controls b{font-size:13px;font-weight:600}
.screen-mulligan .mulligan-controls p{margin-top:5px;max-width:none}
.screen-mulligan .mulligan-controls .button{flex-shrink:0}
@media(max-height:800px){.screen-mulligan{gap:12px}.prestart-steps{margin-bottom:12px}.mulligan-intro h1{font-size:32px;margin:6px 0 10px}.mulligan-intro>p{font-size:13px}.prestart-note{margin-top:12px;padding:9px 12px;font-size:12px}.screen-mulligan .mulligan-controls{padding-top:12px}.mulligan-hand-heading{margin-bottom:6px}}
@media(max-width:540px){.screen-mulligan{justify-content:flex-start;gap:14px;padding:10px 14px}.screen-mulligan .page-heading .eyebrow{font-size:8px}.screen-mulligan .page-heading .text-button{font-size:11px}.prestart-steps{font-size:11px;gap:18px;margin-bottom:18px}.mulligan-intro>.eyebrow{font-size:9px}.mulligan-intro h1{font-size:31px;letter-spacing:-1px;margin:9px 0 12px}.mulligan-intro>p{font-size:12px;line-height:1.5}.mulligan-intro>p br{display:none}.prestart-note{padding:10px;font-size:11px;margin-top:12px}.prestart-note .icon{width:20px;height:20px}.mulligan-hand-heading .eyebrow{font-size:8px;letter-spacing:1px}.mulligan-hand-heading>.mono{font-size:10px}.screen-mulligan .action-card{flex-basis:140px;min-width:140px;max-width:140px;height:168px;padding:11px 11px 29px}.screen-mulligan .action-card h3{font-size:12px;line-height:1.2;min-height:29px}.screen-mulligan .action-card p{font-size:9px}.screen-mulligan .card-top .kind{font-size:8px}.screen-mulligan .action-card .replacement-label{font-size:8px;padding:6px 2px}.screen-mulligan .mulligan-controls{align-items:stretch;flex-direction:column;gap:10px;margin-top:auto}.screen-mulligan .mulligan-controls b{font-size:11px}.screen-mulligan .mulligan-controls p{font-size:10px}.screen-mulligan .mulligan-controls .button{font-size:12px;min-height:42px}.mulligan-hint{font-size:10px}.screen-mulligan .action-card .reason{font-size:8px}}
@media(max-width:540px) and (max-height:700px){.screen-mulligan{gap:10px}.prestart-steps{margin-bottom:10px}.mulligan-intro h1{font-size:28px;margin:7px 0 9px}.prestart-note{margin-top:8px;padding:8px}.screen-mulligan .mulligan-controls{padding-top:8px}.mulligan-hint{font-size:9px;margin-top:5px}}
@media(max-width:540px) and (max-height:600px){.screen-mulligan{gap:7px;padding:7px 12px}.screen-mulligan>.page-heading{min-height:20px}.prestart-steps{margin-bottom:8px;font-size:10px}.prestart-steps [aria-current]{padding-bottom:4px}.mulligan-intro>.eyebrow{display:none}.mulligan-intro h1{font-size:24px;letter-spacing:-.8px;margin:6px 0 7px}.mulligan-intro>p{font-size:11px;line-height:1.4}.prestart-note{font-size:10px;padding:7px;margin-top:7px}.screen-mulligan .action-card{height:134px;flex-basis:135px;min-width:135px;max-width:135px;padding:8px 9px 25px}.screen-mulligan .card-illustration{height:22px;margin:3px 0 5px}.screen-mulligan .action-card h3{font-size:11px;min-height:25px}.screen-mulligan .action-card p{font-size:8px}.screen-mulligan .action-card .replacement-label{padding:4px 2px}.screen-mulligan .mulligan-controls{gap:7px;padding-top:7px}.screen-mulligan .mulligan-controls p{display:none}.screen-mulligan .mulligan-controls .button{min-height:38px}.mulligan-hint{font-size:9px;line-height:1.3}}

/* Phone layout: readable content, thumb navigation, and persistent race actions. */
.mobile-menu,.mobile-only{display:none}
.mobile-menu-actions{display:grid;gap:12px;margin:20px 0}
@media(max-width:600px),(max-width:950px) and (max-height:500px) and (pointer:coarse){
  :root{--phone-nav:calc(64px + env(safe-area-inset-bottom));font-size:16px}
  body{grid-template-rows:56px minmax(0,1fr);padding-bottom:var(--phone-nav);height:100dvh}
  .topbar{display:flex;height:56px;padding:0 12px;gap:10px;position:relative;z-index:25}
  .brand{font-size:17px;min-height:44px;gap:7px}.brand-mark{width:32px;height:32px;font-size:17px}.brand-one{font-size:13px}.brand i{display:none}
  .wallet{margin-left:auto;gap:4px}.wallet span{display:none}.wallet strong{font-size:16px}.wallet b{font-size:16px}
  .mobile-menu{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;background:transparent;border:1px solid var(--line);border-radius:8px;font-size:20px;letter-spacing:1px}
  .topbar nav{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,1fr);height:var(--phone-nav);padding:4px 8px env(safe-area-inset-bottom);gap:4px;background:#191c20;border-top:1px solid var(--line);z-index:40}
  .nav-button{flex-direction:column;justify-content:center;gap:4px;min-width:44px;min-height:52px;padding:4px;font-size:12px}.nav-button .icon{width:22px;height:22px}.nav-button.active::after{inset:0 16px auto;height:2px}
  body>footer{display:none}
  main,main.screen-mulligan{padding:14px 12px;gap:16px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding:12px;height:100%;margin:0;justify-content:flex-start}
  main>*{flex-shrink:0}.mobile-only{display:block}
  .page-heading{min-height:44px;gap:10px}.page-heading h1,.heading h1{font-size:23px;line-height:1.2;letter-spacing:-.6px}.page-heading .eyebrow,.heading .eyebrow{font-size:11px;letter-spacing:1px;margin-bottom:6px}.page-heading>.text-button{display:flex}
  .page-heading>.chip{display:none}.heading p{font-size:14px}.eyebrow,.section-label{font-size:11px;letter-spacing:1px}
  .button,.button.small,.text-button{min-height:44px;min-width:44px;font-size:14px;padding:10px 12px;line-height:1.35}.button .icon{width:20px;height:20px}.text-button{color:#bbc3cb}
  select{font-size:16px;min-height:48px;padding:10px;margin-top:7px}.field-label{font-size:12px;line-height:1.4;letter-spacing:.5px}
  .notice,.chip{font-size:13px}.panel{padding:16px}.empty h1,.empty h2{font-size:24px}.empty p{font-size:15px;margin:12px 0}
  /* Garage scrolls as one page; car and part selectors remain horizontal. */
  .garage-shell{display:flex;flex-direction:column;gap:16px;flex:none;min-height:0;overflow:visible}
  .car-picker{display:flex;flex-direction:row;gap:8px;overflow-x:auto;overflow-y:hidden;flex:none;padding:2px 1px 8px;scroll-snap-type:x proximity}
  .car-picker .rail-heading,.car-picker .rail-note{display:none}
  .car-tile{display:grid;grid-template-columns:54px 1fr;flex:0 0 178px;min-width:178px;height:94px;min-height:94px;max-height:none;padding:10px 9px 23px;gap:7px;scroll-snap-align:start}
  .car-tile .info{padding:0}.car-tile .car-art{position:static;display:block;width:58px;height:46px}.car-tile b{font-size:13px;max-width:none}.car-tile .price{display:block;font-size:12px;margin-top:5px}.car-tile .ownership{display:block;font-size:10px;bottom:7px;left:10px}
  .car-showcase{display:flex;flex-direction:column;flex:none;min-height:0;overflow:hidden}.showcase-top{padding:16px 16px 0}.showcase-top .eyebrow{font-size:11px;letter-spacing:.4px}.showcase-top h2{font-size:27px;margin-top:7px}.edition-number{font-size:23px}.edition-number small{font-size:12px}
  .hero-car{flex:none;height:180px;min-height:180px;padding:12px 12px 25px}.hero-art{max-width:none;height:100%;width:100%;max-height:none}.garage-watermark{font-size:70px}.hero-caption{display:block;left:16px;bottom:8px;font-size:12px}.damage-tag{font-size:12px}
  .paint-controls{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 16px}.paint-controls>span{font-size:11px}.paint-controls>small{font-size:12px;grid-column:2;grid-row:1}.swatches{grid-column:1/-1;display:flex;gap:8px;overflow-x:auto;padding:5px 2px}.swatch{flex:0 0 44px;width:44px;height:44px}.swatch.active::after{inset:-3px}
  .showcase-stats{padding:14px 16px}.showcase-stats .stats{gap:10px}.showcase-stats .stat-line{display:block;font-size:12px;line-height:1.4}.showcase-stats .stat-line b{font-size:24px;margin-top:7px}.showcase-stats .stat-line small{display:inline;font-size:12px}.showcase-stats .bar{height:5px}
  .hero-foot{padding:14px 16px;gap:12px;flex-wrap:wrap}.hero-foot>div{flex-direction:column;align-items:flex-start;gap:3px}.hero-foot small{font-size:12px}.hero-foot strong{font-size:20px}.hero-foot .button{min-height:48px;font-size:14px;padding:10px 14px}.showcase-meta{display:flex;padding:0 16px 14px;font-size:11px;line-height:1.4;flex-wrap:wrap}
  .workshop{display:flex;flex-direction:column;flex:none;overflow:visible}.workshop-header{display:flex;padding:16px}.workshop-header h2{font-size:20px}.workshop-header .eyebrow{font-size:11px}.workshop-count{font-size:24px}.workshop-count small{font-size:12px}
  .tab-row{height:auto;min-height:48px;padding:0 12px;gap:12px;overflow-x:auto}.tab-row button{min-height:48px;font-size:14px;white-space:nowrap;padding:8px 4px}.tab-row button span{font-size:12px}
  .workshop-body,.workshop-body:has(.part-picker){display:block;padding:14px;overflow:visible;flex:none}.part-picker{position:static;display:flex;overflow-x:auto;gap:8px;padding-bottom:10px}.part-tab{flex:0 0 88px;min-height:72px;font-size:12px;padding:10px 6px;gap:7px}.part-tab .icon{width:24px;height:24px}.part-tab b{font-size:11px}
  .part{display:block;padding-top:12px}.part-title h3{font-size:18px}.part-title small{font-size:12px}.part>.installed{display:block;font-size:14px;margin:8px 0 16px}.part .field-label{margin-bottom:14px}.part>.field-label select{font-size:16px;min-height:48px;padding:10px}.delta{margin:16px 0;gap:10px}.delta small{font-size:12px}.delta b{font-size:16px}.part>.forecast{font-size:14px;line-height:1.5}.part>.button{min-height:48px;font-size:15px;margin-top:8px}.part>.part-remove{font-size:14px;min-height:44px}
  .garage-tools{padding:12px 14px}.garage-tools .text-button{font-size:14px}.garage-tools select{font-size:16px;min-height:48px}.first-drive{display:flex;flex-direction:column;padding:16px;gap:24px;overflow:visible}.step{display:flex;gap:12px}.step>b{font-size:14px}.step h3{font-size:17px}.step p,.first-drive-note{font-size:14px;line-height:1.5}
  .style-intro h3{font-size:20px}.style-intro p,.micro-note,.empty-small p,.inventory-row{font-size:14px}.cosmetic-row{grid-template-columns:32px 1fr;gap:12px}.cosmetic-row h3{font-size:16px}.cosmetic-row small{font-size:13px}.cosmetic-row .button{grid-column:2;font-size:14px;min-height:44px}.inventory-row small{font-size:13px}.fleet-panel .button{font-size:14px}.damage-state h3{font-size:22px}.damage-state p{font-size:15px}
  /* Route selection and deck editor prioritize readable rules and generous controls. */
  .prep-shell{display:flex;flex-direction:column;flex:none;gap:16px;overflow:visible}.route-grid{display:flex;flex-direction:row;overflow-x:auto;gap:10px;padding-bottom:8px}.route-card{flex:0 0 238px;min-height:190px;padding:16px}.route-card .eyebrow{font-size:11px}.route-card h2{font-size:21px;margin:8px 0}.route-card .route-mini{height:55px}.route-card small{display:block;font-size:12px}.route-radio{width:14px;height:14px}.route-card .sequence span{height:24px;font-size:11px}
  .prep-scene{display:flex;flex:none}.scene-title{padding:16px}.scene-title .eyebrow{font-size:11px}.scene-title h2{font-size:26px}.scene-title p{font-size:14px}.prep-scene>.route-mini{height:100px;min-height:100px;flex:none}.route-legend{display:flex;font-size:12px;gap:14px;padding:12px}.prep-car{padding:14px;gap:12px}.prep-car .car-art{width:92px;height:70px}.prep-car small{font-size:11px}.prep-car h3{font-size:17px}.prep-car p{font-size:13px}.prep-car .flex{gap:8px;flex-wrap:wrap}.prep-car .text-button{font-size:13px;padding:8px 0}
  .race-ticket{display:flex;flex:none;overflow:visible;padding:18px;gap:0}.race-ticket>.eyebrow{display:block;font-size:11px}.race-ticket h2{display:block;font-size:25px}.reward-list{margin:20px 0;gap:16px}.reward-list small{font-size:14px}.reward-list strong{font-size:18px}.race-ticket .check{font-size:16px;align-items:center;min-height:48px;gap:12px}.race-ticket .check input{width:24px;height:24px}.race-ticket .check small{font-size:13px}.race-ticket .micro-note,.ticket-bottom p{font-size:14px}.ticket-bottom{padding-top:20px}.ticket-bottom .button{min-height:48px;font-size:16px}
  .deck-count{font-size:28px}.deck-count small{font-size:14px}.deck-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:12px}.deck-toolbar p{font-size:14px;max-width:none;line-height:1.5}.deck-toolbar .flex{justify-content:space-between;gap:8px}.deck-toolbar .text-button,.deck-toolbar .button{font-size:14px;min-height:44px;padding:8px 12px}
  .deck-grid{display:flex;flex-direction:column;flex:none;overflow:visible;gap:12px}.deck-item{display:grid;grid-template-columns:minmax(0,1fr) 64px;min-height:190px}.deck-card-info{padding:16px}.deck-item .kind{font-size:11px}.deck-item .card-illustration{height:30px;margin:8px 0}.deck-item .card-illustration .icon{width:28px;height:28px}.deck-item .card-effect{font-size:28px}.deck-item h3{font-size:18px;line-height:1.3;margin-bottom:8px}.deck-item p{font-size:14px;line-height:1.5}.deck-item .condition{display:block;font-size:13px;line-height:1.4;margin-top:8px}.counter{padding:12px 8px;gap:8px}.counter button{width:44px;height:44px;font-size:24px}.counter b{font-size:20px}.counter small{display:block;font-size:12px}
  /* Race: large hand cards; controls stay above the bottom navigation. */
  .screen-race{gap:12px}.race-heading h1{font-size:20px}.race-heading .eyebrow{font-size:10px}.race-heading .text-button{font-size:14px;padding:8px}.section-counter{font-size:22px}.section-counter small{font-size:12px}.race-heading>.flex{gap:5px}
  .race-layout{display:flex;flex-direction:column;flex:none;gap:10px;min-height:0}.track-stage{height:180px;min-height:180px;flex:none}.stage-label{top:12px;left:12px}.stage-label .eyebrow{font-size:10px}.stage-label h3{font-size:18px}.track-badge{font-size:10px;top:12px;right:12px;letter-spacing:.6px}.stage-data{left:12px;right:12px;bottom:12px;gap:8px}.speed strong{font-size:30px}.speed small,.speed span{font-size:10px}.gap-pill{font-size:11px;padding:7px}
  .race-info{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto auto;gap:12px;padding:12px;overflow:visible}.race-info>.pilot-label{grid-column:1/-1;grid-row:1;font-size:12px}.pilot-car{display:flex;grid-column:1;grid-row:2;margin:0;gap:8px}.pilot-car .car-art{width:56px;height:38px}.pilot-car h3{font-size:12px;max-width:none}.race-info>.nitro{grid-column:2;grid-row:2;margin:0}.nitro .stat-line{font-size:13px}.nitro .stat-line b{font-size:16px}.nitro .stat-line small{font-size:12px}.nitro-dots{margin-top:6px}.nitro-dots span{height:5px}
  .heat-resources{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0}.heat-resources .resource{margin:0}.heat-resources .stat-line{display:flex;font-size:12px;margin-bottom:6px}.heat-resources .stat-line b{display:inline;font-size:16px;margin:0}.heat-resources .stat-line small{display:inline;font-size:11px}.heat-resources .bar{height:5px}.opponent{grid-column:1/-1;grid-row:4;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;border:0;border-top:1px solid var(--line);padding:10px 0 0;margin:0}.opponent .pilot-label{font-size:12px;width:100%;letter-spacing:.5px}.opponent h3{font-size:13px;margin:0}.public-stats{font-size:12px;gap:12px;margin:0}.opponent>small{display:none}
  .segment-row .sequence span{height:30px;font-size:12px}.segment-row .sequence{gap:4px}.race-choice{min-height:50px;gap:10px}.race-choice>div:first-child{display:block}.race-choice h2{font-size:21px;white-space:normal}.race-choice small{font-size:13px;line-height:1.4;display:block;margin-top:5px}.timer{font-size:24px;min-width:44px}.hand-count{display:none}
  .hand{display:flex;gap:10px;padding:6px 2px;overflow-x:auto;scroll-padding:2px;scroll-snap-type:x proximity}.action-card,.screen-mulligan .action-card{flex:0 0 192px;min-width:192px;max-width:192px;height:210px;padding:13px 14px 32px;border-radius:8px}.action-card.selected{padding:12px 13px 31px}.card-top .kind,.screen-mulligan .card-top .kind{font-size:11px;letter-spacing:.5px}.slot{font-size:11px}.card-illustration,.screen-mulligan .card-illustration{height:34px;margin:10px 0 12px}.card-illustration .icon{width:30px;height:30px}.card-effect{font-size:30px}.card-effect small{font-size:14px}.action-card h3,.screen-mulligan .action-card h3{font-size:17px;line-height:1.2;min-height:0;margin-bottom:8px}.action-card p,.screen-mulligan .action-card p{font-size:13px;line-height:1.4;color:#414e46}.action-card .reason,.screen-mulligan .action-card .reason{font-size:12px;line-height:1.3;margin-top:6px;color:#61472d}.card-bottom{display:none}.action-card.unavailable{opacity:.72;filter:saturate(.3)}.action-card .replacement-label,.screen-mulligan .action-card .replacement-label{font-size:11px;letter-spacing:.5px;padding:6px;bottom:7px;left:7px;right:7px}.hand-scroll-hint{font-size:12px;color:var(--muted);margin-top:2px}
  body[data-phase="choose"] .screen-race{padding-bottom:230px}
  .command-row{position:fixed;left:0;right:0;bottom:var(--phone-nav);z-index:30;background:var(--bg);border-top:1px solid var(--line);padding:10px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;box-shadow:0 -8px 24px #0003}
  .permanent{padding:10px;min-height:64px;gap:8px}.permanent>.icon{width:22px;height:22px}.permanent b{font-size:13px;line-height:1.25;margin-bottom:4px}.permanent small{font-size:11px;line-height:1.35;white-space:normal}
  .forecast-box{grid-column:1/-1;min-height:74px;padding:10px;gap:8px}.forecast-box .time{font-size:24px}.forecast-box .time.muted{font-size:16px}.forecast-box>div>small,.forecast-detail>small{font-size:12px;line-height:1.4}.forecast-box .time small{font-size:13px}.forecast-box .button,.forecast-box:has(.regroup-forecast) .button{font-size:14px;min-height:48px;padding:10px 12px;white-space:normal;max-width:48%;flex-shrink:0}.forecast-box .button .icon{display:none}.regroup-forecast>small:first-child{font-size:10px!important}.forecast-box .regroup-forecast .regroup-notice{font-size:12px;max-width:none;line-height:1.4}.forecast-box:has(.regroup-forecast){align-items:flex-end}
  body[data-phase="choose"] .screen-race:has(.regroup-forecast){padding-bottom:320px}
  .is-reveal{height:auto}.reveal-summary{height:auto;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto;padding:14px;gap:18px}.reveal-card{grid-row:1;padding:12px;transform:none}.reveal-card.you{grid-column:1}.reveal-card.bot{grid-column:2;transform:none}.reveal-card .eyebrow{font-size:11px;letter-spacing:.6px}.reveal-card .card-illustration{height:32px;margin:10px 0}.reveal-card .card-illustration .icon{width:26px;height:26px}.reveal-card .card-effect{font-size:25px}.reveal-card .card-effect small{font-size:12px}.reveal-card h3{font-size:15px;min-height:38px}.reveal-card strong{font-size:21px}.reveal-center{grid-row:2;grid-column:1/-1}.reveal-center h2{font-size:23px;margin:0 0 12px}.reveal-center p{font-size:14px;line-height:1.5;margin-bottom:16px}.reveal-center .button{min-height:48px;font-size:15px;width:100%}
  /* Pre-start has the same comfortable card size and an explicit fixed start button. */
  main.screen-mulligan{padding-bottom:156px}.prestart-steps{font-size:13px;gap:20px;margin-bottom:18px}.mulligan-intro>.eyebrow{display:block;font-size:11px}.mulligan-intro h1{font-size:29px;line-height:1.15;letter-spacing:-.7px;margin:10px 0 14px}.mulligan-intro>p{font-size:15px;line-height:1.5}.prestart-note{font-size:14px;line-height:1.45;padding:12px;margin-top:16px}.prestart-note .icon{width:24px;height:24px}.mulligan-hand-heading .eyebrow{font-size:11px}.mulligan-hand-heading>.mono{font-size:12px}.mulligan-hint{font-size:13px;line-height:1.45;margin-top:8px}
  .screen-mulligan .mulligan-controls{position:fixed;left:0;right:0;bottom:var(--phone-nav);z-index:30;background:var(--bg);padding:12px;gap:8px;border-top:1px solid var(--line);box-shadow:0 -8px 24px #0003;margin:0;display:flex;flex-direction:column;align-items:stretch}.screen-mulligan .mulligan-controls b{font-size:13px;line-height:1.4}.screen-mulligan .mulligan-controls p{display:block;font-size:12px;margin-top:4px}.screen-mulligan .mulligan-controls .button{min-height:48px;font-size:15px;padding:10px}
  /* Result rows become readable cards rather than a tiny nine-column table. */
  .result-hero{padding:12px 0}.result-hero>.eyebrow{font-size:11px}.result-hero h1{font-size:29px;margin:16px 0}.result-hero>p{font-size:15px}.result-times{gap:20px;margin:20px 0}.result-times strong{font-size:23px}.result-times span{font-size:12px}.result-hero .chip{font-size:13px}.result-actions{display:flex;flex-direction:column;gap:10px;margin-top:16px}.result-actions .button{min-height:48px;font-size:15px;width:100%}.screen-result .stat-caption{font-size:12px;line-height:1.5}
  .table-wrap{overflow:visible;border:0;min-height:0;flex:none}table,tbody{display:block;min-width:0;width:100%}thead{display:none}tbody{display:grid;gap:12px}tbody tr{display:grid;grid-template-columns:1fr 1fr;padding:14px;gap:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}tbody td{display:block;padding:0;border:0;font-size:14px;line-height:1.4;white-space:normal}tbody td::before{content:attr(data-label);display:block;font-family:inherit;font-size:11px;color:var(--muted);margin-bottom:5px}tbody td:first-child{grid-column:1/-1;font-size:18px;color:var(--accent)}tbody td:first-child::before{display:none}
  .history-list{gap:14px}.history-item{padding:16px;gap:14px}.history-item .eyebrow{font-size:11px}.history-item h3{font-size:19px}.history-item p{font-size:14px;line-height:1.5}.history-item .button{font-size:14px;min-height:44px}.history-item .accent{font-size:16px}
  dialog{width:calc(100% - 24px);max-height:calc(100dvh - 48px);padding:20px;overflow:auto}dialog h2{font-size:24px}dialog p,.rules-grid>div,.credit{font-size:15px;line-height:1.55}.rules-grid b{font-size:16px}.rules-grid{gap:20px}dialog .button{font-size:15px;min-height:48px}.mobile-menu-actions .button{justify-content:flex-start}#toast{font-size:14px;line-height:1.4;max-width:calc(100vw - 24px);right:12px;top:68px;padding:12px}
}

/* Collection showroom: cinematic spotlight above a searchable, complete roster. */
.screen-catalog{overflow-y:auto;overflow-x:hidden;gap:18px;scroll-padding:16px}.screen-catalog>*{flex-shrink:0}
.catalog-heading h1{font-size:28px}.catalog-total{font-size:26px;color:#ff79cc}.catalog-total small{display:block;font:11px 'Avenir Next',sans-serif;color:var(--muted);margin-top:5px;text-align:right}
.catalog-categories{display:flex;gap:8px;overflow-x:auto;min-height:48px;padding:2px 1px 6px;scrollbar-width:thin}
.catalog-category{display:flex;align-items:center;gap:14px;flex-shrink:0;background:#20242a;border:1px solid #383d45;border-radius:5px;padding:11px 16px;min-height:44px;font-size:13px;color:#c0c7d1;white-space:nowrap}
.catalog-category span{font-family:Menlo,monospace;font-size:11px;color:#a1abb8}.catalog-category.active{border-color:var(--category-accent);color:var(--category-accent);background:#2b2330;box-shadow:inset 0 -2px var(--category-accent)}
.catalog-tools{display:flex;gap:14px;align-items:end}.catalog-tools label>span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.catalog-search{flex:1}.catalog-search input{width:100%;height:44px;border:1px solid #3c414a;border-radius:5px;background:#1c2026;color:var(--ink);font-size:15px;padding:10px 14px}.catalog-search input::placeholder{color:#8f9aa8}.catalog-sort{width:210px}.catalog-sort select{margin:0;min-height:44px;font-size:14px}.catalog-available{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px}.catalog-tools .catalog-available span{margin:0;font-size:13px;white-space:nowrap}.catalog-available input{accent-color:#ff62c5;width:20px;height:20px}
.showroom{position:relative;display:grid;grid-template-rows:auto 330px auto auto;min-height:640px;background:#080a0e;border:1px solid #433044;border-radius:12px;overflow:hidden;isolation:isolate}
.showroom::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 10% 55%,#f320b626,transparent 55%),radial-gradient(ellipse at 90% 35%,#268dff26,transparent 60%),linear-gradient(180deg,#090a10,#13121c 68%,#090b10);z-index:-2}
.showroom::after{content:'';position:absolute;left:0;right:0;top:55%;height:30%;background:repeating-linear-gradient(90deg,transparent 0 90px,#b5c4dd0b 90px 91px),linear-gradient(transparent,#ff62c513,transparent);transform:perspective(250px) rotateX(25deg);z-index:-1;pointer-events:none}
.showroom-lights{position:absolute;left:8%;right:8%;top:20%;height:2px;background:linear-gradient(90deg,#ff62c5,transparent 40%,transparent 60%,#7fcaff);box-shadow:0 0 18px #ff62c5;opacity:.6;pointer-events:none}
.showroom-title{position:relative;padding:26px 32px 0;z-index:2;display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:center}.showroom-category{color:var(--category-accent);font-size:12px;letter-spacing:1.6px;text-transform:uppercase;grid-column:1}.showroom-title h2{grid-column:1;font-size:clamp(28px,3vw,42px);line-height:1.1;letter-spacing:-1px;max-width:850px;text-shadow:0 2px 14px #000}.showroom-number{grid-column:2;grid-row:1/3;color:#e7c6df;font-size:28px}.showroom-number small{font-size:12px;color:#8e94a0}
.showroom-art{position:relative;grid-row:2;display:flex;align-items:center;justify-content:center;min-height:0;padding:12px 24px}.showroom-car{width:min(90%,760px);height:100%;object-fit:contain;filter:drop-shadow(0 18px 22px #000) drop-shadow(-8px 0 12px #ff39b43a) drop-shadow(8px 0 12px #44c0ff44)}
.showroom-photo{width:auto;max-width:min(90%,760px);height:100%;max-height:100%;object-fit:contain;border-radius:7px;box-shadow:0 25px 60px #0009,0 0 45px #ee4bbe15}
.has-scene .showroom-art{position:absolute;inset:0 0 160px;padding:0}.showroom-hero{width:100%;height:100%;object-fit:cover;object-position:center 61%}.has-scene .showroom-title{background:linear-gradient(#080a0eee,#080a0e00);padding-bottom:25px}.has-scene .showroom-bottom{background:linear-gradient(#080a0e00,#080a0ef5 35%)}
.showroom-bottom{grid-row:3;position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:20px 32px 18px;align-items:end}
.showroom-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.showroom-stats span{display:block;font-size:12px;color:#c0c2cb;margin-bottom:9px}.showroom-stats strong{display:block;font-size:28px;font-weight:500}.showroom-stats strong small{font-size:12px;color:#8e96a6;margin-left:5px}.showroom-bar{height:3px;background:#39333f;margin-top:10px}.showroom-bar i{display:block;height:100%;background:var(--category-accent);box-shadow:0 0 12px var(--category-accent)}
.showroom-action{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.showroom-action p{width:100%;font-size:13px;color:#b6b5c1;line-height:1.5;max-width:440px;text-align:right}.showroom-action .button{min-height:44px;font-size:14px}.showroom-soon{display:inline-flex;align-items:center;min-height:40px;font-size:13px;border:1px solid #695269;border-radius:4px;padding:8px 14px;color:#e4b9d9;background:#211623}.showroom-credit{font-size:12px;color:#a7a4b2;min-height:44px}
.showroom-switcher{position:relative;z-index:2;grid-row:4;background:#090b10e8;border-top:1px solid #372b3c;display:flex;align-items:center;justify-content:center;gap:14px;padding:16px 28px}.showroom-arrow{width:44px;height:56px;flex-shrink:0;background:transparent;color:#ede9f1;border:1px solid #393240;border-radius:6px;font-size:30px;line-height:1}.showroom-strip{display:flex;justify-content:center;gap:10px;overflow-x:auto;padding:3px;max-width:700px;scrollbar-width:thin}.showroom-mini{flex:0 0 108px;width:108px;padding:0;background:#19181f;border:1px solid #36313f;border-radius:4px;overflow:hidden}.showroom-mini img{width:100%;height:54px;object-fit:cover;display:block;opacity:.72}.showroom-mini span{font-size:10px;display:block;padding:6px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.showroom-mini.active{border-color:#ff62c5;box-shadow:0 0 0 1px #ff62c5,0 0 14px #ff62c52e}.showroom-mini.active img{opacity:1}
.catalog-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px}.catalog-results-heading h2{font-size:21px}.catalog-results-heading>span{font-size:13px;color:#a9b0be;white-space:nowrap}.catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.catalog-tile{min-width:0;background:#1d2027;border:1px solid #363540;border-radius:7px;padding:0;text-align:left;overflow:hidden;transition:border-color 160ms,background 160ms}.catalog-tile.selected{border-color:var(--category-accent);background:#28202e}.catalog-thumb{position:relative;aspect-ratio:5/3;overflow:hidden;background:#0d1016}.catalog-thumb img{display:block;width:100%;height:100%;object-fit:cover}.catalog-thumb>span,.catalog-thumb>b{position:absolute;background:#0e1015e8;padding:5px 7px;border-radius:3px;font-size:11px;font-weight:500}.catalog-thumb>span{left:8px;bottom:8px}.catalog-thumb>b{right:8px;top:8px;color:#e7c599;font-size:9px}.catalog-tile-info{padding:13px}.catalog-tile-info>span{color:var(--category-accent);font-size:10px;letter-spacing:.8px}.catalog-tile h3{font-size:14px;line-height:1.4;margin:7px 0;min-height:40px}.catalog-tile small{font-size:12px;color:#a7adba}.catalog-more{display:flex;align-items:center;justify-content:center;gap:25px;margin:24px 0 10px}.catalog-more .button{min-width:100px;min-height:44px;font-size:14px}.catalog-more>span{font:14px Menlo,monospace;color:#c2b8cd}.catalog-empty{padding:50px 20px;text-align:center;border:1px solid var(--line);border-radius:8px;background:#1c1e25}.catalog-empty p{margin-top:12px;color:var(--muted)}
@media(hover:hover){.catalog-tile:hover{border-color:var(--category-accent)}.catalog-category:hover{background:#302735}.showroom-arrow:hover{border-color:#ff62c5;color:#ff62c5}}
@media(max-width:1100px){.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-tools{flex-wrap:wrap}.catalog-available{padding-left:0}.showroom-bottom{gap:18px}.showroom-title h2{font-size:32px}}
@media(max-width:800px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.showroom-bottom{grid-template-columns:1fr}.showroom-action{justify-content:flex-start}.showroom-action p{text-align:left;max-width:none}.showroom-title{padding:22px 22px 0}.showroom-bottom{padding:16px 22px}.showroom-stats{gap:18px}.catalog-total{font-size:24px}}
@media(max-width:600px),(max-width:950px) and (max-height:500px) and (pointer:coarse){
  .nav-button{font-size:11px}.screen-catalog{gap:14px}.catalog-heading{align-items:flex-start}.catalog-heading h1{font-size:24px}.catalog-heading .eyebrow{font-size:10px}.catalog-total{font-size:24px;white-space:nowrap}.catalog-total small{font-size:11px;max-width:82px;white-space:normal;line-height:1.4}
  .catalog-categories{gap:8px;min-height:52px}.catalog-category{min-height:46px;font-size:14px;padding:10px 13px;gap:12px}.catalog-category span{font-size:12px}.catalog-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px}.catalog-search{grid-column:1/-1}.catalog-tools label>span{font-size:12px}.catalog-search input{height:48px;font-size:16px}.catalog-sort{width:auto}.catalog-sort select{font-size:15px;min-height:48px;padding:9px}.catalog-available{align-self:end;padding:0;min-height:48px;gap:8px}.catalog-tools .catalog-available span{font-size:12px;white-space:normal;line-height:1.4}.catalog-available input{width:24px;height:24px;flex-shrink:0}
  .showroom{grid-template-rows:auto 270px auto auto;min-height:0;border-radius:9px}.showroom-title{padding:20px 18px 0;gap:10px}.showroom-category{font-size:11px;letter-spacing:1px}.showroom-title h2{font-size:29px;line-height:1.12;grid-column:1/-1;max-width:none;overflow-wrap:anywhere}.showroom-number{font-size:16px;grid-row:1;grid-column:2}.showroom-number small{font-size:11px}.showroom-art{padding:12px;height:270px}.showroom-car{width:100%;height:100%}.showroom-photo{width:100%;height:auto;max-width:100%;max-height:100%;object-fit:contain}.has-scene .showroom-art{position:relative;grid-row:2;inset:auto;height:270px;margin:0 -1px}.showroom-hero{object-fit:cover;object-position:center 66%;height:100%;width:100%}.has-scene .showroom-title{padding-bottom:0}.showroom-lights{top:15%}
  .showroom-bottom{grid-template-columns:1fr;padding:14px 18px;gap:20px}.showroom-stats{gap:12px}.showroom-stats span{font-size:12px;line-height:1.4;min-height:34px;margin-bottom:7px}.showroom-stats strong{font-size:25px}.showroom-stats strong small{font-size:11px}.showroom-action{gap:8px;align-items:center}.showroom-action p{font-size:13px;line-height:1.5}.showroom-action .button{min-height:48px;font-size:14px;width:100%}.showroom-soon{font-size:13px;min-height:44px}.showroom-credit{font-size:12px;padding:8px;min-height:44px}
  .showroom-switcher{gap:7px;padding:12px 8px;justify-content:space-between}.showroom-arrow{width:44px;height:60px}.showroom-strip{justify-content:flex-start;gap:8px}.showroom-mini{flex-basis:92px;width:92px;min-height:76px}.showroom-mini img{height:49px}.showroom-mini span{font-size:11px;padding:6px 4px}
  .catalog-results-heading{align-items:flex-start;margin:8px 0 14px}.catalog-results-heading h2{font-size:21px;line-height:1.25;max-width:72%}.catalog-results-heading>span{font-size:12px;line-height:1.5}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-thumb>span{font-size:11px;left:6px;bottom:6px;padding:4px 6px}.catalog-thumb>b{font-size:9px;right:6px;top:6px}.catalog-tile-info{padding:12px 10px}.catalog-tile-info>span{font-size:11px;letter-spacing:.4px}.catalog-tile h3{font-size:14px;line-height:1.4;min-height:58px;margin:8px 0}.catalog-tile small{font-size:12px}.catalog-more{gap:18px;margin:20px 0 8px}.catalog-more .button{min-width:90px;min-height:48px}.catalog-empty{padding:30px 14px}.catalog-empty h2{font-size:22px}.catalog-empty p{font-size:15px}
}
.showroom{grid-template-columns:minmax(0,1fr);min-width:0}.showroom>*{min-width:0}.showroom-strip{min-width:0;flex:1}.showroom-art .showroom-photo{mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}

/* Lift a race card vertically while keeping native horizontal hand scrolling. */
.draggable-card{touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
.action-card.drag-source{opacity:.22;transform:none!important}
.action-card.drag-ghost{position:fixed;z-index:103;min-width:0;max-width:none;margin:0;pointer-events:none;transition:none;box-shadow:0 18px 45px #0009,0 0 0 2px var(--accent);will-change:transform;cursor:grabbing}
.card-drop-zone{position:fixed;z-index:101;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;border:2px dashed #edaa70;border-radius:14px;background:#181d25ed;box-shadow:0 8px 40px #0006;pointer-events:none;text-align:center;color:var(--ink)}
.card-drop-zone.ready{border-style:solid;border-color:#d5f94a;background:#25341df5;box-shadow:0 0 30px #d5f94a33}
.drop-instruction{font-size:14px;color:#edaa70}.ready .drop-instruction{color:#d5f94a}.card-drop-zone strong{font-size:20px}.card-drop-zone small{font-size:13px;color:#e2e6dd}
.dragging-card{cursor:grabbing}.dragging-card .command-row{pointer-events:none}
@media(hover:hover) and (pointer:fine){.draggable-card:hover:not(:disabled){transform:translateY(-4px)}}
@media(prefers-reduced-motion:reduce){.draggable-card:hover:not(:disabled){transform:none}}

/* The active race is a single-screen cockpit; navigation returns after the race. */
@media(max-width:600px) and (min-height:520px){
  body[data-phase="choose"],body[data-phase="reveal"]{padding-bottom:env(safe-area-inset-bottom)}
  body[data-phase="choose"] #nav,body[data-phase="reveal"] #nav{display:none}
  body[data-phase="choose"] main.screen-race,body[data-phase="reveal"] main.screen-race{padding:4px 10px 8px;gap:5px;overflow:hidden}
  .screen-race .race-heading{min-height:36px;height:36px;flex:none}
  .screen-race .race-heading .eyebrow{display:none}.screen-race .race-heading h1{font-size:18px}
  .screen-race .race-heading .text-button{padding:0 6px;min-height:36px;font-size:13px}.screen-race .section-counter{font-size:18px}
  .screen-race .race-layout{flex:1;min-height:142px;gap:5px;display:flex}
  .screen-race .track-stage{flex:1;height:auto;min-height:90px}
  .screen-race .stage-label{top:8px;left:10px}.screen-race .stage-label .eyebrow,.screen-race .track-badge{display:none}.screen-race .stage-label h3{font-size:15px}
  .screen-race .stage-data{left:10px;right:10px;bottom:7px}.screen-race .speed strong{font-size:24px}.screen-race .gap-pill{padding:4px 6px;font-size:11px}
  .screen-race .race-info{display:grid;grid-template-columns:65px minmax(0,1fr);grid-template-rows:auto;gap:12px;padding:7px 9px;flex:none;min-height:47px}
  .screen-race .race-info>.pilot-label,.screen-race .race-info>.pilot-car,.screen-race .opponent{display:none}
  .screen-race .race-info>.nitro{grid-column:1;grid-row:1}.screen-race .heat-resources{grid-column:2;grid-row:1;gap:10px}
  .screen-race .resource .stat-line{font-size:11px;margin:0 0 4px}.screen-race .resource .stat-line b{font-size:14px}.screen-race .resource .stat-line small{font-size:10px}.screen-race .nitro-dots{margin-top:4px}
  .screen-race .segment-row .sequence span{height:20px;font-size:11px}.screen-race .segment-row{flex:none}
  .screen-race .hand-section{gap:4px;flex:none}
  .screen-race .race-choice{min-height:26px;gap:8px}.screen-race .race-choice h2{font-size:15px}.screen-race .race-choice small{display:none}.screen-race .timer{font-size:20px}
  .screen-race .hand{padding:4px 2px;gap:8px}
  .screen-race .action-card{height:clamp(158px,24dvh,200px);flex-basis:176px;min-width:176px;max-width:176px;padding:10px;border-radius:8px}
  .screen-race .action-card .card-illustration{height:24px;margin:5px 0 7px}.screen-race .action-card .card-illustration .icon{width:24px;height:24px}.screen-race .card-effect{font-size:26px}
  .screen-race .action-card h3{font-size:15px;margin-bottom:6px}.screen-race .action-card p,.screen-race .action-card .reason{font-size:12px;line-height:1.3}.screen-race .card-top .kind{font-size:10px}
  .screen-race .regroup-hand .action-card{padding-bottom:30px}.screen-race .regroup-hand .card-illustration{display:none}.screen-race .regroup-hand h3{margin-top:8px}
  .screen-race .hand-scroll-hint{display:none}
  .screen-race .command-row{position:static;padding:0;border:0;box-shadow:none;gap:5px;flex:none}
  .screen-race .permanent{padding:7px 8px;min-height:44px;gap:6px}.screen-race .permanent b{font-size:12px;margin:0}.screen-race .permanent small{display:none}.screen-race .permanent>.icon{width:20px;height:20px}
  .screen-race .forecast-box{min-height:57px;padding:6px 8px;gap:6px}.screen-race .forecast-box .time{font-size:20px}.screen-race .forecast-box .time.muted{font-size:14px}
  .screen-race .forecast-box .button,.screen-race .forecast-box:has(.regroup-forecast) .button{min-height:44px;font-size:13px;padding:6px 9px}
  .screen-race .forecast-detail>small{font-size:11px}.screen-race .regroup-forecast>small:first-child,.screen-race .forecast-box .regroup-notice{display:none}
  .screen-race .forecast-box:has(.regroup-forecast){align-items:center}
  .screen-race .is-reveal{flex:none}.screen-race .reveal-summary{gap:10px;padding:10px}.screen-race .reveal-card{padding:8px}.screen-race .reveal-card .card-illustration{height:23px;margin:6px 0}.screen-race .reveal-card h3{min-height:0;font-size:14px}.screen-race .reveal-card strong{font-size:18px;margin-top:5px}
  .screen-race .reveal-center h2{font-size:19px;margin-bottom:6px}.screen-race .reveal-center p{font-size:12px;margin-bottom:8px}.screen-race .reveal-center .button{min-height:44px}
}
.card-drop-zone .drop-instruction{position:absolute;top:10px;left:8px;right:8px}.card-drop-zone>small{position:absolute;bottom:10px;left:8px;right:8px}
@media(max-width:600px) and (min-height:520px) and (max-height:680px){
  .screen-race .race-layout{min-height:122px}.screen-race .track-stage{min-height:70px}
  .screen-race .action-card{height:158px}.screen-race .stage-label h3{font-size:13px}.screen-race .speed strong{font-size:20px}
  .screen-race .reveal-summary{gap:6px;padding:8px}.screen-race .reveal-center h2{font-size:17px}
}
@media(max-width:600px) and (min-height:520px){
  body[data-phase="choose"] main.screen-race:has(.regroup-forecast){padding:4px 10px 8px}
}
@media(max-width:600px) and (min-height:520px) and (max-height:680px){
  .screen-race .race-layout{min-height:102px}.screen-race .track-stage{min-height:50px}
}
@media(max-width:600px) and (min-height:520px) and (max-height:600px){
  .screen-race .action-card{height:148px}
}

.catalog-shop-note{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:8px;padding:12px 16px;background:var(--panel)}.catalog-shop-note p{font-size:13px;color:var(--muted)}.catalog-shop-note b{color:var(--ink)}.catalog-shop-note .button{flex-shrink:0;min-height:44px}
@media(max-width:600px){.catalog-shop-note{align-items:stretch;flex-direction:column;gap:10px;padding:12px}.catalog-shop-note p{font-size:13px}.catalog-shop-note .button{width:100%}}

.hand.hand-panning{scroll-snap-type:none;scroll-behavior:auto}
.protocol-tabs{display:flex;gap:8px;margin:4px 0 12px}.protocol-tabs .button{min-height:44px}
.compact-protocol td span{display:block;margin-bottom:5px}.compact-protocol td strong{font-size:16px;font-variant-numeric:tabular-nums}.compact-protocol .protocol-gap{font-size:13px}
@media(max-width:600px){
 .compact-protocol tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:0;overflow:hidden}
 .compact-protocol td{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:12px;border:0;min-width:0;font-size:14px;line-height:1.3}
 .compact-protocol td::before{position:static;min-width:0;font-size:11px;padding:0;color:var(--muted)}
 .compact-protocol .protocol-sector{grid-column:1/-1;background:var(--panel2);font-size:13px;padding:9px 12px}
 .compact-protocol .protocol-sector::before,.compact-protocol .protocol-gap::before{display:none}
 .compact-protocol .protocol-you{border-right:1px solid var(--line)}.compact-protocol td span{min-height:36px;margin:0}
 .compact-protocol .protocol-gap{grid-column:1/-1;padding:9px 12px;border-top:1px solid var(--line);font-size:13px}
}
.catalog-filters summary,.catalog-view-toggle{display:none}.catalog-filters{position:relative}.catalog-filter-panel{display:flex;flex-direction:column;gap:10px}.showroom-art{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.showroom-art img{-webkit-user-drag:none}
@media(max-width:600px){
 main.screen-catalog{position:relative;overflow:hidden;padding:8px 10px;gap:8px;display:flex}
 .catalog-heading{min-height:36px;flex:none;margin:0;padding-right:100px}.catalog-heading h1{font-size:19px}.catalog-heading .eyebrow,.catalog-heading .catalog-total{display:none}
 .catalog-filters{position:absolute;top:5px;right:10px;z-index:35;width:90px}.catalog-filters summary{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:13px;cursor:pointer;background:var(--panel);border:1px solid var(--line);border-radius:7px;list-style:none}.catalog-filters summary::-webkit-details-marker{display:none}
 .catalog-filter-panel{position:absolute;right:0;top:48px;width:calc(100vw - 20px);max-height:calc(100dvh - 190px);overflow:auto;background:var(--panel);border:1px solid var(--line);padding:12px;border-radius:9px;box-shadow:0 15px 40px #000a}.catalog-filters:not([open]) .catalog-filter-panel{display:none}
 .catalog-filter-panel .catalog-tools{display:grid;grid-template-columns:1fr 1fr}.catalog-filter-panel .catalog-search{grid-column:1/-1}.catalog-filter-panel .catalog-shop-note{padding:10px}.catalog-filter-panel .catalog-shop-note p{font-size:12px}
 .catalog-categories{min-height:38px;padding:0;gap:5px;flex:none}.catalog-category{min-height:38px;padding:6px 10px;font-size:12px;white-space:nowrap}.catalog-category span{font-size:11px}
 .catalog-view-toggle{display:block;order:5;min-height:38px;padding:6px 10px;font-size:12px;flex:none}
 #catalog-stage{flex:1;min-height:0;display:flex}.showroom{flex:1;min-height:0;display:grid;grid-template-rows:auto minmax(70px,1fr) auto auto;padding:0}
 .showroom-title{padding:12px 12px 0;position:relative;top:auto;left:auto;right:auto}.showroom-title h2{font-size:22px;line-height:1.1;margin-top:4px}.showroom-category{font-size:10px}.showroom-number{font-size:13px;top:12px;right:12px}
 .showroom-art{min-height:0;height:auto;position:relative;grid-row:2;overflow:hidden}.showroom-hero,.showroom-photo{width:100%;height:100%;object-fit:cover}.showroom-car{height:100%;max-height:100%;object-fit:contain}
 .showroom-bottom{position:relative;inset:auto;padding:8px 12px;gap:8px;grid-row:3}.showroom-stats{gap:10px}.showroom-stats span{font-size:10px}.showroom-stats strong{font-size:19px}.showroom-stats strong small{font-size:10px}.showroom-action{gap:6px}.showroom-action p{display:none}.showroom-action .button{min-height:44px;padding:7px 10px;font-size:13px}.showroom-credit{font-size:11px;min-height:32px;padding:5px}.showroom-soon{font-size:12px}
 .showroom-switcher{grid-row:4;position:relative;inset:auto;padding:5px 8px;gap:5px}.showroom-mini{height:48px;min-width:48px;flex-basis:48px}.showroom-mini img{height:30px}.showroom-mini span{font-size:8px}.showroom-arrow{width:32px;min-width:32px;min-height:44px}
 .catalog-results{display:none}.catalog-list-mode #catalog-stage{display:none}.catalog-list-mode .catalog-results{display:block;overflow-y:auto;flex:1;min-height:0}.catalog-list-mode .catalog-grid{padding-bottom:10px}.catalog-results-heading{margin:0 0 10px}.catalog-results-heading h2{font-size:16px}.catalog-results-heading>span{font-size:11px}
}
/* All five pre-race cards are visible together, with an explicit replacement marker. */
@media(max-width:600px) and (min-height:520px){
 body[data-phase="mulligan"]{padding-bottom:env(safe-area-inset-bottom)}body[data-phase="mulligan"] #nav{display:none}
 main.screen-mulligan{padding:6px 10px;gap:8px;overflow:hidden;display:flex}
 .screen-mulligan .page-heading{min-height:32px;height:32px}.screen-mulligan .page-heading .eyebrow{font-size:10px;margin:0}.screen-mulligan .page-heading .text-button{min-height:32px;padding:4px}
 .screen-mulligan .prestart-steps,.screen-mulligan .mulligan-intro>.eyebrow,.screen-mulligan .mulligan-hand-heading,.screen-mulligan .mulligan-hint,.screen-mulligan .hand-scroll-hint{display:none}
 .screen-mulligan .mulligan-intro h1{font-size:23px;margin:0 0 5px}.screen-mulligan .mulligan-intro>p{font-size:13px;line-height:1.3}.screen-mulligan .mulligan-intro>p br{display:none}
 .screen-mulligan .prestart-note{padding:5px 8px;font-size:11px;line-height:1.25;margin-top:6px}.screen-mulligan .prestart-note .icon{width:18px;height:18px}
 .screen-mulligan .mulligan-hand-section{flex:1;min-height:0;display:flex}.screen-mulligan .hand{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;width:100%;padding:0}
 .screen-mulligan .action-card{width:100%;height:100%;min-height:0;min-width:0;max-width:none;padding:7px 8px 23px;display:flex;flex-direction:column;justify-content:center}.screen-mulligan .action-card:last-child{grid-column:1/-1}
 .screen-mulligan .card-top,.screen-mulligan .action-card p,.screen-mulligan .action-card .reason{display:none}.screen-mulligan .card-illustration{position:absolute;right:8px;top:7px;margin:0;height:22px}.screen-mulligan .card-illustration .icon{display:none}.screen-mulligan .card-effect{font-size:21px}.screen-mulligan .action-card h3{font-size:14px;line-height:1.2;margin:0;padding-right:43px;min-height:0}.screen-mulligan .replacement-label{font-size:10px;padding:3px;bottom:4px;left:4px;right:4px}
 .screen-mulligan .mulligan-controls{position:static;flex:none;padding:0;gap:5px;margin:0;border:0;box-shadow:none;background:none}.screen-mulligan .mulligan-controls b{font-size:12px}.screen-mulligan .mulligan-controls p{display:none}.screen-mulligan .mulligan-controls .button{min-height:44px;font-size:14px}.screen-mulligan .mulligan-controls>div{line-height:1.25}
}
/* One neon studio for all five live, repaintable cars. */
.screen-garage{background:radial-gradient(ellipse at 12% 65%,#d9147320,transparent 55%),radial-gradient(ellipse at 90% 25%,#00a9dd16,transparent 55%),#101016;--accent:#f276bc}
.screen-garage .car-showcase{background:#101017;border-color:#713455;box-shadow:0 0 30px #ed258514}
.screen-garage .showcase-top,.screen-garage .showcase-stats,.screen-garage .hero-foot,.screen-garage .paint-controls{background:#11121be8}
.screen-garage .hero-car{isolation:isolate;background:#101017;overflow:hidden;min-height:170px}
.screen-garage .garage-watermark,.screen-garage .platform-ring{display:none}
.screen-garage .hero-art{position:absolute;z-index:3;left:3%;right:auto;top:auto;bottom:17%;width:94%;height:70%;max-height:none;object-fit:contain;transform:none;filter:drop-shadow(-3px -2px 3px #d526964f) drop-shadow(3px 0 3px #1cd6f857) drop-shadow(0 15px 8px #000b)}
.screen-garage .hero-reflection{position:absolute;z-index:2;width:92%;height:65%;object-fit:contain;left:4%;top:67%;transform:scaleY(-1);opacity:.22;filter:blur(1.5px);mask-image:linear-gradient(to top,#0008,transparent 65%);pointer-events:none}
.screen-garage .hero-caption{z-index:4;bottom:8px;font-size:11px;color:#d1b8cf;text-shadow:0 1px 5px #000}
.screen-garage .car-tile{background:linear-gradient(135deg,#0b0b16,#251328);border-color:#36303f}.screen-garage .car-tile.active{border-color:#f276bc;box-shadow:inset 0 0 0 1px #f276bc,0 0 16px #f22b8d24}.screen-garage .workshop{background:#14141b;border-color:#3d3045}
.showroom.has-model .showroom-art{isolation:isolate;background:#101017;overflow:hidden}
.showroom.has-model .showroom-car{position:absolute;left:3%;top:auto;bottom:16%;width:94%;height:70%;object-fit:contain;z-index:3;filter:drop-shadow(-3px -1px 3px #fc37a74d) drop-shadow(3px 0 3px #23d5fa4d) drop-shadow(0 15px 10px #0009)}
.showroom-reflection{position:absolute;z-index:2;width:92%;height:65%;left:4%;top:67%;object-fit:contain;transform:scaleY(-1);opacity:.22;filter:blur(1.5px);mask-image:linear-gradient(to top,#0009,transparent 65%);pointer-events:none}
@media(max-width:600px){.screen-garage .hero-car{min-height:180px}.screen-garage .hero-art{height:72%;bottom:15%}.screen-garage .hero-reflection{top:66%}}
@media(max-width:600px) and (min-height:700px){
 .screen-mulligan .hand{grid-template-rows:repeat(3,minmax(0,120px));align-content:start}
 .screen-mulligan .action-card p{display:block;font-size:11px;line-height:1.25;margin-top:5px}
}

.garage-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 58%;z-index:0;pointer-events:none}
.screen-garage .car-showcase,.screen-garage .car-showcase h2,.screen-garage .car-showcase strong,.screen-garage .car-showcase .stat-line{color:var(--ink)}
.screen-garage .car-showcase small,.screen-garage .car-showcase .eyebrow,.screen-garage .paint-controls>span,.screen-garage .showcase-meta{color:#aab0c1}
.screen-garage .hero-foot .button{background:#ed74bf;color:#241421}
/* Unavailable cards still allow native horizontal hand scrolling. */
.draggable-card:disabled{touch-action:pan-x}

/* Immersive garage: one room, one car, compact controls over the scene. */
main.screen-garage{padding:0;gap:0;overflow:hidden;background:#090910;position:relative}
.garage-stage{position:relative;isolation:isolate;flex:1;width:100%;height:100%;min-height:0;overflow:hidden;color:#f2f3f7}
.garage-backdrop,.garage-vignette{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;z-index:-2;pointer-events:none}
.garage-vignette{z-index:-1;background:linear-gradient(90deg,#05050ba8,transparent 60%),linear-gradient(0deg,#05050bef,transparent 34%,#05050b22 70%,#05050b80)}
.garage-stage .car-showcase{position:absolute;inset:0;display:block;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:#f2f3f7;overflow:visible}
.garage-stage .showcase-top{position:absolute;top:5%;left:5%;padding:0;width:55%;max-width:600px;background:none;z-index:5;display:block}
.garage-stage .showcase-top .eyebrow{font-size:10px;letter-spacing:1.5px;color:#bdc4d2;margin-bottom:7px}
.garage-stage .showcase-top h2{font-size:clamp(28px,3vw,44px);line-height:1.05;letter-spacing:-1px;font-weight:800;font-style:italic;color:#fff;text-shadow:0 2px 12px #000;margin:0}
.garage-stage .showcase-top p{font-size:13px;margin-top:7px;color:#c0c5cf}
.garage-stage .showcase-stats{position:absolute;top:calc(5% + 106px);left:5%;width:210px;padding:0;background:none;border:0;z-index:5}
.garage-stage .stats{display:grid;grid-template-columns:1fr;gap:12px}
.garage-stage .stats>div{padding:0;border:0}.garage-stage .stat-line{font-size:12px;color:#f1f2f8;margin-bottom:5px}.garage-stage .stat-line b{font-size:15px;font-weight:600}.garage-stage .stat-line small{display:none}
.garage-stage .bar{height:5px;border-radius:0;background:#d4dbed28}.garage-stage .bar i{border-radius:0;background:#e7eaf3}
.garage-spec{font-size:11px;color:#bbc3ce;margin-top:14px;line-height:1.4}
.garage-price{position:absolute;right:5%;top:5%;text-align:right;z-index:5;max-width:40%}.garage-price small{display:block;font-size:10px;letter-spacing:.8px;color:#c4c5d2;margin-bottom:5px}.garage-price strong{font-size:24px;font-weight:700;font-variant-numeric:tabular-nums}.garage-price>span{display:block;font-size:11px;margin-top:7px;color:#f993b8}
.garage-hero{position:absolute;inset:26% 0 16%;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;z-index:2;cursor:grab}
.garage-stage .garage-hero .hero-art{position:absolute;inset:0;left:3%;width:94%;height:100%;max-height:none;max-width:none;object-fit:contain;transform:none;z-index:3;filter:drop-shadow(0 22px 13px #000b)}
.garage-stage .garage-hero .hero-reflection{display:block;position:absolute;left:3%;top:62%;width:94%;height:100%;object-fit:contain;transform:scaleY(-1);opacity:.19;filter:blur(1px);mask-image:linear-gradient(to top,#0009,transparent 65%);z-index:2;pointer-events:none}
.garage-model-switch{position:absolute;bottom:78px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:12px;width:min(660px,92%);height:76px;z-index:7}
.garage-stage .car-picker{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;flex:1;min-width:0;height:72px;padding:0;overflow:visible;background:none}
.garage-stage .car-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;min-width:0;max-width:none;width:100%;height:68px;min-height:0;max-height:none;padding:3px;border:1px solid #7c6c8240;border-radius:0;transform:skewX(-8deg);background:linear-gradient(0deg,#17151cce,#0b0b1280);box-shadow:none}
.garage-stage .car-tile.active{border:2px solid #ff39bb;box-shadow:0 0 15px #ed28a16b,inset 0 0 10px #ed28a130;background:#45143855}
.garage-stage .car-tile .car-art{position:static;width:100%;height:45px;max-height:none;object-fit:contain;transform:skewX(8deg);margin:0;filter:drop-shadow(0 3px 2px #000)}
.garage-stage .car-tile>span{font-size:9px;line-height:1.2;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d1cbd5;transform:skewX(8deg)}
.garage-arrow{width:44px;height:44px;min-width:32px;padding:8px;background:none;border:0;color:#fff;display:grid;place-items:center}.garage-arrow .icon{width:22px;height:22px}
.garage-actions{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(660px,92%);display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:12px;z-index:7}
.garage-stage .hero-foot{display:contents}.garage-actions .button{min-height:48px;padding:10px 12px;gap:8px;display:flex;align-items:center;justify-content:center;white-space:normal;border-radius:3px;font-size:13px}
.garage-actions .secondary{background:#080811b8;border-color:#b6b6c84a;color:#eef0f8}.garage-actions .garage-primary{background:#f1eaf0;color:#19131d;border-color:#f1eaf0;font-weight:750}
.garage-save-warning{position:absolute;bottom:160px;left:5%;font-size:12px;background:#351624;padding:8px;z-index:8}
.garage-panel[hidden]{display:none!important}.garage-panel-backdrop{position:absolute;inset:0;z-index:30;background:#04040b66;border:0;backdrop-filter:blur(3px)}
.garage-panel.workshop{position:absolute;right:18px;bottom:16px;top:16px;width:min(430px,calc(100% - 36px));height:auto;z-index:31;background:#12141cf7;border:1px solid #7d456d;border-radius:12px;box-shadow:0 15px 80px #000c;display:flex;flex-direction:column;overflow:hidden}
.garage-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:16px;flex:none;gap:10px}.garage-panel-heading .text-button{min-width:44px;min-height:44px;padding:10px}.garage-panel-heading h2{font-size:22px;margin-top:5px}.garage-panel-heading .eyebrow{font-size:11px;color:#dc98c4}
.garage-panel .tab-row{flex:none;min-height:44px}.garage-panel .tab-row button{min-height:44px;font-size:13px}.garage-panel .workshop-body{flex:1;min-height:0;overflow-y:auto;padding:16px;display:block}.garage-panel .part-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;overflow:visible;margin-bottom:14px}.garage-panel .part-tab{min-height:52px;min-width:0;padding:8px}.garage-panel .part-tab span{font-size:11px}.garage-panel .part-title h3{font-size:18px}.garage-panel select{min-height:44px;font-size:16px}.garage-panel .field-label{font-size:12px}.garage-panel .forecast{font-size:12px}.garage-panel .garage-tools{flex:none;padding:10px 16px}.garage-panel .garage-tools .text-button{min-height:44px;font-size:12px}.garage-panel .paint-controls{padding:0 0 18px;background:none;display:block}.garage-panel .paint-controls>span{display:block;margin-bottom:10px;font-size:12px}.garage-panel .swatches{display:flex;gap:8px}.garage-panel .swatch{width:40px;height:40px;min-width:40px;min-height:40px}.garage-panel-note{font-size:14px;color:#bac2cc}
@media(max-width:600px){
 body[data-screen="garage"]{grid-template-rows:88px minmax(0,1fr);padding-bottom:0}
 body[data-screen="garage"] .topbar{height:88px;padding:4px 10px 0;display:grid;grid-template-columns:1fr auto 38px;grid-template-rows:40px 44px;gap:0 10px}
 body[data-screen="garage"] .brand{grid-column:1;grid-row:1;font-size:16px;min-height:36px}.brand-mark{flex-shrink:0}
 body[data-screen="garage"] .wallet{grid-column:2;grid-row:1}body[data-screen="garage"] .mobile-menu{grid-column:3;grid-row:1;width:38px;height:38px;border:0}
 body[data-screen="garage"] #nav{position:static;grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(5,1fr);width:100%;height:44px;padding:0;gap:0;background:transparent;border:0}
 body[data-screen="garage"] .nav-button{min-height:44px;min-width:0;font-size:11px;padding:0 2px;flex-direction:row;gap:0}body[data-screen="garage"] .nav-button .icon{display:none}body[data-screen="garage"] .nav-button.active::after{inset:auto 12px 0;height:2px;background:#fa47bb}
 main.screen-garage{padding:0;gap:0;overflow:hidden;scroll-padding:0}
 .garage-stage .showcase-top{top:4%;left:6%;width:52%;max-width:none}.garage-stage .showcase-top .eyebrow{font-size:9px;letter-spacing:1px;margin-bottom:7px}.garage-stage .showcase-top h2{font-size:27px;line-height:1.05}.garage-stage .showcase-top p{font-size:11px;margin-top:5px}
 .garage-stage .showcase-stats{top:calc(4% + 112px);left:6%;width:48%;max-width:190px}.garage-stage .stats{gap:10px}.garage-stage .stat-line{font-size:11px;margin-bottom:4px}.garage-stage .stat-line b{font-size:13px}.garage-stage .bar{height:4px}.garage-spec{font-size:10px;margin-top:10px}
 .garage-price{top:4%;right:6%;max-width:36%}.garage-price small{font-size:9px}.garage-price strong{font-size:17px}
 .garage-hero{inset:34% 0 16%}.garage-stage .garage-hero .hero-art{left:0;width:100%}.garage-stage .garage-hero .hero-reflection{left:0;width:100%}
 .garage-model-switch{bottom:76px;width:95%;height:58px;gap:3px}.garage-stage .car-picker{height:56px;gap:5px}.garage-stage .car-tile{height:54px;padding:2px;gap:0}.garage-stage .car-tile .car-art{height:35px}.garage-stage .car-tile>span{font-size:8px}.garage-arrow{width:25px;min-width:25px;height:44px;padding:3px}.garage-arrow .icon{width:20px}
 .garage-actions{width:90%;gap:7px;bottom:max(15px,env(safe-area-inset-bottom));grid-template-columns:1.3fr 1fr 1.1fr}.garage-actions .button{min-height:46px;padding:7px 5px;font-size:11px;line-height:1.2;gap:5px}.garage-actions .button .icon{width:16px;height:16px}.garage-primary .icon{display:none}
 .garage-panel.workshop{left:8px;right:8px;top:13%;bottom:8px;width:auto;max-height:none}.garage-panel .workshop-body{padding:14px}.garage-panel .swatch{width:44px;height:44px;min-width:44px;min-height:44px}.garage-panel .swatches{gap:6px}.garage-panel .cosmetic-row{gap:8px}.garage-panel .style-intro{margin-top:5px}
}
@media(max-width:600px) and (max-height:680px){
 .garage-stage .showcase-top h2{font-size:23px}.garage-stage .showcase-stats{top:calc(4% + 96px);width:46%}.garage-stage .stats{gap:5px}.garage-spec{display:none}.garage-price strong{font-size:15px}.garage-model-switch{bottom:66px}.garage-actions{bottom:9px}.garage-hero{inset:37% 0 19%}
}
@media(min-width:601px) and (max-height:520px){.garage-stage .showcase-top{top:5%;left:3%}.garage-stage .showcase-top h2{font-size:26px}.garage-stage .showcase-stats{top:105px;left:3%;width:170px}.garage-stage .garage-hero{inset:5% 8% 24% 26%}.garage-model-switch{left:65%;width:55%;bottom:66px;height:52px}.garage-stage .car-picker{height:50px}.garage-stage .car-tile{height:48px}.garage-stage .car-tile .car-art{height:30px}.garage-actions{left:65%;width:55%;bottom:8px}.garage-spec{display:none}}

.garage-stage .stat-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.garage-panel .part-picker{display:flex;overflow-x:auto;gap:8px;padding-bottom:8px;margin-bottom:8px;scroll-snap-type:x proximity}
.garage-panel .part-tab{flex:0 0 76px;min-height:60px;scroll-snap-align:start}
.garage-panel .part{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:6px}
.garage-panel .part-title,.garage-panel .installed,.garage-panel .delta,.garage-panel .forecast,.garage-panel .part>.button,.garage-panel .part-remove{grid-column:1/-1}
.garage-panel .installed{display:block;margin:0;font-size:12px}.garage-panel .field-label{min-width:0;margin:0}.garage-panel .field-label select{width:100%;font-size:14px;padding:8px 5px}
.garage-panel .delta{margin:3px 0;padding-top:10px}.garage-panel .forecast{margin:0}.garage-panel .part>.button{min-height:44px;font-size:14px;margin-top:0}
.garage-panel-heading .panel-car-preview{width:90px;height:56px;object-fit:contain;flex-shrink:0}.garage-panel-heading>div{flex:1;min-width:0}
@media(max-width:600px){.garage-panel-heading .panel-car-preview{width:76px;height:50px}.garage-panel-heading:has(.panel-car-preview){gap:8px;padding:12px}.garage-panel-heading:has(.panel-car-preview) h2{font-size:19px}}
@media(max-width:600px){body[data-screen="garage"] .topbar{padding-top:0;grid-template-columns:1fr auto 44px;grid-template-rows:44px 44px}body[data-screen="garage"] .mobile-menu{width:44px;height:44px}}
.garage-panel .tab-row button{min-width:44px}
@media(min-width:601px) and (min-height:521px){.garage-hero{inset:24% 0 24%}}
.garage-panel .swatches{flex-wrap:wrap}.garage-panel .field-label select{font-size:16px}

/* Approved portrait card faces. Live values replace the printed effect in races. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
.neon-face.card-illustration{position:relative;display:block;width:100%;height:auto!important;aspect-ratio:63/88;margin:0!important;padding:0;container-type:inline-size}
.neon-face>img{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none;-webkit-user-drag:none}
.neon-face .live-values{position:absolute;left:11%;right:11%;top:61%;bottom:10%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#080909;color:#eafcff;line-height:1;box-shadow:0 0 5px 3px #080909}
.neon-face .card-effect{font-size:25cqw!important;line-height:1;color:#00f1ef;font-style:italic;font-weight:900;letter-spacing:-.06em}
.neon-face .card-effect small{font-size:.58em!important}
.neon-face .time-label{font-size:8cqw;font-weight:900;font-style:italic;margin-top:2%;color:#fff}
.neon-face .live-heat{font-size:6.9cqw;white-space:nowrap;margin-top:8%;letter-spacing:-.03em;color:#fff}
.utility-face{--neon:#00f1ef;border:1px solid var(--neon);border-radius:8px;color:#eafcff;background:radial-gradient(ellipse at 50% 43%,#00e7ff22,transparent 46%),linear-gradient(145deg,#080b14,#060709 65%,#2d082c);box-shadow:inset 0 0 12px #00e7ff33,0 0 7px #ec16ad44;overflow:hidden}
.utility-face[data-card="regroup"]{--neon:#fa36d5;background:radial-gradient(ellipse at 50% 43%,#fa36d533,transparent 46%),linear-gradient(145deg,#080b14,#060709 65%,#04282d)}
.utility-face::before{content:'';position:absolute;inset:4%;border:1px solid var(--neon);border-radius:5px;opacity:.5;pointer-events:none}
.utility-brand,.utility-name,.utility-caption{position:absolute;left:8%;right:8%;text-align:center;font-weight:900;font-style:italic;line-height:1.05}
.utility-brand{top:6%;font-size:7cqw;letter-spacing:.12em;color:var(--neon)}
.utility-name{top:16%;font-size:10cqw;overflow-wrap:anywhere;text-transform:uppercase;text-shadow:0 0 8px #00e7ff66}
.utility-symbol{position:absolute;top:31%;left:22%;right:22%;height:28%;color:var(--neon);filter:drop-shadow(0 0 6px var(--neon))}
.utility-symbol .icon{width:100%!important;height:100%!important}
.utility-caption{bottom:6%;font-size:6cqw;letter-spacing:.02em;color:#eafcff}
.utility-face .live-values{bottom:14%;background:transparent;box-shadow:none}
.hand,.screen-race .hand{display:flex;justify-content:center;gap:8px;padding:5px 2px;overflow:visible}
.action-card,.screen-race .action-card,.screen-mulligan .action-card{position:relative;flex:0 1 125px;width:125px;max-width:125px;min-width:0;height:auto;aspect-ratio:63/88;display:block;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;box-shadow:none;color:#fff;overflow:visible}
.action-card>.neon-face,.screen-race .regroup-hand .action-card>.neon-face{display:block!important;width:100%;height:100%!important;opacity:1}
.action-card .card-top,.action-card .card-bottom,.action-card>h3,.action-card>p{position:absolute;width:1px;height:1px;padding:0!important;margin:0!important;overflow:hidden;clip-path:inset(50%)}
.action-card.selected{outline:2px solid #00efef;outline-offset:2px;transform:translateY(-3px);filter:drop-shadow(0 0 8px #00f1ef55)}
.action-card:focus-visible{outline:3px solid #fff;outline-offset:3px}
.action-card.unavailable{opacity:.48;filter:saturate(.55)}
.action-card>.reason{display:none}
.action-card .replacement-label,.screen-mulligan .action-card .replacement-label{left:4%;right:4%;bottom:3%;padding:3px 1px;border-radius:3px;background:#090d12;color:#fff;font-size:10px;letter-spacing:0}
.action-card.marked .replacement-label{background:#ec16ad;color:#fff}
.action-card.marked{outline:2px solid #ff18b5;outline-offset:1px}
.forecast-name{display:block;color:#edfbff;font-size:13px;line-height:1.25}
.deck-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;overflow:auto}
.deck-item{display:flex;flex-direction:column;background:#0c1017;color:#fff;border:1px solid #24343c;border-radius:10px;min-height:0}
.deck-card-info{padding:8px;min-height:0}.deck-card-info>.kind{display:none}.deck-card-info h3{font-size:14px;margin:8px 0 5px;color:#fff}.deck-card-info p,.deck-card-info .condition{font-size:12px;line-height:1.3;color:#c4d2de}.deck-item .counter{margin-top:auto;display:flex;justify-content:center;padding:6px;gap:8px}.deck-item .counter button{width:44px;height:44px;flex-shrink:0}.deck-item .counter small{display:inline}
.reveal-card:has(.neon-face){background:transparent;border:0;padding:0;max-width:120px;color:#e8faff;box-shadow:none}.reveal-card .neon-face{max-height:160px;max-width:115px;margin:auto!important}.reveal-card:has(.neon-face)>h3{display:none}.reveal-card strong{margin-top:4px}.reveal-card.you{justify-self:center}.reveal-card.bot{justify-self:center}
.flight-face:has(.neon-face){padding:0;background:#080909}.flight-face:has(.neon-face)>.kind,.flight-face:has(.neon-face)>h3,.flight-face:has(.neon-face)>p{display:none}.flight-face>.neon-face{height:100%!important}.flying-card:has(.neon-face){background:transparent;border:0;box-shadow:0 0 22px #fc17b44d}
.action-card.drag-ghost{padding:0!important;background:transparent!important;aspect-ratio:auto;box-shadow:0 0 18px #00f1ef55}
@media(max-width:900px){.deck-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){
 .screen-race .hand{gap:5px;padding:4px 2px;flex:none;min-height:0}
 .screen-race .action-card{flex:0 1 calc((100% - 20px)/5);width:calc((100% - 20px)/5);min-width:0;max-width:88px;height:auto!important;aspect-ratio:63/88}
 .screen-race .forecast-detail>small{font-size:12px}.screen-race .forecast-name{font-size:12px}
 .screen-race .forecast-box{min-height:76px}.screen-race .forecast-box .time{font-size:18px}
 .screen-race .regroup-hand .action-card{padding:0}.screen-race .replacement-label{font-size:8px;padding:3px 0}
 .screen-mulligan .hand{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;align-items:center;justify-items:center;align-content:center;min-height:0;max-height:390px}
 .screen-mulligan .action-card{grid-column:span 2;width:auto;max-width:100%;height:100%;max-height:180px;min-height:0;aspect-ratio:63/88;flex:none}
 .screen-mulligan .action-card:nth-child(4){grid-column:2/span 2}.screen-mulligan .action-card:last-child{grid-column:4/span 2}
 .screen-mulligan .action-card>h3,.screen-mulligan .action-card>p{display:block;font-size:13px}.screen-mulligan .neon-face{position:relative;inset:auto}
 .screen-mulligan .mulligan-hand-section{justify-content:center}
 .deck-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.deck-item{display:flex;min-height:0}.deck-card-info{padding:8px}.deck-item h3{font-size:14px}.deck-item p,.deck-item .condition{font-size:12px}.deck-toolbar{flex-direction:column;align-items:stretch}
 .screen-race .reveal-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:4px 8px;gap:5px}
 .screen-race .reveal-card .neon-face{height:94px!important;max-width:68px;aspect-ratio:63/88}
 .screen-race .reveal-card{width:100%;max-width:110px;padding:0;transform:none}.screen-race .reveal-card .eyebrow{font-size:9px}.screen-race .reveal-card strong{font-size:15px}
 .screen-race .reveal-center h2{font-size:17px}.screen-race .reveal-center p{font-size:12px;margin-bottom:5px}
}
@media(max-width:600px) and (max-height:600px){.screen-mulligan .hand{gap:4px}.screen-mulligan .action-card .replacement-label{font-size:8px}.screen-race .forecast-box{min-height:71px}.screen-race .reveal-card .neon-face{height:78px!important;max-width:56px}}

/* Account and invitation screens use the same compact garage shell. */
.screen-online{overflow-y:auto!important;display:block!important;padding:24px 16px!important}.online-panel{width:min(100%,520px);margin:0 auto;padding:20px;border:1px solid #34424b;border-radius:14px;background:linear-gradient(135deg,#171c24,#101117);box-shadow:0 0 50px #f0009010}.online-panel h1{font-size:clamp(26px,5vw,38px);margin:12px 0}.online-panel p{font-size:14px;line-height:1.5;color:#c3cbd5;margin:10px 0}.online-panel form,.online-room{display:grid;gap:12px;margin:20px 0}.online-panel label{display:grid;gap:7px;font-size:14px;color:#e7eff7}.online-panel input,.online-panel select{width:100%;min-height:46px;background:#0d1118;color:#fff;border:1px solid #52616c;border-radius:6px;padding:10px;font-size:16px}.online-panel small{font-size:12px;line-height:1.4;color:#a9bac8}.online-panel .button{min-height:46px}.online-links{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.online-links button{min-height:44px;padding:8px;color:#8ef5f2;text-decoration:underline}.online-message:not(:empty){padding:10px;border:1px solid #7e548a;border-radius:6px;color:#fff}.online-car,.room-pilots{padding:12px;border:1px solid #38464f;border-radius:8px;display:grid;gap:10px}.online-car small,.room-pilots span,.room-pilots small{display:block;margin-top:5px}.room-pilots{grid-template-columns:1fr 1fr}.room-pilots b{overflow-wrap:anywhere}.online-busy .online-panel button,.online-busy [data-act="confirm"]{pointer-events:none;opacity:.65}.connection-note{display:none;color:#ffb077;font-size:13px;padding:10px}.online-disconnected .connection-note{display:block}.online-disconnected .screen-race::before{content:'Связь потеряна. Возвращаемся в заезд…';font-size:12px;color:#ffb077}.screen-online .notice{margin:12px 0;font-size:14px}
@media(max-width:600px){.screen-online{padding:12px!important}.online-panel{padding:16px}.online-panel h1{font-size:27px}}
.deck-grid{grid-template-rows:none;grid-auto-rows:max-content;align-content:start}.deck-card-info{flex:none}.deck-item .counter{flex:none}.neon-face{pointer-events:none}
.friends-panel{max-width:620px}.friends-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.friends-heading h1{font-size:28px;margin:8px 0}.friends-heading>.button{flex-shrink:0}.friends-panel h2{font-size:17px;margin:18px 0 10px}.friends-panel h2 span{color:#8ef5f2;font-size:13px}.friend-race-setup{display:grid;gap:5px;padding:14px;margin:18px 0;border:1px solid #34424b;border-radius:10px;background:#101822}.friend-race-setup label{display:grid;gap:6px;margin-top:8px;font-size:13px}.friend-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #2b343d}.friend-identity{min-width:0;flex:1}.friend-identity b{display:block;overflow-wrap:anywhere;font-size:15px}.friend-identity small{display:block}.friends-panel .button.small{padding:8px 12px;min-height:44px;font-size:13px}.friend-actions{display:flex;gap:8px;flex-wrap:wrap}.friend-invite{display:grid;gap:10px;padding:12px;border:1px solid #795878;border-radius:10px;background:linear-gradient(120deg,#27172b,#10272d);margin:10px 0}.friend-invite p{margin:5px 0}.friend-search{margin-top:18px;border:1px solid #34424b;border-radius:8px;padding:0 12px}.friend-search>summary{padding:14px 0;cursor:pointer;font-weight:700;color:#8ef5f2}.friend-search form{margin:0 0 12px}.friend-options{position:relative;flex-shrink:0}.friend-options>summary{list-style:none;cursor:pointer;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #34424b;border-radius:6px}.friend-options[open]>.button{position:absolute;right:0;top:46px;z-index:5;background:#211820}.friend-notice{position:fixed;z-index:50;right:12px;top:66px;max-width:calc(100vw - 24px);min-height:44px;font-size:13px;box-shadow:0 4px 20px #0008}.friend-notice[hidden],body[data-screen="online"] .friend-notice,body[data-phase="choose"] .friend-notice,body[data-phase="mulligan"] .friend-notice,body[data-phase="reveal"] .friend-notice{display:none}.online-busy [data-online="rematch"],.online-busy [data-online="challenge"],.online-busy [data-online="invite"],.online-busy [data-online="friend"]{pointer-events:none;opacity:.65}
@media(max-width:400px){.friends-panel{padding:12px}.friends-heading h1{font-size:24px}.friend-row{flex-wrap:wrap}.friend-identity{min-width:95px}.friend-actions{width:100%}.friend-invite .button{flex:1}.friends-heading>.button{padding:8px}.screen-result .result-actions{flex-wrap:wrap}}
.friend-row [aria-pressed="true"]{outline:2px solid #8ef5f2;background:#17383b;color:#fff}.room-pilots{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.ticket-bottom>.button+.button{margin-top:8px}.race-standings{position:absolute;top:15px;right:15px;width:150px;z-index:2;font-size:11px;line-height:1.5}.race-standings>div{display:flex;align-items:center;gap:5px}.race-standings i{width:7px;height:7px;border-radius:50%;flex-shrink:0}.race-standings span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.race-standings b{font-family:var(--mono)}.reveal-summary.three-player{grid-template-columns:repeat(3,minmax(0,1fr))}.reveal-summary.three-player .reveal-center{grid-column:1/-1;grid-row:2}.reveal-summary.three-player .reveal-card{grid-row:1}.reveal-card .eyebrow{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.retired-card{display:grid;place-items:center;aspect-ratio:63/88;border:1px solid #51636b;border-radius:6px;color:#8d9ba5;font-size:11px;max-height:94px}.result-times.three-player{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.result-times.three-player>div{min-width:0}.result-times.three-player strong{font-size:clamp(20px,4vw,40px)}.result-times.three-player span{overflow-wrap:anywhere}.triple-protocol table{table-layout:fixed;width:100%;min-width:0}.triple-protocol th,.triple-protocol td{white-space:normal!important;overflow-wrap:anywhere;padding:9px 6px!important}.triple-protocol td span,.triple-protocol td strong{display:block}.triple-protocol td span{font-size:11px}.triple-protocol td strong{font-size:14px;margin-top:4px}.result-actions{flex-wrap:wrap}
@media(max-width:700px){.compact-protocol.triple-protocol tbody tr{grid-template-columns:repeat(3,minmax(0,1fr))}.triple-protocol td::before{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.triple-protocol td+td{border-right:1px solid var(--line)}.triple-protocol td:last-child{border-right:0}}
@media(max-width:600px){.screen-race .reveal-summary.three-player{grid-template-columns:repeat(3,minmax(0,1fr))}.screen-race .reveal-summary.three-player .reveal-center{grid-column:1/-1}.race-standings{top:10px;right:10px;width:120px;font-size:10px}.triple-protocol th{font-size:10px}.screen-result .result-times.three-player strong{font-size:21px}.screen-result .result-times.three-player span{font-size:11px}.reveal-summary.three-player .reveal-card{max-width:85px}}

/* Expanded dealership: keep the garage's five-item mobile strip. */
.showroom-price{display:block;font-size:clamp(18px,2.5vw,28px);color:var(--accent);margin-bottom:4px}
.showroom-action .text-button{font-size:12px;padding:7px 0;min-height:32px}
.catalog-shop-note{flex-wrap:wrap}
.car-art.catalog-photo{object-fit:contain;border-radius:12px}
.garage-stage .garage-hero .hero-reflection.catalog-photo{display:none}
.hero-art.catalog-photo{filter:drop-shadow(0 12px 22px #0009);max-height:95%;width:95%}
.skin-picker{padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line)}
.skin-picker>div{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.skin-picker [aria-pressed=true]{border-color:#ff62c5;background:#ff62c522;color:var(--ink)}
.skin-picker small{color:var(--muted)}
@media(max-width:600px){
 .showroom-action{min-width:0}.showroom-price{font-size:18px}
 .showroom-action p{display:block;font-size:12px;line-height:1.3;margin:3px 0 7px}
 .showroom-action .button{min-height:44px;font-size:12px;padding:10px}
 .showcase-top h2{overflow-wrap:anywhere}
 .garage-stage:has(.hero-art.catalog-photo) .showcase-top h2{font-size:clamp(17px,5vw,23px);line-height:1.05;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
/* Photographs have opaque backgrounds: reserve space below the stats on phones. */
.garage-stage:has(.hero-art.catalog-photo) .garage-hero{inset:20% 4% 24% 42%}
@media(max-width:600px){
 .garage-stage:has(.hero-art.catalog-photo) .showcase-stats{top:22%}
 .garage-stage:has(.hero-art.catalog-photo) .garage-hero{inset:53% 3% 23%}
}

/* Build parity is explicit; tactical preparations are public, not hidden boosts. */
.build-comparison{display:grid;gap:14px;max-width:860px}
.screen-deck{overflow-y:auto;display:block}
.screen-deck>*,.screen-deck section>*{margin-bottom:14px}
.deck-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:var(--panel);border:1px solid var(--line);border-radius:8px}
.deck-overview span{display:block;color:var(--muted);font-size:13px;margin-top:4px}
.deck-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.deck-tabs button{min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:var(--ink);padding:8px;font-size:13px}
.deck-tabs [aria-pressed=true]{border-color:#ef61c1;background:#65234e44;color:#fface4}
.deck-mine h2,.deck-library-heading h2,.deck-presets h2{font-size:19px}
.deck-mine p,.deck-library-heading p,.deck-presets>p,.deck-rules{font-size:13px;color:var(--muted);line-height:1.5}
.deck-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:14px 0}
.deck-slot{position:relative;display:flex;flex-direction:column;gap:5px;align-items:center;background:#12141d;border:1px solid #6b345d;border-radius:8px;padding:10px;color:#fff;min-width:0}
.deck-slot .neon-face{max-width:90px;flex:none}
.deck-slot b{font-size:12px;line-height:1.3}.deck-slot small{font-size:11px;color:#f699d6}
.deck-slot-number{position:absolute;left:5px;top:5px;font-size:10px;color:#b9c4d8}
.deck-slot:disabled{opacity:1;cursor:default}.deck-slot.mandatory{border-color:#9c834b}.deck-slot.mandatory small{color:#e5c98f}
.empty-deck-slot{min-height:110px;display:grid;place-items:center;color:var(--muted)}
.screen-deck .deck-grid{overflow:visible;grid-template-columns:repeat(4,minmax(0,1fr))}
.deck-library-action{display:grid;gap:6px;padding:8px;margin-top:auto}.deck-library-action small{font-size:12px;color:var(--muted)}
.deck-library-action .button{white-space:normal;min-height:44px;font-size:12px;padding:8px}
.deck-manual{padding:0 8px 8px;font-size:11px;color:var(--muted)}.deck-manual summary{padding:8px 0;cursor:pointer}
.preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.preset-grid article{padding:16px;background:linear-gradient(145deg,#242236,#121722);border:1px solid #644262;border-radius:10px;display:flex;flex-direction:column;gap:12px}
.preset-grid h3{font-size:20px}.preset-grid p{font-size:13px;line-height:1.5;color:#c5cbd7}
.preset-grid .button{margin-top:auto;min-height:44px}
.preset-cards{display:flex;flex-wrap:wrap;gap:5px}.preset-cards span{border:1px solid #44475a;border-radius:4px;padding:4px 6px;font-size:11px}
@media(max-width:600px){
 .screen-deck .deck-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .screen-deck .deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .deck-slot{padding:7px 5px}.deck-slot .neon-face{max-width:72px}
 .deck-tabs button{font-size:12px;padding:6px 3px}.deck-overview{padding:10px}
 .deck-count{font-size:26px}.deck-count small{font-size:11px}
 .preset-grid{grid-template-columns:1fr}
}
.race-insight{display:grid;gap:14px;max-width:680px}
.race-insight h2:focus{outline:none}
.race-insight p{font-size:14px;line-height:1.5}
.race-insight article{border:1px solid var(--line);border-radius:8px;padding:12px}
.race-insight h3{font-size:16px}
.insight-muted,.race-insight>small{color:var(--muted);font-size:12px;line-height:1.5}
.time-breakdown{display:grid;gap:8px;margin:10px 0;font-size:14px}
.time-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.time-breakdown dd{font-variant-numeric:tabular-nums;white-space:nowrap;margin:0}
.breakdown-total{border-top:1px solid var(--line);padding-top:8px;font-weight:700}
.forecast-actions{display:grid;gap:4px;flex:0 0 auto;max-width:44%}
.forecast-box .forecast-actions .button{max-width:none;min-height:44px;width:100%;font-size:12px}
.forecast-box .forecast-risk{color:#c3ebde}.forecast-box .forecast-risk.danger{color:var(--red)}
.forecast-box .forecast-cost{color:#f4c58f}
.reveal-actions{display:flex;justify-content:center;gap:8px}
.reveal-center .reveal-actions .button{min-width:0;width:auto;min-height:44px;white-space:normal}
.reveal-actions #continue{flex:1}
.protocol-explain{background:none;border:0;color:inherit;font:inherit;text-align:left;min-height:44px;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.build-comparison .button{white-space:normal;overflow-wrap:anywhere}
.build-comparison h2:focus{outline:none}
.comparison-summary{display:grid;gap:5px;padding:12px;border:1px solid var(--line);border-radius:8px}
.comparison-car{height:150px;display:grid;place-items:center;margin:-5px -5px 10px;background:radial-gradient(ellipse at 25% 80%,#f724a52b,transparent 65%),radial-gradient(ellipse at 80% 10%,#32c4e72a,transparent 65%),#10131d;border-radius:8px;overflow:hidden}
.comparison-car .car-art{width:100%;height:100%;object-fit:contain}
.prestart-match{display:block;width:100%;flex:none;border:1px solid #75436b;border-radius:9px;padding:8px 12px;background:radial-gradient(ellipse at 10% 40%,#a5277544,transparent 60%),radial-gradient(ellipse at 90% 40%,#145e7d55,transparent 60%),#10131c;color:var(--ink);text-align:left;cursor:pointer}
.prestart-pilots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.prestart-pilots.triple{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.prestart-pilot{display:grid;grid-template-columns:105px 1fr;gap:4px 10px;align-items:center;min-width:0}
.prestart-car{grid-column:1;grid-row:1/4;width:105px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 7px #000)}
.prestart-pilot-name{font-size:11px;color:#eba7d8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prestart-pilot>b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prestart-stats{display:flex;gap:10px;font-size:10px;color:#aeb8c8}.prestart-stats strong{color:#fff}
.prestart-match-gap{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #7d56864d;margin-top:7px;padding-top:7px;font-size:11px;color:#edc79f}
.prestart-match-gap>span{color:#a6dbe8}
@media(max-width:600px){
 .prestart-match{padding:6px 8px}.prestart-pilots{gap:8px}
 .prestart-pilot{display:flex;flex-direction:column;gap:2px;align-items:stretch;text-align:center}
 .prestart-car{width:100%;height:46px}.prestart-pilot>b{font-size:11px}
 .prestart-stats{justify-content:center;gap:5px;font-size:9px}.prestart-pilot-name{font-size:10px}
 .prestart-match-gap{font-size:10px;padding-top:5px;margin-top:5px}
 .prestart-match-gap>span{max-width:100px;text-align:right}
 .prestart-pilots.triple .prestart-car{height:40px}
}
@media(max-width:600px) and (max-height:680px){
 .screen-mulligan .prestart-note{display:none}
 .screen-mulligan .mulligan-intro h1{font-size:21px}
 .screen-mulligan .mulligan-intro>p{font-size:13px}
 .prestart-car{height:36px}.prestart-pilots.triple .prestart-car{height:32px}
}
.comparison-summary.close{border-color:#85c9ad;color:#b7edcc}
.comparison-summary.noticeable{border-color:#d7b16f;color:#f3cd94}
.comparison-summary.large{border-color:#fa795e;color:#ffb6a6}
.comparison-note,.comparison-drivers small,.upgrade-plans small{color:var(--muted);font-size:12px;line-height:1.5}
.comparison-drivers{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.comparison-drivers article{background:#20232b;border:1px solid var(--line);padding:12px;border-radius:8px;min-width:0}
.comparison-drivers h3{font-size:15px;overflow-wrap:anywhere}
.comparison-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
.comparison-stat{display:grid;grid-template-columns:1fr auto;gap:4px;margin-top:9px;font-size:12px}
.comparison-meter{grid-column:1/-1;height:5px;background:#454952;border-radius:4px;overflow:hidden}
.comparison-meter i{height:100%;display:block}
.driver-0{background:#eda66f}.driver-1{background:#7cc6ed}.driver-2{background:#d6a3ef}
.comparison-route,.upgrade-plans article{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:8px}
.upgrade-plans{display:grid;gap:10px}.upgrade-plans b{font-size:14px}.upgrade-plans span{font-size:13px}
.friend-comparison{display:grid;gap:3px;flex:1 1 180px;min-width:0;font-size:12px}
.friend-comparison .text-button{text-align:left;padding:5px 0;min-height:36px}
.comparison-banner{display:flex;justify-content:space-between;gap:8px;border:1px solid #d7b16f66;border-radius:6px;background:#d7b16f12;color:#f3cd94;padding:8px 12px;font-size:12px;min-height:40px;width:100%;text-align:left}
.comparison-banner span{color:var(--ink)}
.compare-saved{color:#f3cd94;font-size:12px;padding:4px 0;text-align:left}
.tactics-status{position:absolute;z-index:5;bottom:65px;left:16px;right:16px;display:flex;flex-wrap:wrap;gap:5px;pointer-events:none}
.tactics-status span{font-size:11px;background:#141722eb;border:1px solid #7cc6ed77;border-radius:4px;padding:4px 7px;color:#d1f2ff}
.tactic-next{color:#b6e9f6}
@media(max-width:600px){
 .build-comparison{gap:10px}.comparison-drivers{grid-template-columns:1fr}
 .comparison-drivers article{padding:9px 12px}.comparison-stat{margin-top:6px}
 .comparison-banner{font-size:11px;padding:6px 8px;min-height:36px}
 .comparison-banner span{max-width:118px;text-align:right}
 .friend-row{flex-wrap:wrap}.friend-comparison{order:3;flex-basis:100%}
 .deck-toolbar .flex{flex-wrap:wrap}
}
@media(min-width:601px) and (max-height:700px){
 .screen-mulligan{gap:8px;justify-content:flex-start}
 .screen-mulligan .action-card{flex-basis:100px;width:100px;max-width:100px}
 .screen-mulligan .prestart-steps{display:none}
 .screen-mulligan .mulligan-intro h1{font-size:26px;margin:4px 0 6px}
 .screen-mulligan .prestart-note{margin-top:8px;padding:6px 10px}
 .screen-mulligan .mulligan-controls{min-height:44px;padding-top:8px}
 .screen-mulligan .mulligan-intro>.eyebrow,.screen-mulligan .mulligan-hint{display:none}
 .screen-mulligan .prestart-car{height:44px}
 .screen-mulligan .prestart-match{padding:5px 10px}
 .screen-mulligan .prestart-note{margin-top:4px;padding:4px 8px;font-size:11px}
 .screen-mulligan .mulligan-controls p{display:none}
}

.catalog-more{flex-direction:column;gap:10px}
.catalog-more:empty{display:none}

.catalog-thumb .car-art{object-fit:contain;padding:6px;background:radial-gradient(ellipse at 20% 70%,#b9187944,transparent 70%),radial-gradient(ellipse at 90% 20%,#008caf33,transparent 65%),#10121a}
.garage-stage.long-name .showcase-top h2{font-size:clamp(24px,2.5vw,36px)}
@media(max-width:600px){.garage-stage.long-name .showcase-top h2{font-size:clamp(16px,4.6vw,20px)}}
@media(max-width:600px) and (max-height:680px){.garage-stage.extra-car-art .garage-hero{inset:46% 3% 22%}}
.part-kit{grid-column:1/-1;margin:4px 0;padding:10px 12px;background:#25202b;border-left:2px solid #e977ba}
.part-kit h4{margin:0 0 5px;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.part-kit p{font-size:12px;line-height:1.45;color:#c8c2cd}
.garage-panel .part .installed{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
/* WebKit 26 otherwise lets long native option text overflow its label. */
.garage-panel .part select{width:100%;max-width:100%;text-overflow:ellipsis;overflow:hidden}
.garage-panel .part .field-label{overflow:hidden}
.garage-panel .part select:focus-visible{outline-offset:-3px}
