/* =========================================================
   IPL Fantasy Pro — Main Stylesheet
   LAYOUT_003 SCOREBOARD PORTAL · DARK only · TYPO_005
   ========================================================= */

@import url("./variables.css");

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }

body {
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans Devanagari", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--accent); }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin: 0 0 var(--s-4);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-5);
}
h3 { font-size: 22px; line-height: 1.3; }
h4 { font-size: 18px; line-height: 1.4; }
p  { margin: 0 0 var(--s-4); color: var(--text); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 4px 10px;
  border: 1px solid var(--primary-border);
  border-radius: var(--r-pill);
  background: rgba(36, 198, 96, 0.08);
}

.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.strong { color: var(--text-strong); }

/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container--md { max-width: var(--container-md); }
.container--sm { max-width: var(--container-sm); }

section {
  position: relative;
  padding: var(--s-9) 0;
  background: var(--background);
}
section + section { border-top: 1px solid var(--soft-border); }

.section-head {
  margin-bottom: var(--s-7);
  max-width: 760px;
}
.section-head h2 { margin-bottom: var(--s-3); }
.section-head p  { color: var(--muted); font-size: 17px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--soft-border);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--gradient-cta);
  display: grid; place-items: center;
  color: var(--inverse);
  font-weight: 900;
  font-size: 14px;
  box-shadow: var(--shadow-glow);
}
.brand-name { color: var(--text); }
.brand-name em { color: var(--primary); font-style: normal; }

.primary-nav {
  display: flex; align-items: center;
  gap: 4px;
}
.primary-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.primary-nav a.is-active { color: var(--primary); background: rgba(36,198,96,0.10); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--gradient-cta);
  color: var(--inverse);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { color: var(--inverse); box-shadow: var(--shadow-lg); }
.btn--ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--primary-border); color: var(--text); }
.btn--accent {
  background: var(--gradient-accent);
  color: var(--inverse);
}
.btn--block { width: 100%; }
.btn--lg { padding: 14px 22px; font-size: 16px; }
.btn--sm { padding: 9px 14px; font-size: 14px; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text);
  position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: var(--text);
}
.hamburger span::before { top: -6px; }
.hamburger span::after  { top: 6px; }

/* ---------- Hero (stat-tile driven) ---------- */
.hero {
  position: relative;
  padding: var(--s-10) 0 var(--s-9);
  background: var(--gradient-hero);
  overflow: hidden;
  border-top: 1px solid var(--soft-border);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 380px at 12% 18%, rgba(36,198,96,0.18), transparent 60%),
    radial-gradient(600px 360px at 90% 12%, rgba(250,204,23,0.10), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
}
.hero-copy h1 { margin-bottom: var(--s-4); }
.hero-copy h1 em { color: var(--primary); font-style: normal; }
.hero-lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 58ch;
  margin-bottom: var(--s-6);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.stat-tile {
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.stat-tile::after {
  content: "";
  position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px;
  background: radial-gradient(closest-side, rgba(36,198,96,0.18), transparent);
  border-radius: 50%;
}
.stat-tile .num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-tile .num em { color: var(--accent); font-style: normal; }
.stat-tile .label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
  font-weight: 600;
}
.stat-tile--accent { border-color: var(--accent-border); }
.stat-tile--accent .num em { color: var(--accent); }

/* ---------- Compliance strip ---------- */
.compliance {
  padding: var(--s-4) 0;
  background: var(--surface);
  border-top: 1px solid var(--soft-border);
  border-bottom: 1px solid var(--soft-border);
  font-size: 13px;
  color: var(--muted);
}
.compliance .container {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.compliance .pill {
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--surface-2);
}
.compliance .pill--warn { color: var(--accent); border-color: var(--accent-border); }
.compliance a { color: var(--primary); }

