:root {
  --brand-red: #ff2d55;
  --ink: #111827;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --nba: #1459d9;
  --nfl: #087f47;
  --mlb: #082c5f;
  --positive: #0f8a2d;
  --danger: #ef233c;
  --accent: #1459d9;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-button: 0 14px 24px rgba(15, 23, 42, 0.14);
  --radius-lg: 22px;
  --radius-xl: 28px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 70% 0%, rgba(20, 89, 217, 0.04), transparent 32%), #fff;
}

button, a { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding: 24px clamp(20px, 6vw, 88px) 48px;
}

.site-header {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 210px;
  height: auto;
  display: block;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  margin: 5px 0;
}

main {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  max-width: 620px;
  margin-bottom: 42px;
}

.eyebrow {
  color: var(--brand-red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin: 0 0 8px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero p,
.helper,
.section-subtitle,
.footer-note {
  color: var(--muted);
}

.hero p {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
}

.league-section {
  margin-bottom: 42px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.helper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
  font-size: 18px;
}

.helper-arrow {
  font-size: 28px;
  line-height: 1;
}

.league-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.league-card {
  min-height: 184px;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: var(--shadow-button);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, outline 160ms ease;
  position: relative;
  overflow: hidden;
}

.league-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), transparent 55%);
  pointer-events: none;
}

.league-card:hover,
.league-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  outline: 4px solid rgba(20, 89, 217, 0.18);
}

.league-card[aria-pressed="true"] {
  outline: 4px solid rgba(255, 45, 85, 0.22);
}

.league-card img {
  width: 74px;
  height: 74px;
  z-index: 1;
}

