/* ── Record-holders caption ───────────────────────────────── */
.record-holders {
  margin: -14px 0 22px;
  padding: 10px 18px 12px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  border-left: 2px solid rgba(201, 162, 63, 0.42);
  background: linear-gradient(90deg, rgba(201, 162, 63, 0.06), transparent 70%);
  border-radius: 0 4px 4px 0;
}
.record-holders[hidden] { display: none; }
.record-holders__label {
  display: block;
  font-family: "Newsreader", serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8f7136;
  margin: 0 0 4px;
}
.record-holders__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.record-holders__name {
  color: var(--text);
  font-style: italic;
}
.record-holders__score {
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  opacity: 0.78;
  margin-left: 2px;
}

/* ── The ledger board ─────────────────────────────────────── */
.board { position: relative; z-index: 2; }
.row-head {
  display: grid;
  grid-template-columns: 46px 1fr 78px 52px;
  gap: 10px;
  padding: 0 14px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1.5px solid var(--rule);
}
/* 2026-05-28 v24 — survival tab has an extra "Mitalit" column. */
.row-head:has(.trophies),
.row.row--survival {
  grid-template-columns: 46px 1fr 78px 52px minmax(120px, 160px);
}
.row {
  display: grid;
  grid-template-columns: 46px 1fr 78px 52px;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--rule-soft);
  animation: row-ink 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 42ms + 120ms);
}
.trophies {
  font-family: "JetBrains Mono", "Fira Code", "Newsreader", monospace;
  font-size: 13px;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.trophies--empty { color: var(--text-dim); }
.trophy-divider { color: var(--text-dim); margin: 0 2px; }
/* Narrow viewport: hide the trophies cell so the ladder stays
 * readable; trophies are still visible in the OBS overlay podium. */
@media (max-width: 520px) {
  .row-head:has(.trophies),
  .row.row--survival {
    grid-template-columns: 46px 1fr 78px 52px;
  }
  .trophies { display: none; }
}
.row:last-child { border-bottom: none; }

.rank {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  justify-self: center;
  border-radius: 50%;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-soft);
  background: rgba(120, 86, 38, 0.10);
  box-shadow: inset 0 0 0 1px rgba(120, 86, 38, 0.22);
  font-variant-numeric: tabular-nums;
}
.name {
  font-family: "Newsreader", serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rating {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--gold-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.games {
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-left: 10px;
  border-left: 1px solid var(--rule-soft);
}

/* Podium — struck medallions for the top three */
.row.is-gold, .row.is-silver, .row.is-bronze {
  border-bottom-color: var(--rule);
}
.row.is-gold   { background: linear-gradient(90deg, rgba(201, 162, 63, 0.16), transparent 78%); }
.row.is-silver { background: linear-gradient(90deg, rgba(150, 154, 168, 0.14), transparent 78%); }
.row.is-bronze { background: linear-gradient(90deg, rgba(192, 130, 78, 0.13), transparent 78%); }
.row.is-gold .rank,
.row.is-silver .rank,
.row.is-bronze .rank {
  color: #2b1f0b;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 250, 230, 0.7), 0 2px 5px -1px rgba(80, 52, 14, 0.5);
}
.row.is-gold   .rank { background: linear-gradient(160deg, #f7da86, #c9a23f 60%, #8a6a1f); }
.row.is-silver .rank { background: linear-gradient(160deg, #eef0f4, #b7bac6 58%, #8a8d99); }
.row.is-bronze .rank { background: linear-gradient(160deg, #ecbd8e, #c0824e 58%, #8a5630); }
.row.is-gold .name { font-weight: 700; }
.row.is-gold {
  background-size: 220% 100%;
  animation: row-ink 460ms cubic-bezier(0.22, 1, 0.36, 1) both,
             gold-drift 9s ease-in-out 900ms infinite;
}