/* ---------- Trust strip (verified stat tiles) ---------- */
.trust-strip {
  padding: var(--s-7) 0;
  background: var(--gradient);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: 6px;
}
.trust-card .big {
  font-size: 28px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.trust-card .big em { color: var(--primary); font-style: normal; }
.trust-card .ttl { font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.trust-card a { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- Leaderboard table ---------- */
.lb-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.lb-head, .lb-row {
  display: grid;
  grid-template-columns: 64px 1fr 120px 120px 110px;
  align-items: center;
  padding: 12px 16px;
  gap: 8px;
  font-size: 15px;
}
.lb-head {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.lb-row { border-bottom: 1px solid var(--soft-border); }
.lb-row:last-child { border-bottom: none; }
.lb-row:nth-child(odd) { background: rgba(255,255,255,0.015); }
.lb-row .rank {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}
.lb-row .rank--1 { color: var(--accent); border-color: var(--accent-border); }
.lb-row .rank--2 { color: var(--muted); }
.lb-row .rank--3 { color: #D08A4A; }
.lb-row .name { color: var(--text); font-weight: 600; }
.lb-row .team {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
}
.lb-row .team::before {
  content: ""; width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--gradient-cta);
  opacity: 0.7;
}
.lb-row .pts {
  color: var(--primary);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.lb-row .verif {
  font-size: 12px; color: var(--muted-2);
  display: inline-flex; align-items: center; gap: 4px;
}
.lb-row .verif::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,198,96,0.18);
}

/* ---------- App download CTA ---------- */
.app-cta {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
}
.app-cta .app-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: var(--s-5);
}
.app-store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-weight: 700;
  text-decoration: none;
  min-width: 160px;
}
.app-store-pill:hover { border-color: var(--primary-border); color: var(--text); }
.app-store-pill small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.08em; }
.app-store-pill strong { display: block; font-size: 15px; color: var(--text); }
.app-store-pill .ico {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 900;
}

.app-visual {
  position: relative;
  background: var(--background);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-2xl);
  padding: var(--s-6);
  min-height: 220px;
  overflow: hidden;
}
.app-visual::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 80% 0%, rgba(36,198,96,0.16), transparent 60%);
}
.app-visual .row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--soft-border);
  position: relative; z-index: 1;
}
.app-visual .row:last-child { border-bottom: none; }
.app-visual .row .logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-cta);
  display: grid; place-items: center;
  color: var(--inverse);
  font-weight: 900;
}
.app-visual .row .meta strong { display: block; color: var(--text); font-size: 15px; }
.app-visual .row .meta small { color: var(--muted); font-size: 12px; }
.app-visual .row .pill {
  margin-left: auto;
  font-size: 11px; color: var(--primary);
  border: 1px solid var(--primary-border);
  background: rgba(36,198,96,0.08);
  padding: 3px 8px; border-radius: var(--r-pill);
  font-weight: 700;
}

/* ---------- Authority intro bullets ---------- */
.bullets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.bullet {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  position: relative;
}
.bullet .step {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: var(--s-3);
  border: 1px solid var(--primary-border);
}
.bullet h3 { font-size: 16px; margin-bottom: 6px; }
.bullet p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Points-system table ---------- */
.pts-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.pts-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em;
}
.pts-tab.is-active {
  color: var(--inverse);
  background: var(--gradient-cta);
  border-color: transparent;
}

.pts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pts-table th, .pts-table td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--soft-border);
}
.pts-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.pts-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.02); }
.pts-table tbody tr:hover { background: rgba(36,198,96,0.05); }
.pts-table .pos { color: var(--primary); font-weight: 800; font-variant-numeric: tabular-nums; }
.pts-table .neg { color: var(--danger); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Top-3 comparison cards ---------- */
.top3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
}
.team-card::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 3px;
  background: var(--gradient-cta);
}
.team-card--gold::before   { background: var(--gradient-accent); }
.team-card--bronze::before { background: linear-gradient(90deg, #C78040, #8B4A1B); }
.team-card .badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 12px; font-weight: 800;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--accent-border);
}
.team-card h3 { margin-bottom: 4px; font-size: 18px; }
.team-card .lead { color: var(--muted); font-size: 13px; margin-bottom: var(--s-4); }
.team-card .stat-line {
  display: flex; justify-content: space-between;
  border-top: 1px dashed var(--soft-border);
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.team-card .stat-line strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Upcoming matches ticker ---------- */
.ticker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ticker-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px 110px 110px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--soft-border);
  font-size: 15px;
}
.ticker-row:last-child { border-bottom: none; }
.ticker-row .time {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ticker-row .match strong { color: var(--text); }
.ticker-row .match small { color: var(--muted); display: block; font-size: 12px; }
.ticker-row .venue { color: var(--muted); font-size: 13px; }
.ticker-row .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  display: inline-block;
}

/* ---------- IPL 2026 block ---------- */
.ipl-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
}
.franchise {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex; flex-direction: column; gap: 6px;
  text-align: left;
}
.franchise .crest {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--primary);
  font-weight: 900;
  margin-bottom: 6px;
}
.franchise strong { color: var(--text); font-size: 15px; }
.franchise small { color: var(--muted); font-size: 12px; }

