/* ============================================================
   WC26 Hub — Stats & Simulator page styles
   Every rule scoped under .page-stats
   ============================================================ */

/* ---------------- tournament so far ---------------- */

.page-stats .tsf { display: block; margin-bottom: 30px; }
.page-stats .tsf-head { margin-bottom: 12px; align-items: center; gap: 10px; }
.page-stats .tsf-title { margin: 0; }

.page-stats .tsf-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.page-stats .tsf-tile { text-align: center; padding: 16px 8px 12px; }
.page-stats .tsf-val {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-stats .tsf-of { font-size: .85rem; font-weight: 700; }
.page-stats .tsf-lbl { font-weight: 700; font-size: .82rem; margin-top: 3px; }

.page-stats .tsf-empty {
  margin-top: 14px;
  text-align: center;
  border: 1px dashed rgba(255, 201, 77, .45);
  background:
    radial-gradient(520px 160px at 50% 0%, rgba(255, 201, 77, .07), transparent 70%),
    var(--surface);
}
.page-stats .tsf-empty-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 12px rgba(255, 201, 77, .4));
  animation: stats-glow 3s ease-in-out infinite;
}
.page-stats .tsf-empty-title { margin: 8px 0 4px; }
.page-stats .tsf-empty-line { margin: 0; }
.page-stats .tsf-empty-line .team-label { font-size: .9rem; }

.page-stats .tsf-chart-card { margin-top: 14px; }
.page-stats .tsf-chart-card .card-header { flex-wrap: wrap; }
.page-stats .tsf-chart-scroll { overflow-x: auto; padding: 14px 16px 12px; }
.page-stats .tsf-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: min-content;
}
.page-stats .tsf-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 38px;
  flex-shrink: 0;
  cursor: default;
}
.page-stats .tsf-bar-val { font-size: .72rem; font-weight: 800; color: var(--gold); }
.page-stats .tsf-bar-track {
  display: flex;
  align-items: flex-end;
  height: 90px;
  width: 100%;
  background: var(--surface-2);
  border-radius: 6px 6px 3px 3px;
  overflow: hidden;
}
.page-stats .tsf-bar-track i {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: 6px 6px 0 0;
  background: var(--gradient-gold);
  opacity: .9;
  transition: height .5s cubic-bezier(.2, .7, .3, 1);
}
.page-stats .tsf-bar:hover .tsf-bar-track i { opacity: 1; }
.page-stats .tsf-bar-lbl {
  font-size: .62rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.page-stats .tsf-form-card { margin-top: 14px; }
.page-stats .tsf-form-card .card-header { flex-wrap: wrap; }
.page-stats .tsf-form-wrap { max-height: 430px; overflow: auto; }
.page-stats .tsf-form-table { min-width: 620px; }
.page-stats .tsf-form-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.page-stats .tsf-team-td { white-space: nowrap; }
.page-stats .tsf-wdl { white-space: nowrap; }
.page-stats .tsf-wdl .badge {
  font-size: .62rem;
  padding: 1px 6px;
  margin-right: 3px;
}
.page-stats .tsf-last { white-space: nowrap; }
.page-stats .tsf-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 3px;
  background: var(--surface-3);
}
.page-stats .tsf-dot.w { background: var(--win, var(--green)); }
.page-stats .tsf-dot.d { background: var(--draw, var(--gold)); }
.page-stats .tsf-dot.l { background: var(--loss, var(--red)); }

