:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --card: #16181d;
  --text: #f3efe6;
  --muted: #a39e94;
  --red: #e10600;
  --dot: #3a3d44;
  --gold: #e2b340;
  --gold-wash: rgba(226, 179, 64, 0.14);
  --green: #1f8a4c;
  --green-wash: rgba(31, 138, 76, 0.16);
  --line: #2a2d34;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid var(--red);
}

.wordmark {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  font-size: 1.25rem;
}

nav { display: flex; gap: 0.25rem; }

nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.85rem;
  text-decoration: none;
  color: var(--muted);
}

nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--red);
}

.wrap { padding: 1.25rem 1rem 2.5rem; max-width: 52rem; margin: 0 auto; }

h1, h2, h3 { line-height: 1.2; }

h1 { font-size: 1.7rem; margin: 0.2rem 0 0.6rem; }

h2 { margin: 2rem 0 0.8rem; font-size: 1.15rem; }

.kicker, .where, .when, .note, .odds, .grade, .exposure, .disclaimer, footer {
  color: var(--muted);
}

.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; margin: 0; }

.card {
  display: block;
  width: 100%;
  margin: 1rem 0;
  border: 1px solid var(--line);
  background: var(--card);
}

.fights { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }

.fights li, .past, .stats, .about section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.fight-top, .pickline, .past {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
}

.wc { color: var(--red); font-weight: 700; letter-spacing: 0.04em; }

.conf { color: var(--muted); }

.dots { display: inline-flex; gap: 3px; margin-right: 0.35rem; }

.dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--dot);
  display: inline-block;
}

.dots i.on { background: var(--red); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.tag.bet { color: var(--green); background: var(--green-wash); }
.tag.dog { color: var(--gold); background: var(--gold-wash); }
.tag.pass { color: var(--muted); border: 1px solid var(--line); }

.pickline strong { font-size: 1.05rem; }

.fights p { margin: 0.45rem 0; }

.bets { width: 100%; border-collapse: collapse; }

.bets th, .bets td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  margin: 1rem 0 1.4rem;
}

.stats span { display: block; color: var(--muted); font-size: 0.8rem; }
.stats strong { font-size: 1.15rem; }

.stack { display: grid; gap: 0.7rem; }

.past { text-decoration: none; }

.past strong { display: block; width: 100%; }

.avatar {
  width: min(240px, 60vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--red);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  margin: 0.5rem 0 1.2rem;
  background: var(--red);
  color: white;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
}

.button[aria-disabled="true"] {
  background: var(--dot);
  cursor: not-allowed;
}

.disclaimer, footer p { font-size: 0.85rem; }

footer {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.empty { color: var(--muted); }

@media (min-width: 40rem) {
  .stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  h1 { font-size: 2.1rem; }
}

@media (max-width: 39.99rem) {
  .bets thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bets, .bets tbody, .bets tr, .bets td { display: block; width: 100%; }
  .bets tr { padding: 0.4rem 0 0.8rem; border-bottom: 1px solid var(--line); }
  .bets td { border: 0; padding: 0.15rem 0; }
  .bets td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
  }
}