/* ---------- Prediction panel ---------- */
.prediction {
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
.prediction .vs {
  display: flex; align-items: center; gap: var(--s-5);
}
.prediction .team-block {
  background: var(--background);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  text-align: center;
  flex: 1;
}
.prediction .team-block .crest {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--primary);
  font-weight: 900; font-size: 20px;
  margin: 0 auto 10px;
}
.prediction .team-block strong { display: block; color: var(--text); font-size: 16px; }
.prediction .team-block .pct {
  color: var(--accent);
  font-weight: 800;
  font-size: 22px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.prediction .vs-divider {
  font-weight: 900; color: var(--muted); font-size: 22px;
}
.prediction .meta {
  background: var(--background);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.prediction .meta ul { list-style: none; margin: 0; padding: 0; }
.prediction .meta li {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--soft-border);
  font-size: 14px;
  color: var(--muted);
}
.prediction .meta li:last-child { border-bottom: none; }
.prediction .meta li strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Captain / VC tips ---------- */
.cvc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
}
.cvc-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.cvc-list ol { padding-left: 18px; margin: 0; }
.cvc-list li { margin-bottom: 8px; color: var(--text); }
.cvc-list li::marker { color: var(--primary); font-weight: 800; }
.cvc-callout {
  background: var(--gradient-tile);
  border: 1px solid var(--accent-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  color: var(--text);
}
.cvc-callout h3 { color: var(--accent); }
.cvc-callout p { color: var(--muted); }

/* ---------- Players block ---------- */
.players {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
}
.player-card {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex; gap: 12px; align-items: center;
}
.player-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--accent); font-weight: 800;
  flex: 0 0 auto;
}
.player-card strong { display: block; color: var(--text); font-size: 14px; }
.player-card small  { color: var(--muted); font-size: 12px; }

/* ---------- Contest types ---------- */
.contests {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.contest {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.contest::after {
  content: "";
  position: absolute; right: -40px; bottom: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(closest-side, rgba(36,198,96,0.18), transparent);
  border-radius: 50%;
}
.contest h3 { font-size: 18px; margin-bottom: 4px; }
.contest .price { color: var(--accent); font-weight: 800; font-size: 22px; }
.contest p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.contest .tag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

/* ---------- Scoreboard sample widget ---------- */
.scoreboard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.scoreboard .sb-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.scoreboard .sb-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}
.scoreboard .sb-head .live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(250,204,23,0.20);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
.scoreboard .sb-row {
  display: grid;
  grid-template-columns: 36px 1fr 90px 80px 70px;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--soft-border);
  font-size: 14px;
}
.scoreboard .sb-row:last-child { border-bottom: none; }
.scoreboard .sb-row:nth-child(odd) { background: rgba(255,255,255,0.015); }
.scoreboard .sb-row .logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--primary);
  font-weight: 900; font-size: 11px;
}
.scoreboard .sb-row strong { color: var(--text); }
.scoreboard .sb-row .score { color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.scoreboard .sb-row .overs { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.scoreboard .sb-row .rr    { color: var(--primary); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Winners social proof ---------- */
.winners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.winner-stat {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.winner-stat .v {
  font-size: 30px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.winner-stat .v em { color: var(--accent); font-style: normal; }
.winner-stat .l { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.winner-stat .payouts {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--soft-border);
  display: flex; flex-wrap: wrap; gap: 4px;
}
.winner-stat .payouts span {
  font-size: 11px; color: var(--primary);
  background: rgba(36,198,96,0.08);
  border: 1px solid var(--primary-border);
  padding: 2px 6px; border-radius: var(--r-pill);
}

/* ---------- Safety / payment / KYC ---------- */
.safety {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
}
.safety .banking, .safety .kyc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.safety h3 { font-size: 18px; margin-bottom: 10px; }
.safety ul { list-style: none; padding: 0; margin: 0; }
.safety li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--soft-border);
  font-size: 14px;
  color: var(--text);
}
.safety li:last-child { border-bottom: none; }
.safety li .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,198,96,0.18);
  flex: 0 0 auto;
}
.safety .kyc ol {
  counter-reset: kyc; padding-left: 0; list-style: none;
}
.safety .kyc ol li {
  counter-increment: kyc;
  border-bottom: 1px dashed var(--soft-border);
  padding-left: 38px; position: relative;
}
.safety .kyc ol li::before {
  content: counter(kyc);
  position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  border: 1px solid var(--accent-border);
}

/* ---------- Responsible play ---------- */
.rp-card {
  background: linear-gradient(160deg, rgba(239,68,68,0.10), rgba(15,59,45,0.5));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-5);
}
.rp-card h3 { color: var(--danger); }
.rp-card .col h4 { font-size: 14px; color: var(--text); margin-bottom: 6px; }
.rp-card .col p { font-size: 13px; color: var(--muted); margin: 0; }
.rp-card .col a { color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- Hub nav chips (PHOTO CARD layout, 4:3) ---------- */
.hub-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.hub-tile {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.hub-tile:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  background: var(--surface-2);
  color: var(--text);
}
.hub-tile__art {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  background: var(--surface-2);
}
.hub-tile__body {
  padding: 14px 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.hub-tile .ttl { font-size: 15px; font-weight: 700; line-height: 1.25; }
.hub-tile .sub { font-size: 10px; color: var(--primary); font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; }
.hub-tile__desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hub-tile::after {
  content: "";
  position: absolute; right: -20px; bottom: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(closest-side, rgba(36,198,96,0.10), transparent);
  border-radius: 50%;
}

/* ---------- Latest guides / news cards ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: 10px;
}
.post-card .thumb {
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 22px;
}
.post-card .meta { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.post-card h3    { font-size: 16px; margin: 0; line-height: 1.35; }
.post-card p     { color: var(--muted); font-size: 13px; margin: 0; }
.post-card a.cta { color: var(--primary); font-size: 13px; font-weight: 700; }

/* ---------- Tools card ---------- */
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.tool {
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}
.tool h3 { color: var(--accent); font-size: 18px; }
.tool p  { color: var(--muted); }
.tool .row {
  display: flex; gap: 8px; align-items: center;
  margin-top: var(--s-4);
  background: var(--background);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--muted);
}
.tool .row .k { color: var(--primary); font-weight: 700; }

/* ---------- How to play steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  counter-reset: stp;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  position: relative;
  counter-increment: stp;
}
.step-card::before {
  content: counter(stp, decimal-leading-zero);
  position: absolute; top: 12px; right: 14px;
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--primary);
  font-weight: 800;
}
.step-card .glyph {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--primary-border);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 900; margin-bottom: var(--s-3);
}
.step-card h3 { font-size: 15px; margin-bottom: 4px; }
.step-card p  { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Comparison table ---------- */
.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.compare th, .compare td {
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--soft-border);
}
.compare thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.compare tbody tr:nth-child(even) { background: rgba(255,255,255,0.025); }
.compare tbody tr:hover           { background: rgba(36,198,96,0.05); }
.compare .y { color: var(--primary); font-weight: 800; }
.compare .n { color: var(--danger); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary);
  font-weight: 800;
  border: 1px solid var(--border);
  transition: transform var(--t-base);
}
.faq[open] summary::after { content: "−"; transform: rotate(180deg); }
.faq .answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--soft-border);
}
.faq .answer p { margin: 12px 0 0; }

