/* Garage hero: your team and the next race */
/* ===== Garage hero (23 oct 2026): your team + the next race, over very faint livery stripes ===== */
.hero2 { --c1: #e5243b; --c2: #ffffff; --c3: #0b0d12; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 20px; align-items: center; min-height: 150px; padding: 18px 22px 20px; }   /* one row: team | next race | FDM */
.hero2::after { display: none; }
.hero2::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16;
  background: linear-gradient(115deg, transparent 58%, var(--c1) 58% 70%, var(--c2) 70% 71.5%, var(--c3) 71.5% 79%, var(--c1) 79%); }
.hero2 > * { position: relative; }
.hero2 .h2-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; opacity: .35; background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 10px 10px; }
.h2-fdm { order: 3; align-self: start; font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; line-height: 1; color: rgba(255,255,255,.55); }
.h2-fdm span { color: var(--flag); }
.h2-l { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 8px; align-items: center; min-width: 0; }
.hero2 .h2-l > .label { display: none; }   /* "Fantasy Driver Management · Garage": no room in one row; the FDM logo stays */
.hero2 .team-line { display: contents; }
.hero2 .home-logo { grid-row: 1 / span 2; }
.hero2 .home-logo svg { width: 80px; height: 80px; }
.hero2 #homeTeamName { font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 36px; line-height: .95; text-wrap: balance; }
.h2-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hero2 .home-cr { margin: 0; padding: 8px 14px; }
.hero2 .home-cr b { font-size: 30px; }
.h2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 4px; font-family: var(--display); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 15px; white-space: nowrap; }
.h2-race { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin-top: 0; border-radius: 8px; border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 16%, transparent), rgba(255,255,255,.025)); backdrop-filter: blur(2px); min-width: 0; }
.h2-race:hover { border-color: color-mix(in srgb, var(--c1) 60%, transparent); }
.h2-race:focus-visible { outline: 2px solid var(--c1); outline-offset: 2px; }
.h2-map { width: 80px; flex: 0 0 auto; color: var(--c1); } .h2-map svg { width: 100%; height: auto; display: block; }
.h2-rt { display: grid; gap: 2px; min-width: 0; }
.h2-rt .label { margin: 0; }
.hero2 .h2-rt .label { display: none; }   /* low card: title, one line and the link */
.h2-big { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.h2-sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2-cd { font-family: var(--display); font-weight: 800; font-size: 14px; color: #f2c94c; font-variant-numeric: tabular-nums; }
.h2-go { color: var(--fg); font-family: var(--display); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
@media (max-width: 760px) { .hero2 { grid-template-columns: 1fr; gap: 16px; min-height: 0; padding: 16px 16px 20px; } .h2-fdm { position: absolute !important; right: 18px; top: 12px; font-size: 28px; } .hero2 #homeTeamName { font-size: 20px; } .hero2 .home-logo svg { width: 56px; height: 56px; } .hero2 .home-cr b { font-size: 26px; } .h2-big { font-size: 18px; } .h2-sub, .h2-go { font-size: 13px; } .hero2 .h2-l > .label { display: block; padding-right: 84px; } .hero2 .h2-rt .label { display: block; } .h2-l { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; } .hero2 .team-line { display: flex; align-items: center; gap: 14px; } .h2-sub { white-space: normal; } .h2-cd { font-size: 17px; } .h2-race { gap: 12px; padding: 12px; } .h2-race { margin-top: 4px; } .h2-map { width: 72px; } .hero2::before { background: linear-gradient(115deg, transparent 72%, var(--c1) 72% 80%, var(--c2) 80% 81.5%, var(--c3) 81.5% 87%, var(--c1) 87%); } }
.home-logo { display: inline-flex; }
.home-logo svg { display: block; }
.team-tag { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 11px; letter-spacing: 0.04em; padding: 0 5px; margin-right: 2px; }
.cu-body { display: flex; flex-direction: column; gap: 14px; max-width: 1100px; }
.cu-top { display: flex; align-items: center; gap: 16px; }
.cu-top .team-logo { flex-shrink: 0; }
.cu-name { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(26px, 5vw, 36px); text-transform: uppercase; margin: 0; line-height: 1; overflow-wrap: anywhere; }
.cu-meta { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--muted); }
.cu-meta b { font-style: italic; padding: 2px 10px; letter-spacing: 0.06em; }
.cu-tabs button { font-size: 17px; padding: 10px 22px; }
.cu-panel { padding: 22px; }
.cu-form { display: flex; flex-direction: column; gap: 18px; }
.cu-field { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--fg); min-width: 0; }
.cu-field > span, .cu-color > span, .cu-sub { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg); }
.cu-field input, .cu-field select { width: 100%; max-width: none; font-size: 16px; padding: 11px 12px; }
.cu-field select { font: inherit; color: var(--fg); background: var(--asphalt); border: 1px solid var(--line); padding: 11px 12px; }
.cu-row { display: flex; gap: 14px; }
.cu-row .cu-field { flex: 1; }
.cu-color { display: flex; flex-direction: column; gap: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 0; cursor: pointer; position: relative; }
.sw[aria-pressed="true"] { outline: 3px solid var(--hi); outline-offset: 2px; }
.sw-custom { display: inline-flex; align-items: center; justify-content: center; background: conic-gradient(#e5243b, #f5b92e, #21c283, #3b7bff, #e24bf0, #e5243b); overflow: hidden; }
.sw-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.sw-custom span { font-weight: 800; font-size: 18px; color: #fff; text-shadow: 0 0 3px #000; pointer-events: none; }
.cu-choice, .cu-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cu-choice button, .cu-chips button { font-size: 16px; padding: 10px 16px; border-radius: 0; }
.cu-choice button[aria-pressed="true"], .cu-chips button[aria-pressed="true"] { background: var(--hi); color: var(--asphalt); border-color: var(--hi); }
.cu-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.cu-opts button { padding: 10px 8px 8px; min-width: 84px; background: var(--glass); border: 1px solid var(--line); border-radius: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--fg); font-size: 14px; }
.cu-opts button[aria-pressed="true"] { border-color: var(--hi); background: rgba(255, 255, 255, 0.1); }
.cu-opts svg { display: block; }
.cu-upload { display: flex; flex-direction: column; gap: 10px; }
.cu-drop { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px dashed rgba(255, 255, 255, 0.35); cursor: pointer; font-size: 16px; position: relative; }
.cu-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cu-drop b { font-size: 34px; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--glass); }
.cu-note { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.cu-note.warn { color: var(--medium); }
.cu-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.cu-preview { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 12px; }
.cu-options { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cu-acc { border: 1px solid var(--line); background: var(--glass); }
.cu-acc summary { cursor: pointer; list-style: none; padding: 14px 16px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.05em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.cu-acc summary::-webkit-details-marker { display: none; }
.cu-acc summary::after { content: "+"; font-size: 22px; color: var(--muted); }
.cu-acc[open] summary::after { content: "−"; }
.cu-acc[open] summary { border-bottom: 1px solid var(--line); }
.cu-acc-body { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.cu-drag-hint { margin: 0; }
.cu-split .cu-carbox, .cu-split .cu-driverbox { max-width: none; }
@media (max-width: 820px) {
  .cu-split { grid-template-columns: 1fr; gap: 14px; }
  .cu-preview { top: 0; z-index: 3; background: var(--asphalt); padding: 8px 0; margin: -8px 0 0; }
  .cu-preview .cu-carbox { max-width: 440px; }
  .cu-panel { padding: 14px; }
}
.cu-copyto button { padding: 8px 12px; font-size: 14px; }
.cu-chips button:disabled { opacity: 0.45; cursor: not-allowed; }
.cu-note.ok { color: var(--ok, #3fc79a); }
.cu-size { display: flex; flex-direction: column; gap: 8px; }
.cu-size-row { display: flex; align-items: center; gap: 14px; }
.cu-size-row input[type="range"] { flex: 1; accent-color: var(--hi); height: 28px; }
.cu-size-val { font-family: var(--display); font-weight: 800; font-size: 20px; min-width: 58px; text-align: right; }
.gem-tag { font-size: 11px; padding: 0 6px; border-color: #5ef2e6 !important; color: #5ef2e6 !important; box-shadow: 0 0 10px rgba(94, 242, 230, .35); }
.fee-warn { padding: 14px 18px; border-left: 6px solid #f2c94c; display: flex; flex-direction: column; gap: 6px; }
.fee-warn b.t { font-family: var(--display); font-size: 20px; text-transform: uppercase; color: #f2c94c; }
.fee-warn p { margin: 0; }
.welcome { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-left: 6px solid var(--flag); }
.welcome h2 { font-family: var(--display); font-weight: 800; font-style: italic; font-size: clamp(24px, 4vw, 32px); text-transform: uppercase; margin: 4px 0 0; }
.w-steps { margin: 0; padding-left: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; counter-reset: w; }
.w-steps li { counter-increment: w; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; color: var(--muted); }
.w-steps li b { font-family: var(--display); font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); }
.w-steps li b::before { content: counter(w) " · "; color: var(--flag); }
.w-steps li.done b::before { content: "✓ "; color: #3fc79a; }
.welcome .choice button:disabled { opacity: 0.45; cursor: not-allowed; }
#screen-play.no-entry .tile[data-go="race"], #screen-play.no-entry .tile[data-go="practice"] { opacity: 0.45; }
.note.warn { color: var(--medium); }
.track-card { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 20px; align-items: center; padding: 16px 20px; margin-bottom: 14px; }
.tc-map { width: 100%; height: auto; display: block; background: radial-gradient(ellipse at center, rgba(255,255,255,0.05), transparent 70%); }
.tc-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tc-name { font-family: var(--display); font-weight: 800; font-style: italic; font-size: 26px; text-transform: uppercase; line-height: 1.05; }
.tc-meta { color: var(--muted); font-size: 14px; }
.tc-meta .flag { width: 18px; height: 12px; vertical-align: -1px; }
.track-card dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px 16px; margin: 10px 0 6px; }
.track-card dl div { display: flex; flex-direction: column; gap: 2px; }
.track-card dt { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.track-card dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.tc-legend { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.tc-flag { display: inline-block; width: 14px; height: 8px; background: repeating-conic-gradient(#fff 0 25%, #11151f 0 50%) 0 0 / 6px 6px; }
.tc-arrow { margin-left: 10px; }
.c-track { margin-bottom: 4px; }
@media (max-width: 560px) { .track-card { grid-template-columns: 1fr; } .tc-map { max-width: 300px; margin: 0 auto; } }
.cu-group { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.cu-group-title { font-size: 18px; }
.cu-fonts button { text-transform: none; letter-spacing: 0; display: inline-flex; align-items: baseline; gap: 8px; }
.cu-fonts small { font-family: var(--body); font-size: 12px; font-style: normal; font-weight: 400; opacity: 0.75; }
.cu-carbox { max-width: 560px; width: 100%; align-self: center; }
.cu-carbox canvas { border: 1px solid var(--line); }

.cu-driverbox { max-width: 420px; }
.car-livery { display: block; width: 100%; height: auto; }
.car-pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 3 / 1; border: 1px dashed rgba(255, 255, 255, 0.25); color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; padding: 6px; margin: 0 auto; }
.car-pending small { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.8; }
@media (max-width: 520px) { .cu-row { flex-direction: column; } .cu-tabs button { padding: 10px 14px; } }
@media (max-width: 420px) { header h1 { font-size: 32px; } .cu-tabs button { padding: 10px 11px; } }
