:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #52525b;
  --muted: #a1a1aa;
  --line: #ececE7;
  --soft: #f3f3ef;
  --accent: #c6f432;
  --win: #16a34a;
  --loss: #dc2626;
  --pending: #d97706;
  --live: #ef4444;
  --sans: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive;
  --mono: "Comic Sans MS", "Comic Sans", "Comic Neue", cursive;
  --r: 20px;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250,250,247,.8); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 500 15px var(--sans); border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 8px 20px rgba(10,10,10,.18); }
.btn-light { background: var(--surface); border-color: var(--line); }
.btn-light:hover { border-color: #d4d4d0; }

/* ---------- hero: the banner art blends into the page ---------- */
.hb { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hb-art {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--bg) url("img/banner.webp") no-repeat;
  background-size: auto 100%;
  background-position: max(-40px, calc(50vw - 720px)) bottom;
  background-blend-mode: multiply;   /* the art's white turns into the page colour */
}
.hb-inner { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: flex-end; }
.hb-copy { width: min(560px, 50%); padding: 64px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pending); display: inline-block; }
.dot.live { background: var(--live); box-shadow: 0 0 0 0 rgba(239,68,68,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); } 70% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.01em; font-weight: 700; margin: 22px 0 20px; }
h1 .u { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); }
.lede { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ca { margin-top: 24px; display: flex; align-items: center; gap: 10px; max-width: 100%; width: fit-content; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; }
.ca-label { font: 700 12px var(--mono); color: var(--muted); }
.ca code { font: 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { background: var(--soft); border: 0; border-radius: 8px; padding: 7px 12px; font: 700 12px var(--sans); cursor: pointer; flex: none; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.socials a { font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.socials a:hover { color: var(--ink); }

/* ---------- today's pick ---------- */
.pick-section { padding-top: 88px; }
.pick-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: stretch; }
.pick-side { display: flex; flex-direction: column; gap: 16px; }
.run { padding: 8px 0; flex: 1; }
.run-head { display: flex; justify-content: space-between; padding: 12px 22px; font-weight: 700; font-size: 15px; }
.run-head .muted { font-weight: 400; font-size: 13px; }
.run-row { display: grid; grid-template-columns: 28px 56px 1fr; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 15px; }
.run-ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 700; }
.run-ic.ok { background: var(--accent); color: var(--ink); }
.run-k { color: var(--ink-2); }
.run-v { font-weight: 700; text-align: right; }

/* ---------- pick card (hero) ---------- */
.pick-card {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 460px; color: #fff;
  background: #111; box-shadow: 0 30px 60px -20px rgba(10,10,10,.35); isolation: isolate;
  display: flex; flex-direction: column;
}
.pick-loading { margin: auto; color: rgba(255,255,255,.6); font-size: 15px; }
.pc-bg { position: absolute; inset: 0; z-index: -2; }
.pc-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, transparent, rgba(0,0,0,.55)); }
.pc-ghost { position: absolute; right: -60px; bottom: -60px; width: 340px; height: 340px; object-fit: contain; opacity: .14; z-index: -1; filter: grayscale(1) brightness(3); }
.pc-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 0; gap: 8px; }
.glass { background: rgba(255,255,255,.14); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.pc-match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 32px 24px 8px; }
.pc-team { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.25; }
.pc-logo { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pc-logo img { width: 72%; height: 72%; object-fit: contain; }
.pc-team.picked .pc-logo { outline: 4px solid var(--accent); outline-offset: 4px; }
.pc-team.faded { opacity: .7; }
.pc-vs { font: 500 13px var(--mono); color: rgba(255,255,255,.6); }
.pc-bottom { margin-top: auto; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.35)); }
.pc-k { font-size: 13px; color: rgba(255,255,255,.7); }
.pc-sel { display: block; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; margin: 4px 0 16px; }
.pc-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.pc-prob { font-size: 56px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.pc-prob small { font-size: 24px; }
.pc-facts { text-align: right; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.7; }
.pc-facts b { color: #fff; font-weight: 600; font-family: var(--mono); }
.pc-bar { height: 6px; background: rgba(255,255,255,.18); border-radius: 99px; margin-top: 16px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.pc-src { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 12px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.stat-k { font-size: 13px; color: var(--ink-2); }
.stat-v { white-space: nowrap; font-size: 34px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-v.pos { color: var(--win); } .stat-v.neg { color: var(--loss); }

/* ---------- sections ---------- */
.section { padding-top: 112px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 0 0 8px; }
h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.01em; line-height: 1.05; font-weight: 600; margin: 0; }

/* ---------- games ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; }
.filter:hover { color: var(--ink); }
.filter.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter span { color: var(--muted); margin-left: 4px; }
.filter.on span { color: rgba(255,255,255,.6); }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; transition: transform .15s, box-shadow .15s; }
.game:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(10,10,10,.04), 0 16px 32px rgba(10,10,10,.08); }
.game.is-pick { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow); }
.g-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 8px; }
.g-league { font-weight: 500; color: var(--ink-2); }
.g-status.live { color: var(--live); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.g-status.final { color: var(--ink-2); font-weight: 500; }
.g-pickbadge { background: var(--accent); color: var(--ink); font-weight: 600; border-radius: 999px; padding: 2px 8px; font-size: 11px; }
.g-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px; }
.g-logo { width: 36px; height: 36px; object-fit: contain; }
.g-logo-fb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--sans); color: #fff; }
.g-name { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-name small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.g-row.loser .g-name, .g-row.loser .g-score { color: var(--muted); }
.g-score { font: 600 20px var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.g-pct { font: 500 14px var(--mono); color: var(--ink-2); }
.g-row.fav .g-pct { color: var(--ink); font-weight: 600; }
.g-bar { display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--soft); }
.g-bar i { display: block; height: 100%; }
.g-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.empty { grid-column: 1 / -1; background: var(--surface); border: 1px dashed #dcdcd6; border-radius: var(--r); padding: 40px 24px; text-align: center; color: var(--ink-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); position: relative; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; }
.step-icon svg { width: 24px; height: 24px; }
.step-n { position: absolute; top: 28px; right: 28px; font: 500 13px var(--mono); color: var(--muted); }
.step h3 { font-size: 22px; letter-spacing: -.01em; margin: 22px 0 8px; font-weight: 600; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- record ---------- */
.rec { display: grid; grid-template-columns: 70px 1fr auto auto; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec-date { font: 13px var(--mono); color: var(--muted); }
.rec-game { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rec-game img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.rec-game div { min-width: 0; }
.rec-sel { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-conf { font: 14px var(--mono); color: var(--ink-2); text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: capitalize; }
.pill.win { background: #dcfce7; color: var(--win); }
.pill.loss { background: #fee2e2; color: var(--loss); }
.pill.pending { background: #fef3c7; color: var(--pending); }
.pill.void { background: var(--soft); color: var(--muted); }
.card-empty { padding: 36px 24px; text-align: center; color: var(--ink-2); }

/* ---------- claims ---------- */
.claims { list-style: none; margin: 0; padding: 0; }
.claims li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.claims li:last-child { border-bottom: 0; }
.claims .sol { font-weight: 600; font-family: var(--mono); }
.claims a { color: var(--ink-2); font-size: 14px; }
.claims a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer { margin-top: 120px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { padding-top: 40px; padding-bottom: 48px; }
.footer p { max-width: 640px; color: var(--ink-2); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hb { border-bottom: 0; }
  .hb-art { position: relative; inset: auto; height: 320px; border-bottom: 1px solid var(--line); background-position: calc(50vw - 163px) bottom; }
  .hb-inner { min-height: 0; justify-content: flex-start; }
  .hb-copy { width: 100%; max-width: 640px; padding: 36px 0 56px; }
}
@media (max-width: 900px) {
  .pick-grid { grid-template-columns: 1fr; }
  .pick-card { min-height: 420px; }
  .stats { gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding-top: 80px; }
}
@media (max-width: 520px) {
  .hb-art { height: 240px; background-position: calc(50vw - 122px) bottom; }
  .pick-section { padding-top: 64px; }
  .wrap { padding: 0 16px; }
  .pc-logo { width: 80px; height: 80px; }
  .pc-prob { font-size: 44px; }
  .stat { padding: 18px; }
  .stat-v { font-size: 26px; }
  .games { grid-template-columns: 1fr; }
  .rec { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 16px; }
  .rec-date { grid-column: 1 / -1; }
  .rec-conf { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot.live { animation: none; }
  .btn, .game { transition: none; }
}