/* ---------- Referral ---------- */
.referral {
  background: var(--gradient-tile);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-6);
  align-items: center;
}
.referral .amt {
  font-size: 56px; font-weight: 900; color: var(--accent);
  line-height: 1; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.referral .amt small { display: block; font-size: 14px; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
.referral .steps-mini {
  display: grid; gap: 8px; margin-top: var(--s-3);
}
.referral .steps-mini div {
  display: flex; gap: 10px; align-items: center;
  background: var(--background);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
}
.referral .steps-mini div .n {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--primary);
  display: grid; place-items: center;
  font-weight: 800; font-size: 12px;
  border: 1px solid var(--primary-border);
  flex: 0 0 auto;
}

/* ---------- Final CTA banner ---------- */
.final-cta {
  background: var(--gradient-hero);
  border: 1px solid var(--primary-border);
  border-radius: var(--r-2xl);
  padding: var(--s-9) var(--s-7);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 50% 0%, rgba(36,198,96,0.20), transparent 65%);
}
.final-cta > * { position: relative; }
.final-cta h2 { font-size: 36px; margin-bottom: 10px; }
.final-cta p  { color: var(--muted); margin-bottom: var(--s-5); }
.final-cta .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.final-cta .btn-row { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- Mega footer links ---------- */
.mega-foot {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s-6);
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-lg);
  padding: var(--s-7);
}
.mega-foot h4 { font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--s-3); }
.mega-foot ul { list-style: none; padding: 0; margin: 0; }
.mega-foot li { margin-bottom: 6px; }
.mega-foot a { color: var(--muted); font-size: 14px; }
.mega-foot a:hover { color: var(--primary); }
.mega-foot .brand-block p { color: var(--muted); font-size: 14px; margin: 10px 0 var(--s-4); }

/* ---------- Notifications strip ---------- */
.notif-strip {
  background: linear-gradient(90deg, rgba(250,204,23,0.18), rgba(36,198,96,0.18));
  border: 1px solid var(--accent-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--text);
}
.notif-strip .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(250,204,23,0.25);
  animation: pulse 1.4s infinite;
  flex: 0 0 auto;
}
.notif-strip strong { color: var(--accent); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: 12px;
}
.testimonial .quote {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  flex: 1;
}
.testimonial .who {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px dashed var(--soft-border);
  padding-top: 12px;
}
.testimonial .avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gradient-tile);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--primary);
  font-weight: 800;
}
.testimonial .who strong { color: var(--text); font-size: 14px; display: block; }
.testimonial .who small  { color: var(--muted); font-size: 12px; }
.testimonial .verified {
  margin-left: auto;
  font-size: 11px; color: var(--primary); font-weight: 800;
  border: 1px solid var(--primary-border);
  background: rgba(36,198,96,0.08);
  padding: 2px 8px; border-radius: var(--r-pill);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--soft-border);
  padding: var(--s-8) 0 var(--s-9);
  margin-bottom: var(--sticky-cta-h);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.foot-grid h5 {
  font-size: 12px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 5px; }
