:root {
  --bg: #111; --fg: #eee; --muted: #999; --line: #333;
  --alive: #4caf50; --out: #e53935; --lead: #ffc107; --tie: #ff9800;
}
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 16px; max-width: 1100px; background: var(--bg); color: var(--fg);
       font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; }
h1 { font-size: 1.3em; margin: 0 0 4px; }
h2 { font-size: 1.05em; margin: 20px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.meta { color: var(--muted); font-size: .9em; margin-bottom: 12px; }
button { background: #222; color: var(--fg); border: 1px solid var(--line); padding: 8px 14px;
         border-radius: 6px; font-size: 14px; cursor: pointer; }
.alt { color: var(--muted); margin-left: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: normal; font-size: .85em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.name { white-space: normal; }
.code { color: var(--muted); font-size: .85em; margin-left: 4px; }
.alive td:first-child { border-left: 3px solid var(--alive); }
.out   { color: var(--muted); }
.out td:first-child { border-left: 3px solid var(--out); }
.lead  td:first-child { border-left: 3px solid var(--lead); }
.tag { font-size: .75em; padding: 2px 6px; border-radius: 4px; background: #222; }
.tag.alive { color: var(--alive); } .tag.out { color: var(--out); }
.tag.lead { color: var(--lead); } .tag.tie { color: var(--tie); } .tag.champ { background: var(--lead); color: #000; }
.summary { padding: 10px 12px; background: #1a1a1a; border: 1px solid var(--line); border-radius: 6px; margin: 12px 0; }
.warn { color: var(--tie); }
.err { color: var(--out); white-space: pre-wrap; }
ul.races { list-style: none; padding: 0; margin: 0; }
ul.races li { padding: 5px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
ul.races li.done { color: var(--muted); }
footer { margin-top: 24px; color: var(--muted); font-size: .8em; line-height: 1.5; }
footer a { color: inherit; }
