/* Sports Pulse — calm, compact redesign */
:root {
  --bg: #0b1020;
  --bg-elev: #121a2e;
  --bg-card: #151e34;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8eef9;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --live: #fb7185;
  --pick: #fbbf24;
  --ok: #34d399;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --max: 80rem;
}

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

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  /* clip (not hidden) so we don't create a nested scroll container that
     traps vertical pan on mobile WebKit / Chrome. */
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

button,
input,
select {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

img {
  max-width: 100%;
  display: block;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}

.chrome-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1.1rem 0.35rem;
}

.sh-bar-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #99f6e4;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.sh-bar-link:hover { color: #5eead4; text-decoration: underline; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid var(--border);
  font-size: 1.1rem;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-mute);
}

.search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  outline: none;
}

.search-wrap input:focus {
  border-color: rgba(94, 234, 212, 0.45);
}

.search-clear {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  flex-shrink: 0;
}

.updated {
  font-size: 0.72rem;
  color: var(--text-mute);
  white-space: nowrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
  font-size: 0.72rem;
  font-weight: 700;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.5);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 6px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.btn,
.icon-btn,
.link-btn,
.chip,
.mode-tab,
.sport-chip {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn {
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn:hover,
.icon-btn:hover,
.chip:hover,
.mode-tab:hover,
.sport-chip:hover {
  border-color: rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.06);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.btn.spinning {
  opacity: 0.7;
}

.icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1rem;
  background: transparent;
}

.icon-btn.is-on {
  color: var(--pick);
  border-color: rgba(251, 191, 36, 0.35);
}

.icon-btn.has-label {
  width: auto;
  min-width: 36px;
  height: 36px;
  padding: 0 0.7rem 0 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.icon-btn.has-label .btn-label {
  line-height: 1;
}

@media (max-width: 640px) {
  .icon-btn.has-label .btn-label {
    display: none;
  }
  .icon-btn.has-label {
    width: 36px;
    padding: 0;
    display: grid;
    place-items: center;
  }
}

.fav-btn.is-on {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.35);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #0b1020;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.15rem 0.25rem;
  border-radius: 6px;
}

.link-btn:hover {
  background: rgba(94, 234, 212, 0.08);
}

/* ----- nav ----- */
.mode-nav {
  display: flex;
  gap: 0.35rem;
  padding: 0.15rem 1.1rem 0.55rem;
  max-width: var(--max);
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mode-tab {
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  font-size: 0.88rem;
  background: transparent;
}

.mode-tab.active {
  background: rgba(94, 234, 212, 0.12);
  border-color: rgba(94, 234, 212, 0.4);
  color: #ccfbf1;
}

.sport-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.sport-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: transparent;
}

.sport-chip.active {
  border-color: color-mix(in srgb, var(--sport, var(--accent)) 55%, transparent);
  background: color-mix(in srgb, var(--sport, var(--accent)) 14%, transparent);
}

.board-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.35rem 1.1rem 0.65rem;
  max-width: var(--max);
  margin: 0 auto;
}