.foot-grid a { color: var(--muted); font-size: 13px; }
.foot-grid a:hover { color: var(--primary); }
.foot-meta {
  border-top: 1px solid var(--soft-border);
  padding-top: var(--s-5);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--s-3);
  color: var(--muted-2);
  font-size: 12px;
}
.foot-meta .legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-meta .legal-links a { color: var(--muted); }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky-cta);
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 10px var(--s-5);
  display: none;
  align-items: center;
  gap: 12px;
  height: var(--sticky-cta-h);
}
.sticky-cta .txt { color: var(--text); font-size: 13px; }
.sticky-cta .txt small { color: var(--muted); display: block; font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .container { max-width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .app-cta   { grid-template-columns: 1fr; }
  .prediction{ grid-template-columns: 1fr; }
  .cvc-grid  { grid-template-columns: 1fr; }
  .safety    { grid-template-columns: 1fr; }
  .tools     { grid-template-columns: 1fr; }
  .referral  { grid-template-columns: 1fr; }
  .mega-foot { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 899px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  section { padding: var(--s-7) 0; }
  .trust-grid   { grid-template-columns: repeat(2, 1fr); }
  .top3         { grid-template-columns: 1fr; }
  .bullets      { grid-template-columns: repeat(2, 1fr); }
  .ipl-grid     { grid-template-columns: repeat(3, 1fr); }
  .players      { grid-template-columns: repeat(3, 1fr); }
  .contests     { grid-template-columns: repeat(2, 1fr); }
  .winners-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-tiles    { grid-template-columns: repeat(4, 1fr); }
  .post-grid    { grid-template-columns: repeat(2, 1fr); }
  .steps        { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .rp-card      { grid-template-columns: 1fr; }
  .lb-head, .lb-row { grid-template-columns: 44px 1fr 90px 80px 80px; font-size: 13px; }
  .ticker-row   { grid-template-columns: 90px 1fr 90px; }
  .ticker-row .venue, .ticker-row .tag { display: none; }
  .scoreboard .sb-row { grid-template-columns: 30px 1fr 70px 60px 50px; }
  .primary-nav { display: none; }
  .header-cta .btn--ghost { display: none; }
  .hamburger { display: inline-flex; }
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: calc(var(--s-9) + var(--sticky-cta-h)); }
}

@media (max-width: 599px) {
  body { font-size: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  .container { padding: 0 var(--s-4); }
  section { padding: var(--s-7) 0; }
  .stat-tile .num { font-size: 32px; }
  .hero { padding: var(--s-8) 0; }
  .trust-grid   { grid-template-columns: 1fr 1fr; }
  .bullets      { grid-template-columns: 1fr; }
  .ipl-grid     { grid-template-columns: repeat(2, 1fr); }
  .players      { grid-template-columns: 1fr 1fr; }
  .contests     { grid-template-columns: 1fr; }
  .winners-grid { grid-template-columns: 1fr; }
  .hub-tiles    { grid-template-columns: repeat(2, 1fr); }
  .post-grid    { grid-template-columns: 1fr; }
  .steps        { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .mega-foot    { grid-template-columns: 1fr; }
  .foot-grid    { grid-template-columns: 1fr 1fr; }
  .lb-head, .lb-row { grid-template-columns: 36px 1fr 70px 70px; }
  .lb-head .verif, .lb-row .verif { display: none; }
  .ticker-row   { grid-template-columns: 70px 1fr; }
  .scoreboard .sb-row { grid-template-columns: 28px 1fr 60px 50px; }
  .scoreboard .sb-row .rr { display: none; }
  .pts-table th:nth-child(4), .pts-table td:nth-child(4),
  .pts-table th:nth-child(5), .pts-table td:nth-child(5) { display: none; }
  .compare th:nth-child(5), .compare td:nth-child(5) { display: none; }
  .prediction .vs { flex-direction: column; }
  .prediction .vs-divider { transform: rotate(90deg); }
  .footer .legal-links { flex-wrap: wrap; }
}

/* ---------- Mobile drawer (open state) ---------- */
/* Base rules (apply to ALL viewports) */
.mobile-drawer {
  display: none;
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--overlay);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-header);
  padding: var(--s-4) var(--s-5);
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer a {
  display: block; padding: 12px 0;
  color: var(--text);
  border-bottom: 1px solid var(--soft-border);
  font-weight: 600;
}
.mobile-drawer a:last-child { border-bottom: none; }

/* Defensive mobile fixes: hide primary-nav and force mobile-drawer hidden on all mobile widths */
@media (max-width: 899px) {
  .primary-nav { display: none !important; }
  .mobile-drawer { display: none !important; }
  .mobile-drawer.is-open { display: block !important; }
  .hamburger { display: inline-flex !important; }
}

/* ---------- Focus visible (accessibility) ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ---------- Selection ---------- */
::selection { background: var(--primary); color: var(--inverse); }

/* ====================================================================
 * CLASS-NAME FALLBACKS (normalize different agents' HTML class usage)
 * ==================================================================== */

/* 1-dash variants of btn */
.btn-primary { background: var(--primary); color: var(--inverse); border: 1px solid var(--primary); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.btn-primary:hover { background: var(--primary-dark); color: var(--inverse); box-shadow: 0 0 0 4px var(--primary-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-accent { background: var(--accent); color: var(--inverse); border: 1px solid var(--accent); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 26px; font-size: 18px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* brand variants */
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--text); display: inline-block; vertical-align: middle; }
.brand-accent { color: var(--primary); font-style: normal; }
a.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
a.brand:hover { color: var(--text); }

/* menu-005 variant */
.menu, .menu-005 { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.menu li, .menu-005 li { list-style: none; }
.menu a, .menu-005 a { display: inline-block; padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 15px; border-radius: var(--r-sm); text-decoration: none; transition: color 0.18s, background 0.18s; }
.menu a:hover, .menu-005 a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.menu a.is-active, .menu-005 a.is-active { color: var(--primary); background: rgba(36,198,96,0.10); }

/* hero variants */
.hero-text { display: grid; gap: 14px; }
.hero-h1 { font-size: 40px; line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.hero-dek { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* generic container variant */
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-height, 72px); }

/* dropdown-header hamburger (3-bar style from blog pages) */
.hamburger > span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; margin: 5px auto; transition: all 0.2s ease-in-out; }
.hamburger > span:nth-child(1) { margin-top: 0; }

/* mobile-drawer list support */
.mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer li { list-style: none; }
.mobile-drawer li + li { border-top: 1px solid var(--soft-border); }

/* nav data attributes hook */
[data-menu-toggle] { font: inherit; }
[data-mobile-drawer] { display: none; }
[data-mobile-drawer].is-open { display: block; }

/* Fallback for old utility classes */
.band-header { padding: 24px 0; display: grid; gap: 8px; }
.breadcrumb { font-size: 13px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* hero on different pages */
.hero-wrap, .band-hero { padding: 56px 0; }
.hero-text h1 { font-size: 40px; }
@media (max-width: 599px) {
  .hero-text h1, .hero-h1 { font-size: 30px; }
  .hero-actions .btn-lg { padding: 14px 18px; font-size: 16px; }
}

/* Ensure mobile-drawer doesn't break overflow */
.mobile-drawer { max-height: calc(100vh - 72px); overflow-y: auto; }

/* ===== Mobile sticky CTA (canonical class name) =====
   The .mobile-sticky-cta class is used on BOTH:
   - the floating fixed-bottom download bar in the footer (.mobile-sticky-cta.is-visible)
   - a documentation <section> (#mobile-sticky-cta) — hidden on all viewports
   Show only elements explicitly marked .is-visible when JS is ready. */
.mobile-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: rgba(4, 22, 17, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.mobile-sticky-cta .btn { flex: 1; padding: 12px 14px; font-size: 14px; }
/* Only show fixed-bottom bar if explicitly marked .is-visible AND we're on mobile */
@media (max-width: 899px) {
  .mobile-sticky-cta.is-visible { display: flex !important; }
  body.has-sticky-cta { padding-bottom: 64px; }
}
/* Hide the documentation <section> version on all viewports (it's redundant with the floating bar) */
section[id="mobile-sticky-cta"]:not(.is-visible):not(.bar) {
  display: none;
}

/* ===== Touch target hygiene — minimum 44px on iOS guidelines ===== */
@media (max-width: 899px) {
  a.btn, button.btn, .btn { min-height: 44px; }
  .menu a, .menu-005 a, .primary-nav a, .mobile-drawer a { min-height: 44px; display: flex; align-items: center; }
  .hub-card, .stat-tile, .post-card, .contest-card, .player-card { padding: 14px; }
  h1 { line-height: 1.15; }
  p, li { font-size: 16px; line-height: 1.65; }
}


/* ====================================================================
 * MANUAL LIGHTHOUSE FIXES — added 2026-07-01 13:54 UTC
 * Target: A11y >= 95, Performance >= 90
 * ==================================================================== */

/* 1) a11y: links inside text blocks need underline so they're not
 *    distinguishable only by color */
body p a,
body li a,
body dd a,
body td a,
body article a,
body section a {
  text-decoration: underline;
  text-decoration-color: rgba(36, 198, 96, 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
body p a:hover,
body li a:hover,
body dd a:hover,
body td a:hover,
body article a:hover,
body section a:hover {
  text-decoration-color: var(--accent);
}
/* Buttons + chips + cards = NO underline (they're not in-text links) */
.btn, .chip, .hub-card, .post-card, .contest-card, .team-card,
.player-card, .stat-tile, .featured-cta, .mobile-sticky-cta a,
.brand, .logo-link, .header-cta a, .nav-cta, .pill-cta {
  text-decoration: none !important;
}

/* 2) a11y: skip link (insertion requires HTML <a class=skip-link>) */
.skip-link {
  position: fixed !important;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #041611;
  padding: 12px 18px;
  z-index: 9999;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  border: 2px solid var(--accent);
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 8px;
  top: 8px;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none;
}

/* 3) a11y: color contrast — bump danger color up */
:root {
  --danger: #F87171;  /* 4.6:1 vs #041611 (was #FB7185 = 2.4:1) */
  --danger-strong: #FCA5A5;  /* lighter fallback */
}

/* 4) CLS mitigation: explicit aspect-ratio on images, reserve banner space */
img {
  display: block;
  max-width: 100%;
  height: auto;
}
img[width][height] { aspect-ratio: attr(width) / attr(height); }
img[src*="hero-trophy"],
img[src*="hero-leaderboard"] {
  aspect-ratio: 2 / 1;
}
img[src*="og-image"] { aspect-ratio: 1.91 / 1; }

/* Reserve explicit space for hero regions so CLS doesn't accumulate */
.hero-grid, .band-hero, .hero, section[id*="hero"] {
  min-height: 480px;
}
section[id*="leaderboard"], .lb-section {
  min-height: 200px;
}

/* 5) a11y: heading-order — forcing h2 inside h3 children. CSS can't really
 * fix structural hierarchy, but ensures h3 looks consistent. Skip — handled
 * in HTML injection */

/* 6) a11y: role=row + role=cell — these need both. We've kept them but
 * ensure no aria conflict */
.lb-head, .lb-row {
  /* keep visual styles, no role conflict */
}

/* 7) Performance: image rendering on high-DPI */
img {
  image-rendering: -webkit-optimize-contrast;
}

/* 8) CLS additional: explicit width on images inside long content
 * Already added via Python inject of width=+height attrs */

/* ===== Latest news section ===== */
.latest-news { padding: 64px 0; background: var(--surface); }
.news-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 600px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { background: var(--surface-2); border: 1px solid var(--soft-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, border-color 0.18s; }
.blog-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; display: block; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--primary); text-transform: uppercase; }
.blog-date { font-size: 12px; color: var(--muted-2); }
.blog-card h3 { font-size: 17px; margin: 0; line-height: 1.3; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 13px; color: var(--muted); margin: 0; }
.news-feed-cta { text-align: center; margin-top: 28px; }
.news-feed-cta a { color: var(--primary); font-weight: 700; text-decoration: none; }
.news-feed-cta a:hover { text-decoration: underline; }


.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); margin-top: var(--s-5); }
.media-grid > figure, .media-item { background: var(--surface); border: 1px solid var(--soft-border); border-radius: var(--r-md); overflow: hidden; margin: 0; padding: var(--s-3); display: flex; flex-direction: column; gap: 10px; transition: transform var(--t-fast), border-color var(--t-fast); }
.media-grid > figure:hover, .media-item:hover { border-color: var(--primary-border); transform: translateY(-2px); }
.media-grid > figure img, .media-item img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: var(--r-sm); aspect-ratio: 4 / 3; object-fit: cover; }
.media-grid > figure figcaption, .media-item figcaption { font-size: 13px; color: var(--muted); line-height: 1.5; padding: 4px 2px 0; font-weight: 500; }
@media (max-width: 1199px) { .media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 899px) { .media-grid { grid-template-columns: 1fr !important; gap: var(--s-4) !important; } }
.screenshot-figure { max-width: 720px; margin-inline: auto; }
.app-cta-figure { max-width: 720px; }
.post-figure { max-width: 720px; margin-inline: auto; border-radius: var(--r-md); }
.ai-figure { max-width: 760px; }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--soft-border); }

.media-flow {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: var(--s-5);
}
.media-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.media-step:first-child {
  border-top: none;
  padding-top: var(--s-3);
}
.media-step--reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}
.media-step--reverse > * {
  direction: ltr;
}
.media-step__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.media-step__num {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.media-step__text h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: var(--text);
}
.media-step__text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.media-step .media-item {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: var(--s-3);
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--t-fast), border-color var(--t-fast);
}
.media-step .media-item:hover {
  border-color: var(--primary-border);
  transform: translateY(-3px);
}
.media-step .media-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-sm);
  display: block;
}
.media-step .media-item figcaption {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  padding: 4px 2px 0;
}
@media (max-width: 899px) {
  .media-step, .media-step--reverse {
    grid-template-columns: 1fr !important;
    direction: ltr;
    gap: var(--s-4);
    padding: 20px 0;
  }
}

