/* ============================================================================
   Site UI-kit layout — header, footer, hero, ad slots, page scaffolding,
   bracket, head-to-head. Builds on tokens + components.css + model-chip.css.
   ============================================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--maxw-narrow); margin: 0 auto; padding: 0 24px; }

/* ---- HEADER -------------------------------------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--border-1);
}
.hdr-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--fg-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: -0.04em;
}
.brand .wm { font-family: var(--font-display); font-weight: 900; font-size: 16px; letter-spacing: -0.03em; color: var(--fg-1); line-height: 1; }
.brand .wm .vs { color: var(--accent); font-style: italic; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-3); text-decoration: none; padding: 8px 11px; border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); cursor: pointer; white-space: nowrap;
}
.nav a:hover { color: var(--fg-1); background: var(--surface-1); }
.nav a.active { color: var(--accent); }
.hdr-hash { display: none; }
@media (min-width: 1080px){ .hdr-hash { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); padding: 6px 10px; border: 1px solid var(--border-1); border-radius: var(--r-pill); } }
.hdr-hash .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--correct); }

/* mobile nav toggle */
.nav-toggle { display: none; margin-left: auto; background: var(--surface-1); border: 1px solid var(--border-1);
  color: var(--fg-1); width: 38px; height: 38px; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
@media (max-width: 860px){
  .nav { position: fixed; inset: 62px 0 auto 0; flex-direction: column; background: var(--bg-1);
    border-bottom: 1px solid var(--border-1); padding: 8px 24px 16px; gap: 2px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 13px; }
  .nav-toggle { display: inline-flex; }
}

/* ---- SECTION RHYTHM ------------------------------------------------------ */
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }

/* ---- HERO ---------------------------------------------------------------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero::before { /* faint pitch-line motif, not imagery */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(198,248,78,0.07), transparent 60%),
    linear-gradient(to right, transparent 49.7%, rgba(255,255,255,0.04) 49.85%, rgba(255,255,255,0.04) 50.15%, transparent 50.3%);
}
.hero-in { position: relative; max-width: 880px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-strip { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap;
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-pill); padding: 8px 8px 8px 14px; max-width: 100%; }
.hero-strip code { font-family: var(--font-mono); font-size: 11px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-strip .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---- CHAMPION TEASER ----------------------------------------------------- */
.champ-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px){ .champ-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .champ-grid { grid-template-columns: 1fr 1fr; } }
.champ-card { display: flex; flex-direction: column; gap: 12px; }
.champ-card .pick { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.champ-card .pick .fi { width: 26px; height: 19px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.champ-card .conf { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); margin-top: auto; }

/* ---- AD SLOTS ------------------------------------------------------------ */
.adslot {
  border: 1px dashed var(--border-2); border-radius: var(--r-sm);
  background: repeating-linear-gradient(135deg, transparent, transparent 9px, rgba(255,255,255,0.018) 9px, rgba(255,255,255,0.018) 18px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--fg-3); text-align: center; margin: 0 auto;
}
.adslot .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.adslot .dim { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); opacity: 0.7; }
.adslot .note { font-family: var(--font-mono); font-size: 9px; color: var(--fg-3); opacity: 0.55; }
.ad-728 { width: 728px; max-width: 100%; height: 90px; }
.ad-300x250 { width: 300px; height: 250px; }
.ad-300x600 { width: 300px; height: 600px; }
.ad-320x50 { width: 320px; max-width: 100%; height: 50px; flex-direction: row; gap: 8px; }

/* ---- FOOTER -------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--border-1); margin-top: 40px; padding: 30px 0 44px; }
.ftr-anchor { display: flex; justify-content: center; padding: 14px 0 22px; }
.ftr-cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.ftr .disclaimer { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: 0.02em; }
.ftr-links { display: flex; gap: 18px; }
.ftr-links a { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); text-decoration: none; cursor: pointer; }
.ftr-links a:hover { color: var(--fg-1); }

/* ---- LEADERBOARD LAYOUT -------------------------------------------------- */
.lb-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 1000px){ .lb-layout { grid-template-columns: 1fr; } }
.lb-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; }
.brier-mini { display: inline-flex; align-items: center; gap: 8px; }
.brier-mini .track { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.brier-mini .fill { height: 100%; background: var(--accent); border-radius: 3px; }
.explainer { border: 1px solid var(--border-1); border-radius: var(--r-md); margin-top: 22px; overflow: hidden; }
.explainer summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.explainer summary::-webkit-details-marker { display: none; }
.explainer summary .chev { margin-left: auto; transition: transform var(--dur) var(--ease-out); color: var(--fg-3); }
.explainer[open] summary .chev { transform: rotate(90deg); }
.explainer .body { padding: 0 18px 18px; color: var(--fg-2); line-height: 1.6; font-size: 15px; }

/* ---- GROUP STAGE --------------------------------------------------------- */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.chip-filter { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--border-1); background: var(--surface-1);
  color: var(--fg-2); cursor: pointer; transition: all var(--dur) var(--ease-out); }
.chip-filter:hover { border-color: var(--border-2); color: var(--fg-1); }
.chip-filter.active { background: var(--accent); color: var(--fg-on-accent); border-color: var(--accent); }
.match-list { display: flex; flex-direction: column; gap: 12px; }
.group-label { display: flex; align-items: center; gap: 12px; margin: 30px 0 14px; }
.group-label .ln { flex: 1; height: 1px; background: var(--border-1); }

