:root {
  --bg: #f7f7f8; --surface: #fff; --text: #1a1a1f; --muted: #6b6b76;
  --border: #e3e3e8; --accent: #b4532a; --error-bg: #fde8e8; --error-text: #8a1c1c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121216; --surface: #1c1c22; --text: #ececf1; --muted: #9a9aa6;
    --border: #2e2e36; --accent: #e8875a; --error-bg: #3a1a1a; --error-text: #f5b5b5;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 24px 16px; background: var(--bg); color: var(--text);
  font: 15px/1.4 system-ui, -apple-system, sans-serif;
}
header, main, .error { max-width: 1000px; margin: 0 auto; }
h1 { margin: 0 0 4px; font-size: 1.6rem; }
h2 { margin: 0 0 12px; font-size: 1.1rem; }
#status { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }
main { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { main { grid-template-columns: 1fr; } }
section { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 8px; text-align: right; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
td:nth-child(1) { color: var(--muted); width: 2em; }
td.elo { font-weight: 600; color: var(--accent); }
tr:last-child td { border-bottom: none; }
.error { background: var(--error-bg); color: var(--error-text); padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