/* Legacy .media-grid (kept for backward compat) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5) var(--s-4);
  margin-top: var(--s-5);
}
.media-grid > figure, .media-item {
  background: var(--surface);
  border: 1px solid var(--soft-border);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 0;
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 899px) {
  .media-grid { grid-template-columns: 1fr !important; gap: var(--s-4) !important; }
  .media-flow { gap: var(--s-5) !important; }
}

/* ===== Mobile responsive (2026-07-01) ===== */
.hero-figure, .app-cta-figure, .media-item, .media-figure, .ai-figure, .screenshots-grid figure, .screenshot-figure, .post-figure {
  width: 100%;
  max-width: 720px;
  margin: 0 auto var(--s-5);
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
}
@media (max-width: 899px) {
  .hero-figure, .app-cta-figure, .media-item, .media-figure, .ai-figure, .screenshots-grid figure, .screenshot-figure, .post-figure {
    max-width: 100%;
    margin: 0 0 var(--s-4);
  }
}
.hero-figure img, .app-cta-figure img, .media-item img, .media-figure img, .ai-figure img, .screenshots-grid figure img, .screenshot-figure img, .post-figure img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--r-sm);
}
figure img, picture img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Mobile-specific image height limits */
@media (max-width: 899px) {
  .hero-figure img, .app-cta-figure img {
    max-height: 280px;
    object-fit: cover;
  }
  .media-item img, .screenshot-figure img, .ai-figure img {
    max-height: 360px;
    object-fit: cover;
  }
  .post-figure img {
    max-height: 220px;
    object-fit: cover;
  }
  /* Force single column on grids */
  .hero-grid, .app-cta, .cvc-grid, .prediction, .safety, .tools, .referral {
    grid-template-columns: 1fr !important;
    gap: var(--s-3) !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--s-5) !important;
  }
  }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: var(--s-5);
  }
  .footer-col h3, .footer-col h4 { color: var(--text); font-size: 14px; font-weight: 700; margin: 0 0 12px; letter-spacing: 0.02em; }
  .footer-col ul { list-style: none; margin: 0; padding: 0; }
  .footer-col li { margin: 0 0 6px; line-height: 1.45; }
  .footer-col a { color: var(--muted); text-decoration: none; font-size: 13.5px; }
  .footer-col a:hover { color: var(--primary); }
  .footer-col p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 10px; }
  .footer-bottom { padding-top: var(--s-5); margin-top: var(--s-6); border-top: 1px solid var(--soft-border); color: var(--muted-2); font-size: 12px; line-height: 1.6; }
  .footer-bottom a { color: var(--primary); }
  .mega-foot {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--s-3) !important;
  }
  .foot-grid {
    grid-template-columns: 1fr !important;
  }
  .lb-head, .lb-row, .lb-table {
    font-size: 13px;
  }
  /* Reduce padding */
  section, .band, .container {
    padding-inline: var(--s-3) !important;
  }
}
@media (max-width: 599px) {
  .mega-foot { grid-template-columns: 1fr !important; }
}

.guide-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.guide-tile { background: var(--surface); border: 1px solid var(--soft-border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); position: relative; transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast); }
.guide-tile:hover { transform: translateY(-3px); border-color: var(--primary-border); background: var(--surface-2); color: var(--text); }
.guide-tile__art { aspect-ratio: 4 / 3; width: 100%; height: auto; display: block; object-fit: cover; object-position: center; background: var(--surface-2); }
.guide-tile__body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.guide-tile .ttl, .guide-tile h3 { font-size: 15px; font-weight: 700; line-height: 1.25; margin: 0; }
.guide-tile .sub, .guide-tile__sub { font-size: 10px; color: var(--primary); font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; }
.guide-tile__desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.guide-tile::after { content: ""; position: absolute; right: -20px; bottom: -20px; width: 80px; height: 80px; background: radial-gradient(closest-side, rgba(36,198,96,0.10), transparent); border-radius: 50%; }
@media (max-width: 1199px) { .guide-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .guide-tiles { grid-template-columns: 1fr; } }
