/* ============================================================
   VictoryIndex — design system
   Direction: a broadcast truck at 11pm. Deep petrol ink, chalk
   type, and one signature device: the VI meter, a segmented bar
   that shows what built every score.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* surface */
  --ink:        #0A1015;
  --panel:      #0F1A22;
  --panel-2:    #14232D;
  --raised:     #1A2C38;
  --line:       #1E3444;
  --line-soft:  #172832;

  /* type */
  --chalk:      #E9F1F4;
  --text:       #C4D5DE;
  --muted:      #7B95A4;
  --faint:      #4E6675;

  /* signal */
  --cyan:       #37D3E0;
  --orange:     #FF6B3D;
  --gold:       #F2C14E;
  --violet:     #8B7BFF;
  --green:      #5FD08A;
  --pink:       #FF4D8D;
  --live:       #FF3B30;

  /* meter parts */
  --p-win: var(--cyan);
  --p-off: var(--gold);
  --p-def: var(--violet);
  --p-mom: var(--orange);
  --p-sos: var(--green);

  /* type stacks */
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* geometry */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --gutter: clamp(16px, 4vw, 36px);
  --max: 1360px;

  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.9);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 3px; }

/* the floodlight wash — one ambient effect, nothing more */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(55,211,224,.11), transparent 70%),
    radial-gradient(760px 380px at 92% -6%, rgba(255,107,61,.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* faint chalk grid, like a coach's board under everything */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

.shell { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--chalk);
  letter-spacing: -.01em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: var(--cyan);
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }
.num  { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   TICKER — the first thing you see, and it's live
   ============================================================ */
.ticker {
  background: #060B0F;
  border-bottom: 1px solid var(--line);
  height: 46px;
  display: flex; align-items: center;
  position: relative; z-index: 40;
}
.ticker-label {
  flex: 0 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  background: var(--live);
  color: #fff;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.ticker-rail {
  flex: 1; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  display: flex; align-items: stretch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.ticker-rail::-webkit-scrollbar { display: none; }

.tick {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  border-right: 1px solid var(--line-soft);
  font-size: .8rem;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background .15s;
}
.tick:hover { background: var(--panel); }
.tick-lg {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--faint);
}
.tick-team { display: flex; align-items: center; gap: 5px; }
.tick-team b { font-weight: 600; color: var(--text); font-size: .8rem; }
.tick-team .num { color: var(--chalk); font-weight: 600; }
.tick-team.win b, .tick-team.win .num { color: var(--chalk); }
.tick-team.lose b, .tick-team.lose .num { color: var(--faint); }
.tick-state {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.tick-state.is-live { color: var(--live); font-weight: 600; }

/* ============================================================
   HEADER
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10,16,21,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-row {
  display: flex; align-items: center; gap: 24px;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -.04em;
  border-radius: var(--r-sm);
  transform: skewX(-7deg);
}
.brand-mark span { transform: skewX(7deg); }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.32rem;
  text-transform: uppercase;
  letter-spacing: -.015em;
  color: var(--chalk);
}
.brand-name em { font-style: normal; color: var(--cyan); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop > button {
  padding: 8px 13px;
  border-radius: var(--r-sm);
  font-size: .84rem;
  font-weight: 500;
  color: var(--muted);
  background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: color .15s, background .15s;
}
.main-nav > a:hover, .nav-drop > button:hover { color: var(--chalk); background: var(--panel); }
.main-nav > a.active { color: var(--chalk); background: var(--panel-2); }

.nav-drop { position: relative; }
.nav-drop > button::after {
  content: ''; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 300px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu-head {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--faint);
  padding: 8px 10px 6px;
}
.nav-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: .87rem; color: var(--text);
}
.nav-menu a:hover { background: var(--raised); color: var(--chalk); }
.nav-menu a i { font-style: normal; font-size: 1rem; width: 20px; text-align: center; }
.nav-menu a small { margin-left: auto; font-family: var(--mono); font-size: .62rem; color: var(--faint); }

.nav-cta {
  padding: 9px 16px !important;
  background: var(--cyan) !important;
  color: #04161A !important;
  font-weight: 700 !important;
  border-radius: var(--r-sm);
  font-size: .82rem !important;
}
.nav-cta:hover { background: #5EE3EE !important; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--chalk); margin: 4px 0; transition: .2s; }

/* ============================================================
   LEAGUE BAR — the channel selector
   ============================================================ */
.league-bar {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  overflow-x: auto;
  scrollbar-width: none;
}
.league-bar::-webkit-scrollbar { display: none; }
.league-bar-inner { display: flex; gap: 2px; min-width: max-content; }
.league-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  font-family: var(--display);
  font-size: .96rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.league-tab:hover { color: var(--chalk); }
.league-tab.active { color: var(--chalk); border-bottom-color: var(--tab-accent, var(--cyan)); }
.league-tab i { font-style: normal; font-size: .95rem; }
.league-sep { width: 1px; background: var(--line); margin: 8px 10px; flex: 0 0 1px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(44px, 7vw, 84px) 0 clamp(36px, 5vw, 60px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 span { color: var(--cyan); }
.hero .lead { margin: 20px 0 30px; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-proof {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.proof-item .num { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--chalk); }
.proof-item small {
  display: block;
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
}

/* the hero card: a live top-5 board, not a stock illustration */
.board {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.board-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.24);
}
.board-head strong {
  font-family: var(--display); font-size: 1rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--chalk);
}
.board-head .stamp {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
}
.board-body { padding: 6px; }

.board-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  transition: background .15s;
}
.board-row:hover { background: var(--raised); }
.board-rank {
  font-family: var(--display); font-size: 1.35rem; font-weight: 800;
  color: var(--faint); text-align: center;
}
.board-row:first-child .board-rank { color: var(--gold); }
.board-team b { display: block; font-size: .95rem; font-weight: 600; color: var(--chalk); }
.board-team small { font-size: .72rem; color: var(--faint); }
.board-score { text-align: right; }
.board-score b {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 600; color: var(--cyan);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: #04161A; }
.btn-primary:hover { background: #5EE3EE; }
.btn-ghost { border-color: var(--line); color: var(--chalk); background: transparent; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-sm { padding: 8px 14px; font-size: .84rem; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.section-link {
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 6px;
}
.section-link:hover { gap: 10px; }

/* ============================================================
   ★ SIGNATURE: THE VI METER
   Five weighted segments, drawn to scale. The bar *is* the formula.
   ============================================================ */
.meter {
  display: flex;
  height: 7px;
  width: 100%;
  border-radius: 99px;
  overflow: hidden;
  background: var(--line-soft);
}
.meter span {
  display: block;
  height: 100%;
  transition: width .7s cubic-bezier(.22,.9,.28,1);
}
.meter .m-win { background: var(--p-win); }
.meter .m-off { background: var(--p-off); }
.meter .m-def { background: var(--p-def); }
.meter .m-mom { background: var(--p-mom); }
.meter .m-sos { background: var(--p-sos); }
.meter-lg { height: 14px; border-radius: var(--r-sm); }

.meter.solid { background: var(--line-soft); }
.meter.solid .m-solid {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width .5s cubic-bezier(.2,.8,.2,1);
}

.meter-key {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  font-family: var(--mono); font-size: .64rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.meter-key i {
  width: 9px; height: 9px; border-radius: 2px;
  display: inline-block; margin-right: 6px; vertical-align: -1px;
}
.meter-key span { white-space: nowrap; }

/* score chip */
.vi-score {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1rem;
  color: var(--chalk);
}
.vi-score.elite   { color: var(--gold); }
.vi-score.strong  { color: var(--cyan); }
.vi-score.solid   { color: var(--green); }
.vi-score.fringe  { color: var(--muted); }
.vi-score.rebuild { color: var(--faint); }

.delta {
  font-family: var(--mono); font-size: .68rem; font-weight: 600;
  padding: 2px 6px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 3px;
}
.delta.up   { color: var(--green);  background: rgba(95,208,138,.12); }
.delta.down { color: var(--orange); background: rgba(255,107,61,.12); }
.delta.flat { color: var(--faint);  background: rgba(255,255,255,.04); }
@keyframes flash { 0% { background: rgba(55,211,224,.22); } 100% { background: transparent; } }
.row-flash { animation: flash 1.4s ease-out; }

/* ============================================================
   TABLES — the core product surface
   ============================================================ */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
table.data thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data thead th.right, table.data td.right { text-align: right; }
table.data thead th.center, table.data td.center { text-align: center; }
table.data tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .88rem;
  vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: var(--panel-2); }
table.data td .num { font-variant-numeric: tabular-nums; }

.rank-cell {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 800;
  color: var(--faint);
  width: 54px;
}
tr[data-rank="1"] .rank-cell { color: var(--gold); }
tr[data-rank="2"] .rank-cell,
tr[data-rank="3"] .rank-cell { color: var(--chalk); }

.team-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.team-logo {
  width: 26px; height: 26px; flex: 0 0 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.6));
}
.team-logo.ph {
  display: grid; place-items: center;
  background: var(--raised); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .58rem; color: var(--muted);
}
.team-cell b { font-weight: 600; color: var(--chalk); font-size: .9rem; }
.team-cell small { display: block; font-size: .7rem; color: var(--faint); }
.seed {
  font-family: var(--mono); font-size: .62rem;
  color: var(--gold); margin-right: 4px;
}

.tag {
  display: inline-block;
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
  background: var(--raised); color: var(--muted);
}
.tag.live { background: rgba(255,59,48,.14); color: var(--live); }
.tag.final { background: rgba(255,255,255,.05); color: var(--faint); }

/* ============================================================
   SCOREBOARD CARDS
   ============================================================ */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.game {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .16s, transform .16s;
}
.game:hover { border-color: var(--raised); transform: translateY(-2px); }
.game.is-live { border-color: rgba(255,59,48,.4); }
.game-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(0,0,0,.2);
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.game-top .lg { color: var(--muted); font-weight: 600; }
.game-side {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center; gap: 11px;
  padding: 12px 14px;
}
.game-side + .game-side { border-top: 1px solid var(--line-soft); }
.game-side b { font-size: .92rem; font-weight: 600; color: var(--chalk); }
.game-side small { display: block; font-size: .68rem; color: var(--faint); font-family: var(--mono); }
.game-side .sc {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 600; color: var(--chalk);
}
.game-side.lost b, .game-side.lost .sc { color: var(--faint); }
.game-foot {
  padding: 9px 14px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; color: var(--muted);
}
.game-foot .vi-swing { font-family: var(--mono); font-size: .68rem; }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color .16s, transform .16s;
}
.card:hover { border-color: var(--raised); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .88rem; margin: 0; }
.card-stat .k {
  font-family: var(--display); font-size: 2.6rem; font-weight: 800;
  color: var(--chalk); line-height: 1;
}
.card-stat .l {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  margin-top: 8px;
}

/* news */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.story {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .16s, transform .16s;
}
.story:hover { border-color: var(--raised); transform: translateY(-2px); }
.story-img { aspect-ratio: 16/9; background: var(--raised); object-fit: cover; width: 100%; }
.story-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.story-meta {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
  display: flex; gap: 10px;
}
.story-meta .dot { color: var(--faint); }
.story h3 { font-family: var(--body); font-size: .98rem; font-weight: 600; text-transform: none; letter-spacing: 0; line-height: 1.35; color: var(--chalk); }
.story p { font-size: .82rem; color: var(--muted); margin: 0; }
.story time { margin-top: auto; font-family: var(--mono); font-size: .62rem; color: var(--faint); }

/* ============================================================
   CONTROLS
   ============================================================ */
.controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 22px 0;
}
.field {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0 12px;
  height: 40px;
}
.field label {
  font-family: var(--mono); font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.field input, .field select {
  background: none; border: 0; outline: 0;
  font-size: .86rem; color: var(--chalk);
  min-width: 130px; height: 100%;
}
.field select option { background: var(--panel-2); }
.field input::placeholder { color: var(--faint); }

.segmented {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
}
.segmented a {
  padding: 7px 14px;
  border-radius: 3px;
  font-family: var(--mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: background .15s, color .15s;
}
.segmented a:hover { color: var(--chalk); }
.segmented a.active { background: var(--raised); color: var(--chalk); }

/* ============================================================
   ADS — declared, boxed, never disguised as content
   ============================================================ */
.ad {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  overflow: hidden;
  margin: 26px 0;
}
.ad::before {
  content: 'Advertisement';
  position: absolute; top: 6px; left: 10px;
  font-family: var(--mono); font-size: .54rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.ad-leaderboard { min-height: 106px; }
.ad-inline      { min-height: 106px; }
.ad-rail        { min-height: 600px; }
.ad-house {
  padding: 34px 22px 22px;
  text-align: center;
}
.ad-house p {
  font-family: var(--display); font-size: 1.15rem;
  text-transform: uppercase; color: var(--chalk);
  max-width: 34ch; margin: 0 auto 14px;
}
.ad-sticky {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  margin: 0; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0;
  min-height: 54px;
  background: var(--panel-2);
  display: none;
}
.with-rail { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; }
.rail { position: sticky; top: 88px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: #070C10;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 36px;
  padding: 52px 0 40px;
}
.foot-brand p { color: var(--muted); font-size: .85rem; max-width: 34ch; margin: 14px 0 20px; }
.foot-col h4 {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a { font-size: .86rem; color: var(--muted); }
.foot-col a:hover { color: var(--cyan); }

.socials { display: flex; gap: 8px; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  transition: border-color .15s, color .15s, background .15s;
}
.socials a:hover { border-color: var(--cyan); color: var(--cyan); background: var(--panel); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.foot-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0 30px;
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--faint);
}
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot-bottom a:hover { color: var(--muted); }
.disclaimer {
  font-size: .72rem; color: var(--faint);
  max-width: 90ch; padding-bottom: 26px; line-height: 1.55;
}

/* ============================================================
   MISC
   ============================================================ */
.empty {
  padding: 60px 24px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--r-lg);
  background: var(--panel);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 46ch; }

.breadcrumb {
  font-family: var(--mono); font-size: .66rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  display: flex; gap: 8px; align-items: center;
  padding: 20px 0 0;
}
.breadcrumb a:hover { color: var(--cyan); }

.page-head { padding: 26px 0 6px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.page-head .lead { margin-top: 12px; }

.prose { max-width: 72ch; }
.prose h2 { margin: 36px 0 12px; font-size: 1.5rem; }
.prose h3 { margin: 26px 0 8px; font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--chalk); }
.prose p, .prose li { color: var(--text); font-size: .93rem; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 18px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.formula {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r);
  padding: 22px;
  font-family: var(--mono);
  font-size: .84rem;
  color: var(--chalk);
  overflow-x: auto;
  line-height: 2;
}
.formula b { color: var(--cyan); font-weight: 600; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 28px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  padding: 0 10px;
}
.pager a:hover { border-color: var(--cyan); color: var(--cyan); }
.pager .current { background: var(--raised); color: var(--chalk); border-color: var(--raised); }

form.stack { display: grid; gap: 14px; max-width: 560px; }
form.stack label {
  font-family: var(--mono); font-size: .62rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 6px;
}
form.stack input, form.stack textarea, form.stack select {
  width: 100%;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 13px;
  font-size: .9rem; color: var(--chalk);
}
form.stack input:focus, form.stack textarea:focus, form.stack select:focus {
  border-color: var(--cyan); outline: none;
}
form.stack textarea { min-height: 140px; resize: vertical; }
.note { padding: 14px 16px; border-radius: var(--r-sm); font-size: .86rem; }
.note.ok  { background: rgba(95,208,138,.1);  border: 1px solid rgba(95,208,138,.3);  color: var(--green); }
.note.bad { background: rgba(255,107,61,.1);  border: 1px solid rgba(255,107,61,.3);  color: var(--orange); }

.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; }
.rate { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.rate .price { font-family: var(--display); font-size: 2.2rem; font-weight: 800; color: var(--chalk); }
.rate .price small { font-size: .82rem; color: var(--faint); font-family: var(--mono); font-weight: 400; }
.rate ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .85rem; color: var(--muted); }
.rate li::before { content: '→ '; color: var(--cyan); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .with-rail { grid-template-columns: 1fr; }
  .rail { position: static; }
  .ad-rail { min-height: 260px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel-2); border-bottom: 1px solid var(--line);
    padding: 12px; gap: 2px;
  }
  .main-nav.open .nav-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; background: none; padding: 0 0 0 12px; min-width: 0;
  }
  .burger { display: block; margin-left: auto; }
  .head-row { position: relative; }
  .ad-sticky { display: flex; }
  body { padding-bottom: 54px; }
}
@media (max-width: 560px) {
  .foot-top { grid-template-columns: 1fr; }
  .hero-proof { gap: 20px; }
  table.data thead th, table.data tbody td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before, body::after, .ticker, .site-head, .league-bar, .ad, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
}
