:root {
  --radius: 10px;
  --radius-sm: 10px;
  --max: var(--container);
  --font: var(--font-ui);
  --cond: var(--font-display);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  font-size: 22px;
}

.logo-scratch {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  position: relative;
  line-height: 1;
}

.logo-scratch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 55%;
  height: 2px;
  background: var(--gold);
  transform: rotate(-4deg);
  transform-origin: left center;
}

.logo-leagues {
  font-size: 0.72em;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.nav a {
  padding: 8px 11px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-2);
  font: 600 15px/22px var(--font-ui);
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: transparent;
}

.nav a.is-active {
  border-bottom-color: var(--gold-text);
}

.header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.balances {
  display: flex;
  gap: 14px;
  font-size: 13px;
}

.balances .label-short { display: none; }

.balances dt {
  color: var(--text-3);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1px;
}

.balances dd {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.balances .avail dd {
  color: var(--text);
}

.league-chip {
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
  max-width: 9.5rem;
  line-height: 1.3;
}

.nav-logout { display: none; }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  margin: 0 auto;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

/* Page */

.page {
  padding: 28px 0 72px;
}

.eyebrow,
.section-title,
.gold-title {
  color: var(--text-3);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
}

h1, h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 { font-size: 32px; line-height: 36px; }
h2 { font-size: 24px; line-height: 28px; }
h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.muted { color: var(--text-dim); }
.tiny { color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
}

.btn-gold:hover { background: var(--gold-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { background: var(--bg-card); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover { background: var(--surface-3); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: end;
  padding: 12px 0 36px;
}

.lead,
.hero p.lead {
  max-width: 38rem;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 22px;
  margin: 16px 0 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.stat-grid div span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.stat-grid strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.rank-up { color: var(--plus); }

.pot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.pot-strip > div {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.pot-strip strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 15px;
  line-height: 22px;
}

.pot-strip p {
  margin: 0;
}

.standings-note {
  margin-top: 10px;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.section-head a {
  color: var(--gold-text);
  font-size: 15px;
  font-weight: 600;
}

.week-all {
  text-decoration: underline;
}

.home-week-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.home-week-head {
  align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.game-card .game-top {
  margin-bottom: 6px;
}

.game-card .pill {
  padding: 0 6px;
  font-size: 11px;
}

.game-card .board-head,
.game-card .board-team,
.game-board-card .board-head,
.game-board-card .board-team {
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(64px, 1fr));
  gap: 6px;
}

.game-card .board-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-bottom: 4px;
}

.game-card .board-team {
  padding: 6px 0;
}

.game-card .side {
  font-size: 11px;
  letter-spacing: 0.08em;
}

.game-card .team-name {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
}

.game-card .odds,
.game-card .odds-btn,
.game-board-card .odds-btn,
.board-grid .odds-btn {
  padding: 4px 2px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  min-height: 48px;
  text-decoration: none;
}

.game-card .odds .juice,
.game-card .odds-btn .juice {
  font-size: 12px;
  font-weight: 500;
}

.game-card .game-foot {
  margin-top: 6px;
  font-size: 13px;
}

.game-card .game-foot .tiny {
  display: none;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.game-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill-cfb,
.pill-nfl,
.pill-nba,
.pill-mlb,
.pill-later { background: transparent; color: var(--text-2); }
.pill-live { background: transparent; color: var(--live); }
.pill-soon { background: transparent; color: var(--gold-text); }

.team-row {
  display: grid;
  grid-template-columns: 1fr 72px 56px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
}

.team-row + .team-row {
  border-top: 1px solid var(--line);
}

.team-head {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.team-head + .team-row {
  border-top: 0;
}

.team-head span:nth-child(2),
.team-head span:nth-child(3) {
  text-align: center;
}

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

.side {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.team-name,
.line-label {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.odds {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0;
  font-weight: 700;
  min-width: 0;
  text-align: center;
  padding: 6px 6px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.odds .juice {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 0;
  color: var(--text-2);
  font-weight: 500;
}

.odds.plus { color: var(--plus); }
.odds.minus { color: var(--text); }

.pill-locked {
  background: transparent;
  color: var(--text-3);
}

.pill-final {
  background: transparent;
  color: var(--text-2);
}

.nfl-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nfl-banner:hover {
  background: var(--bg-card-hover);
  border-color: var(--line-strong);
}

.nfl-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.nfl-banner-copy span {
  color: var(--muted);
  font-size: 13px;
}

.nfl-banner-link {
  color: var(--gold-text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.game-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.standings {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stand-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.stand-row:first-child { border-top: 0; }

.stand-row.is-you {
  background: var(--select-bg);
  box-shadow: inset 2px 0 0 var(--gold-text);
}

.stand-name {
  color: inherit;
  font-weight: 600;
}

.stand-name:hover {
  color: var(--gold-text);
  text-decoration: underline;
}

.pos {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.bank {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.delta.up { color: var(--plus); }
.delta.down { color: var(--down); }

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.how article {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.how .num {
  font-family: var(--font-display);
  color: var(--gold-text);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.how p {
  color: var(--text-dim);
  margin: 8px 0 0;
  font-size: 15px;
}

.notice {
  margin-top: 36px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 15px;
  background: var(--bg-elev);
}

.notice-inline {
  margin-top: 12px;
  margin-bottom: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 36px 22px;
  color: var(--text-dim);
}

.placeholder h1 {
  margin-bottom: 10px;
  color: var(--text);
}

@media (max-width: 900px) {
  .hero,
  .how,
  .login-grid,
  .pot-strip,
  .home-overview {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-overview {
    display: flex;
    flex-direction: column;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    margin: 0;
  }

  .nav.is-open { display: flex; }

  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }

  .league-chip { display: none; }

  .header-meta { gap: 8px; min-width: 0; flex-shrink: 1; }

  .header-inner { gap: 8px; min-width: 0; }

  .logo { font-size: 18px; min-width: 0; }

  .balances { gap: 10px; flex-shrink: 0; }

  .header-logout { display: none; }

  .balances .label-full { display: none; }
  .balances .label-short { display: inline; }

  .nav-logout {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 11px;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .header-inner { position: relative; }
}

.bets-title {
  font-size: 32px;
  line-height: 36px;
}

.bets-head {
  align-items: center;
}

.board-lede {
  margin: -8px 0 20px;
  max-width: 40rem;
}

.sport-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  cursor: pointer;
}

.chip-btn.is-active,
.chip-btn:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--line-strong);
}

.chip-btn.is-active {
  border-color: var(--gold-text);
  color: var(--gold-text);
}

.bets-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.board {
  display: block;
}

.board-search {
  display: block;
  max-width: 280px;
  margin: -8px 0 16px;
}

.board-search input {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 10px;
}

.board-day-head,
.board-slot-head {
  position: sticky;
  z-index: 2;
  margin: 0;
  background: var(--bg);
}

.board-day-head {
  top: var(--header-h);
  padding: 8px 0 4px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.board-slot-head {
  top: calc(var(--header-h) + 34px);
  z-index: 1;
  padding: 4px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.board-slot-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.board-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.board-card .game-top {
  margin-bottom: 6px;
}

.board-card .game-foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.board-card.is-locked {
  opacity: 0.72;
}

.board-grid {
  display: grid;
  gap: 0;
}

.board-head,
.board-team {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(64px, 1fr));
  gap: 6px;
  align-items: center;
}

.board-head {
  color: var(--text-3);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding-bottom: 4px;
}

.board-head span:not(:first-child) {
  text-align: center;
}

.board-team {
  padding: 4px 0;
  border-top: 1px solid var(--line);
}

.board .team-name {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
}

.board .team-name a,
.game-intel-link {
  color: inherit;
  text-decoration: none;
}

.board .team-name a:hover,
.game-intel-link:hover {
  color: var(--gold-text);
}

.game-intel-link {
  font-size: 13px;
  color: var(--gold-text);
}

.board-head + .board-team {
  border-top: 0;
}

.odds-btn {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0;
  min-height: 44px;
  width: 100%;
  padding: 4px 2px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  cursor: pointer;
}

.odds-btn .line { font-size: 15px; font-weight: 700; line-height: 18px; }
.odds-btn .juice {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.odds-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.odds-btn.is-on {
  border-color: var(--gold-text);
  background: var(--gold-soft);
  color: var(--gold-text);
}

.odds-btn.is-on .juice { color: var(--gold-text); }

.odds-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: var(--surface-1);
  color: var(--text-3);
  border-color: var(--border);
}

.more-markets {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.more-markets summary {
  cursor: pointer;
  color: var(--gold-text);
  font-size: 15px;
  font-weight: 600;
}

.more-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.more-label {
  color: var(--muted);
  font-size: 13px;
}

.more-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.empty-board {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
}

.slip-panel {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 96px);
  overflow: hidden;
}

.slip-sheet {
  display: contents;
}

.slip-handle,
.slip-backdrop {
  display: none;
}

.slip-dock,
.slip-peek,
.slip-toggle {
  display: none;
}

.open-bets-card {
  flex: 0 1 auto;
  min-height: 0;
  margin-top: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  overflow: auto;
}

.open-bets-card h2 {
  margin-bottom: 8px;
}

.open-bets-card .bet-ledger {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.open-bets-card .bet-row {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.open-bets-card .bet-item:first-child .bet-row {
  border-top: 0;
}

.open-bets-card .bet-row:hover,
.open-bets-card .bet-item.is-open .bet-row {
  background: var(--bg-card-hover);
}

.open-bets-card .bet-row-detail {
  padding: 0 0 10px;
}

.open-bets-card .bet-row-detail .ticket {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 0;
}

.open-bets-card .bet-row-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-bets-card .bet-row-money {
  flex: 0 0 auto;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.slip-card {
  flex: 0 1 auto;
  min-height: 0;
  max-height: 40vh;
  margin: 0;
  overflow: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.slip-card h2 {
  margin-bottom: 12px;
}

.slip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.slip-head h2,
.slip-card .slip-head h2 {
  margin: 0;
}

.slip-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.slip-count-badge[hidden] {
  display: none;
}

.slip-mode {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}

.slip-mode[hidden] {
  display: none;
}

.slip-mode .chip-btn {
  flex: 1;
  min-width: 0;
}

.slip-leg,
.slip-leg-straight {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.slip-leg-copy {
  min-width: 0;
}

.slip-leg-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.slip-juice {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.slip-leg-stake {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  margin-top: 8px;
}

.slip-leg-stake .stake-label {
  grid-column: 1 / -1;
  margin: 0;
}

.slip-leg-payout {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.slip-place-one {
  width: auto;
  min-width: 76px;
  min-height: 44px;
  padding: 0 12px;
}

#slip-parlay-stake[hidden],
#slip-straight-foot[hidden] {
  display: none;
}

.slip-straight-foot {
  margin-top: 12px;
}

.slip-leg-top strong {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
}

.slip-market {
  display: block;
  margin: 2px 0 2px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.slip-leg-copy .tiny {
  display: block;
}

.slip-remove {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.slip-money-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: end;
}

.slip-money-row .stake-label {
  margin-top: 12px;
}

.slip-win .slip-payout {
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
}

.stake-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.stake-input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0 10px;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stake-input.is-empty,
.stake-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.slip-empty {
  margin: 4px 0 0;
}

.stake-input::-webkit-outer-spin-button,
.stake-input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}

.slip-payout {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  margin: 12px 0;
}

.slip-card .btn {
  width: 100%;
}

.slip-card .btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  color: var(--text-3);
  background: var(--surface-2);
  border-color: transparent;
}

.slip-note {
  margin: 10px 0 0;
  color: var(--gold-text);
}

.slip-note a {
  color: var(--gold-text);
  font-weight: 700;
  text-decoration: underline;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.text-btn:hover { color: var(--text); }

.login-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.login-card,
.lobby-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.login-card.is-locked {
  opacity: 0.78;
}

.login-card.is-locked .settings-lock-note {
  margin: 0 0 14px;
  color: var(--gold-text);
}

.login-card.is-locked input,
.login-card.is-locked select,
.login-card.is-locked textarea,
.login-card.is-locked button {
  cursor: not-allowed;
}

.lobby-list {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin-top: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-2);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 10px;
}

.field textarea {
  min-height: 88px;
  padding: 10px;
  resize: vertical;
}

.home-section {
  margin-top: 40px;
}

.page > .wrap > h1 + .home-section {
  margin-top: 24px;
}

.home-section .section-title + .section-head {
  margin-top: 2px;
}

.home-section #bets-error + .section-head {
  margin-top: 32px;
}

.league-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.commish-bar {
  margin-top: 40px;
}

.commish-bar h2 {
  margin: 6px 0 16px;
}

.home-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.15fr);
  gap: 18px 24px;
  align-items: start;
}

.home-seat {
  height: 100%;
}

.home-standings .section-title {
  margin-bottom: 10px;
}

.home-standings .standings {
  height: auto;
}

.home-overview .stand-row {
  padding: 10px 14px;
  gap: 8px;
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.home-overview .stand-row span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-overview {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .home-seat {
    height: auto;
  }
}

.league-pill {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  min-width: 180px;
}

.league-pill strong {
  display: block;
}

.league-pill.is-on {
  border-color: var(--gold-text);
  background: var(--gold-soft);
}

.team-bet-block {
  margin-bottom: 22px;
}

.team-bet-block h3 {
  margin: 0 0 8px;
}

.profile-seat h1 {
  margin: 4px 0 6px;
}

.profile-bank {
  max-width: 360px;
}

.board-card.is-focus {
  outline: 1px solid var(--gold-text);
}

.sport-set {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px 12px;
  margin: 0 0 12px;
}

.sport-set legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.sport-set label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 6px 14px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

.create-card {
  max-width: 520px;
}

.length-dates {
  display: grid;
  gap: 8px;
}

.length-dates .field {
  position: relative;
}

.length-dates input:disabled,
.length-dates input.pick-weekday {
  opacity: 1;
  color: var(--text);
  background: var(--bg-card);
}

.length-dates input.pick-weekday {
  cursor: pointer;
}

.length-dates input.pick-weekday::-webkit-calendar-picker-indicator {
  display: none;
}

.date-cal {
  position: absolute;
  z-index: 6;
  top: calc(100% + 6px);
  left: 0;
  width: 280px;
  padding: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.date-cal-head,
.date-cal-dow,
.date-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}

.date-cal-head {
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
}

.date-cal-dow {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.date-cal-day {
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 6px;
  padding: 6px 0;
  font: inherit;
  cursor: pointer;
}

.date-cal-day:disabled {
  color: var(--text-3);
  opacity: 1;
  cursor: default;
}

.date-cal-day.is-selected,
.date-cal-day:not(:disabled):hover {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.payout-row {
  display: grid;
  grid-template-columns: 52px 88px auto auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}

.payout-row input {
  width: 100%;
}

.league-summary,
.status-strip {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.status-strip {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.status-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.status-card strong {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.status-card strong.is-live {
  color: var(--live);
}

.status-card strong.is-final {
  color: var(--gold-text);
}

.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.lock-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.lock-line svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 2;
}

.rules-lock-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.rules-lock-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px;
}

.rules-lock-list dt {
  color: var(--muted);
}

.rules-lock-list dd {
  margin: 0;
}

.danger-zone {
  border-color: var(--down);
  margin-top: 24px;
}

.admin-member.is-quiet .tiny {
  color: var(--gold-text);
}

.league-summary p {
  margin: 0;
}

.password-card {
  max-width: 360px;
  width: 100%;
  padding: 12px 14px;
}

.password-card h2 {
  margin: 2px 0 8px;
}

.password-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.password-card .field {
  min-width: 0;
  margin-bottom: 8px;
}

.password-card .field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 36px;
}

.password-card .btn {
  width: 100%;
  min-height: 36px;
  margin-top: 0;
  padding: 0 14px;
}

.home-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 24px;
}

#home-status {
  height: 20px;
  padding: 0 6px;
  border-radius: 2px;
  border: 1px solid rgba(169, 179, 193, 0.4);
  background: transparent;
  color: var(--text-2);
}

.home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.home-main,
.home-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.home-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.home-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-card-head .t-h2 { margin: 0; }
#open-meta { color: var(--text-3); }

.home-card-link {
  background: none;
  border: 0;
  color: var(--gold-text);
  padding: 0;
  min-height: 44px;
  cursor: pointer;
}

.seat-tiles {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 12px;
}

.seat-tile {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.seat-tile .t-small { color: var(--text-3); }
.seat-tile .t-small.is-win,
.seat-tile .seat-figure.is-win { color: var(--win); }
.seat-tile .t-small.is-loss,
.seat-tile .seat-figure.is-loss { color: var(--loss); }

.seat-figure {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.seat-figure.is-win,
.stand-num.is-win,
.t-small.is-win { color: var(--win); }

.seat-figure.is-loss,
.stand-num.is-loss,
.t-small.is-loss { color: var(--loss); }

.up-next-row,
.open-row,
.league-kv {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.up-next-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto 16px;
  min-height: 56px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--border);
  padding: 8px 0;
}

#featured .up-next-row:first-child,
#my-bets .open-row:first-child { border-top: 0; padding-top: 0; }

.up-next-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.up-next-main .t-small { color: var(--text-3); }
.up-next-line {
  font: 600 13px/18px var(--font-ui);
  color: var(--text-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.up-next-sport,
#up-next .pill,
#open-bets .pill,
#home-status {
  height: 20px;
  padding: 0 6px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid rgba(169, 179, 193, 0.4);
  color: var(--text-2);
}
.up-next-chevron { color: var(--text-3); font: 600 18px/1 var(--font-ui); }

.open-row {
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.open-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.open-main .t-small { color: var(--text-3); }
.open-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.open-cancel {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--loss);
  cursor: pointer;
  flex-shrink: 0;
}
.open-cancel svg { width: 18px; height: 18px; fill: currentColor; }
.open-cancel:hover { color: var(--loss); opacity: 0.8; }

.open-price { color: var(--text-2); font-weight: 600; }
.open-side { text-align: right; }

.home-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.home-tab {
  height: 44px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0;
  color: var(--text-2);
  font: 600 15px/22px var(--font-ui);
  cursor: pointer;
}

.home-tab.is-on {
  color: var(--text);
  border-bottom-color: var(--gold-text);
}

.home-feed .board-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  background: none;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.home-feed .board-form .field { flex: 1; margin: 0; }
.home-feed .board-form textarea {
  height: 44px;
  min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
}
.home-feed .board-post {
  background: none;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.home-feed .board-post.is-pinned { border-left: 2px solid var(--gold-text); padding-left: 12px; }
.home-feed .board-post p { color: var(--text-2); margin: 4px 0 0; }
.home-post-h { display: flex; justify-content: space-between; gap: 8px; }
.pill-gold { color: var(--gold-text); border-color: rgba(245, 180, 0, 0.4); }

.stand-line {
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--border);
}

.stand-line.is-you {
  background: var(--select-bg);
  box-shadow: inset 2px 0 0 var(--gold-text);
}

.stand-table { width: 100%; border-collapse: collapse; }
.stand-table th {
  font: 700 11px/14px var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  text-align: left;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
}
.stand-table td { height: 44px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.stand-table th.num, .stand-table td.num { text-align: right; padding-left: 12px; }
.stand-table .stand-rank { font: 700 18px/1 var(--font-display); width: 32px; }
.stand-table tr.is-you td { background: var(--select-bg); }
.stand-table tr.is-you td:first-child { box-shadow: inset 2px 0 0 var(--gold-text); }
.stand-table a { color: inherit; text-decoration: none; }
.stand-table .is-zero { color: var(--text-2); }
.stand-paid { color: var(--win); margin-left: 6px; font: 700 15px/22px var(--font-ui); }
.stand-div td { height: auto; padding: 6px 0; }

.stand-num { margin-left: auto; font-variant-numeric: tabular-nums; }
.stand-cut { margin: 8px 0; }

.league-kv { justify-content: space-between; border-top: 1px solid var(--border); }
#league-card .league-kv .t-small { color: var(--text-2); }
#league-card .league-kv .t-body-strong { color: var(--text); }
#league-card .league-note { color: var(--text-3); }

.link-short { display: none; }

.home-show-all { width: 100%; margin-top: 8px; }


@media (max-width: 767px) {
  .open-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .open-side { grid-column: 1; flex-direction: row; align-items: center; }
  .open-cancel { grid-column: 2; grid-row: 1; }
}

@media (max-width: 1023px) {
  .home-columns { grid-template-columns: 1fr; }
  .home-side { display: contents; }
  .home-seat { order: 1; }
  #standings-card { order: 2; }
  #open-bets { order: 3; }
  #up-next { order: 4; }
  .home-feed { order: 5; }
  #league-card { order: 6; }
  .home-feed-meta { display: none; }
}

@media (max-width: 767px) {
  .home-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
  .home-card { padding: 12px; }
  .home-main, .home-side, .home-columns { gap: 16px; }
  .seat-tiles { grid-template-columns: 1fr 1fr; }
  .up-next-sport { display: none; }
  .up-next-row { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .up-next-line { grid-column: 1; text-align: left; }
  .home-card, .seat-tile { padding: 12px; }
  .seat-tiles { gap: 8px; }
  .link-full { display: none; }
  .link-short { display: inline; }
  .open-side { display: grid; justify-items: end; }
}

.board-posts {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

.board-post,
.board-form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.board-post.is-pinned {
  border-color: var(--gold-text);
  background: var(--gold-soft);
}

.board-post p {
  margin: 8px 0 0;
}

.post-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.reply-form {
  margin-top: 10px;
}

.reply-form .field {
  margin: 0 0 8px;
}

.reply-form textarea {
  width: 100%;
  min-width: 0;
}

.reply-form .btn {
  min-height: 36px;
}

.post-replies {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 4px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.post-replies:empty {
  display: none;
}

.board-post.is-reply {
  padding: 10px 12px;
  background: var(--bg);
}

.ticket-social {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.vote-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.vote-btn {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 4px 10px;
  cursor: pointer;
}

.vote-btn.is-on {
  border-color: var(--gold-text);
  color: var(--gold-text);
  background: var(--gold-soft);
}

.comment-list {
  margin: 10px 0 0;
  padding-left: 0;
  list-style: none;
}

.comment-list li {
  margin: 10px 0;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.comment-body {
  margin: 4px 0 0;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.comment-form input {
  flex: 1;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  padding: 0 10px;
}

.login-card .btn { width: 100%; margin-top: 6px; }

.signup-link {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.admin-member {
  grid-template-columns: 1fr auto auto;
}

.admin-member .tiny {
  display: block;
}

.lobby-card {
  display: block;
}

.lobby-card:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hover);
}

.lobby-card h2 {
  margin: 4px 0 8px;
}

.lobby-card h2 a:hover {
  color: var(--gold-text);
}

.lobby-card .tiny a {
  color: var(--gold-text);
  font-weight: 600;
}

.lobby-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.lobby-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.lobby-card-note {
  margin-top: 12px;
}

.lobby-card .hero-actions {
  margin-top: 14px;
}

.ticket {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fd-head,
.fd-leg-top,
.fd-leg-foot,
.fd-money {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.fd-head {
  margin-bottom: 4px;
}

.fd-head strong,
.fd-leg-top strong {
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.fd-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pick-board-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.pick-board-link:hover {
  color: var(--gold-text);
}

.fd-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--gold-text);
}

.fd-odds,
.fd-juice {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

.fd-legs {
  display: grid;
  gap: 0;
}

.fd-leg {
  padding: 10px 0;
}

.fd-head + .fd-legs .fd-leg:first-child,
.fd-leg + .fd-leg {
  border-top: 1px solid var(--line);
}

.fd-market {
  margin: 2px 0 6px;
  font-size: 13px;
  color: var(--muted);
}

.fd-result {
  margin-left: 8px;
  letter-spacing: 0;
}

.fd-leg-foot {
  color: var(--muted);
  font-size: 15px;
}

.fd-money {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.fd-money > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fd-money > div:last-child {
  text-align: right;
}

.fd-money .tiny {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.fd-money strong {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums slashed-zero;
}

.fd-money strong.is-up {
  color: var(--plus);
}

.fd-money strong.is-down {
  color: var(--down);
}

.fd-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.ticket-cancel {
  background: none;
  border: 0;
  padding: 0;
  color: var(--down);
  font-weight: 700;
  cursor: pointer;
}

.ticket-cancel:hover,
.ticket-cancel:focus-visible {
  color: #ff8a8a;
}

.fd-placed {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.home-tickets .bet-groups {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-tickets .bet-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-tickets .bet-group > .bet-row {
  align-items: center;
  border-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem 14px;
}

.home-tickets .bet-item .bet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11rem;
  padding-right: 26px;
}

.home-tickets .bet-group > .bet-row .bet-row-name {
  margin-right: 0;
}

.home-tickets .bet-group > .bet-row::after {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
}

.home-tickets .bet-group.is-open > .bet-row,
.home-tickets .bet-group > .bet-row:hover {
  background: var(--bg-card-hover);
}

.home-tickets .bet-group.is-open > .bet-row::after {
  transform: translateY(2px) rotate(-135deg);
}

.home-tickets .bet-group-body {
  border-top: 1px solid var(--line);
}

.home-tickets .bet-group-body .bet-ledger {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-tickets .bet-group-label {
  margin: 0;
  padding: 10px 12px 0;
}

.home-tickets .bet-ledger {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.home-tickets .bet-row {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.home-tickets .bet-item:first-child .bet-row {
  border-top: 0;
}

.home-tickets .bet-row:hover,
.home-tickets .bet-item.is-open .bet-row {
  background: var(--bg-card-hover);
}

.home-tickets .bet-row-detail {
  padding: 0 12px 12px;
}

.home-tickets .bet-row-detail .ticket {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 10px 0 0;
}

.home-tickets .bet-row-main {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-tickets .bet-row-name {
  margin-right: 8px;
}

.home-tickets .bet-row-money {
  justify-self: end;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.bet-badge {
  display: inline-block;
  min-width: 1.25rem;
  margin-right: 6px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.bet-badge.is-won { color: var(--plus); background: var(--live-soft); }
.bet-badge.is-lost { color: var(--down); background: var(--down-soft); }
.bet-badge.is-push,
.bet-badge.is-void { color: var(--muted); background: var(--bg); }

.bet-when { margin-right: 6px; }

.home-tickets .bet-row-money.is-up {
  color: var(--plus);
}

.home-tickets .bet-row-money.is-down {
  color: var(--down);
}

.ticket-legs {
  margin: 0;
  padding-left: 1.1rem;
}

.ticket-legs li {
  margin: 4px 0;
}

.ticket-legs .tiny {
  display: block;
}

.team-stats {
  max-width: 520px;
  margin: 16px 0 8px;
}

.ledger {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 12px;
}

.ledger-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.ledger-row:first-child { border-top: 0; }

.ledger-foot {
  background: var(--gold-soft);
}

@media (max-width: 640px) {
  .ledger-row {
    grid-template-columns: 1fr auto;
  }
  .ledger-row .tiny {
    grid-column: 1 / -1;
  }
}

.rules-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
}

.rules-table th,
.rules-table td {
  text-align: left;
  vertical-align: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rules-table tr:first-child th,
.rules-table tr:first-child td {
  border-top: 0;
  padding-top: 0;
}

.rules-table th {
  width: 9.5rem;
  padding-right: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rules-table td {
  font-weight: 600;
}

.rules-payout {
  display: block;
  font-variant-numeric: tabular-nums;
}

.rules-payout + .rules-payout {
  margin-top: 4px;
}

.rules-note {
  display: block;
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .rules-table th {
    width: 7.25rem;
    white-space: normal;
  }
}

.rules-prose h1 {
  margin-bottom: 8px;
}

.rules-prose .pot-strip {
  margin: 22px 0 8px;
}

.rules-prose h2 {
  margin: 32px 0 10px;
  scroll-margin-top: 80px;
}

.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 8px;
  padding: 0;
  list-style: none;
}

.about-toc a {
  color: var(--gold-text);
  font-weight: 600;
  text-decoration: none;
}

.about-toc a:hover {
  text-decoration: underline;
}

.rules-prose ol {
  padding-left: 1.2rem;
  margin: 0;
}

.rules-prose ol li + li {
  margin-top: 6px;
}

.about-faq dt {
  margin-top: 16px;
  color: var(--text);
  font-weight: 700;
}

.about-faq dd {
  margin: 4px 0 0;
}

.join-code-card .join-code-value {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 8px 0;
}

.join-code-card .btn {
  margin-top: 8px;
}

.rules-prose p,
.rules-prose li {
  color: var(--text-dim);
  line-height: 1.55;
}

.rules-prose ul {
  padding-left: 1.2rem;
  margin: 0;
}

.rules-prose li + li {
  margin-top: 6px;
}

@media (max-width: 1023px) {
  .bets-layout { grid-template-columns: 1fr; }

  .slip-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 35;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    overflow: visible;
    background: var(--nav-bg);
    border-top: 1px solid var(--line);
  }

  .slip-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.45);
  }

  .slip-panel.is-open .slip-backdrop {
    display: block;
  }

  .slip-sheet {
    display: none;
    position: relative;
    z-index: 1;
    flex-direction: column;
    max-height: 60vh;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 14px 14px 0 0;
    transform: translate3d(0, var(--slip-drag, 0px), 0);
    transition: transform 0.22s ease-out;
  }

  .slip-panel.is-open .slip-sheet {
    display: flex;
  }

  .slip-handle {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 0 6px;
    touch-action: none;
  }

  .slip-handle span {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--line-strong, var(--line));
  }

  .slip-peek:not([hidden]) {
    display: block;
    position: relative;
    z-index: 1;
    padding: 8px 12px 0;
    background: var(--nav-bg);
  }

  .slip-panel.is-open .slip-peek {
    display: none;
  }

  .slip-peek-btn {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-card);
    color: inherit;
    text-align: left;
    cursor: pointer;
  }

  .slip-peek-text {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .slip-peek-text strong {
    font-size: 14px;
  }

  .slip-dock {
    display: flex;
  }

  .slip-toggle {
    display: flex;
    flex: 1;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--bg-card);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
  }

  .slip-toggle.is-on {
    background: var(--bg-card-hover);
    color: var(--gold-text);
  }

  .slip-dock {
    position: relative;
    z-index: 1;
  }

  .slip-card,
  .open-bets-card {
    display: none;
    flex: none;
    min-height: 0;
    border: 0;
    border-radius: 0;
    margin-top: 0;
    max-height: none;
  }

  .slip-panel.is-open[data-sheet="slip"] .slip-card,
  .slip-panel.is-open[data-sheet="open"] .open-bets-card {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
  }

  .bets-page { padding-bottom: 56px; }

  .bets-page.has-slip-peek { padding-bottom: 128px; }

  .more-row { grid-template-columns: 1fr; }

  .board-head,
  .board-team {
    grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
}

.ou {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 14px;
  text-transform: none;
}

@media (max-width: 767px) {
  h1, .bets-title { font-size: 28px; line-height: 32px; }
  h2 { font-size: 20px; line-height: 24px; }
}

@media (max-width: 767px) {
  h1, .bets-title { font-size: 28px; line-height: 32px; }
  h2 { font-size: 20px; line-height: 24px; }
}

@media (max-width: 640px) {
  .board-slot-games {
    grid-template-columns: 1fr;
  }
  .balances .label-full { display: none; }
  .balances .label-short { display: inline; }
  .logo { font-size: 16px; gap: 6px; }
  .header-meta { gap: 6px; }
  .balances { gap: 8px; }
  .menu-btn { width: 40px; height: 40px; }
  .hero { padding-top: 8px; }
  .home-standings .standings { height: auto; }
  .nfl-banner { flex-wrap: wrap; }
  .nfl-banner-link { width: 100%; }
  .cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .game-card {
    padding: 8px 10px;
  }
  .password-fields {
    grid-template-columns: 1fr;
  }
}

.ledger-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.ledger-stats div {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.ledger-stats span {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}

.ledger-stats strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.ledger-stats .up,
.cut-table .up,
.ticket-mini .up { color: var(--plus); }

.ledger-stats .down,
.cut-table .down,
.ticket-mini .down { color: var(--down); }

.ledger-path {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px 8px;
  margin: 18px 0 8px;
}

.ledger-path-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.ledger-path svg {
  width: 100%;
  height: auto;
  display: block;
  color: var(--muted);
}

.ledger-path text {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  fill: currentColor;
}

.ledger-axis {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.ledger-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.ledger-line {
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.cut-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
}

.cut-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.cut-table th {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.cut-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.cut-table th:not(:first-child),
.cut-table td:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cut-table tbody tr[data-name] {
  cursor: pointer;
}

.cut-table tbody tr[data-name]:hover td {
  background: var(--bg-card-hover);
}

.cut-table tr.is-open td,
.cut-table tr.is-open:hover td {
  background: var(--gold-soft);
}

.cut-name { font-weight: 600; text-align: left; }

.cut-open {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.cut-empty {
  text-align: left;
  color: var(--text-dim);
  cursor: default;
}

.cut-empty a { color: var(--gold-text); }

.cut-detail td {
  background: var(--bg-elev);
  text-align: left;
}

.cut-detail:hover td { background: var(--bg-elev); }

.ticket-mini {
  width: auto;
  border-collapse: collapse;
}

.ticket-mini th,
.ticket-mini td {
  text-align: left;
  padding: 6px 28px 6px 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  white-space: nowrap;
}

.cut-detail .ticket-mini th,
.cut-detail .ticket-mini td {
  text-align: left;
}

.ticket-mini th {
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .ledger-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.game-hero {
  margin: 0;
  min-width: 0;
}

.game-hero h1,
.game-hero .t-h1 {
  margin: 0;
}

.game-at {
  color: var(--text-3);
  font-size: 0.6em;
}

.game-score {
  margin: 10px 0 0;
  font-variant-numeric: tabular-nums;
}

.game-hero-score-meta {
  margin: 6px 0 0;
  color: var(--text-2);
}

.game-meta {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 15px;
}

.game-card-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.game-card-block h2 {
  margin-bottom: 10px;
}

.game-card-block > .section-title:first-child {
  margin-bottom: 12px;
}

.preview-facts {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;
}

.preview-fact {
  margin: 0;
}

.preview-fact strong {
  font-weight: 700;
}

.preview-outlets {
  margin: 0 0 16px;
}

.preview-outlets-label {
  margin: 0 0 8px;
}

.preview-outlet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-outlet {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.preview-outlet:hover {
  border-color: var(--gold-text);
  color: var(--gold-text);
}

.preview-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: inherit;
  text-decoration: none;
}

.preview-chip span {
  color: var(--gold-text);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.preview-chip:hover {
  border-color: var(--gold-text);
}

.injury-group + .injury-group {
  margin-top: 16px;
}

.injury-group h3 {
  margin: 0 0 8px;
}

.injury-wrap {
  overflow-x: auto;
}

.injury-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 15px;
}

.injury-table th,
.injury-table td {
  text-align: left;
  padding: 7px 14px 7px 0;
  vertical-align: top;
  white-space: nowrap;
}

.injury-table th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.injury-table td {
  border-top: 1px solid var(--line);
}

.injury-table td:nth-child(3),
.injury-table td:nth-child(5) {
  white-space: normal;
}

.injury-table a {
  color: var(--gold-text);
  text-decoration: none;
}

.injury-table a:hover {
  text-decoration: underline;
}

.move-table {
  margin-top: 22px;
}

.move-cols,
.line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 8px;
  align-items: end;
}

.move-cols.has-dk,
.line-row.has-dk,
.move-table.has-dk .move-cols,
.move-table.has-dk .line-row {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
}

.move-cols {
  margin-bottom: 6px;
}

.move-col-title {
  color: var(--text-3);
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.move-col-title em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--text-dim);
}

.move-market-title {
  margin: 14px 0 2px;
  font-family: var(--font-ui);
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.line-row {
  align-items: baseline;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.line-open,
.line-now,
.line-dk {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  white-space: nowrap;
}

.line-now,
.line-dk {
  color: var(--text-2);
}

.move-line,
.move-note {
  margin: 6px 0 0;
  color: var(--text-2);
}

.move-note {
  margin-top: 14px;
  color: var(--text-3);
}

.matchup-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 15px;
}

.matchup-table th,
.matchup-table td {
  text-align: left;
  padding: 8px 8px 8px 0;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
}

.matchup-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.matchup-table thead th.team-name {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.matchup-table tbody th {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
}

.matchup-table td {
  font-family: var(--font-ui);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.matchup-meetings {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}

.matchup-meetings li {
  margin: 0 0 6px;
}

#matchup .matchup-context,
#matchup .matchup-note {
  margin: 8px 0;
  color: var(--text-3);
  font-size: 13px;
  line-height: 18px;
}

#matchup .matchup-line {
  margin: 8px 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 18px;
}

#matchup .matchup-sub {
  margin: 16px 0 8px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#matchup .matchup-table td,
#matchup .matchup-table tbody th {
  height: 44px;
}

#matchup .matchup-table td.num,
#matchup .matchup-table th.num {
  text-align: right;
}

#matchup .matchup-val.is-empty {
  color: var(--text-3);
  font-weight: 500;
}

#matchup .matchup-rank {
  margin-left: 6px;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 500;
}

#matchup .matchup-edge {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

#matchup .matchup-more {
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

#matchup .matchup-players {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

#matchup .matchup-players span {
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  #matchup {
    padding: 12px;
  }
  #matchup .matchup-rank {
    display: block;
    margin-left: 0;
  }
  #matchup .matchup-unit {
    table-layout: fixed;
  }
}

.last5 {
  margin-top: 22px;
}

.last5 h2 {
  margin: 0 0 12px;
}

.last5-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
}

.last5-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 16px;
  cursor: pointer;
}

.last5-tab.is-on {
  background: var(--bg-elev);
  color: var(--text);
}

.last5-scroll {
  overflow-x: auto;
}

.last5-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-family: var(--font);
  font-size: 15px;
}

.last5-table th,
.last5-table td {
  text-align: left;
  padding: 10px 12px 10px 0;
  border-top: 1px solid var(--line);
  vertical-align: baseline;
  white-space: nowrap;
}

.last5-table td {
  font-family: var(--font-ui);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.last5-table td.last5-opp {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: 0;
}

.last5-table thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.last5-date,
.last5-opp {
  color: var(--text);
}

.last5-score.is-win,
.last5-spread.is-win,
.last5-total.is-win,
.last5-ml.is-win {
  color: var(--plus);
}

.last5-score.is-loss,
.last5-spread.is-loss,
.last5-total.is-loss,
.last5-ml.is-loss {
  color: var(--down);
}

.last5-score.is-push,
.last5-spread.is-push,
.last5-total.is-push,
.last5-ml.is-push {
  color: var(--muted);
}

.game-board {
  margin: 8px 0 16px;
}

.game-board .board-head,
.game-board .board-team {
  grid-template-columns: minmax(7.5rem, 0.9fr) repeat(3, minmax(5.5rem, 1fr));
  gap: 10px;
}

.game-board .odds-btn {
  min-height: 52px;
  text-decoration: none;
  width: 100%;
}

.game-board .odds-btn .line {
  font-size: 15px;
}

.game-board .odds-btn .juice {
  font-size: 12px;
  font-weight: 500;
}

.game-actions {
  margin-top: 4px;
}

#odds,
#this-league,
#market,
#matchup,
#injuries,
#reading {
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.game-top-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  grid-template-areas:
    "hero board"
    "glance board";
  gap: 24px;
  align-items: start;
  margin: 8px 0 0;
}

.game-top-band.is-started {
  grid-template-columns: 1fr;
  grid-template-areas: "hero";
}

.game-top-band.is-final {
  grid-template-columns: 1fr;
  grid-template-areas:
    "hero"
    "glance";
}

.game-hero { grid-area: hero; }
.game-board-card { grid-area: board; margin-bottom: 0; }
.game-glance { grid-area: glance; }

.game-hero-pills,
.game-hero-pills-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.game-hero-pills {
  justify-content: space-between;
  margin-bottom: 10px;
}

.game-hero-when { margin: 0 0 8px; }
.game-hero-records {
  margin: 8px 0 0;
  color: var(--text-2);
}

.game-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.game-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  color: var(--text-2);
}

.game-chip.is-windy { color: var(--text); }

.game-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.game-glance-tile {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  padding: 12px;
  min-width: 0;
}

.game-glance-tile .t-label { margin: 0 0 4px; }

.game-glance-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
}

.game-glance-value.is-empty { color: var(--text-3); }

.game-glance-sub {
  margin: 4px 0 0;
  color: var(--text-3);
}

.game-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.game-card-head .t-h2 { margin: 0; }
.game-card-meta { margin: 0; color: var(--text-3); text-align: right; }

.game-board-card .board-grid { margin-bottom: 16px; }

.game-board-card .team-name {
  font-size: 17px;
  line-height: 24px;
  font-weight: 700;
}

.game-board-card .side {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.odds-btn.is-locked {
  cursor: default;
  pointer-events: none;
}

.game-board-locked {
  margin: 0 0 12px;
  color: var(--text-2);
}

.game-league-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.game-league-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.game-league-list li:last-child { border-bottom: 0; }

.game-ticket-mark.is-win { color: var(--win); }
.game-ticket-mark.is-loss { color: var(--loss); }
.game-ticket-mark.is-push { color: var(--push); }

.game-bet-primary { width: 100%; }

.game-board-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: var(--gold-text);
}

.game-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  margin: 24px 0;
  padding: 0 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  flex-wrap: wrap;
}

.game-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.game-nav-links a {
  height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
}

.game-nav-links a.is-active {
  color: var(--text);
  border-bottom-color: var(--gold-text);
}

.game-nav-bet {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease);
}

.game-nav.is-away .game-nav-bet {
  opacity: 1;
  pointer-events: auto;
}

.game-nav-line { color: var(--text-2); white-space: nowrap; }
.game-bet-compact { min-height: 40px; padding: 0 16px; }

.game-phone-bar {
  display: none;
}

@media (max-width: 1023px) {
  body[data-page="game"]:has(.game-phone-bar:not([hidden])) .page {
    padding-bottom: 96px;
  }

  .game-top-band {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "board"
      "glance";
    gap: 16px;
  }

  .game-top-band.is-final {
    grid-template-areas:
      "hero"
      "glance";
  }

  .game-nav { margin: 16px 0; padding: 0 8px; }
  .game-nav-links { gap: 10px; }
  .game-nav-bet { display: none; }

  .game-phone-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    background: var(--surface-1);
    border-top: 1px solid var(--border);
  }

  .game-phone-bar[hidden] { display: none; }

  .game-glance-value {
    font-size: 22px;
    line-height: 26px;
  }
}

@media (max-width: 767px) {
  .game-glance { gap: 8px; }
  .game-glance-tile { padding: 10px; }
  .game-card-block { padding: 12px; }

  .game-league-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "team mark"
      "pick mark";
    gap: 2px 12px;
    align-items: start;
  }

  .game-league-list li .t-body-strong { grid-area: team; }
  .game-league-list li .t-body { grid-area: pick; }
  .game-league-list li .game-ticket-mark { grid-area: mark; align-self: center; }
}

@media (max-width: 720px) {
  .game-board .board-head,
  .game-board .board-team {
    grid-template-columns: minmax(5.25rem, 0.8fr) repeat(3, minmax(4.25rem, 1fr));
    gap: 6px;
  }

  .game-board .odds-btn {
    min-height: 46px;
  }
}

.cut-table th,
.rules-table th,
.injury-table th,
.matchup-table th,
.last5-table thead th {
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-3);
}

.cut-table td,
.rules-table td,
.injury-table td,
.matchup-table td,
.last5-table td,
.ledger-row,
.stand-row,
.ticket,
.bet-row,
.board-post,
.rules-prose p,
.rules-prose li,
.login-card,
.field {
  font-size: 15px;
  line-height: 22px;
}

.site-footer,
.tiny,
.slip-market,
.slip-empty {
  font-size: 13px;
  line-height: 18px;
}

.matchup-card { padding: 16px; }
.matchup-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.matchup-meta,
.matchup-source,
.matchup-note { color: var(--text-3); margin: 8px 0 0; }
.matchup-context { color: var(--text-2); margin: 8px 0 0; }
.matchup-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 32px;
}
.matchup-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  padding: 16px;
  min-width: 0;
}
.matchup-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  border-top: 1px solid var(--border);
}
.matchup-kv:first-of-type { border-top: 0; }
.matchup-kv .t-body { color: var(--text-2); }
.matchup-gap { margin: 12px 0 0; }
.matchup-units,
.matchup-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
}
.matchup-splits-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}
.matchup-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.matchup-table td.num,
.matchup-table th.num { text-align: right; }
.matchup-table tbody th,
.matchup-table tbody td { min-height: 44px; }
.matchup-recent-table tbody td { min-height: 52px; }
.matchup-unit tbody th {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
}
.matchup-rank { margin-left: 6px; color: var(--text-3); }
.matchup-edge-cell { color: var(--text); font-weight: 600; }
.matchup-label-short { display: none; }
.matchup-players { list-style: none; margin: 0; padding: 0; }
.matchup-players li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  min-height: 44px;
  border-top: 1px solid var(--border);
}
.matchup-player-line { color: var(--text-2); text-align: right; }
.matchup-recent-table td { min-height: 52px; }
.matchup-stack { display: flex; flex-direction: column; align-items: flex-end; }
.matchup-date-under { display: none; }
.matchup-score .is-win,
.matchup-recent .is-win { color: var(--win); }
.matchup-score .is-loss,
.matchup-recent .is-loss { color: var(--loss); }
.matchup-score .is-push,
.matchup-recent .is-push { color: var(--push); }
#matchup .is-empty { color: var(--text-3); }
.matchup-h2h,
.matchup-source { margin-top: 32px; }

@media (max-width: 899px) {
  .matchup-units,
  .matchup-columns { grid-template-columns: 1fr; gap: 24px; }
  .matchup-splits-row { flex-direction: column; align-items: stretch; }
}
@media (max-width: 767px) {
  .matchup-card { padding: 12px; }
  .matchup-head { flex-direction: column; align-items: flex-start; }
  .matchup-tiles { grid-template-columns: 1fr; margin-top: 24px; }
  .matchup-tile { padding: 12px; }
  .matchup-unit tbody th { font-size: 13px; line-height: 18px; }
  .matchup-label-long { display: none; }
  .matchup-label-short { display: inline; }
  .matchup-strip { grid-template-columns: 1fr; }
  .matchup-strip-cell {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .matchup-players li { grid-template-columns: minmax(0, 1fr) auto; }
  .matchup-players .t-label { grid-column: 2; grid-row: 1; }
  .matchup-players .t-body-strong { grid-column: 1; grid-row: 1; }
  .matchup-player-line { grid-column: 1 / -1; text-align: left; }
  .matchup-recent-table .matchup-date { display: none; }
  .matchup-date-under { display: block; color: var(--text-3); }
}

.matchup-head .t-h2 { margin: 0; }

.game-market-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.game-market-k { margin: 12px 0 0; }
.game-market-dk { color: var(--text-3); margin: 8px 0 0; }
.game-market-move {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
}
.game-market-note { color: var(--text-3); margin: 16px 0 0; }

.game-injury-source { color: var(--text-3); margin: 0 0 16px; }
.game-injuries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.game-injury-team-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.game-injury-team-head .t-small { color: var(--text-3); }
.game-injuries .injury-table { min-width: 0; width: 100%; }
.game-injuries .injury-table th,
.game-injuries .injury-table td { white-space: normal; min-height: 44px; }
.game-injury-status { color: var(--text-2); }
.game-injury-status.is-serious { color: var(--text); }
.game-injury-status.is-questionable { color: var(--text-2); }
.game-injury-return { display: block; color: var(--text-3); }
.game-injury-ir { color: var(--text-3); margin: 12px 0 0; }

.game-read-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.game-read-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.game-read-chip:hover { border-color: var(--border-strong); }
.game-read-list { list-style: none; margin: 0; padding: 0; }
.game-read-list li {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.game-read-source { color: var(--gold-text); margin: 0 0 4px; }
.game-read-list a { color: var(--text); text-decoration: none; }
.game-read-list a:hover { text-decoration: underline; }
#reading .btn-secondary { margin-top: 8px; }

@media (max-width: 767px) {
  .game-market-tiles,
  .game-injuries { grid-template-columns: 1fr; gap: 16px; }
}
