@font-face {
  font-family: Inter;
  src: url("/fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bebas Neue";
  src: url("/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #080a10;
  --bg-2: #0e1118;
  --panel: #12151e;
  --panel-2: #181c27;
  --line: #2a3142;
  --ink: #f4f6fa;
  --muted: #9aa1b0;
  --gold: #f5c542;
  --green: #2ecc71;
  --red: #ff5c5c;
  --shadow: 0 8px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: Inter, "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

.page { max-width: 1160px; margin: 0 auto; padding: 36px 32px 80px; }

.hero {
  position: relative;
  padding: 28px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -36px -32px auto;
  height: 220px;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245, 197, 66, .12), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(107, 164, 255, .1), transparent 45%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: clamp(48px, 8vw, 84px);
  line-height: .9;
  letter-spacing: .02em;
  font-weight: 400;
}
.tagline {
  margin: 14px 0 18px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 36em;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(18, 21, 30, .8);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
}
.hero-logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0;
  padding: 0;
}
.hero-logos li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.hero-logos img { width: 32px; height: 32px; object-fit: contain; }

.section { margin: 48px 0; }
.section-head { margin-bottom: 20px; }
.section-head h2 {
  margin: 0 0 6px;
  font-family: "Bebas Neue", Inter, sans-serif;
  font-size: 36px;
  letter-spacing: .04em;
  font-weight: 400;
}
.hint { margin: 0; color: var(--muted); font-size: 14px; max-width: 46em; }
.empty {
  margin: 0;
  padding: 28px 22px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 24px;
  align-items: start;
}
.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
table.board { width: 100%; border-collapse: collapse; min-width: 520px; }
table.board th, table.board td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.board th {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
table.board tr:last-child td { border-bottom: 0; }
.rank { color: var(--muted); font-variant-numeric: tabular-nums; width: 36px; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.ai { display: flex; align-items: center; gap: 10px; }
.ai img { width: 32px; height: 32px; object-fit: contain; }
.ai-name { font-weight: 700; color: var(--accent, var(--ink)); }

.race {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
}
.race figcaption {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.race-svg { width: 100%; height: auto; display: block; }
.race-svg .grid { stroke: #2a3142; stroke-width: 1; }
.race-svg .tick { fill: #9aa1b0; font-size: 11px; font-family: Inter, sans-serif; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.chart-note { margin: 10px 0 0; font-size: 13px; color: var(--gold); }

.match {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.match-head { margin-bottom: 16px; }
.match-meta { margin: 0 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.match-head h3 { margin: 0; font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.02em; }
.vs, .score { color: var(--gold); font-weight: 700; padding: 0 .35em; }

.picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pick {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent, var(--gold));
  border-radius: 14px;
  padding: 14px;
}
.pick-ai { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pick-ai img { width: 28px; height: 28px; object-fit: contain; }
.pick-ai strong { font-size: 14px; }
.pick-call { margin: 0 0 12px; font-weight: 700; font-size: 16px; line-height: 1.25; min-height: 2.5em; }
.pick dl { display: grid; gap: 6px; margin: 0; }
.pick dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.pick dt { color: var(--muted); font-weight: 500; }
.pick dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pick .win { color: var(--gold); }
.outcome { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.outcome.win { color: var(--green); }
.outcome.loss { color: var(--red); }

.video-wrap { margin-top: 18px; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.video-wrap video { width: 100%; height: 100%; display: block; background: #000; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.filter.on, .filter:hover { border-color: var(--gold); color: var(--gold); }

.rules {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rules li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.rules strong { color: var(--gold); }

.foot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: baseline;
  color: var(--muted);
  font-size: 14px;
}
.foot p { margin: 0; }
.foot .hash { color: var(--ink); font-weight: 700; }
.foot .credit { margin-left: auto; }

@media (max-width: 900px) {
  .page { padding: 22px 16px 64px; }
  .board-layout { grid-template-columns: 1fr; }
  .picks { grid-template-columns: 1fr 1fr; }
  .pick-call { min-height: 0; }
  .foot .credit { margin-left: 0; }
  table.board { min-width: 480px; }
}
@media (max-width: 560px) {
  h1 { font-size: 52px; }
  .picks { grid-template-columns: 1fr; }
  .hero-logos { gap: 12px 16px; }
  .section { margin: 36px 0; }
}

@media (max-width: 700px) {
  table.board { min-width: 0; }
  table.board thead { display: none; }
  table.board tr {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    grid-template-areas:
      "rank ai bank"
      "rank rec rec"
      "rank pnl hit";
    gap: 2px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  table.board td { padding: 2px 0; border: 0; }
  table.board td.rank { grid-area: rank; align-self: center; }
  table.board td:nth-child(2) { grid-area: ai; }
  table.board td:nth-child(3) { grid-area: bank; text-align: right; font-size: 16px; }
  table.board td:nth-child(4)::before { content: "PnL "; color: var(--muted); font-weight: 600; }
  table.board td:nth-child(5)::before { content: "W–L "; color: var(--muted); font-weight: 600; }
  table.board td:nth-child(6)::before { content: "Hit "; color: var(--muted); font-weight: 600; }
  table.board td:nth-child(4) { grid-area: pnl; }
  table.board td:nth-child(5) { grid-area: rec; }
  table.board td:nth-child(6) { grid-area: hit; text-align: right; }
}
