/* Tour and garage presentation, separate from the race HUD. */
.profile-strip { display:flex; align-items:center; gap:15px; margin-top:18px; max-width:560px; pointer-events:auto; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#080d1dbb; }
.profile-machine { display:flex; flex-direction:column; gap:3px; margin-right:auto; }
.profile-machine > span,.profile-machine small { font-size:7px; letter-spacing:.12em; color:var(--muted); }
.profile-machine strong { font-family:var(--display); font-size:23px; font-style:italic; }
.profile-stat { display:flex; align-items:center; gap:5px; font-size:12px; color:var(--amber); }
.profile-strip svg,.garage-button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; }
.garage-button { display:flex; gap:6px; align-items:center; padding:9px; border:1px solid var(--line); border-radius:7px; font-size:9px; color:var(--mint); background:#63f0c511; }
.garage-button svg { stroke-linecap:round; stroke-linejoin:round; }
.cup-tabs { display:flex; gap:7px; overflow-x:auto; padding:18px 0 5px; }
.cup-tabs button,.machine-list button { flex:none; padding:9px 11px; border:1px solid var(--line); border-radius:7px; background:#ffffff06; font-size:9px; }
.cup-tabs .is-active,.machine-list .is-active { border-color:var(--amber); color:var(--amber); background:#ffd16614; }
.circuit-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.circuit-option { min-width:0; }
.circuit-option:disabled { opacity:.42; cursor:not-allowed; transform:none; }
.circuit-option h3 { overflow-wrap:anywhere; }
.garage-layer { position:absolute; inset:0; z-index:28; pointer-events:none; }
.garage-layer[hidden] { display:none; }
.garage-card { position:absolute; right:24px; top:24px; bottom:24px; width:min(470px,45vw); padding:24px; overflow:auto; pointer-events:auto; border:1px solid var(--line); border-radius:18px; background:linear-gradient(140deg,#11192af2,#080b1af5); box-shadow:0 20px 80px #0008; }
.garage-card h2 { font-size:66px; }
.garage-card h3 { font-family:var(--display); font-size:28px; font-style:italic; margin:20px 0 6px; }
.garage-help,.garage-card p { color:var(--muted); font-size:10px; line-height:1.6; }
.machine-list { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; }
.garage-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:20px 0; }
.garage-stats span { font-size:9px; letter-spacing:.08em; color:var(--cream-dim); }
.garage-stats meter { display:block; width:100%; height:7px; margin-top:6px; accent-color:var(--mint); }
.garage-card .primary-action { width:100%; min-height:40px; }
.upgrade-list { display:grid; gap:7px; margin:17px 0; }
.upgrade-list button { text-align:left; padding:12px; border:1px solid var(--line); border-radius:7px; background:#ffffff06; font-size:10px; letter-spacing:.06em; }
.garage-card button:disabled { opacity:.35; cursor:not-allowed; }
.paint-list { display:flex; flex-wrap:wrap; gap:10px; margin:20px 0; }
.paint-list button { width:27px; height:27px; border:2px solid #ffffff38; border-radius:50%; }
.paint-list button.is-active { outline:2px solid var(--cream); outline-offset:3px; }
.driver-custom { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px; }
.driver-custom label { display:flex; flex-direction:column; gap:8px; font-size:9px; letter-spacing:.08em; }
.driver-custom input,.driver-custom select { width:100%; min-width:0; padding:10px; background:#080d1d; color:var(--cream); border:1px solid var(--line); border-radius:6px; font:inherit; }
.garage-message { min-height:30px; color:var(--mint) !important; }
body.garage-open .menu-screen,body.garage-open .menu-header { opacity:0; visibility:hidden; }
.ability-widget { position:absolute; left:28px; bottom:106px; display:flex; align-items:center; gap:10px; padding:11px 15px; border:1px solid #ffffff25; border-radius:10px; background:#0a1022cc; pointer-events:auto; color:var(--cream-dim); text-align:left; backdrop-filter:blur(12px); }
.ability-widget span { display:flex; flex-direction:column; gap:3px; }
.ability-widget small { font-size:6px; letter-spacing:.2em; color:var(--muted); }
.ability-widget strong { font-size:10px; letter-spacing:.08em; }
.ability-widget em { font-size:8px; font-style:normal; color:var(--muted); }
.ability-widget.ready { border-color:#63f0c566; }
.ability-widget.ready em { color:var(--mint); }
.result-rewards { padding-top:10px; margin-top:10px; border-top:1px solid var(--line); }
.result-rewards[hidden],.result-rewards [hidden] { display:none !important; }
.reward-totals { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:0; }
.reward-totals dt { color:#c9c5bc; font-size:11px; line-height:1.4; }
.reward-totals dd { color:var(--amber); margin:5px 0 0; font-size:20px; font-weight:700; font-variant-numeric:tabular-nums; }
.result-rewards span { color:#c9c5bc; font-size:11px; font-weight:400; letter-spacing:0; line-height:1.5; }
.reward-pilot { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 10px; margin:8px 0; }
.reward-pilot strong { color:var(--amber); font-size:11px; font-weight:700; letter-spacing:0; }
.reward-challenge { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:5px 10px; padding:8px 0; border-block:1px solid var(--line); }
.reward-challenge > div { display:flex; flex-direction:column; gap:3px; }
.reward-challenge strong { color:var(--cream); font-size:12px; font-weight:700; letter-spacing:0; }
.reward-challenge > span { text-align:right; align-self:end; }
.challenge-complete .reward-challenge > span { color:var(--mint); }
.reward-challenge small { grid-column:1/-1; color:#c9c5bc; font-size:10px; line-height:1.5; }
.reward-stars { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:10px; }
.reward-stars strong { margin-left:5px; color:var(--cream); font-size:13px; font-weight:700; }
.reward-stars button { display:flex; align-items:center; gap:5px; padding:8px 0 8px 8px; color:var(--cream); font-size:10px; font-weight:700; }
.reward-stars button:hover { color:var(--amber); }.reward-stars button:focus-visible { outline:2px solid var(--mint); outline-offset:3px; }
.reward-stars svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; }
@media(min-width:721px) { .result-grid { grid-template-columns:minmax(0,1fr) 320px; } }
.race-brief { max-width:560px; margin-top:12px; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:#0b1020ed; pointer-events:auto; }
.race-facts { display:grid; grid-template-columns:1.15fr 1.15fr .7fr; gap:16px; margin:0; }
.race-facts > div { min-width:0; }
.race-facts dt { color:#c9c5bc; font-size:11px; line-height:1.4; }
.race-facts dd { margin:4px 0 0; color:var(--cream); font-size:15px; font-weight:700; line-height:1.3; font-variant-numeric:tabular-nums; }
.race-challenge { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.race-challenge h3 { margin:0; color:var(--cream); font:700 13px/1.4 var(--body); }
.race-challenge p { margin:4px 0 0; color:#d8d1c3; font-size:12px; line-height:1.5; }
.race-challenge-reward { display:flex; flex-direction:column; gap:5px; text-align:right; white-space:nowrap; }
.race-challenge-reward strong { color:var(--amber); font-size:15px; line-height:1.3; }
.race-challenge-reward span { color:#d8d1c3; font-size:11px; line-height:1.4; }
.race-challenge.is-complete .race-challenge-reward strong { color:var(--mint); }
@media(max-width:720px) {
  .race-brief { margin-top:10px; padding:12px; }
  .race-facts { gap:10px; grid-template-columns:1.1fr 1.15fr .7fr; }
  .race-facts dd { font-size:13px; }.race-facts dt { font-size:10px; }
  .race-challenge { grid-template-columns:1fr; gap:8px; margin-top:10px; padding-top:10px; }
  .race-challenge-reward { flex-direction:row; align-items:baseline; flex-wrap:wrap; gap:5px 10px; text-align:left; }
  .race-challenge-reward strong { font-size:13px; }
}
.power-card { border:1px solid #ffd16655; background:#ffd1660d; color:var(--amber); padding:12px; border-radius:8px; font-size:12px; letter-spacing:.05em; }
.garage-comparison { margin:9px 0; }
.garage-grid { padding:12px; border:1px solid var(--line); border-radius:8px; }
.garage-roster { color:var(--mint); font-size:9px; margin:14px 0; }
.garage-roster summary { cursor:pointer; padding:8px 0; }
.upgrade-list small { display:block; margin-top:5px; font-size:8px; color:var(--muted); line-height:1.5; }
@media(min-width:721px) and (max-height:780px) {
  .menu-title .title-top { font-size:88px; }.menu-title .title-bottom { font-size:124px; }
  .tagline { margin:12px 0; font-size:14px; }.menu-stats { margin-top:16px; }.controls-strip { margin-top:15px; }
}
@media(max-width:720px) {
  .garage-card { left:10px; right:10px; top:42%; bottom:10px; width:auto; padding:18px; }
  .garage-card h2 { font-size:44px; }
  .profile-strip { gap:9px; margin-top:12px; }.profile-machine small { display:none; }
  .profile-machine strong { font-size:19px; }.profile-stat { font-size:10px; }
  .menu-title .title-top { font-size:70px; }.menu-title .title-bottom { font-size:97px; }
  .tagline { margin:12px 0; font-size:13px; }.menu-stats { margin-top:15px; }
  .start-row { flex-direction:row; align-items:center; }.start-button { min-width:180px; gap:10px; padding-left:15px; }
  .start-label { font-size:11px; }.circuit-button { width:auto; flex:1; min-width:115px; }.circuit-button-copy strong { max-width:120px; font-size:8px; }
  .start-hint { display:none; }.controls-strip { gap:10px; margin-top:12px; padding:9px; }.controls-strip > div { gap:4px; }.controls-strip small { font-size:6px; }
  .circuit-options { grid-template-columns:1fr; }
  .ability-widget { left:16px; bottom:100px; padding:8px; }.ability-widget strong { font-size:8px; }
  body.touch .ability-widget { bottom:170px; }
}
@media(max-height:520px) and (orientation:landscape) {
  .menu-stats,.profile-machine small,.tagline { display:none; }.profile-strip { margin-top:12px; }
  .garage-card { top:10px; bottom:10px; right:10px; left:auto; width:46vw; }
  .ability-widget { bottom:80px; }
}
