/* ============================================================
   GOLDENBOOTRACE.COM — STYLES v3
   Direction: broadcast-grade SaaS. Clean product polish with
   sports energy. Space Grotesk for display and numerals, Inter
   for reading. One gradient hero panel, card-based board, the
   goal-tick strip as the signature element throughout.
   ============================================================ */

:root {
  --bg:        #f5f6f1;
  --surface:   #ffffff;
  --surface-2: #eef0e9;
  --ink:       #10160f;
  --muted:     #5f6d60;
  --line:      #e4e7dd;
  --line-2:    #d6dacd;

  --green:      #0d8043;
  --green-deep: #075c2e;
  --green-ink:  #0a3d20;
  --gold:       #b8860d;
  --gold-mid:   #dda414;
  --gold-hi:    #f4c94f;
  --gold-pale:  #fdf4dd;
  --live:       #e12d2d;

  --panel:      linear-gradient(128deg, #0d6b39 0%, #084a26 58%, #06371c 100%);
  --panel-ink:  #f2f4ec;
  --panel-mut:  #a9c4ad;
  --panel-line: rgba(242, 244, 236, 0.16);

  --grad-gold: linear-gradient(120deg, var(--gold-hi) 0%, var(--gold-mid) 55%, var(--gold) 100%);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(16, 22, 15, 0.05), 0 4px 16px rgba(16, 22, 15, 0.05);
  --shadow-2: 0 2px 4px rgba(16, 22, 15, 0.06), 0 12px 32px rgba(16, 22, 15, 0.10);

  --maxw: 1120px;
  --pad: clamp(16px, 4vw, 36px);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg:        #0b110d;
  --surface:   #121a14;
  --surface-2: #18231b;
  --ink:       #eef1e7;
  --muted:     #93a396;
  --line:      #212d24;
  --line-2:    #2c3a2f;

  --green:      #2eaa62;
  --green-deep: #1d7a45;
  --green-ink:  #bfe3cb;
  --gold:       #e5b33d;
  --gold-mid:   #ecc158;
  --gold-hi:    #f6d987;
  --gold-pale:  rgba(230, 179, 61, 0.10);

  --panel:      linear-gradient(128deg, #0e3b21 0%, #0a2b18 58%, #071f11 100%);
  --panel-ink:  #eef1e7;
  --panel-mut:  #8fae95;
  --panel-line: rgba(238, 241, 231, 0.14);

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; }
a { color: inherit; }
code {
  font-family: var(--font-display);
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 14px; top: -50px;
  background: var(--green); color: #fff;
  font-family: var(--font-display); font-weight: 600;
  padding: 9px 18px; border-radius: 999px; z-index: 200;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---- layout stability: reserve space for async content so the
   page doesn't jump as boards, chips and rail cards arrive ---- */
.hero-strip { min-height: 40px; }
.results { min-height: 300px; }
.board__list { min-height: 420px; }
@media (max-width: 780px) { .board__list { min-height: 360px; } .results { min-height: 0; } }
.rail-card { min-height: 120px; }

/* ---- below-the-fold sections render lazily ---- */
.cols__rail, .other, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 12px var(--pad);
  display: flex; align-items: center; gap: clamp(10px, 2.5vw, 26px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  color: var(--ink);
}
.brand b { color: var(--gold); font-weight: 700; }

.nav__links { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.nav__links::-webkit-scrollbar { display: none; }
.navlink {
  font-family: var(--font-display);
  font-weight: 500; font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
  display: inline-flex; align-items: center; gap: 7px;
}
.navlink:hover { color: var(--ink); background: var(--surface-2); }
.navlink.is-active { color: #fff; background: var(--green); font-weight: 600; }
[data-theme="dark"] .navlink.is-active { color: #06170c; }
.navlink .dot--live { margin-left: 2px; }

.nav__end { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav__burger {
  display: none;
  align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
}
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.2s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); transform: rotate(18deg); }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }

/* ========================= BANNERS ========================= */
.notice {
  max-width: var(--maxw); margin: 14px auto 0;
  padding: 0 var(--pad);
}
.notice__in {
  font-size: 13px; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 14px;
  box-shadow: var(--shadow-1);
}
.notice--error .notice__in { color: var(--ink); border-color: var(--gold-mid); }

/* ====================== HERO PANEL ====================== */
.hero {
  position: relative;
  margin: 20px 0 26px;
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: clamp(18px, 3vw, 36px);
  padding: clamp(24px, 4vw, 44px);
}
.hero__decor {
  position: absolute; inset: 0;
  color: var(--panel-line);
  pointer-events: none;
}
.hero__decor svg { position: absolute; right: -60px; top: -80px; height: 150%; width: auto; }
.hero__decor .spark {
  position: absolute; width: 9px; border-radius: 3px;
  background: var(--grad-gold); opacity: 0.85;
}
.hero__main { position: relative; min-width: 0; }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.04em;
  color: #ffd9d9;
  background: rgba(225, 45, 45, 0.22);
  border: 1px solid rgba(255, 130, 130, 0.45);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.season-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
  color: var(--panel-mut);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot--live { background: var(--live); animation: pulse 1.6s infinite; }
.dot--gold { background: var(--gold-hi); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(225, 45, 45, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(225, 45, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 45, 45, 0); }
}

.hero__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero__title .gold {
  white-space: nowrap;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 0 0 22px;
  max-width: 46ch;
  color: var(--panel-mut);
  font-size: 15px;
}

/* compact one-line race summary under the hero title */
.hero-strip {
  display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 9px 20px;
  backdrop-filter: blur(4px);
  font-size: 14px;
  color: var(--panel-mut);
}
.hero-strip__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-strip__item b { color: var(--panel-ink); font-family: var(--font-display); font-weight: 700; }
.hero-strip .num {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--gold-hi);
}
.hero-strip__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--panel-line); }
@media (max-width: 560px) { .hero-strip { border-radius: var(--r-md); } }

/* results card inside hero */
.results {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-line);
  border-radius: var(--r-md);
  padding: 16px 16px 12px;
  backdrop-filter: blur(6px);
  align-self: start;
}
.results__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.results__list { list-style: none; margin: 0; padding: 0; }
.res {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--panel-line);
  font-size: 13.5px;
}
.res:last-child { border-bottom: 0; }
.res__state {
  width: 42px; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 11.5px;
  color: var(--panel-mut);
  display: inline-flex; align-items: center; gap: 5px;
}
.res--live .res__state { color: #ffb9b9; }
.res__match { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.res__team {
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  width: 42px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.res__match .res__team:last-child { text-align: right; }
.res__score {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 1px 9px;
}
.res__date { font-size: 11.5px; color: var(--panel-mut); flex-shrink: 0; }
.nextup {
  display: flex; align-items: center; gap: 9px;
  margin-top: 10px; padding-top: 11px;
  border-top: 1px solid var(--panel-line);
  font-size: 13px;
}
.nextup:empty { display: none; }
.nextup__label {
  font-family: var(--font-display); font-weight: 600; font-size: 11px;
  color: #06170c;
  background: var(--grad-gold);
  border-radius: 6px; padding: 2px 8px;
}
.nextup__match { font-family: var(--font-display); font-weight: 600; }
.nextup__when { color: var(--panel-mut); margin-left: auto; }

/* ==================== SECTION HEADERS ==================== */
.section-bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin: 0 0 14px;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: "";
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--grad-gold);
  transform: rotate(45deg);
}
.section-note {
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 9px;
}
.section-note b { color: var(--green); font-weight: 600; }

/* ========================== BOARD ========================== */
.board { margin: 0 0 34px; }

.board__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: clamp(10px, 2vw, 18px);
}