.page-stats .tsf-records {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.page-stats .tsf-rec {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
}
.page-stats .tsf-rec-icon { font-size: 1.5rem; line-height: 1.2; }
.page-stats .tsf-rec-body { min-width: 0; line-height: 1.4; }
.page-stats .tsf-rec-title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.page-stats .tsf-rec-match {
  display: block;
  font-size: .9rem;
  font-weight: 600;
}
.page-stats .tsf-rec-match .team-label { gap: 5px; }
.page-stats .tsf-rec-sub { display: block; margin-top: 2px; }

/* ---------------- simulator hero ---------------- */

.page-stats .sim-hero {
  background:
    radial-gradient(700px 220px at 90% -40%, rgba(255, 201, 77, .10), transparent 65%),
    var(--surface);
}

.page-stats .sim-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.page-stats .num-pills {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.page-stats button.pill {
  font-family: var(--font);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
}
.page-stats button.pill:hover { color: var(--text); border-color: var(--line-2); }
.page-stats button.pill.active { background: var(--gold); border-color: var(--gold); color: #0a0e1a; }
.page-stats button.pill:disabled { opacity: .45; cursor: not-allowed; }

.page-stats .sim-progress { margin-top: 16px; }
.page-stats .sim-progress-bar { height: 10px; }
.page-stats .sim-progress-bar > span {
  background: var(--gradient-gold);
  transition: width .25s ease;
}
.page-stats .sim-progress .small { margin-top: 7px; }

.page-stats .sim-empty { margin-top: 16px; }

/* ---------------- market odds ---------------- */

.page-stats .market-lead { margin: 2px 0 14px; }
.page-stats .market-grid { align-items: start; }

/* ---------------- favorites podium ---------------- */

.page-stats .favorites-head { margin: 26px 0 4px; }
.page-stats .favorites-title { margin: 0; font-size: 1.15rem; }

.page-stats .podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
  margin: 14px 0 18px;
}
.page-stats .podium-spot {
  text-align: center;
  padding: 18px 12px 16px;
  position: relative;
  transition: transform .18s, box-shadow .18s;
  animation: stats-pop .35s ease backwards;
}
.page-stats .podium-spot:hover { transform: translateY(-4px); }
.page-stats .podium-spot.p1 { order: 2; animation-delay: .05s; }
.page-stats .podium-spot.p2 { order: 1; animation-delay: .15s; }
.page-stats .podium-spot.p3 { order: 3; animation-delay: .25s; }
.page-stats .podium-spot.p1 {
  padding: 28px 12px 22px;
  border-color: rgba(255, 201, 77, .55);
  background:
    radial-gradient(320px 140px at 50% 0%, rgba(255, 201, 77, .16), transparent 70%),
    var(--surface);
  box-shadow: 0 0 36px rgba(255, 201, 77, .12);
}
.page-stats .podium-spot.p1:hover { box-shadow: 0 6px 44px rgba(255, 201, 77, .22); }
.page-stats .podium-spot .medal { font-size: 1.5rem; }
.page-stats .podium-spot.p1 .medal { font-size: 2rem; filter: drop-shadow(0 0 10px rgba(255, 201, 77, .6)); }
.page-stats .podium-flag { display: block; margin: 8px 0 2px; }
.page-stats .podium-flag .flag-img { height: 44px; border-radius: 7px; margin: 0 auto; }
.page-stats .podium-spot.p1 .podium-flag .flag-img { height: 66px; border-radius: 9px; }
.page-stats .podium-name { font-weight: 800; margin-top: 8px; font-size: 1.02rem; }
.page-stats .podium-spot.p1 .podium-name { font-size: 1.25rem; }
.page-stats .podium-pct { font-size: 1.35rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.page-stats .podium-spot.p1 .podium-pct { font-size: 1.9rem; }

/* ---------------- probability table ---------------- */

.page-stats .sim-table-card .card-header { flex-wrap: wrap; }
.page-stats .sim-table-wrap { overflow-x: auto; }
.page-stats .sim-table { min-width: 680px; }
.page-stats .sim-table-wrap:not(.show-all) tr.extra-row { display: none; }
.page-stats .sim-table tr.top3 td { background: rgba(255, 201, 77, .045); }
.page-stats .sim-table .team-td { white-space: nowrap; }
.page-stats .sim-table .dim-td { color: var(--text-dim); }
.page-stats .champ-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
}
.page-stats .champ-bar {
  flex: 1;
  min-width: 86px;
  height: 8px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
}
.page-stats .champ-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--gradient-gold);
  transition: width .8s cubic-bezier(.2, .7, .3, 1);
}
.page-stats .champ-val { min-width: 52px; text-align: right; }
.page-stats .sim-table-note { padding: 10px 16px 14px; margin: 0; }

/* ---------------- story mode ---------------- */

.page-stats .story-result { animation: stats-pop .35s ease; }

