/* P0.1 choices extend the recovered playtest layout and its original tokens. */
.race-setup{margin-top:28px;padding:22px;border:1px solid #a7b6bf;border-radius:8px;background:#fff}
.race-setup h2{margin:0 0 16px;font-size:30px}
.driver-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px;padding:0;border:0}
.driver-presets legend{margin-bottom:12px;font-weight:700}
.driver-option{min-width:0;padding:10px;border:1px solid #a7b6bf;border-radius:6px;cursor:pointer;display:grid;gap:8px;color:#071018}
.driver-option:has(input:checked){outline:3px solid #0b5968;outline-offset:2px}
.driver-option img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:3px}
.driver-option span{display:flex;align-items:center;gap:8px;font-weight:700}
.driver-option input{width:20px;height:20px;accent-color:#0b5968}
.driver-option small{color:#38464f}
.race-config{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:end;margin-bottom:18px}
.race-config label{display:grid;gap:6px;font-weight:600}
.race-config select,.race-config input{min-height:44px;border:1px solid #657581;border-radius:4px;background:white;color:#071018;padding:8px;font:inherit}
.race-config input{max-width:130px}
.racer-crew{font-size:13px;color:#38464f;margin:10px 0 0;line-height:1.65}
.race-art{width:100%;aspect-ratio:21/7;object-fit:cover;object-position:center 30%;border-radius:5px;margin:12px 0}
.controls .action{max-width:370px;text-align:left}
.controls .card-action{display:grid;gap:5px;align-content:start;min-width:200px;flex:1 1 220px}
.card-action .card-meta{color:#a9d8e0;font-size:12px}
.card-action img{max-height:140px;max-width:100%;object-fit:contain;justify-self:start}
.card-action .card-text{font-size:13px;font-weight:400;line-height:1.5;color:#e2e8ec}
.race-private-hand{margin-top:16px;color:#d1dbe2;font-size:14px;line-height:1.7}
.race-private-hand summary{cursor:pointer;min-height:44px}
.race-private-hand ul{padding-left:20px}
.race-handoff{max-width:480px;padding:30px;border:2px solid #0b5968;border-radius:10px;background:#071018;color:white}
.race-handoff::backdrop{background:#040609fa}
.race-handoff h2{font-size:38px;margin-top:0}
.race-handoff p{line-height:1.6}
.race-handoff button{min-height:48px}
.race-error:empty{display:none}
.race-error{padding:12px;border:1px solid #ff775a;color:#fff;background:#512116}
@media(max-width:650px){.driver-presets{grid-template-columns:1fr}.driver-option{grid-template-columns:110px 1fr;align-items:center}.driver-option img{grid-row:span 2;height:90px;object-position:25% center}.driver-option small{font-size:13px}.race-config{display:grid;grid-template-columns:1fr}.race-art{aspect-ratio:16/6}.race-setup{padding:16px}.controls .card-action{max-width:100%}}