/* predictions view: tabs + intro + ongoing re-forecasts */
.pred-tabs { margin: 18px 0 22px; }
.pred-intro { margin-top: 2px; max-width: 620px; line-height: 1.6; }

.update-meta { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }

.delta-legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px;
  padding: 10px 14px; border: 1px solid var(--border-1); border-radius: var(--r-pill); width: fit-content; max-width: 100%; }
.delta-legend .t-label { margin-right: 4px; }
.delta-legend .lk { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-right: 6px; }

.live-read { display: flex; align-items: flex-start; gap: 9px; margin: 2px 0 14px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--fg-2);
  background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-sm); padding: 9px 12px; }
.live-read .flipcount { color: var(--warn); }
.live-card.match { border-color: var(--border-2); }

.mmrow-live { grid-template-columns: 92px 1fr 52px; }
@media (max-width: 520px){ .mmrow-live { grid-template-columns: 78px 1fr 48px; gap: 8px; } }
.delta { font-family: var(--font-mono); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; white-space: nowrap; }
.delta.up { color: var(--correct); }
.delta.down { color: var(--fg-3); }
.delta.flat { color: var(--fg-3); opacity: 0.55; }
.delta.flip { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent);
  padding: 2px 7px; border-radius: var(--r-pill); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }

.match { padding: 16px 18px; }
.match-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.match-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-bottom: 16px; }
.match-score .home-t { justify-self: start; }
.match-score .away-t { justify-self: end; flex-direction: row-reverse; }
.match-score .mid { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--fg-1); text-align: center; }
.match-models { display: flex; flex-direction: column; gap: 8px; }
.mmrow { display: grid; grid-template-columns: 92px 1fr 22px; align-items: center; gap: 12px; }
@media (max-width: 520px){ .mmrow { grid-template-columns: 78px 1fr 20px; gap: 8px; } }

/* ---- BRACKET ------------------------------------------------------------- */
.bracket-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media (max-width: 1000px){ .bracket-layout { grid-template-columns: 1fr; } }
.champ-banner { position: relative; text-align: center; padding: 34px 20px; border-radius: var(--r-lg);
  border: 1px solid var(--border-2); background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface-1); overflow: hidden; }
.champ-banner .fi { width: 64px; height: 46px; border-radius: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.bracket-scroll { overflow-x: auto; margin-top: 26px; padding-bottom: 6px; }
.bracket-cols { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 14px; min-width: 1140px; }
.bcol { display: flex; flex-direction: column; gap: 12px; }
.bcol-head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); text-align: center; }
.tie { padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.tie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.tie-row .nm { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-3); }
.tie-row .nm .fi { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.tie-row.win .nm { color: var(--fg-1); font-weight: 700; }
.tie-row.win .prob { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.tie-row .prob { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.tie-row.win { position: relative; }

/* dropdown */
.select { position: relative; }
.select select { appearance: none; font-family: var(--font-mono); font-size: 13px; color: var(--fg-1);
  background: var(--surface-1); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 9px 36px 9px 13px; cursor: pointer; }
.select .chev { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; }

/* ---- AWARDS --------------------------------------------------------------- */
.awards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px){ .awards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .awards-grid { grid-template-columns: 1fr; } }
.award-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.award-lbl { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.award-val { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--fg-1); text-align: right; }
.award-val .fi { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }

/* ---- HEAD TO HEAD -------------------------------------------------------- */
.h2h-pick { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.h2h-vs { font-family: var(--font-display); font-weight: 900; font-style: italic; color: var(--accent); font-size: 20px; }
.h2h-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 24px 0; }
@media (max-width: 700px){ .h2h-summary { grid-template-columns: 1fr; } }
.stat-block .n { font-family: var(--font-mono); font-weight: 600; font-size: 30px; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.stat-block .l { font-size: 13px; color: var(--fg-3); margin-top: 4px; }
.h2h-row { padding: 14px 16px; display: grid; grid-template-columns: 1fr 120px 1fr; gap: 16px; align-items: center; }
@media (max-width: 640px){ .h2h-row { grid-template-columns: 1fr; gap: 10px; } }
.h2h-row.disagree { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }

/* ---- METHODOLOGY --------------------------------------------------------- */
.method h2 { margin-top: 44px; }
.method p { color: var(--fg-2); line-height: 1.7; font-size: 16px; }
.method ul { color: var(--fg-2); line-height: 1.8; padding-left: 20px; }
.vtable { width: 100%; border-collapse: collapse; margin: 16px 0; }
.vtable th, .vtable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-1); font-family: var(--font-mono); font-size: 13px; }
.vtable th { color: var(--fg-3); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.vtable td { color: var(--fg-2); }
.hashbox { display: flex; align-items: center; gap: 12px; background: var(--surface-1); border: 1px solid var(--border-1); border-radius: var(--r-sm); padding: 14px 16px; }
.hashbox code { font-family: var(--font-mono); font-size: 12px; color: var(--fg-2); word-break: break-all; }

/* confetti */
.confetti-pc { position: absolute; top: -12px; width: 8px; height: 12px; opacity: 0; will-change: transform; }