.page-stats .story-champion {
  position: relative;
  text-align: center;
  padding: 38px 20px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 201, 77, .45);
  background:
    radial-gradient(620px 220px at 50% -20%, rgba(255, 201, 77, .18), transparent 70%),
    var(--surface);
  overflow: hidden;
}
.page-stats .story-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 28%, rgba(255, 201, 77, .22), transparent 55%);
  animation: stats-glow 3.2s ease-in-out infinite;
  pointer-events: none;
}
.page-stats .story-champ-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--gold);
}
.page-stats .story-champ-flag { display: block; margin: 16px 0 6px; }
.page-stats .story-champ-flag .flag-img {
  height: 74px;
  border-radius: 10px;
  margin: 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 36px rgba(255, 201, 77, .25);
}
.page-stats .story-champ-name {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.5px;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-stats .story-final-line { margin: 6px 0 4px; font-weight: 600; }

.page-stats .story-h { font-size: 1.05rem; margin: 22px 0 10px; }

.page-stats .story-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.page-stats .story-group { padding: 10px 12px 8px; transition: border-color .15s, transform .15s; }
.page-stats .story-group:hover { border-color: var(--line-2); transform: translateY(-2px); }
.page-stats .sg-head {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.page-stats .sg-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  font-size: .86rem;
}
.page-stats .sg-row .team-label { gap: 5px; min-width: 0; }
.page-stats .sg-row .team-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.page-stats .sg-pos {
  width: 16px;
  text-align: center;
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-faint);
  flex-shrink: 0;
}
.page-stats .sg-row.g1 .sg-pos { color: var(--gold); }
.page-stats .sg-row.g1 { font-weight: 700; }
.page-stats .sg-row.g4 { opacity: .55; }
.page-stats .sg-row.g3:not(.q) { opacity: .75; }
.page-stats .sg-pts { color: var(--text-dim); font-size: .8rem; width: 18px; text-align: right; flex-shrink: 0; }
.page-stats .sg-badge { font-size: .6rem; padding: 1px 7px; }

.page-stats .story-rounds { display: grid; gap: 12px; }
.page-stats .story-round .card-header { font-size: .95rem; }
.page-stats .story-matches { padding: 8px 12px; }
.page-stats .story-round.r32 .story-matches,
.page-stats .story-round.r16 .story-matches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
}
.page-stats .story-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  font-size: .88rem;
  transition: background .12s;
}
.page-stats .story-match:hover { background: var(--surface-2); }
.page-stats .story-match.champ-path {
  border-left-color: var(--gold);
  background: rgba(255, 201, 77, .05);
}
.page-stats .sm-team { display: flex; min-width: 0; opacity: .6; }
.page-stats .sm-team.away { justify-content: flex-end; }
.page-stats .sm-team.win { opacity: 1; font-weight: 700; }
.page-stats .sm-team .team-label { gap: 5px; min-width: 0; }
.page-stats .sm-team .team-label span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-stats .sm-score {
  font-weight: 800;
  background: var(--surface-3);
  border-radius: 7px;
  padding: 1px 9px;
  white-space: nowrap;
}
.page-stats .pen-mark {
  font-style: normal;
  font-size: .62rem;
  font-weight: 800;
  color: var(--gold);
  vertical-align: super;
  margin-left: 3px;
  cursor: help;
}

/* ---------------- 2026 by the numbers ---------------- */

.page-stats .num-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.page-stats .num-tile { text-align: center; padding: 18px 10px 14px; }
.page-stats .num-val {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-stats .num-lbl { font-weight: 700; font-size: .88rem; margin-top: 2px; }
.page-stats .num-sub { margin-top: 2px; }

.page-stats .confed-bar {
  display: flex;
  height: 26px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.page-stats .confed-seg {
  display: block;
  height: 100%;
  min-width: 6px;
  transition: filter .15s;
}
.page-stats .confed-seg:hover { filter: brightness(1.25); }
.page-stats .confed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 10px;
}
.page-stats .confed-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--text-dim);
}
.page-stats .confed-chip i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.page-stats .confed-chip b { color: var(--text); }
.page-stats .debut-line { margin: 14px 0 0; }
.page-stats .debut-line .team-label { font-size: .85rem; }
.page-stats .absent-line { margin: 8px 0 0; }
.page-stats .absent-line .flag-img { height: .95em; }

/* ---------------- golden boot race (real scorers + market) ---------------- */

.page-stats .gb-lead { margin: 2px 0 14px; }
.page-stats .gb-grid { align-items: start; }
.page-stats .gb-side { display: flex; flex-direction: column; gap: 14px; }

