:root {
  /* Blue & Gold palette */
  --midnight: #07162a;
  --royal: #144b8a;
  --sky: #46b3ff;
  --gold: #ffd166;
  --ice: #f1f6ff;

  --bg: var(--ice);
  --card: #ffffff;
  --ink: var(--midnight);
  --muted: #51627c;
  --line: #d9e4f5;
  --navy: var(--midnight);
  --accent: var(--gold);
  --win: #1f8a5b;
  --loss: #c2453b;
  --home: var(--royal);
  --away: var(--sky);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--midnight);
    --card: #0d2340;
    --ink: var(--ice);
    --muted: #9fb3d1;
    --line: #1c3a63;
    --navy: #0a1d38;
    --home: var(--sky);
    --away: var(--royal);
    --win: #4cc98e;
    --loss: #ff7a6e;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 Inter, system-ui, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

.masthead {
  background: var(--navy);
  color: #fff;
  padding: 48px 0 32px;
  border-bottom: 6px solid var(--accent);
  background-image: linear-gradient(135deg, var(--midnight) 0%, var(--royal) 100%);
}
.eyebrow {
  font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 12px; color: var(--accent); margin: 0 0 6px;
}
h1, h2 { font-family: Oswald, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: clamp(36px, 7vw, 60px); margin: 0; line-height: 1; }
.sub { color: #c6cfdc; max-width: 560px; margin: 12px 0 24px; }
.updated { color: #8e9bb0; font-size: 13px; margin: 16px 0 0; }

.stats { display: flex; flex-wrap: wrap; gap: 12px; }
.stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 10px 16px; min-width: 130px;
}
.stat b { display: block; font-family: Oswald, sans-serif; font-size: 28px; line-height: 1.1; }
.stat span { font-size: 12px; color: #aab5c6; }

section { margin: 40px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
h2 { font-size: 26px; margin: 0; }
.select { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
select {
  font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.game {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px;
}
.game-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tag {
  font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: 11px; padding: 2px 8px; border-radius: 99px;
  background: var(--line); color: var(--ink);
}
.tag.strong { background: var(--accent); color: var(--midnight); }
.team { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.team .name { font-weight: 500; }
.team .abbr { font-family: Oswald, sans-serif; font-size: 18px; width: 44px; display: inline-block; }
.team .score { font-family: Oswald, sans-serif; font-size: 22px; }
.team.picked .name::after { content: " ✓"; color: var(--win); font-weight: 700; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin: 12px 0 6px; background: var(--line); }
.bar .a { background: var(--away); }
.bar .h { background: var(--home); }
.bar-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.note { margin-top: 10px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }

.chart {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: flex; align-items: flex-end; gap: 10px; height: 240px;
}
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.col .fill { width: 100%; max-width: 56px; background: var(--home); border-radius: 6px 6px 0 0; }
.col.total .fill { background: var(--accent); }
.col .pct { font-family: Oswald, sans-serif; font-size: 15px; margin-bottom: 4px; }
.col .lbl { font-size: 12px; color: var(--muted); margin-top: 6px; }

.results { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 12px;
  align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.mark { font-weight: 700; font-size: 18px; text-align: center; }
.mark.yes { color: var(--win); } .mark.no { color: var(--loss); }
.row .matchup { font-weight: 500; }
.row .small { font-size: 12px; color: var(--muted); }
.row .num { text-align: right; font-variant-numeric: tabular-nums; }

footer { color: var(--muted); font-size: 13px; padding-bottom: 40px; }
@media (max-width: 520px) {
  .row { grid-template-columns: 24px 1fr auto; }
  .row .pred { display: none; }
}
