:root {
  --bg: #0e1621;
  --bg2: #15202e;
  --card: #1a2736;
  --line: #263548;
  --text: #e8eef6;
  --muted: #8aa0b8;
  --accent: #3b82f6;
  --gold: #f5c542;
  --silver: #c4ccd6;
  --bronze: #d38b5d;
  --ok: #22c55e;
  --warn: #eab308;
  --bad: #ef4444;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 50% -200px, #1b2b44 0%, var(--bg) 60%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 16px 56px; }
header { text-align: center; margin-bottom: 24px; }
h1 { margin: 0 0 6px; font-size: clamp(28px, 6vw, 42px); letter-spacing: -0.02em; }
.sub { color: var(--muted); margin: 0; }
.banner { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; text-align: center; }
.banner.info { background: #12294a; border-color: #1f4a85; }
.banner.success { background: #10321f; border-color: #1b6b3a; }
.banner.warning { background: #3a3010; border-color: #7a6514; }
.countdown { text-align: center; margin: 0 0 20px; color: var(--muted); }
.countdown b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 1.15em; }
.total { text-align: center; color: var(--muted); margin: 0 0 16px; }
.total b { color: var(--text); }
.table-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; text-align: left; }
thead th { background: var(--bg2); color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: #1e2d3f; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.rank { width: 80px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 999px; background: var(--bg2); }
tr.top1 .badge { background: var(--gold); color: #1a1405; }
tr.top2 .badge { background: var(--silver); color: #15191f; }
tr.top3 .badge { background: var(--bronze); color: #1d1008; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); }
footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }
@media (max-width: 520px) {
  th, td { padding: 12px 10px; }
  td.rank { width: 56px; }
}
