:root {
  --bg: #f3f1ea;
  --card: #ffffff;
  --ink: #15201a;
  --muted: #5d6b62;
  --line: #e2e0d6;
  --field: #1f5a36;
  --field-2: #2d7a4a;
  --gold: #c8921a;
  --gold-soft: #fbf1d9;
  --live: #d7362b;
  --chip: #ebe8dd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1511;
    --card: #17211b;
    --ink: #eef2ee;
    --muted: #93a39a;
    --line: #26332b;
    --field: #2d7a4a;
    --field-2: #3b9a5e;
    --gold: #e7b245;
    --gold-soft: #2c2616;
    --live: #ff5a4e;
    --chip: #202c25;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .num, .card h3 { font-family: Oswald, Impact, sans-serif; letter-spacing: .02em; }

.top {
  background: linear-gradient(135deg, var(--field), var(--field-2));
  color: #fff;
  padding: 22px 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 60px),
    linear-gradient(135deg, var(--field), var(--field-2));
}
.brand { display: flex; align-items: center; gap: 12px; }
.ball { font-size: 34px; }
h1 { margin: 0; font-size: 30px; line-height: 1; text-transform: uppercase; }
.sub { margin: 4px 0 0; opacity: .85; font-size: 13px; }
.live {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.22); border-radius: 99px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #9fb3a6; }
.live.on .dot { background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.weeks {
  display: flex; gap: 6px; overflow-x: auto; padding: 14px 16px;
  max-width: 1100px; margin: 0 auto; scrollbar-width: none;
}
.weeks button {
  flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font: 600 13px Inter, sans-serif; padding: 7px 13px; border-radius: 99px; cursor: pointer;
}
.weeks button.sel { background: var(--field); border-color: var(--field); color: #fff; }
.weeks button:disabled { opacity: .35; cursor: default; }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
}
.card h3 {
  margin: 0; padding: 12px 16px; font-size: 15px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
.lead {
  background: var(--gold-soft); padding: 16px; display: flex; gap: 12px; align-items: center;
  min-height: 96px;
}
.lead img, .lead .logo {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--chip); border: 2px solid var(--gold);
}
.lead .who { min-width: 0; flex: 1; }
.lead .name { font-weight: 700; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.lead .owner { color: var(--muted); font-size: 13px; line-height: 1.25; }
.lead .num { font-size: 28px; color: var(--gold); line-height: 1; }
.lead .crown { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.card h3 .prize { color: var(--gold); }
.empty { color: var(--muted); padding: 16px; font-size: 14px; }

ol.rank { list-style: none; margin: 0; padding: 6px 0; }
ol.rank li {
  display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: baseline;
  padding: 6px 16px; font-size: 14px;
}
ol.rank li .r { color: var(--muted); font-size: 12px; }
ol.rank li .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
ol.rank li .n small { color: var(--muted); }
ol.rank li .p { font-weight: 600; font-variant-numeric: tabular-nums; }
.more { border: 0; background: none; color: var(--field-2); font: 600 13px Inter, sans-serif; padding: 4px 16px 12px; text-align: left; cursor: pointer; }

.season { margin-top: 30px; }
.season h2 { font-size: 22px; text-transform: uppercase; margin: 0 0 12px; }
.tally { margin-bottom: 18px; }
.paid { color: var(--muted); font-size: 13px; margin: 10px 0 22px; }
table.money { min-width: 520px; font-size: 14px; }
table.money td, table.money th { font-variant-numeric: tabular-nums; }
table.money .tot { font-weight: 700; color: var(--gold); }
.zero { color: var(--muted); }
small.cash { color: var(--gold); font-weight: 600; }
table.money tfoot td { border-top: 2px solid var(--line); border-bottom: 0; font-weight: 600; }
table.money td.r { text-align: right; color: var(--muted); }
.lead-tag { color: var(--muted); font-style: italic; }
.season h3 { font-size: 16px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-family: Oswald, Impact, sans-serif; }
.tally .chip { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: 13px; }
.tally .chip b { color: var(--gold); margin-left: 4px; }
.tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td small { color: var(--muted); display: block; }
td.pending { color: var(--muted); font-style: italic; }

.rules { color: var(--muted); font-size: 12.5px; margin-top: 22px; }