.status-filter,
.market-filter {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.chip {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
}

.chip.active {
  background: rgba(129, 140, 248, 0.14);
  border-color: rgba(129, 140, 248, 0.4);
  color: #c7d2fe;
}

.date-field {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.date-field input {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  cursor: pointer;
}

/* ----- main ----- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem 1.1rem 2.5rem;
}

.page-head {
  margin: 0.15rem 0 0.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.page-head .search-wrap {
  flex: 1 1 16rem;
  max-width: 28rem;
  margin: 0;
  min-height: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.slate-group {
  margin-bottom: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.14);
}

.slate-label {
  list-style: none;
  cursor: pointer;
  user-select: none;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.slate-label::-webkit-details-marker {
  display: none;
}

.slate-label::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-right: 2px solid var(--text-mute);
  border-bottom: 2px solid var(--text-mute);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex: 0 0 auto;
}

.slate-group[open] .slate-label::before {
  transform: rotate(45deg);
  margin-top: -0.1rem;
}

.slate-name {
  flex: 1;
  min-width: 0;
}

.slate-live {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #fda4af;
  background: rgba(251, 113, 133, 0.12);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
}

.slate-none,
.slate-total {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-mute);
  letter-spacing: 0;
  text-transform: none;
}

.slate-group .games-grid {
  padding: 0 0.65rem 0.75rem;
}

.sport-chip .chip-count {
  margin-left: 0.2rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-mute);
}
.sport-chip.active .chip-count { color: inherit; }
.sport-chip.is-empty { opacity: 0.45; }
.empty-alts {
  margin: 0.55rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.slate-jump { cursor: pointer; }

.page-head h2 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.page-head p {
  margin: 0.2rem 0 0;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.panel {
  display: block;
}
.panel[hidden] {
  display: none !important;
}

.status-line {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.82rem;
  color: var(--text-mute);
}

.block {
  margin-bottom: 1.35rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.picks-block {
  padding-top: 0.35rem;
}

.picks-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0 0.35rem;
  user-select: none;
}

.picks-summary::-webkit-details-marker {
  display: none;
}

.picks-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.picks-summary h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.picks-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  font-size: 0.72rem;
  font-weight: 700;
}

.picks-chevron {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.picks-chevron::before {
  content: "";
  position: absolute;
  top: 0.48rem;
  left: 0.48rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.picks-block[open] .picks-chevron::before {
  top: 0.38rem;
  transform: rotate(45deg);
}

.picks-summary:hover .picks-chevron {
  border-color: rgba(94, 234, 212, 0.35);
}

.picks-tools {
  margin-top: 0.35rem;
}

.block-head h3,
.block > h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.block-sub {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

.muted {
  color: var(--text-mute);
}

/* ----- grids / cards ----- */
.today-slate {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.cfb-board {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cfb-day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.cfb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
}

.cfb-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem 0.7rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, #fff 8%);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.cfb-card:hover {
  border-color: color-mix(in srgb, var(--accent, #eab308) 45%, var(--line));
}

.cfb-kick {
  font-size: 0.7rem;
  color: var(--text-mute);
}

.cfb-teams {
  display: grid;
  gap: 0.4rem;
}

.cfb-team {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.cfb-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cfb-team .nm {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cfb-team .nm strong {
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cfb-team .nm span {
  font-size: 0.72rem;
  color: var(--text-mute);
}

.cfb-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
}

.cfb-rank {
  display: inline-block;
  min-width: 1.1rem;
  margin-right: 0.2rem;
  font-size: 0.68rem;
  color: var(--text-mute);
}

.cfb-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.cfb-lines div {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.cfb-lines .k {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.cfb-lines .v {
  font-size: 0.88rem;
  font-weight: 650;
}

.cfb-card .cfb-pick {
  color: #6ee7b7;
}

.cfb-mkt {
  font-size: 0.72rem;
  color: var(--text-mute);
}

.cfb-ppa {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-mute);
}
.cfb-ppa-row strong { color: var(--text); font-weight: 600; }

.cfb-record {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  color: var(--text-mute);
}
.cfb-record strong { color: var(--text); font-weight: 700; }

.cfb-conf select,
.cfb-search input {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 0.78rem;
}
.cfb-search input { min-width: 9.5rem; }

.cfb-spot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}
.cfb-spot-card {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background: color-mix(in srgb, var(--card) 92%, #fff 8%);
}
.cfb-spot-card .k {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.cfb-spot-card strong { font-size: 0.92rem; }
.cfb-spot-card span:last-child { font-size: 0.75rem; color: var(--text-mute); }

#cfb-panel.is-rankings #cfb-sort,
#cfb-panel.is-rankings #cfb-weeks,
#cfb-panel.is-rankings #cfb-spot { display: none; }

.cfb-rank-wrap { overflow-x: auto; }
.cfb-ranks {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.cfb-ranks th,
.cfb-ranks td {
  padding: 0.42rem 0.45rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.cfb-ranks th:nth-child(3),
.cfb-ranks td.team,
.cfb-ranks th:nth-child(4),
.cfb-ranks td.conf { text-align: left; }
.cfb-ranks td.team strong { font-weight: 650; }
.cfb-ranks td.team span,
.cfb-ranks .mute { color: var(--text-mute); font-size: 0.7rem; }
.cfb-ranks tbody tr { cursor: pointer; }
.cfb-ranks tbody tr:hover { background: color-mix(in srgb, var(--accent, #eab308) 8%, transparent); }
.cfb-ranks .cfb-sortkey {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.cfb-ranks .cfb-sortkey.active { color: var(--accent, #eab308); }
.cfb-ranks .is-up { color: #6ee7b7; }
.cfb-ranks .is-down { color: #fca5a5; }
.cfb-ranks td.logo img { width: 22px; height: 22px; object-fit: contain; }
.ppa-team { margin: 0.45rem 0 0.7rem; }
.ppa-team strong { font-size: 0.85rem; }
.ppa-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; margin-top: 0.25rem; }
.ppa-table th, .ppa-table td { text-align: right; padding: 0.12rem 0.28rem; font-weight: 500; }
.ppa-table th:first-child { text-align: left; color: var(--text-mute); }

.likely-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0 0 0.65rem;
}

.likely-sports {
  padding: 0 0 0.75rem;
  margin: 0;
}

.likely-card {
  display: block;
}

.likely-card.is-live {
  border-color: rgba(251, 113, 133, 0.35);
}

.likely-card .pick-pct {
  text-align: right;
  white-space: nowrap;
}

.likely-card .win-bar {
  margin: 0.15rem 0 0.45rem;
}

.likely-card.tier-lock .pick-pct,
.likely-card.tier-heavy .pick-pct {
  color: #6ee7b7;
}

.tier-chip.lock,
.tier-chip.heavy {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.row-scroll {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x proximity;
}

.row-scroll > * {
  flex: 0 0 min(240px, 80vw);
  scroll-snap-align: start;
}

.game-card,
.mini-card,
.pick-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.game-card.game-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
  gap: 0.75rem 1.1rem;
  align-items: center;
  padding: 0.75rem 0.95rem;
}

.gr-match {
  min-width: 0;
}

.gr-bets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.bet-cell {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.35rem 0.35rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.bet-cell.is-empty {
  opacity: 0.45;
}

.bet-k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.12rem;
}

.bet-v {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
}

.game-card.game-row .card-top {
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .game-card.game-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
}

.game-card,
.mini-card,
[data-open-game] {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(94, 234, 212, 0.18);
  touch-action: manipulation;
}

@media (hover: hover) {
  .game-card:hover,
  .mini-card:hover,
  .pick-card:hover,
  [data-open-game]:hover {
    border-color: rgba(94, 234, 212, 0.35);
    transform: translateY(-1px);
    text-decoration: none;
  }
}

.game-card.is-live,
.mini-card.is-live {
  border-color: rgba(251, 113, 133, 0.35);
}

.card-top,
.mini-top,
.pick-top,
.detail-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.card-actions {
  display: inline-flex;
  gap: 0.2rem;
}

.card-actions .icon-btn {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-live {
  background: rgba(251, 113, 133, 0.15);
  color: #fda4af;
}

.badge-final {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
}

.badge-pre {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.badge-pick {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

.badge-pick.tier-lock,
.badge-pick.tier-prime {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.badge-pick.tier-lean {
  background: rgba(94, 234, 212, 0.12);
  color: #5eead4;
}

.sport-tag {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

.card-teams {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.team-line {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.team-odds {
  display: flex;
  gap: 0.45rem;
  min-width: 6.4rem;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.team-odds em {
  font-style: normal;
  color: #e2e8f0;
}
.team-odds .ml { color: #94a3b8; }

.team-logo,
.team-logo.ph,
.pick-logo,
.pick-logo.ph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.team-logo.ph,
.pick-logo.ph {
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
}

.team-logo.ph.lg {
  width: 40px;
  height: 40px;
  font-size: 0.8rem;
}

.team-name {
  font-weight: 650;
  font-size: 0.95rem;
}

.team-score {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
}

.win-bar {
  display: flex;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.win-bar.tall {
  height: 10px;
  margin: 0.5rem 0;
}

.win-fill {
  height: 100%;
  min-width: 0;
}

.win-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-mute);
  margin-top: 0.25rem;
  font-family: var(--mono);
}

.card-when {
  font-size: 0.72rem;
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.line-snip {
  color: #e2e8f0;
  font-weight: 600;
}

.wx {
  margin-left: auto;
}

/* mini */
.mini-match {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.mini-sub {
  font-size: 0.75rem;
}

/* picks */
.pick-body {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0;
}

.pick-meta {
  flex: 1;
  min-width: 0;
}

.pick-team {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-vs {
  font-size: 0.78rem;
}

.pick-pct {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--pick);
}

.pick-pct span {
  font-size: 0.7rem;
  opacity: 0.75;
}

.pick-card.tier-lock .pick-pct,
.pick-card.tier-prime .pick-pct {
  color: #6ee7b7;
}

.pick-why {
  font-size: 0.72rem;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-mute);
}

.pick-actions {
  display: inline-flex;
  gap: 0.35rem;
}

.pick-card.value-card {
  cursor: default;
}

.pick-card .value-card-main {
  color: inherit;
  text-decoration: none;
  display: block;
  min-width: 0;
}

.pick-card.value-card .pick-actions {
  margin-top: 0.55rem;
  justify-content: flex-end;
}

.market-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.12);
  color: #c7d2fe;
}

.tier-chip {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.tier-chip.lock,
.tier-chip.prime {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.tier-chip.lean {
  background: rgba(94, 234, 212, 0.12);
  color: #99f6e4;
}

/* following */
.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  min-width: 180px;
}

.team-chip img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.team-chip-name {
  font-weight: 650;
  font-size: 0.88rem;
}

.fav-picker {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.fav-picker-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.fav-picker-row select,
.fav-picker-row input {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}

.fav-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 280px;
  overflow: auto;
}

.fav-pick-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.fav-pick-row:hover,
.fav-pick-row.is-on {
  background: rgba(94, 234, 212, 0.06);
  border-color: var(--border);
}

.fav-pick-row img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

/* standings */
.leaders-grid,
.form-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem;
}

.leader-card,
.form-card,
.stand-table-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  background: rgba(0, 0, 0, 0.18);
}

.leader-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.leader-team {
  font-weight: 700;
}

.first-pill {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.form-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.form-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.2rem 0;
}

.standings-tables {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stand-table-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

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

.stand-table,
.books-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.stand-table th,
.stand-table td,
.books-table th,
.books-table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.stand-table th,
.books-table th {
  color: var(--text-mute);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stand-table tr.is-first {
  background: rgba(251, 191, 36, 0.06);
}

.team-cell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
}

.team-cell img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.num {
  font-family: var(--mono);
  text-align: right !important;
}

/* gameday */
body[data-view="detail"] main {
  max-width: min(1440px, calc(100vw - 2rem));
}

.detail-panel {
  max-width: none;
}

.gameday-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(340px, 0.95fr);
  gap: 1.15rem;
  align-items: start;
}

.gameday-main,
.gameday-side {
  min-width: 0;
}

.gameday-block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  margin-bottom: 0.85rem;
}

.gameday-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
}

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

.play-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 0.84rem;
}

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

.play-row.is-score {
  background: rgba(52, 211, 153, 0.06);
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-radius: 8px;
}

.play-clock {
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.play-score {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
}

.news-desc {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.inj-team {
  margin-bottom: 0.65rem;
}

.inj-team strong {
  display: block;
  margin-bottom: 0.25rem;
}

.inj-row {
  font-size: 0.82rem;
  padding: 0.2rem 0;
  color: var(--text-dim);
}

.box-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.box-table th,
.box-table td {
  padding: 0.28rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.leader-cat {
  margin-bottom: 0.55rem;
  font-size: 0.82rem;
}

.gameday-empty {
  color: var(--text-mute);
  font-size: 0.85rem;
  margin: 0;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0.15rem 0 0.75rem;
}

#detail-toolbar-label {
  font-size: 0.88rem;
  font-weight: 650;
}

.game-jump {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.game-jump .chip {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
}
.game-jump .chip.active {
  background: color-mix(in srgb, var(--accent, #818cf8) 22%, transparent);
  border-color: color-mix(in srgb, var(--accent, #818cf8) 50%, transparent);
}
.game-jump .chip.is-live {
  border-color: rgba(251, 113, 133, 0.45);
}
.game-jump .chip.is-done {
  opacity: 0.7;
}
.game-jump .jump-arrow {
  min-width: 1.85rem;
  font-weight: 700;
}
.game-jump .chip:disabled {
  opacity: 0.35;
  cursor: default;
}

.detail-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, color-mix(in srgb, var(--team-a) 18%, transparent), transparent 55%),
    radial-gradient(ellipse 80% 80% at 100% 100%, color-mix(in srgb, var(--team-b) 16%, transparent), transparent 55%),
    var(--bg-card);
  margin-bottom: 0.85rem;
}

.detail-matchup {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.detail-team {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.detail-team img,
.detail-team .team-logo {
  width: 52px;
  height: 52px;
  max-width: 52px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
}

.detail-team-name {
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 0;
}

.detail-score {
  margin-left: 0;
  font-family: var(--mono);
  font-size: 1.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.detail-at {
  display: none;
}

.detail-when {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
}

.detail-intel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--bg-card);
  margin-bottom: 0.75rem;
}

.detail-intel h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.consensus-line,
.line-move,
.hw-note {
  margin: 0.45rem 0;
  font-size: 0.9rem;
}

.detail-pick-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.detail-section {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.75rem 0.15rem;
}

.detail-section summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.65rem 0;
  list-style: none;
}

.detail-section summary::-webkit-details-marker {
  display: none;
}

.detail-section-body {
  padding: 0 0 0.75rem;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  font-size: 0.88rem;
}

.meta-grid .muted {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.form-card-sm {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem;
  font-size: 0.8rem;
}

.form-row-sm {
  display: flex;
  gap: 0.35rem;
  padding: 0.15rem 0;
}

.form-row-sm .res.w {
  color: var(--ok);
  font-weight: 700;
}

.form-row-sm .res.l {
  color: var(--danger);
  font-weight: 700;
}

.news-item {
  display: block;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  color: inherit;
  text-decoration: none;
}

.news-item:hover .news-title {
  color: var(--accent);
}

.news-title {
  font-weight: 600;
  font-size: 0.88rem;
}

/* empty / loading */
.empty-state,
.empty-inline,
.loading,
.loading-inline {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-dim);
}

.empty-inline {
  padding: 0.85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.empty-state .empty-icon {
  font-size: 1.8rem;
  margin-bottom: 0.35rem;
}

.empty-state h3 {
  margin: 0 0 0.35rem;
}

.loading,
.loading-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Author display:flex would otherwise keep this visible after load. */
.loading[hidden],
.loading-inline[hidden],
.empty-state[hidden] {
  display: none !important;
}

.loader {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-banner {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fecaca;
}

.status-banner.tone-warn {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

.status-banner.tone-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
  color: #bae6fd;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem 2rem;
  color: var(--text-mute);
  font-size: 0.75rem;
}

.footer p {
  margin: 0;
}

.phone-dock,
.phone-more {
  display: none;
}

/* drawers */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--bg-elev);
  border-left: 1px solid var(--border);
  z-index: 60;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
}

/* display:flex above would otherwise keep the panel visible when [hidden] is set */
.drawer[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem 1.5rem;
}

/* feature panel content */
.sp-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.sp-tab {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
}

.sp-tab.active {
  background: rgba(129, 140, 248, 0.14);
  border-color: rgba(129, 140, 248, 0.4);
}

.sp-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sp-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.18);
  font-size: 0.88rem;
}

.sp-item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.sp-item.unread {
  border-color: rgba(94, 234, 212, 0.3);
}

.sp-item.level-warn {
  border-color: rgba(251, 191, 36, 0.3);
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.sp-toast-host {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sp-toast {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  max-width: 320px;
}

.sp-toast-ok {
  border-color: rgba(52, 211, 153, 0.35);
}

.sp-toast-info {
  border-color: rgba(56, 189, 248, 0.35);
}

.sp-toast.out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* CLV (closing-line value) in My bets tracker */
.sp-clv-summary {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted, #94a3b8);
}
.sp-clv-summary strong { font-weight: 700; }
.sp-clv-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
}
.sp-clv-arrow {
  color: rgba(94, 234, 212, 0.55);
  font-weight: 700;
}
.sp-entry, .sp-close {
  color: #e2e8f0;
  font-weight: 650;
}
.sp-close-src {
  margin-left: 0.25rem;
  font-size: 0.72rem;
  opacity: 0.7;
}
.sp-clv {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.55);
}
.sp-clv-beat {
  color: #5eead4;
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.1);
}
.sp-clv-lose {
  color: #fca5a5;
  border-color: rgba(252, 165, 165, 0.35);
  background: rgba(252, 165, 165, 0.08);
}
.sp-clv-push {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
}
.sp-clv-unk {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}


/* charts (detail gauge) */
.sp-chart-title {
  font-size: 0.8rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
}

.detail-wp {
  margin-bottom: 0.5rem;
}

/* mobile — thumb-first chrome, scoreboard cards, bottom sheet tools */
@media (max-width: 820px) {
  html, body {
    overflow-x: clip;
    overflow-y: visible;
    height: auto;
    max-height: none;
    overscroll-behavior: auto;
  }

  body {
    padding-bottom: calc(4.55rem + env(safe-area-inset-bottom, 0px));
  }

  body[data-view="detail"] {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  body.drawer-open {
    overflow: hidden;
  }

  .chrome-main {
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.4rem max(0.7rem, env(safe-area-inset-right, 0px)) 0.4rem max(0.7rem, env(safe-area-inset-left, 0px));
  }

  header.chrome .mode-nav {
    display: none;
  }

  .sh-bar-link {
    min-height: 40px;
    font-size: 0.8rem;
    padding: 0 0.15rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .brand h1 {
    font-size: 0.98rem;
  }

  .brand-sub,
  .updated {
    display: none;
  }

  .live-pill {
    padding: 0.22rem 0.45rem;
    min-height: 28px;
    white-space: nowrap;
  }

  .live-pill-label {
    text-transform: uppercase;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .icon-btn,
  .btn {
    min-width: 40px;
    min-height: 40px;
  }

  .btn#btn-refresh {
    padding: 0.45rem 0.6rem;
    font-size: 1.05rem;
  }

  .sport-nav,
  .board-bar,
  .likely-bar,
  .likely-sports {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px));
    max-width: none;
    margin: 0;
  }

  .sport-nav::-webkit-scrollbar,
  .board-bar::-webkit-scrollbar,
  .likely-bar::-webkit-scrollbar,
  .likely-sports::-webkit-scrollbar {
    display: none;
  }

  .sport-chip,
  .chip {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .status-filter,
  .market-filter {
    flex-wrap: nowrap;
  }

  .board-bar .toggle,
  .date-field > span {
    display: none;
  }

  .date-field input {
    min-height: 36px;
    font-size: 0.85rem;
    color-scheme: dark;
  }

  main {
    padding: 0.45rem max(0.7rem, env(safe-area-inset-right, 0px)) 1.25rem max(0.7rem, env(safe-area-inset-left, 0px));
  }

  .page-head {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  /* column + flex-basis 16rem was stretching the search box ~256px tall */
  .page-head .search-wrap {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
  }
  .page-head h2 {
    font-size: 1.2rem;
  }

  .page-head p {
    font-size: 0.82rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .games-grid,
  .picks-grid,
  .cfb-grid,
  .cfb-spot,
  .leaders-grid,
  .form-board {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .game-card,
  .pick-card,
  .mini-card,
  .value-card,
  .move-card {
    border-radius: 12px;
  }

  .game-card.is-live,
  .mini-card.is-live,
  .likely-card.is-live {
    box-shadow: inset 3px 0 0 var(--live);
  }

  .team-score,
  .detail-score {
    font-variant-numeric: tabular-nums;
  }

  .footer {
    display: none;
  }

  .phone-dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: rgba(11, 16, 32, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 0.2rem 0.15rem calc(0.22rem + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    gap: 0;
  }

  .phone-dock .mode-tab,
  .phone-dock .phone-more-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    min-height: 52px;
    padding: 0.22rem 0.1rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-mute);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
  }

  .phone-dock .mode-tab svg,
  .phone-dock .phone-more-btn svg {
    width: 22px;
    height: 22px;
  }

  .phone-dock .mode-tab.active,
  .phone-dock .phone-more-btn.active,
  .phone-dock .phone-more-btn.is-open {
    background: rgba(94, 234, 212, 0.1);
    border-color: transparent;
    color: #99f6e4;
  }

  .phone-dock .mode-tab:hover,
  .phone-dock .phone-more-btn:hover {
    border-color: transparent;
    background: transparent;
  }

  .phone-dock .mode-tab.active:hover,
  .phone-dock .phone-more-btn.active:hover,
  .phone-dock .phone-more-btn.is-open:hover {
    background: rgba(94, 234, 212, 0.1);
  }

  body.is-native .sh-bar-link {
    display: none;
  }

  body.is-native .phone-dock {
    padding-right: 3.4rem;
  }

  .phone-more {
    display: grid;
    position: fixed;
    left: 0.5rem;
    right: 0.5rem;
    bottom: calc(4.65rem + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.5rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  }

  .phone-more .mode-tab {
    min-height: 44px;
    justify-content: center;
  }

  .detail-toolbar {
    position: sticky;
    top: calc(env(safe-area-inset-top, 0px) + 3.1rem);
    z-index: 8;
    background: rgba(11, 16, 32, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 -0.7rem 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  #detail-back {
    min-height: 40px;
    min-width: 4.2rem;
  }

  #detail-toolbar-label {
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .form-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .gameday-grid {
    grid-template-columns: 1fr;
  }

  .play-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .game-jump {
    display: none;
  }

  .drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: min(88dvh, 100%);
    max-height: 100dvh;
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .drawer-head {
    padding-top: 1rem;
    position: relative;
  }

  .drawer-head::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    left: 50%;
    width: 2.4rem;
    height: 4px;
    margin-left: -1.2rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
  }

  .sp-toast-host {
    bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px));
    right: 0.7rem;
    left: 0.7rem;
    align-items: stretch;
  }

  .sp-toast {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .brand > div {
    display: none;
  }
}


.value-card .pick-pct {
  text-align: right;
  font-size: 1.05rem;
}
.value-card .pick-edge {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.15rem;
}
.value-card .pick-why {
  white-space: normal;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-mute);
}
#value-note {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
}


.steam-chip {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
}
.line-move.oc-ml {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
  color: #cbd5e1;
}
.sp-chart-linemove {
  margin: 0.65rem 0 0.15rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.sp-chart-cmp-legend {
  display: flex;
  gap: 0.85rem;
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-bottom: 0.45rem;
}
.sp-chart-cmp-legend .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 0.28rem;
}
.sp-chart-cmp-legend .dot.open { background: rgba(148, 163, 184, 0.9); }
.sp-chart-cmp-legend .dot.cur { background: #818cf8; }
.sp-lm-row {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr) auto;
  gap: 0.45rem 0.6rem;
  align-items: center;
  margin: 0.35rem 0;
  font-size: 0.78rem;
}
.sp-lm-label {
  color: var(--text-mute);
  font-weight: 650;
}
.sp-lm-track {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
}
.sp-lm-mark {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.sp-lm-vals {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sp-lm-delta {
  font-style: normal;
  font-size: 0.72rem;
}
.sp-lm-delta.up { color: #34d399; }
.sp-lm-delta.down { color: #fb7185; }
.pick-kelly {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 0.12rem;
}
.sp-parlay {
  margin-top: 0.8rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}
.sp-parlay strong {
  font-family: var(--mono);
}


/* ----- Shop / Steam / Keys boards ----- */
.move-board {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .move-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .move-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.move-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.move-card:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-1px);
}

.move-card.is-steam {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.06), var(--bg-card) 42%);
}

.move-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.move-match {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
}

.move-lines {
  display: grid;
  gap: 0.28rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.move-line {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr) 3.2rem;
  gap: 0.35rem;
  align-items: baseline;
}

.move-k {
  color: var(--text-mute);
  font-family: var(--font);
  font-weight: 650;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.move-oc {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oc-open { color: var(--text-dim); }
.oc-arrow {
  margin: 0 0.35rem;
  color: var(--text-mute);
}
.oc-cur { color: #c7d2fe; font-weight: 650; }

.move-delta {
  text-align: right;
  font-weight: 700;
  font-size: 0.75rem;
}
.move-delta.up { color: var(--ok); }
.move-delta.down { color: var(--live); }

.moved-chip {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #a5b4fc;
  border: 1px solid rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.12);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.key-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.key-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
}

.key-chip.on-key {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}

.key-ref {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: lowercase;
}

#shop-note {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
}


/* ----- Stale-book steam chase strip ----- */
.chase-strip {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.07), rgba(11, 16, 32, 0.35));
  box-shadow: var(--shadow);
}
.chase-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.chase-strip-title {
  font-weight: 750;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}
.chase-strip-meta {
  font-size: 0.72rem;
  color: var(--text-mute);
}
.chase-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.chase-table th {
  text-align: left;
  font-weight: 650;
  color: var(--text-mute);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.35rem 0.35rem;
  border-bottom: 1px solid var(--border);
}
.chase-table td {
  padding: 0.38rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  vertical-align: middle;
}
.chase-table tr:last-child td { border-bottom: 0; }
.chase-table .chase-book {
  font-weight: 700;
  color: var(--text);
}
.chase-table .chase-match {
  color: var(--text-dim);
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chase-table .chase-edge {
  font-family: var(--mono);
  font-weight: 750;
  color: var(--accent);
}
.chase-table .chase-delta {
  font-family: var(--mono);
  color: #fbbf24;
}
.chase-table .chase-stale {
  font-family: var(--mono);
  color: var(--text-dim);
}
.chase-table a.chase-row-link {
  color: inherit;
  text-decoration: none;
}
.chase-table a.chase-row-link:hover .chase-book {
  color: var(--accent);
  text-decoration: underline;
}
.move-card .chase-mini {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(94, 234, 212, 0.22);
  display: grid;
  gap: 0.22rem;
}
.chase-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto auto auto;
  gap: 0.35rem;
  align-items: baseline;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}
.chase-mini-row .cm-book { font-weight: 700; color: var(--accent); }
.chase-mini-row .cm-stale { color: var(--text-mute); font-family: var(--mono); }
.chase-mini-row .cm-delta { color: #fbbf24; font-family: var(--mono); }
.chase-mini-row .cm-edge { color: var(--ok); font-family: var(--mono); font-weight: 700; }


/* ---- Open → now → close line drawer ---- */
button.bet-cell {
  display: block;
  width: 100%;
  cursor: pointer;
  color: inherit;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
button.bet-cell:hover,
button.bet-cell:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  outline: none;
}
button.move-line.line-hit,
button.key-chip.line-hit {
  display: flex;
  width: 100%;
  align-items: center;
  gap: inherit;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.2rem 0.25rem;
}
button.move-line.line-hit:hover,
button.key-chip.line-hit:hover,
button.move-line.line-hit:focus-visible,
button.key-chip.line-hit:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  outline: none;
}
button.key-chip {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}
.line-td[data-line-drawer] {
  cursor: pointer;
}
.line-td[data-line-drawer]:hover {
  color: var(--accent);
}

.line-drawer {
  width: min(440px, 100vw);
  background: #0b1020;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.line-drawer .drawer-head {
  align-items: flex-start;
  gap: 0.75rem;
}
.line-drawer-sub {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
}
.line-steam-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.line-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.35rem;
  align-items: stretch;
  margin: 0 0 0.65rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #121a2e;
}
.line-path-step {
  min-width: 0;
  text-align: center;
}
.line-path-k {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.2rem;
}
.line-path-v {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}
.line-path-src {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
}
.line-path-arrow {
  align-self: center;
  color: var(--accent);
  font-weight: 700;
}
.line-path-step.is-now .line-path-v {
  color: var(--accent);
}
.line-path-step.is-frozen {
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.25rem;
}
.line-path-step.is-prov .line-path-v {
  color: var(--text-dim);
}
.line-close-note,
.line-foot {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
}
.line-sec-title {
  margin: 0.4rem 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.line-books-wrap {
  margin-bottom: 0.85rem;
}
.line-books-table .sharp-tag,
.line-books-table .lag-tag {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.line-books-table .sharp-tag {
  color: #0b1020;
  background: var(--accent);
}
.line-books-table .lag-tag {
  color: #0b1020;
  background: #fbbf24;
}
.line-books-table tr.is-lag td:first-child {
  box-shadow: inset 2px 0 0 #fbbf24;
}
.line-books-table .up { color: var(--ok); }
.line-books-table .down { color: var(--danger); }
.line-lag-block {
  margin: 0.5rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.06);
}
.line-lag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.line-lag-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 0.78rem;
  align-items: baseline;
}
.line-lag-delta { color: #fbbf24; font-family: var(--mono); }
.line-lag-stale { color: var(--text-dim); }
.line-lag-edge { color: var(--accent); font-weight: 700; }

@media (max-width: 420px) {
  .line-path {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .line-path-arrow { display: none; }
}

/* Pulse #3 alert router rules UI */
.sp-toast-overlay {
  background: #0b1020;
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: #e8eef9;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}
.sp-toast-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: #5eead4;
  margin-bottom: 0.2rem;
}
.sp-toast-msg {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #e8eef9;
}
.sp-alert-rules {
  margin: 0.35rem 0 0.75rem;
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(11, 16, 32, 0.55);
}
.sp-rule-card { margin-bottom: 0.55rem; }
.sp-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.45rem 0.55rem;
  margin: 0.4rem 0;
}
.sp-rule-grid label,
.sp-rule-field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted, #94a3b8);
}
.sp-rule-grid input,
.sp-rule-grid select,
.sp-rule-field input {
  font: inherit;
  font-size: 0.84rem;
  color: #e8eef9;
  background: #0b1020;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
}
.sp-rule-enable {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: #e8eef9;
}


/* CLV beat-rate card */
.sp-beat-card {
  background: #0b1020;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin: 0.5rem 0 0.75rem;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #e8eef9;
}
.sp-beat-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.sp-beat-card-title {
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #5eead4;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.sp-beat-pct {
  font-size: 1.65rem;
  font-weight: 700;
  color: #5eead4;
  line-height: 1;
}
.sp-beat-sub {
  margin-top: 0.25rem;
  font-size: 0.78rem;
}
.sp-beat-empty {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}
.sp-beat-section {
  margin-top: 0.65rem;
}
.sp-beat-h {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(94, 234, 212, 0.85);
  margin-bottom: 0.25rem;
}
.sp-beat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(232, 238, 249, 0.06);
}
.sp-beat-row:last-child {
  border-bottom: 0;
}
.sp-beat-basis {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: rgba(94, 234, 212, 0.9);
}
.sp-beat-foot {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  color: rgba(148, 163, 184, 0.9);
}


/* Steam chase mobile fix: overlays must not cover Today / dock */
@media (max-width: 820px) {
  .sp-toast-host {
    bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px));
    right: 0.7rem;
    left: 0.7rem;
    max-width: none;
    max-height: 40vh;
    overflow: hidden;
  }
  .sp-toast-overlay {
    max-width: none;
  }
}

/* ----- True Line + green edge flash ----- */
.pick-foot-lines {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}
.pick-foot-lines .shop-best {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
}
.true-line {
  font-size: 0.78rem;
  color: #5eead4;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
  opacity: 0.95;
}
.edge-flash-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #042f2e;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: edge-flash-pulse 1.6s ease-out infinite;
}
.value-card.has-edge-flash {
  border-color: rgba(94, 234, 212, 0.55);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.1), var(--bg-card, #0b1020) 48%);
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25), 0 0 18px rgba(52, 211, 153, 0.18);
  animation: edge-card-glow 2.2s ease-in-out infinite;
}
.chase-edge.has-edge-flash,
.chase-card .chase-edge.has-edge-flash {
  color: #5eead4;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(94, 234, 212, 0.45);
  animation: edge-flash-pulse 1.6s ease-out infinite;
}
.true-line-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.65rem;
  margin: 0.65rem 0 0.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: rgba(94, 234, 212, 0.06);
}
.true-line-banner .true-line-k {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5eead4;
  font-weight: 700;
}
.true-line-banner .true-line-v {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: #ecfeff;
}
@keyframes edge-flash-pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}
@keyframes edge-card-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.22), 0 0 12px rgba(52, 211, 153, 0.12); }
  50% { box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.45), 0 0 22px rgba(52, 211, 153, 0.28); }
}


/* ----- Keys injury snap (late OUT / D / Q) ----- */
.key-card.has-inj-snap {
  border-color: rgba(94, 234, 212, 0.32);
}
.inj-out-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fda4af;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: rgba(251, 113, 133, 0.12);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}
.inj-snap {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(94, 234, 212, 0.28);
  display: grid;
  gap: 0.35rem;
}
.inj-snap-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.inj-snap-label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent, #5eead4);
}
.inj-snap-when {
  font-size: 0.65rem;
  font-family: var(--mono);
}
.key-stale-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
}
.inj-snap-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
}
.inj-snap-player {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.72rem;
  color: var(--text-dim, #cbd5e1);
  max-width: 100%;
}
.inj-snap-team {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-mute, #94a3b8);
}
.inj-snap-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  padding: 0.05rem 0.28rem;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: rgba(94, 234, 212, 0.1);
  color: #5eead4;
}
.inj-snap-chip.out {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(251, 113, 133, 0.14);
  color: #fda4af;
}
.inj-snap-chip.doubt {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
}
.inj-snap-chip.quest {
  border-color: rgba(125, 211, 252, 0.45);
  background: rgba(125, 211, 252, 0.1);
  color: #7dd3fc;
}
.key-chip.key-stale {
  border-color: rgba(251, 191, 36, 0.45);
}
.key-stale-dot {
  margin-left: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: lowercase;
}


/* ----- Opening-line soft radar ----- */
.soft-radar-strip {
  border-color: rgba(94, 234, 212, 0.42);
  background: linear-gradient(180deg, rgba(94, 234, 212, 0.11), rgba(11, 16, 32, 0.55));
}
.soft-radar-strip .chase-strip-title {
  color: #5eead4;
}
.radar-table .radar-open,
.radar-table .radar-true,
.radar-table .radar-soft {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.radar-table .radar-true { color: var(--accent); }
.radar-table .radar-soft { color: #fbbf24; font-weight: 700; }
.soft-radar-today {
  margin: 0 0 0.65rem;
}
.soft-radar-chip {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(94, 234, 212, 0.4);
  background: #0b1020;
  color: #5eead4;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.soft-radar-chip:hover,
.soft-radar-chip:focus-visible {
  border-color: #5eead4;
  outline: none;
  background: color-mix(in srgb, #5eead4 12%, #0b1020);
}


/* ----- Value · fractional Kelly exposure pane ----- */
.value-exposure {
  margin: 0.65rem 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  background: #0b1020;
  color: #e8eefc;
  font: inherit;
}
.ve-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0.25rem 0;
  font-size: 0.82rem;
}
.ve-controls {
  gap: 0.65rem 1rem;
}
.ve-bank {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #9fb0d0;
}
.ve-bank input {
  width: 6.5rem;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  background: #0b1020;
  color: #5eead4;
  font: inherit;
  font-weight: 600;
}
.ve-bank input:focus {
  outline: none;
  border-color: #5eead4;
}
.ve-fracs .chip.ve-frac {
  min-width: 2.1rem;
}
.ve-open strong {
  color: #5eead4;
}
.ve-label {
  color: #9fb0d0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.15rem;
}
.ve-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  background: color-mix(in srgb, #5eead4 8%, #0b1020);
  font-size: 0.78rem;
}
.ve-note {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
}
.pick-kelly .kelly-dollars {
  color: #5eead4;
  font-weight: 600;
}
.kelly-warn {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: color-mix(in srgb, #fbbf24 16%, #0b1020);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}


.field-bets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.field-bet-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.field-bet-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.88rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid var(--border);
}
.field-bet-row:last-child { border-bottom: 0; }


/* NASCAR / field session schedule */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.session-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, #5eead4 6%, #0b1020);
  border: 1px solid color-mix(in srgb, #5eead4 18%, transparent);
}
.session-row[data-state="in"] {
  border-color: #5eead4;
  box-shadow: 0 0 0 1px color-mix(in srgb, #5eead4 35%, transparent);
}
.session-name {
  font-weight: 600;
  color: #e2e8f0;
}
.session-when {
  font-variant-numeric: tabular-nums;
  color: #5eead4;
}
.schedule-gap {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}
.field-board {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.field-board-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto auto;
  gap: 0.45rem;
  align-items: baseline;
  padding: 0.28rem 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, #5eead4 10%, transparent);
  font-size: 0.92rem;
}
.field-board-row:last-child { border-bottom: 0; }
.fb-pos {
  color: #5eead4;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.fb-name small { display: inline; margin-left: 0.25rem; }
.fb-time, .fb-score {
  font-variant-numeric: tabular-nums;
  color: #cbd5e1;
}
.bet-field-note {
  font-size: 0.82rem;
  display: block;
  padding: 0.35rem 0.2rem;
}


/* ===== Sports Settle V1 — hit/miss summary ===== */
.sp-settle-card {
  margin: 0.5rem 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.55));
}
.sp-settle-title {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 0.35rem;
}
.sp-settle-record {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.92rem;
}
.sp-settle-hit {
  color: #86efac;
  font-weight: 600;
}
.sp-settle-basis {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  line-height: 1.35;
}
.sp-settle-gap {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #fbbf24;
}
.sp-settle-section { margin-top: 0.45rem; }
.sp-settle-h {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.sp-settle-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  padding: 0.12rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.sp-settle-gap-tag {
  display: inline-block;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-size: 0.7rem;
}
.sp-result-W { color: #86efac; }
.sp-result-L { color: #fca5a5; }
.sp-result-P { color: #93c5fd; }
.sp-result-U { color: #94a3b8; }


/* ----- Soft edge V1 ledger ----- */
.soft-ledger {
  margin: 0.65rem 0 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
}
.soft-ledger-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.soft-ledger-title {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.soft-ledger-meta { font-size: 0.85rem; opacity: 0.85; }
.soft-ledger-empty {
  margin: 0.25rem 0 0;
  opacity: 0.9;
}
.soft-ledger-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.35rem 0 0.5rem;
  font-size: 0.92rem;
}
.soft-ledger-stats strong.hit { color: #4ade80; }
.soft-ledger-stats strong.miss { color: #f87171; }
.soft-ledger-warn {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #fbbf24;
}
.soft-ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.soft-ledger-table th,
.soft-ledger-table td {
  padding: 0.28rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.soft-status-chip {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.soft-status-chip.downgraded { border-color: #fbbf24; color: #fbbf24; }
.soft-status-chip.status_only,
.soft-status-chip.ungradeable { opacity: 0.75; }
.soft-status-chip.removed { color: #f87171; border-color: #f87171; }
.radar-card.has-stack-warn { outline: 1px solid rgba(251, 191, 36, 0.55); }
.soft-filter-note { font-size: 0.8rem; opacity: 0.8; margin-top: 0.25rem; }
