:root {
  --bg: #05070a;
  --bg-elevated: #0a0d12;
  --bg-card: #0c1016;
  --bg-card-hover: #121820;
  --border: rgba(0, 229, 255, 0.1);
  --border-strong: rgba(0, 229, 255, 0.28);
  --text: #eef2f6;
  --text-muted: #8b95a8;
  --text-dim: #5c6578;
  --accent: #00e5ff;
  --accent-2: #2ee6ea;
  --accent-glow: rgba(0, 229, 255, 0.28);
  --brand-cyan: #00e5ff;
  --brand-cyan-dim: rgba(0, 229, 255, 0.14);
  --win: #00e5ff;
  --win-bg: rgba(0, 229, 255, 0.1);
  --loss: #ff3b4e;
  --loss-bg: rgba(255, 59, 78, 0.12);
  --pending: #ffc857;
  --pending-bg: rgba(255, 200, 87, 0.12);
  --void: #8b93a7;
  --void-bg: rgba(139, 147, 167, 0.12);
  --nfl: #ff6b35;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 560px), rgba(0, 229, 255, 0.045) calc(50% - 560px), rgba(0, 229, 255, 0.045) calc(50% - 559px), transparent calc(50% - 559px)),
    radial-gradient(900px 420px at 12% -8%, rgba(0, 229, 255, 0.1), transparent 55%),
    radial-gradient(700px 360px at 92% 0%, rgba(46, 230, 234, 0.06), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.45;
  position: relative;
}

/* Film grain — faint, not neon */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
  position: relative;
}

/* —— Masthead —— */
.banner-wash {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  width: min(1200px, 100%);
  height: 200px;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.35) 0%, rgba(5, 7, 10, 0.85) 55%, var(--bg) 100%),
    radial-gradient(ellipse 80% 60% at 30% 0%, rgba(0, 229, 255, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 0 0 20px 20px;
  mask-image: linear-gradient(180deg, #000 25%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 25%, transparent 100%);
}
@media (max-width: 640px) {
  .banner-wash { height: 140px; }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
  box-shadow: 0 1px 0 rgba(0, 229, 255, 0.04);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.logo-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.28));
}

.logo-wordmark {
  display: block;
  height: 44px;
  width: auto;
  max-width: min(260px, 48vw);
  object-fit: contain;
}

@media (min-width: 720px) {
  .logo-wordmark { height: 56px; max-width: 320px; }
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.brand-stamp {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
  border: 1px solid rgba(0, 229, 255, 0.45);
  padding: 0.2rem 0.45rem 0.15rem;
  display: inline-block;
  width: fit-content;
  border-radius: 2px;
  background: rgba(0, 229, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.brand-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

@media (max-width: 520px) {
  .brand-sub { display: none; }
  .brand-stamp { font-size: 0.78rem; letter-spacing: 0.16em; }
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.updated-stamp {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--brand-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

.btn-refresh {
  appearance: none;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: var(--brand-cyan);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn-refresh:hover { background: rgba(0, 229, 255, 0.16); border-color: rgba(0, 229, 255, 0.55); }
.btn-refresh:active { transform: scale(0.98); }
.btn-refresh:focus-visible {
  outline: 2px solid var(--brand-cyan);
  outline-offset: 2px;
}
.btn-refresh:disabled { opacity: 0.65; cursor: wait; }
.btn-refresh.is-working {
  padding-left: 1.55rem;
  position: relative;
}
.btn-refresh.is-working::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: -0.325rem;
  border: 2px solid rgba(0, 229, 255, 0.25);
  border-top-color: var(--brand-cyan);
  border-radius: 50%;
  animation: refresh-spin 0.7s linear infinite;
}
@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

/* —— Sport bar —— */
.sport-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin-bottom: 1rem;
  padding: 0.55rem 0;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.96) 40%, rgba(5, 7, 10, 0.82));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.sport-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.sport-pills-primary { gap: 0.5rem; }
.sport-pills-primary .sport-pill {
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 750;
  border-width: 1.5px;
  border-color: rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.04);
  color: var(--text);
}
.sport-pills-primary .sport-pill:hover {
  border-color: rgba(0, 229, 255, 0.55);
  color: var(--brand-cyan);
  background: rgba(0, 229, 255, 0.1);
}
.sport-pills-primary .sport-pill.active {
  background: var(--brand-cyan);
  color: #05070a;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.28);
}

/* —— KPI scoreboard modules —— */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 720px) and (max-width: 899px) {
  .hero { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: repeat(5, 1fr); }
}

.kpi {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}
.kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-cyan);
  opacity: 0.7;
}
.kpi::after { display: none; }