.page-stats .gbr-wrap { overflow-x: auto; }
.page-stats .gbr-table { width: 100%; min-width: 320px; }
.page-stats .gbr-player { font-weight: 600; }
.page-stats .gbr-team { white-space: nowrap; }
.page-stats .gbr-team .gbr-flag { margin-right: 6px; }
.page-stats .gbr-team .flag-img { height: .95em; vertical-align: -1px; }
.page-stats .gbr-goals { color: var(--gold); font-size: 1.02rem; }
.page-stats .gbr-pens { font-weight: 400; white-space: nowrap; }
.page-stats tr.gbr-leader td { background: rgba(255, 201, 77, .06); }
.page-stats .gbr-foot { padding: 8px 16px 12px; margin: 0; }

.page-stats .gbr-empty { text-align: center; padding: 30px 16px; }
.page-stats .gbr-empty-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px rgba(255, 201, 77, .45));
  animation: stats-glow 3s ease-in-out infinite;
}
.page-stats .gbr-empty-title { margin: 8px 0 4px; }
.page-stats .gbr-empty-line { margin: 0; }

/* ---------------- fantasy five ---------------- */

.page-stats .ff-grid { align-items: start; }
.page-stats .ff-intro { margin: 0 0 12px; }
.page-stats .ff-picks { display: flex; flex-direction: column; gap: 6px; }
.page-stats .ff-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.page-stats .ff-pick-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.page-stats .ff-pick-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-stats .ff-pick-team { display: inline-flex; align-items: center; gap: 5px; }
.page-stats .ff-pick-team .flag-img { height: .95em; }
.page-stats .ff-pick-pts { font-weight: 800; color: var(--gold); white-space: nowrap; }
.page-stats .ff-pick-pts small { color: var(--text-faint); font-weight: 600; }
.page-stats .ff-remove {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-faint);
  font: inherit;
  font-size: .72rem;
  line-height: 1;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.page-stats .ff-remove:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 57, 70, .08);
}
.page-stats .ff-slot {
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
  background: var(--bg-2);
}
.page-stats .ff-search-wrap { margin-top: 12px; }
.page-stats .ff-results {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  max-height: 300px;
  overflow: auto;
}
.page-stats .ff-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color .12s, transform .12s;
}
.page-stats .ff-result:hover:not(:disabled) {
  border-color: rgba(255, 201, 77, .55);
  transform: translateY(-1px);
}
.page-stats .ff-result:disabled { opacity: .5; cursor: not-allowed; }
.page-stats .ff-res-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.page-stats .ff-res-main b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-stats .ff-res-team { display: inline-flex; align-items: center; gap: 5px; }
.page-stats .ff-res-team .flag-img { height: .95em; }
.page-stats .ff-res-goals { white-space: nowrap; }
.page-stats .ff-add-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  color: var(--gold);
  font-weight: 800;
}
.page-stats .ff-hint { margin: 8px 2px 0; }

/* Name + FC 26 rating pill on one line; the name truncates, the pill never does. */
.page-stats .ff-name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.page-stats .ff-name-line b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* FC 26 rating pills (markup shared with the squads page; styles page-scoped) */
.page-stats .fc-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 27px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.page-stats .fc-gold {
  background: var(--gradient-gold);
  color: #0a0e1a;
  box-shadow: 0 0 10px rgba(255, 201, 77, .35);
}
.page-stats .fc-green {
  background: rgba(25, 195, 125, .14);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(25, 195, 125, .35);
}
.page-stats .fc-blue {
  background: rgba(63, 142, 252, .12);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(63, 142, 252, .3);
}
.page-stats .fc-dim {
  background: var(--surface-3);
  color: var(--text-faint);
  box-shadow: inset 0 0 0 1px var(--line);
}
.page-stats .ff-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 201, 77, .35);
  background: rgba(255, 201, 77, .05);
}
.page-stats .ff-total b { font-size: 1.45rem; color: var(--gold); }
.page-stats .ff-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.page-stats .ff-note { margin-top: 8px; }

/* ---------------- champions timeline ---------------- */

