:root {
  color-scheme: dark;
  background: #080a13;
  color: #f3f4ff;
  font-family: Inter, Arial, sans-serif;
  --cyan: #00edec;
  --yellow: #ffe600;
  --pink: #ff529e;
  --muted: #9aa9c7;
}

body { margin: 0; }
.shell { width: min(760px, calc(100% - 32px)); margin: 28px auto 44px; }
.top a { color: var(--cyan); display: inline-block; padding: 10px 0; }
.race-card {
  background: linear-gradient(135deg, #171628, #101626 60%, #0b1020);
  border: 1px solid #33435b;
  border-top: 4px solid var(--cyan);
  padding: clamp(16px, 5vw, 40px);
}
.brand { display: flex; align-items: center; gap: .3em; text-transform: uppercase; font-weight: 850; letter-spacing: .07em; }
.brand img { margin-right: 8px; }
.brand strong { color: var(--cyan); }
header { margin-block: 23px 22px; }
.league { color: var(--pink); overflow-wrap: anywhere; font-weight: 700; margin: 0; }
h1 { font-size: clamp(34px, 8vw, 68px); line-height: 1; text-transform: uppercase; letter-spacing: -.05em; margin: 8px 0; }
.timing, footer, #card-status { color: var(--muted); font: .85rem/1.45 'Courier New', monospace; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { color: var(--cyan); text-transform: uppercase; font: .75rem/1.3 'Courier New', monospace; }
th, td { padding: 12px 8px; border-bottom: 1px solid #314058; text-align: left; }
th:first-child { width: 53%; overflow-wrap: anywhere; }
tbody tr.inside { background: #24252a; }
.cut { border-top: 2px solid var(--pink); }
.seed, .record, .position { font-family: 'Courier New', monospace; }
.seed { color: var(--muted); }
.inside .position { color: var(--yellow); }
.outside .position { color: var(--pink); }
footer { margin-top: 16px; }
.actions:not([hidden]) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.actions button { min-height: 44px; background: transparent; color: var(--cyan); border: 1px solid var(--cyan); padding: 8px 16px; font: inherit; font-weight: 700; cursor: pointer; }
#download-card { background: var(--yellow); color: #080a13; border-color: var(--yellow); }
#card-status { flex-basis: 100%; min-height: 1.45em; margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
@media (max-width: 390px) {
  td, th { padding-inline: 4px; }
  tbody { font-size: .88rem; }
}