.kpi-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.kpi-value {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  text-transform: uppercase;
}
.kpi-value.pos { color: var(--win); }
.kpi-value.neg { color: var(--loss); }
.kpi-value.warn { color: var(--pending); }

.kpi-hint {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.hero-scope {
  margin: -0.55rem 0 1.1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 650;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 1;
}
.history-note {
  margin: -0.35rem 0 1.1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* —— Money bar —— */
.money-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 860px) {
  .money-bar { grid-template-columns: 1.1fr 1.4fr; align-items: start; }
}

.stake-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}
.stake-row input[type="range"] {
  width: min(220px, 100%);
  accent-color: var(--accent);
}
.stake-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 3.5rem;
  letter-spacing: 0.02em;
}
.stake-note { font-size: 0.75rem; margin: 0.45rem 0 0; }
.stake-pill.active {
  background: var(--brand-cyan);
  color: #05070a;
  border-color: var(--brand-cyan);
}

.buckets-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.buckets-head h2 {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 700;
}
.buckets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.45rem;
}
.bucket {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
}
.bucket-range { font-weight: 750; font-size: 0.78rem; }
.bucket-n { font-size: 0.72rem; color: var(--text-muted); margin: 0.15rem 0; }
.bucket-pl { font-size: 0.85rem; font-weight: 700; }
.bucket-pl.pos { color: var(--brand-cyan); }
.bucket-empty { font-size: 0.8rem; padding: 0.35rem 0; }

/* —— Pending board = betting slips —— */
.pending-board {
  margin-bottom: 1.25rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.06);
}
.pending-board.hidden { display: none; }

.pending-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.pending-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pending-badge {
  background: var(--pending);
  color: #1a1400;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  letter-spacing: 0.08em;
}

.pending-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}
@media (min-width: 720px) {
  .pending-grid { grid-template-columns: repeat(3, 1fr); }
}

.pending-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: #0a0c10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
  position: relative;
}
.pending-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.4);
}
.pending-card.nfl {
  border-color: rgba(255, 107, 53, 0.4);
}

.slip-stub {
  flex: 0 0 2.1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.95), rgba(0, 200, 220, 0.85));
  color: #05070a;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border-right: 1px dashed rgba(255, 255, 255, 0.22);
  position: relative;
}
.slip-stub::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 7px,
      rgba(5, 7, 10, 0.95) 7px 11px
    );
  pointer-events: none;
}

.slip-body {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.slip-stamp {
  position: absolute;
  right: 0.55rem;
  top: 0.45rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(0, 229, 255, 0.55);
  border: 1.5px solid rgba(0, 229, 255, 0.45);
  padding: 0.12rem 0.35rem 0.08rem;
  border-radius: 2px;
  transform: rotate(-8deg);
  pointer-events: none;
  text-transform: uppercase;
  opacity: 0.9;
}

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-right: 3.2rem;
}
.pc-sport {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--nfl);
  text-transform: uppercase;
}
.pending-card:not(.nfl) .pc-sport { color: var(--brand-cyan); }
.pc-links { display: flex; gap: 0.45rem; }
.pc-link {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pc-teams {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
}
.pc-teams a { color: inherit; }
.pc-teams a:hover { color: var(--accent); text-decoration: none; }
.pc-teams .muted {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  display: block;
  margin-top: 0.15rem;
}

.pc-odds-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.2rem 0 0.1rem;
}
.pc-odds-block {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.5rem;
}
.pc-odds-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.1rem;
}
.pc-odds-val {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--pending);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.pc-odds-val.now { color: var(--brand-cyan); }