.page-stats .title-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.page-stats .title-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: .85rem;
  font-weight: 600;
  cursor: default;
  transition: border-color .15s, transform .15s;
}
.page-stats .title-chip:hover { border-color: rgba(255, 201, 77, .5); transform: translateY(-1px); }
.page-stats .title-chip b { letter-spacing: 1px; }

.page-stats .champ-card { padding: 6px 8px; }
.page-stats .champ-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.page-stats .champ-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(var(--line-2), var(--line));
  border-radius: 2px;
}
.page-stats .champ-item {
  position: relative;
  display: grid;
  grid-template-columns: 58px 30px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 12px 9px 0;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.page-stats .champ-item:hover { background: var(--surface-2); }
.page-stats .champ-year {
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 0;
  font-size: .85rem;
}
.page-stats .champ-item:hover .champ-year { border-color: rgba(255, 201, 77, .5); }
.page-stats .champ-flag .flag-img { height: 1.2em; }
.page-stats .champ-info { min-width: 0; line-height: 1.35; }
.page-stats .champ-note { display: block; }
.page-stats .champ-host { white-space: nowrap; }

/* ---------------- record books ---------------- */

.page-stats .rec-list { display: flex; flex-direction: column; gap: 2px; }
.page-stats .rec-row {
  display: grid;
  grid-template-columns: 20px 28px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  transition: background .12s;
}
.page-stats .rec-row:hover { background: var(--surface-2); }
.page-stats .rec-rank { text-align: center; font-size: .8rem; }
.page-stats .rec-flag .flag-img { height: 1.15em; }
.page-stats .rec-main { min-width: 0; line-height: 1.3; }
.page-stats .rec-note { display: block; }
.page-stats .rec-bar {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 5px;
  max-width: 260px;
}
.page-stats .rec-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--gradient-gold);
  transition: width .9s cubic-bezier(.2, .7, .3, 1);
}
.page-stats .rec-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--gold);
}
.page-stats .rec-val small { font-size: .7rem; color: var(--text-faint); margin-left: 2px; }
.page-stats .rec-foot { margin: 10px 2px 0; }

.page-stats .model-foot { margin-top: 34px; text-align: center; }

/* ---------------- animations ---------------- */

@keyframes stats-pop {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes stats-glow {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1000px) {
  .page-stats .story-groups { grid-template-columns: repeat(3, 1fr); }
  .page-stats .num-tiles { grid-template-columns: repeat(3, 1fr); }
  .page-stats .tsf-tiles { grid-template-columns: repeat(3, 1fr); }
  .page-stats .tsf-records { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .page-stats .story-round.r32 .story-matches,
  .page-stats .story-round.r16 .story-matches { grid-template-columns: 1fr; column-gap: 0; }
  .page-stats .story-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .page-stats .tsf-tiles { grid-template-columns: repeat(2, 1fr); }
  .page-stats .tsf-records { grid-template-columns: 1fr; }
  .page-stats .tsf-val { font-size: 1.5rem; }
  .page-stats .tsf-bar { width: 32px; }
  .page-stats .podium { grid-template-columns: 1fr; align-items: stretch; }
  .page-stats .podium-spot.p1 { order: 1; }
  .page-stats .podium-spot.p2 { order: 2; }
  .page-stats .podium-spot.p3 { order: 3; }
  .page-stats .num-tiles { grid-template-columns: repeat(2, 1fr); }
  .page-stats .sim-controls .btn-lg { width: 100%; }
  .page-stats .num-pills { width: 100%; justify-content: center; }
  .page-stats .champ-item { grid-template-columns: 52px 26px 1fr; }
  .page-stats .champ-host { grid-column: 3; justify-self: start; margin-top: -4px; }
  .page-stats .champ-timeline::before { left: 25px; }
  .page-stats .story-groups { grid-template-columns: 1fr; }
  .page-stats .story-champ-name { font-size: 1.6rem; }
  .page-stats .ff-actions .btn-primary { width: 100%; }
  .page-stats .ff-results { max-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-stats .podium-spot,
  .page-stats .story-result { animation: none; }
  .page-stats .story-glow,
  .page-stats .gbr-empty-icon,
  .page-stats .tsf-empty-icon { animation: none; }
  .page-stats .champ-bar span,
  .page-stats .rec-bar i,
  .page-stats .tsf-bar-track i,
  .page-stats .ff-result,
  .page-stats .sim-progress-bar > span { transition: none; }
}