.board__head, .row {
  display: grid;
  grid-template-columns: 42px minmax(230px, 40%) 1fr 72px 72px;
  align-items: center;
  gap: 10px;
}
.board__head {
  padding: 6px 16px 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.board__head .col-goals { color: var(--gold); }
.board__head .col-goals, .board__head .col-assists { text-align: right; }
.board__head .col-race em { font-style: normal; font-weight: 400; opacity: 0.75; }

.board__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.row {
  padding: 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: background 0.15s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.15s ease;
}
.row:hover {
  background: var(--surface-2);
  border-color: var(--line);
  transform: translateY(-1px);
}

.row__rank {
  font-family: var(--font-display);
  font-weight: 600; font-size: 15.5px;
  color: var(--muted);
  text-align: center;
}
.row__rank--silver { color: #8b97a3; }
.row__rank--bronze { color: #b07a45; }

.row__player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row__id { min-width: 0; }
.row__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row__meta {
  display: block;
  margin-top: 1px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row__goals, .row__assists { font-family: var(--font-display); text-align: right; }
.row__goals { font-weight: 700; font-size: 21px; color: var(--gold); letter-spacing: -0.01em; }
.row__assists { font-weight: 500; font-size: 15px; color: var(--muted); }

/* leader row: gradient border card */
.row--leader {
  position: relative;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad-gold) border-box;
  border: 2px solid transparent;
  padding-top: 15px; padding-bottom: 15px;
  box-shadow: 0 4px 22px rgba(216, 164, 20, 0.16);
}
[data-theme="dark"] .row--leader {
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    var(--grad-gold) border-box;
}
.row--leader:hover { transform: none; }
.row--leader .row__rank {
  font-size: 24px; font-weight: 700;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.row--leader .row__name { font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; }
.row--leader .row__goals { font-size: 27px; }
.leader-pill {
  display: inline-block;
  vertical-align: 1px;
  margin-right: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 10px; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a2a03;
  background: var(--grad-gold);
  border-radius: 6px;
  padding: 2.5px 8px;
}

.flag {
  height: 13px; width: auto;
  display: inline-block; vertical-align: -1.5px;
  border-radius: 2.5px;
  box-shadow: 0 0 0 1px rgba(16, 22, 15, 0.10);
}
[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(238, 241, 231, 0.18); }

.crest {
  height: 15px; width: 15px;
  object-fit: contain;
  display: inline-block; vertical-align: -2.5px;
  margin-right: 3px;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.row--leader .avatar { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 5px var(--gold-pale); }
.avatar--initials {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600; color: var(--muted);
  border: 1px solid var(--line-2);
}

/* tick strip */
.ticks { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; }
.tick { width: 8px; height: 19px; border-radius: 3px; transform-origin: bottom; }
.tick--goal { background: var(--grad-gold); }
.tick--assist { background: transparent; border: 1.5px solid var(--line-2); height: 13px; }
[data-theme="dark"] .tick--assist { border-color: var(--muted); }
.row--leader .tick { width: 9px; height: 24px; }
.row--leader .tick--assist { height: 16px; }
.anim-ticks .tick { animation: tick-in 0.4s both; animation-delay: calc(var(--i) * 35ms); }
@keyframes tick-in {
  from { transform: scaleY(0); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}
.ticks__bar {
  width: 100%; max-width: 300px; height: 8px;
  border-radius: 4px; background: var(--surface-2); overflow: hidden;
}
.ticks__bar-fill { height: 100%; border-radius: 4px; background: var(--grad-gold); }

.just-scored { animation: scored 1.4s ease-out; }
@keyframes scored {
  0%   { background: rgba(244, 201, 79, 0.4); }
  100% { background: transparent; }
}

.board__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 16px 6px;
}
.btn {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn--ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-1px); }
.btn--solid {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
}
[data-theme="dark"] .btn--solid { color: #06170c; }
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(13, 128, 67, 0.3); }

.legend {
  margin: 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
}
.legend__tick { width: 7px; height: 14px; border-radius: 2.5px; display: inline-block; }
.legend__tick--goal { background: var(--grad-gold); }
.legend__tick--assist { border: 1.5px solid var(--line-2); background: transparent; height: 10px; margin-left: 12px; }

/* ======================== AD SLOTS ======================== */
.ad-slot { margin: 0 0 30px; }
.ad-slot__label {
  display: block; text-align: center;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.ad-slot__box { display: flex; justify-content: center; }
.ad-slot__placeholder {
  width: 100%; max-width: 728px; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 12.5px; color: var(--muted);
}

/* ========================= HUB CARDS ========================= */
.hubs { margin: 0 0 34px; }
.hubgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.hubcard {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.15s ease;
}
.hubcard::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-gold);
}
.hubcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--line-2);
}
.hubcard__name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: -0.015em;
  display: flex; align-items: center; gap: 9px;
}
.hubcard__years { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.hubcard__stat {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.hubcard__stat .num {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px; color: var(--gold);
}
.hubcard__cta {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13.5px;
  color: var(--green);
  display: inline-flex; align-items: center; gap: 6px;
}
.hubcard:hover .hubcard__cta { text-decoration: underline; }

/* ==================== OTHER ACTIVE RACES ==================== */
.other { margin: 0 0 40px; }
.other__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.race-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 12px;
}
.race-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.race-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
}
.race-card__meta { font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.race-card__list { list-style: none; margin: 0; padding: 0; }
.race-card__row {
  display: flex; align-items: center; gap: 11px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.race-card__row:last-child { border-bottom: 0; }
.race-card__rank { font-family: var(--font-display); font-size: 13px; color: var(--muted); width: 15px; }
.race-card__row:first-child .race-card__rank { color: var(--gold); font-weight: 700; }
.race-card__player {
  flex: 1; display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  min-width: 0;
}
.race-card__player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.race-card__goals { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--gold); }

/* ================= TWO-COLUMN LAYOUT + RAIL ================= */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 24px;
  align-items: start;
}
.cols__main { min-width: 0; }
.cols__rail {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 16px 16px 12px;
}
.rail-card__title {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.rail-card__title::before {
  content: "";
  width: 6px; height: 6px; border-radius: 2px;
  background: var(--grad-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.rail-card__sub { margin: 0 0 8px; font-size: 11.5px; color: var(--muted); }
.rail-card__more {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px;
  color: var(--green);
  text-decoration: none;
}
.rail-card__more:hover { text-decoration: underline; }

.minirows { list-style: none; margin: 6px 0 0; padding: 0; }
.minirow {
  display: flex; align-items: center; gap: 9px;
  padding: 6.5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.minirow:last-child { border-bottom: 0; }
.minirow__rank {
  font-family: var(--font-display);
  font-weight: 600; font-size: 12px;
  color: var(--muted);
  width: 14px; flex-shrink: 0;
}
.minirow:first-child .minirow__rank {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 700;
}
.minirow__name {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.minirow__val {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  color: var(--gold);
}
.minirow__up {
  margin-left: 7px;
  font-size: 10px; font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

.explore { list-style: none; margin: 8px 0 0; padding: 0; }
.explore__row {
  display: block;
  text-decoration: none;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: var(--r-sm);
  transition: background 0.15s ease;
}
.explore__row:hover { background: var(--surface-2); }
.explore__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600; font-size: 13.5px;
}
.explore__line { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }

.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 12.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.share-btn:hover { transform: translateY(-1px); border-color: var(--muted); background: var(--surface-2); }

@media (max-width: 980px) {
  .cols { grid-template-columns: 1fr; }
  .cols__rail { position: static; }
}

/* ==================== FORM RATINGS ==================== */
.delta { font-family: var(--font-display); font-weight: 700; font-size: 12px; white-space: nowrap; }
.delta--up { color: #178a43; }
.delta--down { color: #c92f2f; }
.delta--flat { color: var(--muted); font-weight: 500; }
.mmr { color: var(--green) !important; }
.row--leader .mmr {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.mmrbar {
  display: block; width: 100%; max-width: 320px; height: 9px;
  border-radius: 5px; background: var(--surface-2); overflow: hidden;
}
.mmrbar__fill {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--green) 0%, var(--gold-mid) 100%);
}
.minirow__val .delta { font-size: 10px; margin-left: 3px; }

.top-pill {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 9px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 10px; letter-spacing: 0.03em;
  color: var(--green-deep);
  background: color-mix(in srgb, var(--green) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 32%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
[data-theme="dark"] .top-pill { color: var(--green-ink); }

/* ==================== NEWSROOM ==================== */
.storycard {
  position: relative;
  overflow: hidden;
  margin: 20px 0 26px;
  background: var(--panel);
  color: var(--panel-ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: clamp(24px, 4vw, 46px);
}
.storycard__top {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px;
}
.storycard__date { font-size: 12.5px; color: var(--panel-mut); white-space: nowrap; }
.storycard__title {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 21ch;
}
.storycard__dek {
  position: relative;
  margin: 0 0 26px;
  font-size: clamp(14.5px, 1.4vw, 17px);
  color: var(--panel-mut);
  max-width: 58ch;
}
.facegrid {
  position: relative;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--panel-line);
  border-radius: var(--r-md);
  padding: clamp(14px, 2.4vw, 24px);
  backdrop-filter: blur(3px);
}
.facegrid__main { display: flex; align-items: center; gap: clamp(12px, 2vw, 20px); flex: 1; min-width: 260px; }
.facegrid__photo {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; object-position: top;
  background: rgba(255, 255, 255, 0.14);
  border: 3px solid var(--gold-hi);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.facegrid__photo--sm { width: 56px; height: 56px; border-width: 2px; border-color: var(--panel-line); box-shadow: none; }
.facegrid__initials {
  width: 104px; height: 104px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 34px;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid var(--gold-hi);
  flex-shrink: 0;
}
.facegrid__who { min-width: 0; }
.facegrid__name {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.facegrid__name--sm { font-size: 15px; font-weight: 600; }
.facegrid__team {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 5px;
  font-size: 13.5px; color: var(--panel-mut);
}
.facegrid__team .crest { height: 16px; width: 16px; object-fit: contain; }
.facegrid__stat { margin-left: auto; text-align: right; }
.facegrid__num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6vw, 74px);
  line-height: 0.95;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facegrid__num--sm { font-size: 22px; display: inline; margin-left: 8px; }
.facegrid__label {
  display: block;
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--panel-mut);
  margin-top: 4px;
}
.facegrid__vs {
  font-family: var(--font-display); font-weight: 600;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--panel-mut);
}
.facegrid__second { display: flex; align-items: center; gap: 10px; }
.facegrid__sublabel {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--panel-mut);
  white-space: nowrap;
}
.storycard__foot {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px;
}
.storycard__brand {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.storycard__brand b { color: var(--gold-hi); }
.storycard__brand span:last-child {
  margin-left: 10px;
  font-weight: 500; font-size: 12px;
  color: var(--panel-mut);
}
.share-btn--light {
  color: var(--panel-ink);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--panel-line);
}
.share-btn--light:hover { background: rgba(255, 255, 255, 0.18); border-color: var(--panel-mut); }

.storybody { max-width: 68ch; margin: 0 auto 40px; }
.storybody p { font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; }
.storybody__cta { margin-top: 26px; }

.bloggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.bloggrid--landing { margin-bottom: 40px; }
.blogcard {
  position: relative;
  display: flex; flex-direction: column; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 20px 20px 16px;
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.blogcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--gold-mid) 45%, var(--line));
}
.blogcard__type {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--green-deep);
  background: color-mix(in srgb, var(--green) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
}
[data-theme="dark"] .blogcard__type { color: var(--green-ink); }
.blogcard__type--record, .blogcard__type--winner {
  color: #8a5a00;
  background: color-mix(in srgb, var(--gold-mid) 16%, transparent);
  border-color: color-mix(in srgb, var(--gold-mid) 40%, transparent);
}
[data-theme="dark"] .blogcard__type--record,
[data-theme="dark"] .blogcard__type--winner { color: var(--gold-hi); }
.blogcard__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: 17px; line-height: 1.28; letter-spacing: -0.01em;
}
.blogcard__dek { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.blogcard__meta {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto; padding-top: 8px;
  font-size: 12px; color: var(--muted);
}
.blogcard__face { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--surface-2); }

@media (max-width: 640px) {
  .facegrid__stat { margin-left: 0; text-align: left; width: 100%; }
  .facegrid__vs { display: none; }
}

/* ==================== HUB PAGE (per competition) ==================== */
.hubhero {
  margin: 26px 0 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.hubhero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px);
  letter-spacing: -0.025em; line-height: 1.05;
}
.hubhero__title .gold {
  white-space: nowrap;
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hubhero__sub { margin: 0; color: var(--muted); max-width: 62ch; }

.seasons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.season-chip {
  font-family: var(--font-display);
  font-weight: 600; font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.season-chip:hover { color: var(--ink); transform: translateY(-1px); }
.season-chip.is-on { color: #fff; background: var(--green); border-color: var(--green); }
[data-theme="dark"] .season-chip.is-on { color: #06170c; }
.season-chip .dot--live { margin-left: 6px; }

.archive-note {
  margin: 0 0 30px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  padding: 14px 16px;
}

.winner-strip {
  display: flex; align-items: center; gap: 12px;
  background: var(--gold-pale);
  border: 1px solid color-mix(in srgb, var(--gold-mid) 40%, transparent);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-size: 14px;
}
.winner-strip b { font-family: var(--font-display); }
.winner-strip .num { font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 18px; }

/* ========================== FOOTER ========================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin-top: 24px;
}
[data-theme="dark"] .footer { background: transparent; }
.footer__in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 34px var(--pad) 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
}
.footer__brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer__brandline span { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer__brandline b { color: var(--gold); }
.footer__blurb { margin: 0; max-width: 44ch; color: var(--muted); font-size: 13.5px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer__nav a {
  color: var(--ink); font-size: 13.5px; text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer__nav a:hover { color: var(--green); border-color: var(--green); }
.footer__legal {
  grid-column: 1 / -1;
  margin: 6px 0 0; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 16px;
}

/* ==================== ALL-TIME PAGE ==================== */
.tracked-pill {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 10.5px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
.board--form .board__head,
.board--form .row { grid-template-columns: 42px minmax(240px, 44%) 1fr 84px 64px; }
.board--form .row__name { white-space: normal; line-height: 1.35; }
.board--form .row__meta .crest { height: 14px; width: 14px; }
@media (max-width: 780px) {
  .board--form .board__head,
  .board--form .row { grid-template-columns: 36px minmax(0, 1fr) 74px 56px; }
}

.board--noassists .board__head,
.board--noassists .row { grid-template-columns: 42px minmax(200px, 30%) 1fr 72px; }
.board--noassists .row__assists,
.board--noassists .col-assists { display: none; }
.season-chip--share { border-style: dashed; }

/* ======================== ABOUT PAGE ======================== */
.page { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 44px) var(--pad) 70px; }
.page h1 {
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(32px, 6vw, 48px);
  letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 22px;
}
.page h2 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 21px; letter-spacing: -0.015em;
  margin: 38px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.page h2::before {
  content: "";
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--grad-gold);
  transform: rotate(45deg);
}
.page p { color: var(--ink); opacity: 0.86; }
.page table { width: 100%; border-collapse: collapse; font-size: 14px; }
.page th {
  text-align: left;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.page td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); }
.page td.w { font-family: var(--font-display); font-weight: 700; color: var(--gold); }

/* ======================== RESPONSIVE ======================== */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .board__head, .row { grid-template-columns: 36px minmax(0, 1fr) 68px 60px; }
  .col-race, .row__ticks { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 10px var(--pad) 14px;
    gap: 2px;
  }
  .nav__links.is-open { display: flex; }
  .navlink { padding: 11px 14px; border-radius: var(--r-sm); font-size: 15.5px; }
  .nav { position: sticky; }
  .nav__in { position: relative; flex-wrap: nowrap; }
}
@media (max-width: 480px) {
  .row__name { font-size: 15px; }
  .row--leader .row__name { font-size: 18px; }
  .row .avatar { width: 36px !important; height: 36px !important; }
  .row--leader .avatar { width: 44px !important; height: 44px !important; }
  .board__head, .row { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .statgrid { grid-template-columns: 1fr 1fr; }
}
