/* Shared racing showroom: pre-rendered cars, official logos and source-derived maps. */
.selection-screen { --font-display: 'Chakra Petch', 'Noto Sans SC', sans-serif; background:#06080c; }
.selection-screen .app-shell { background:#06080c; }
.selection-screen .app-shell::before { display:none; }
.selection-screen .topbar { height:68px; flex:none; padding:0 4.5vw; background:#090b10; border-color:#ffffff12; }
.selection-screen .topbar .brand-name { font-size:17px; }
.selection-screen .page { max-width:none; padding:0; gap:0; }
.selection-screen .pane { padding:0; }
.selection-screen .stage { position:relative; flex:1; min-height:0; overflow:hidden; isolation:isolate; background:var(--team01); }
.selection-screen .stage::before { content:''; position:absolute; inset:0; z-index:-2; background:url('../images/showroom-satin.webp') center center / cover no-repeat; mix-blend-mode:multiply; }
.selection-screen .stage::after { content:''; position:absolute; inset:0; z-index:-1; background:#02050a; opacity:.25; pointer-events:none; }
.selection-screen .stage .rays, .selection-screen .stage .floor { display:none; }
.selection-screen .stage .big-name { position:absolute; top:25%; left:50%; transform:translateX(-50%); width:max-content; max-width:96%; font-family:Arial,sans-serif; font-size:clamp(58px,9.1vw,180px); font-style:normal; font-weight:800; line-height:1; letter-spacing:.015em; white-space:nowrap; color:transparent; -webkit-text-stroke:1.5px #f4f4f4a0; pointer-events:none; user-select:none; }
.selection-screen .stage .big-name-reflect { display:none; }
.selection-screen .stage-head { position:absolute; z-index:5; top:5%; left:5.2%; }
.selection-screen .tag { display:inline-block; align-self:start; padding:4px 12px; border-radius:2px; clip-path:none; background:#fa514e; color:#fff; font-size:13px; font-weight:500; letter-spacing:.08em; }
.selection-screen .stage-head h2 { margin-top:10px; font-size:clamp(25px,3.1vw,52px); font-weight:400; font-style:normal; line-height:1.15; letter-spacing:.015em; }
.selection-screen .car-code { font-size:12px; color:#ffffffb0; margin-top:9px; letter-spacing:.13em; }
.selection-screen .mini-perf { margin-top:12px; border-left:2px solid #ffffff80; padding-left:10px; font-size:11px; color:#ffffffc0; line-height:1.7; }
.selection-screen .mini-perf b { font-weight:500; color:white; }
.selection-screen .equal-note { position:absolute; top:6%; right:5%; z-index:6; width:240px; padding:10px 16px; border-radius:3px; background:#0b101c80; box-shadow:none; border-bottom:1px solid #ffffff40; clip-path:none; backdrop-filter:blur(12px); color:#d5d9e2; font-size:11px; }
.selection-screen .equal-note .row1 { margin-bottom:3px; font-size:13px; font-weight:500; color:white; }
.selection-screen .car-viewport { position:absolute; inset:25% 4% 0; z-index:3; pointer-events:none; overflow:hidden; }
.selection-screen .car-viewport img { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:block; height:auto; }
.selection-screen .car-status { position:absolute; z-index:5; top:57%; left:50%; transform:translateX(-50%); color:#fff; font-size:13px; padding:8px 14px; border-radius:4px; background:#0b101bd0; text-align:center; }
.selection-screen .car-status[hidden] { display:none; }
.selection-screen .car-status button { text-decoration:underline; padding:4px 8px; }
.selection-screen .team-dock { position:absolute; z-index:6; display:flex; justify-content:center; gap:12px; left:50%; bottom:10%; transform:translateX(-50%); padding:8px; width:max-content; max-width:94%; overflow-x:auto; }
.selection-screen .dock-btn { position:relative; flex:none; width:clamp(76px,7.4vw,130px); height:clamp(68px,7vw,112px); gap:6px; background:#191b22d9; border:1px solid #ffffff20; border-radius:11px; clip-path:none; box-shadow:0 3px 14px #0004; transition:background .18s,border-color .18s,transform .18s; }
.selection-screen .dock-btn:hover { background:#3b3e48df; transform:translateY(-3px); }
.selection-screen .dock-btn.is-active { background:#53545bd4; border:2px solid #fff; box-shadow:0 0 0 2px #ffffff15,0 8px 24px #0004; }
.selection-screen .team-logo { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:66%; height:46px; object-fit:contain; object-position:center; }
.selection-screen .dock-btn .abbr { position:absolute; bottom:9%; left:0; width:100%; text-align:center; line-height:1; font-size:9px; font-weight:500; letter-spacing:.12em; color:#d1d3d9; }
.selection-screen .pos-note { position:absolute; left:5.2%; bottom:3%; z-index:6; color:#e1e4eb; font-size:11px; max-width:44%; background:none; padding:0; }
.selection-screen .key-hint { position:absolute; z-index:6; right:5.2%; bottom:3%; display:flex; gap:16px; color:#e1e4eb; font-size:11px; background:none; padding:0; clip-path:none; }
.selection-screen .key-hint .k { display:inline-block; min-width:21px; padding:0 4px; text-align:center; border:1px solid #ffffff70; border-radius:3px; margin-right:3px; color:#fff; }
.selection-screen .pager-nav { position:absolute; z-index:8; right:5%; top:12px; padding:0; gap:8px; display:none; }
.selection-screen:has(#driverPane.is-active) .pager-nav { display:flex; }
.selection-screen #driverPane { padding:30px 5vw; }
.selection-screen .actionbar { min-height:72px; padding:12px 4.5vw; border-top:1px solid #ffffff15; background:#090b10; }
.selection-screen .actionbar .hint { font-size:11px; }
.selection-screen .actionbar .btn { font-size:12px; }
.selection-screen .actionbar .btn-primary { background:#eee; color:#11151e; clip-path:none; border-radius:3px; box-shadow:none; }
.selection-screen .actionbar .btn-ghost { clip-path:none; border-radius:3px; }
/* Track selection shares the selected livery, viewed close from the opposite side. */
.track-selection .stage .big-name { left:74%; top:22%; font-size:clamp(75px,10vw,180px); }
.track-selection .car-viewport { inset:24% -25% -7% 36%; }
.track-selection .info-col { position:absolute; z-index:6; top:5%; left:5.2%; bottom:29%; width:29%; max-width:470px; display:flex; flex-direction:column; gap:9px; }
.track-selection .info-col h2 { font-size:clamp(23px,2.5vw,40px); font-style:normal; font-weight:400; line-height:1.2; margin-top:2px; }
.track-selection .info-col .sub { font-size:10px; color:#e0e2e8; letter-spacing:.12em; }
.track-selection .track-card { flex:1; min-height:0; display:flex; flex-direction:column; gap:10px; padding:18px; border:1px solid #ffffff35; border-radius:1px; clip-path:none; background:#292b32f0; box-shadow:0 10px 35px #0003; backdrop-filter:none; }
.track-selection .map { flex:1; min-height:65px; position:relative; padding:0; background:none; clip-path:none; }
.track-selection .map img { width:100%; height:100%; object-fit:contain; }
.track-selection .fields { display:grid; grid-template-columns:1fr 1fr; gap:8px 16px; }
.track-selection .tf { padding:6px 0; border-top:1px solid #ffffff1c; display:flex; flex-direction:column; gap:2px; }
.track-selection .tf .k { font-family:inherit; font-size:11px; letter-spacing:.025em; color:#b9bdc9; }
.track-selection .tf .v { font-family:var(--font-display); font-size:clamp(12px,1.15vw,19px); line-height:1.2; color:#f1f2f5; }
.track-selection .map-note { font-size:9px; color:#a2a9b8; line-height:1.5; }
.track-selection .dock-wrap { position:absolute; z-index:7; left:5.2%; right:4%; bottom:6%; display:flex; align-items:center; gap:14px; }
.track-selection .dock-view { flex:1; min-width:0; overflow:auto; scrollbar-width:none; padding:3px; scroll-behavior:smooth; }
.track-selection .dock-view::-webkit-scrollbar { display:none; }
.track-selection .dock-track { display:flex; gap:13px; transition:none; width:max-content; }
.track-selection .dock-card { flex:none; width:clamp(165px,14vw,260px); height:clamp(108px,12.8vh,155px); border:1px solid #ffffff30; border-radius:10px; clip-path:none; box-shadow:none; background:#1c1d24de; padding:10px 13px; display:flex; flex-direction:column; text-align:left; gap:2px; }
.track-selection .dock-card:hover { background:#45464edd; }
.track-selection .dock-card.is-active { background:#55565fdf; border:2px solid white; box-shadow:0 0 0 2px #ffffff1a; }
.track-selection .dc-head { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.track-selection .dc-name { font-size:12px; font-weight:500; color:#eee; }
.track-selection .dc-tid { font-family:var(--font-mono); font-size:9px; color:#aaaebb; }
.track-selection .dock-card img { width:100%; flex:1; min-height:0; object-fit:contain; opacity:.55; }
.track-selection .dock-card.is-active img { opacity:1; }
.track-selection .dock-arrow { width:30px; height:52px; flex:none; font-family:Arial,sans-serif; font-size:28px; color:white; background:#13172070; clip-path:none; border-radius:4px; }
.track-selection .key-hint { bottom:1.5%; }
@media (min-width:1800px) { .selection-screen .team-logo { height:60px; } }
@media (max-width:1000px) {
 .selection-screen .topbar { padding:0 24px; height:56px; }
 .selection-screen .step-flow { display:none; }
 .selection-screen .equal-note { width:195px; font-size:10px; }
 .selection-screen .stage-head h2 { font-size:28px; }
 .selection-screen .mini-perf { display:none; }
 .selection-screen .dock-btn { width:78px; height:75px; }
 .selection-screen .team-logo { height:38px; }
 .selection-screen .team-dock { gap:8px; }
 .selection-screen .actionbar .hint { display:none; }
 .track-selection .info-col { width:36%; }
 .track-selection .track-card { padding:12px; }
 .track-selection .info-col h2 { font-size:25px; }
 .track-selection .car-viewport { left:36%; right:-35%; }
}
@media (max-width:650px) and (orientation:portrait) {
 .selection-screen .topbar { height:54px; padding:0 18px; }
 .selection-screen .brand-name { font-size:13px !important; }
 .selection-screen .topbar-actions .badge { font-size:9px; }
 .selection-screen .stage-head { top:5%; left:6%; right:6%; }
 .selection-screen .stage-head h2 { font-size:26px; }
 .selection-screen .equal-note { display:none; }
 .selection-screen .stage .big-name { top:31%; font-size:12vw; max-width:none; }
 .selection-screen .car-viewport { inset:31% -5% 15%; }
 .selection-screen .team-dock { left:0; transform:none; bottom:9%; max-width:100%; width:100%; justify-content:flex-start; padding:8px 20px; }
 .selection-screen .dock-btn { width:67px; height:68px; border-radius:8px; }
 .selection-screen .team-logo { height:35px; }
 .selection-screen .pos-note { bottom:3%; max-width:88%; font-size:10px; }
 .selection-screen .key-hint { display:none; }
 .selection-screen .actionbar { min-height:68px; padding:10px 16px; gap:8px; }
 .selection-screen .actionbar > .btn-text { font-size:10px; padding:0; }
 .selection-screen .actionbar .btn { padding:10px; font-size:10px; min-height:40px; }
 .selection-screen .actionbar .group { gap:6px; }
 .selection-screen .actionbar .btn-ghost { display:none; }
 .selection-screen .layout-p2, .selection-screen .drivers { display:flex; flex-direction:column; gap:12px; }
 .selection-screen #driverPane { padding:28px 16px 16px; overflow:auto; }
 .selection-screen .driver-card { padding:12px; }
 .selection-screen .d-head { margin-bottom:0; gap:8px; }
 .selection-screen .d-name { min-width:0; font-size:16px; }
 .selection-screen .d-abbr { font-size:27px; flex:none; }
 .selection-screen .d-id { flex:none; }
 .selection-screen .summary { flex:none; }
 .track-selection .info-col { top:4%; left:6%; right:6%; bottom:auto; width:auto; max-width:none; height:44%; gap:6px; }
 .track-selection .info-col h2 { font-size:23px; }
 .track-selection .track-card { position:relative; padding:10px; gap:4px; }
 .track-selection .map { width:52%; flex:1; min-height:100px; }
 .track-selection .fields { position:absolute; right:10px; top:12px; width:43%; grid-template-columns:1fr; gap:0; }
 .track-selection .tf { padding:5px 0; }
 .track-selection .tf .k { font-size:9px; }
 .track-selection .tf .v { font-size:12px; }
 .track-selection .map-note { font-size:8px; max-width:54%; }
 .track-selection .car-viewport { inset:43% -32% 10% 4%; }
 .track-selection .stage .big-name { top:49%; left:58%; font-size:15vw; }
 .track-selection .dock-wrap { left:3%; right:3%; bottom:3%; gap:4px; }
 .track-selection .dock-card { width:141px; height:98px; padding:8px; }
 .track-selection .dock-arrow { width:20px; font-size:25px; }
 .track-selection .dc-name { font-size:10px; }
}
@media (max-height:600px) and (orientation:landscape) {
 .selection-screen .topbar { height:44px; }
 .selection-screen .actionbar { min-height:50px; padding:6px 24px; }
 .selection-screen .actionbar .btn { padding:6px 12px; min-height:32px; }
 .selection-screen .stage-head { top:5%; }
 .selection-screen .stage-head h2 { font-size:25px; margin-top:5px; }
 .selection-screen .tag { padding:2px 8px; font-size:10px; }
 .selection-screen .car-code { margin-top:4px; font-size:9px; }
 .selection-screen .equal-note, .selection-screen .pos-note, .selection-screen .key-hint { display:none; }
 .selection-screen .team-dock { bottom:3%; gap:7px; padding:3px; }
 .selection-screen .dock-btn { width:61px; height:55px; gap:2px; border-radius:6px; }
 .selection-screen .team-logo { height:30px; }
 .selection-screen .dock-btn .abbr { font-size:7px; }
 .selection-screen .car-viewport { inset:17% 7% 0; }
 .track-selection .info-col { top:4%; bottom:30%; width:31%; gap:3px; }
 .track-selection .info-col h2 { font-size:18px; }
 .track-selection .info-col .sub { font-size:8px; }
 .track-selection .track-card { padding:8px; gap:4px; }
 .track-selection .map { min-height:30px; }
 .track-selection .tf { padding:3px 0; }
 .track-selection .tf .k, .track-selection .map-note { font-size:8px; }
 .track-selection .tf .v { font-size:11px; }
 .track-selection .dock-wrap { bottom:3%; }
 .track-selection .dock-card { width:140px; height:70px; padding:6px 10px; border-radius:5px; }
 .track-selection .dc-name { font-size:9px; }
 .track-selection .car-viewport { inset:7% -20% -14% 35%; }
}
@media (prefers-reduced-motion:reduce) { .selection-screen *, .selection-screen *::before { animation:none !important; transition:none !important; scroll-behavior:auto !important; } }

.selection-screen .choose-driver { border:1px solid #ffffff65; border-radius:3px; padding:5px 10px; font-size:11px; background:#11172399; }
@media (max-width:650px) and (orientation:portrait) { .team-selection .key-hint { display:flex; bottom:23%; } .team-selection .key-hint > span { display:none; } }
@media (max-width:650px) and (orientation:portrait) {
 .selection-screen .layout-p2, .selection-screen .drivers, .selection-screen .driver-card { flex:none; }
}
/* Selection focus may scroll the horizontal dock, never the surrounding stage. */
.selection-screen .page, .selection-screen .stage, .selection-screen .pager, .selection-screen .pane { overflow:clip; }
.selection-screen #driverPane { overflow:auto; }
/* Match both navigation buttons, including the previous step at the left. */
.selection-screen .actionbar .btn-step { flex:none; width:clamp(140px,12vw,180px); padding-inline:clamp(12px,1.6vw,24px); white-space:nowrap; }
.selection-screen .actionbar > .btn-step { display:inline-flex; }