.league-card span {
  z-index: 1;
  color: #fff;
  font-weight: 900;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.league-card[data-league="nba"] { background: linear-gradient(145deg, #1565e8, var(--nba)); }
.league-card[data-league="nfl"] { background: linear-gradient(145deg, #0a9a55, var(--nfl)); }
.league-card[data-league="mlb"] { background: linear-gradient(145deg, #0a3a7a, var(--mlb)); }

.games-section {
  margin-top: 14px;
}

.section-subtitle {
  margin: 8px 0 16px;
  font-size: 17px;
}

.games-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

/* ═══════════════════════════════════════════════════════════════════════════
   GAME ROW — The primary card header. Tall, spacious, clearly dominant.
   ═══════════════════════════════════════════════════════════════════════════ */
.game-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 24px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}

a.game-row:hover {
  background: #fafbfd;
}

.game-row:last-child { border-bottom: 0; }

.league-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 30px;
  padding: 0 14px;
  border-radius: 9px;
  color: #fff;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.league-pill.nba { background: var(--nba); }
.league-pill.nfl { background: var(--nfl); }
.league-pill.mlb { background: var(--mlb); }

.team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.team-text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.team-name {
  display: inline;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  color: var(--ink);
}

.team-record {
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  color: #94a3b8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.team-badge {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.22);
}

.vs {
  text-align: center;
  color: #94a3b8;
  font-weight: 800;
  font-size: 13px;
  text-transform: lowercase;
  flex-shrink: 0;
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.game-time {
  display: flex;
  flex-direction: column;
}

.game-time .date {
  color: var(--brand-red);
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.game-time .time {
  color: var(--ink);
  font-weight: 900;
  font-size: 17px;
  white-space: nowrap;
}

.game-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background 0.12s ease, transform 0.12s ease;
}

a.game-row:hover .game-cta {
  background: #0f4abf;
  transform: translateY(-1px);
}

a.game-row {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PICK STRIP — Compact detail section beneath the game row.
   Visually subordinate: smaller, tighter, subtle background.
   ═══════════════════════════════════════════════════════════════════════════ */
.pick-strip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 28px 14px 32px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

/* Heat accent — left bar */
.pick-strip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #e2e8f0;
  transition: background 0.15s ease;
}
.ps-heat-warm::before { background: var(--accent); }
.ps-heat-hot::before { background: #059669; }

/* ── AI Pick Hero Row ── */
.ps-hero {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.ps-hero-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.ps-hero-team {
  font-size: 16px;
  color: var(--ink);
}

.ps-hero-team b {
  font-weight: 900;
}

.ps-hero-ou {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.ps-hero-conf {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  margin-left: auto;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.ps-hero-conf-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.ps-heat-hot .ps-hero-conf-val { color: #059669; }

/* ── Market Picks Row ── */
.ps-markets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ps-market {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  white-space: nowrap;
}

.ps-market b { font-weight: 700; }

.ps-market-type {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ps-market-conf {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

/* Confidence tiers */
.ps-market.ps-pick-warm {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.ps-market.ps-pick-warm .ps-market-conf { color: var(--accent); }

.ps-market.ps-pick-hot {
  border-color: #86efac;
  background: #f0fdf4;
}
.ps-market.ps-pick-hot .ps-market-conf { color: #059669; font-weight: 800; }

/* ── Odds Row ── */
.ps-odds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.3;
}

.ps-odds b { color: var(--muted); font-weight: 600; }

.ps-odds-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b0b8c4;
  margin-right: 3px;
}

.ps-odds-dot {
  color: #d1d5db;
  margin: 0 2px;
}


.footer-note {
  margin: 28px 0 0;
  font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .page-shell { padding: 22px 20px 40px; }
  .site-header { margin-bottom: 28px; }
  .menu-button { display: none; }

  .hero {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.02; }
  .hero p { font-size: 17px; }

  .league-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .league-card { min-height: 132px; padding: 18px 10px; border-radius: 18px; gap: 12px; }
  .league-card img { width: 52px; height: 52px; }
  .league-card span { font-size: clamp(28px, 8.5vw, 40px); }
  .league-card .league-card-flag { font-size: 12px; padding: 3px 9px; }

  .games-section { margin-top: 4px; }
  .section-subtitle { font-size: 16px; }

  /* Team names visible on mobile - vertical layout with badge above name */
  .game-row {
    align-items: flex-start;
    gap: 8px;
    padding: 18px 14px;
    min-height: auto;
  }

  .team {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 70px;
    max-width: 110px;
  }

  .team-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
  }

  .team-name {
    white-space: normal;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
  }

  .team-record {
    display: none;
  }

  .vs {
    align-self: flex-start;
    margin-top: 14px;
    font-size: 13px;
  }

  .game-meta {
    align-self: flex-start;
    margin-top: 8px;
    gap: 10px;
    padding-left: 12px;
  }
  .game-cta { padding: 7px 12px; font-size: 11px; }
  .game-time .time { font-size: 14px; }
  .game-time .date { font-size: 11px; }
  .league-pill { min-width: 42px; height: 26px; padding: 0 9px; font-size: 13px; align-self: center; }

  body.has-league .game-row {
    padding: 18px 16px;
  }
  body.has-league .game-row .league-pill { display: none; }

  .team-badge { width: 44px; height: 44px; font-size: 16px; }


  /* Pick strip mobile */
  .pick-strip { padding: 10px 14px 12px 18px; gap: 6px; }
  .ps-hero { gap: 6px; flex-wrap: wrap; }
  .ps-hero-label { font-size: 9px; padding: 2px 7px; }
  .ps-hero-team { font-size: 13px; }
  .ps-hero-ou { font-size: 11px; }
  .ps-hero-conf { margin-left: auto; }
  .ps-hero-conf-val { font-size: 14px; }
  .ps-markets { gap: 5px; }
  .ps-market { font-size: 10px; padding: 3px 8px; gap: 3px; }
  .ps-market-type { font-size: 8px; }
  .ps-market-conf { font-size: 9px; }
  .ps-odds { font-size: 9px; }
}

@media (max-width: 480px) {
  .page-shell { padding: 20px 16px 34px; }
  .ss-sc-page .brand-name { font-size: 23px; }
  .ss-sc-page .brand-mark svg { height: 30px; }

  .league-grid { gap: 9px; }
  .league-card { min-height: 116px; padding: 14px 8px; gap: 10px; }
  .league-card img { width: 44px; height: 44px; }
  .league-card span { font-size: clamp(24px, 8vw, 34px); }

  .game-row { padding: 14px 10px; gap: 5px; }

  .team {
    min-width: 60px;
    max-width: 95px;
    gap: 5px;
  }

  .team-name {
    font-size: 12px;
  }

  .team-badge { width: 36px; height: 36px; font-size: 14px; }
  .team-logo { width: 36px !important; height: 36px !important; }

  .vs {
    margin-top: 10px;
  }

  .game-meta { gap: 6px; padding-left: 6px; margin-top: 6px; }
  .game-cta { padding: 6px 10px; font-size: 10px; }
  .game-time .time { font-size: 12px; }
  .game-time .date { font-size: 10px; }

  .pick-strip { padding: 8px 12px 10px 16px; gap: 5px; }
  .ps-hero-conf { margin-left: 0; flex-basis: 100%; }
  .ps-markets { gap: 4px; }
  .ps-market { padding: 3px 7px; font-size: 10px; }
  .ps-cta-inline { padding: 5px 10px; font-size: 10px; }
}