.pc-live {
  font-size: 0.75rem;
  color: #ffd48a;
}
.pc-clock {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffd48a;
}
.pc-flipped {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.pc-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.pc-odds {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--pending);
  font-size: 0.95rem;
}

/* —— Controls / pills —— */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  position: relative;
  z-index: 1;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.pill.active {
  background: var(--brand-cyan);
  color: #05070a;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.22);
}
.week-pill.active,
.date-pill.active {
  background: var(--brand-cyan);
  color: #05070a;
  border-color: var(--brand-cyan);
}
.pill:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
.filter-row.extra { grid-template-columns: 1fr; }
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field .search, .field .select { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }

@media (min-width: 640px) {
  .filter-row { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 720px) {
  .filter-row.extra { grid-template-columns: 1fr 1fr 1.3fr 1.2fr; }
}

.search, .select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
}
.search::placeholder { color: var(--text-dim); }
.search:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  min-height: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: var(--brand-cyan);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 650;
}
.chip button {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.date-presets-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.preset-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.preset-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  min-width: 4.5rem;
}
.hidden { display: none !important; }

.controls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-ghost {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* —— Leaders —— */
.leaders {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 720px) {
  .leaders { grid-template-columns: 1fr 1fr; }
}
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}
.panel h2 {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  font-weight: 700;
}
.team-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.team-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.team-btn:hover, .team-btn.active {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}
.team-btn .name {
  font-size: 0.85rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-btn .pl {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pl.pos { color: var(--win); }
.pl.neg { color: var(--loss); }

/* —— Tote table —— */
.table-shell {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), transparent 40%);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1040px;
  font-size: 0.8rem;
}
th, td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
th {
  position: sticky;
  top: 0;
  background: #0a0e14;
  color: var(--text-muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
}
th:hover { color: var(--text); }
th .sort-ind { opacity: 0.45; margin-left: 0.25rem; }
th.sorted .sort-ind { opacity: 1; color: var(--accent); }
tbody tr:hover { background: rgba(0, 229, 255, 0.03); }
tbody tr.pending-row {
  background: rgba(255, 200, 87, 0.05);
}
tbody tr.pending-row.nfl-row {
  background: rgba(255, 107, 53, 0.08);
  box-shadow: inset 3px 0 0 var(--nfl);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge.won { background: var(--win-bg); color: var(--win); }
.badge.lost { background: var(--loss-bg); color: var(--loss); }
.badge.pending { background: var(--pending-bg); color: var(--pending); }
.badge.void { background: var(--void-bg); color: var(--void); }

.sport-tag {
  display: inline-block;
  font-weight: 750;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.06);
  padding: 0.12rem 0.35rem;
  border-radius: 2px;
}

.team-link {
  color: var(--text);
  font-weight: 700;
}
.team-link:hover { color: var(--accent); text-decoration: none; }

.score-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.18);
  color: var(--brand-cyan);
  font-size: 0.7rem;
  font-weight: 900;
  margin-left: 0.25rem;
  cursor: help;
}
.trust-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.trust-link {
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--accent);
}
.period-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--brand-cyan);
}
.under-period {
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

footer {
  margin-top: 1.5rem;
  padding: 1rem 0.25rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid rgba(0, 229, 255, 0.12);
}
.footer-stamp {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

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

.mark { display: none; }

@media (max-width: 640px) {
  .pc-odds-row { grid-template-columns: 1fr 1fr; }
  .stake-presets { width: 100%; }
  .kpi-value { font-size: 1.45rem; }
  .logo-wordmark { height: 36px; }
  .slip-stub { flex-basis: 1.7rem; font-size: 0.62rem; letter-spacing: 0.2em; }
}
