/* TPD live model tracker — chips + "Today so far" strip.
   ALL live styles live here (site.css is untouched). Uses the site's design
   tokens (Geist Mono ticket look, --green family, --danger). */

/* ---- per-pick chip ------------------------------------------------------ */

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  margin-left: 4px;
  padding: 1px 7px 2px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--muted);
}
.live-chip:empty { display: none; }   /* nothing before first pitch */

/* LIVE — pulsing dot + current count */
.live-chip.st-live {
  color: var(--text);
  border-color: rgba(53, 217, 128, 0.35);
  background: rgba(53, 217, 128, 0.06);
}
.live-chip.st-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  animation: tpd-live-pulse 1.6s ease-in-out infinite;
}

/* CLINCHED — green, pre-final (over already past the line) */
/* CLINCHED reads identically to HIT — a won bet is a won bet (owner 2026-07-21:
   two greens for the same "CASHED · 1 HR" text just confused people). The
   states stay distinct internally; only the look is unified. */
.live-chip.st-clinched {
  color: #05230f;
  border-color: var(--green);
  background: var(--green);
}
.live-chip.st-clinched::before { content: '✓'; }

/* HIT — green, decided */
.live-chip.st-hit {
  color: #05230f;
  border-color: var(--green);
  background: var(--green);
}
.live-chip.st-hit::before { content: '✓'; }

/* MISS — muted red, decided */
.live-chip.st-miss {
  color: #e08a90;
  border-color: rgba(229, 72, 77, 0.35);
  background: rgba(229, 72, 77, 0.08);
}
.live-chip.st-miss::before { content: '✗'; }

/* PUSH / neutral final (scores boards, F score) */
.live-chip.st-push,
.live-chip.st-final {
  color: var(--muted);
  border-color: var(--line-soft);
  background: rgba(234, 242, 248, 0.03);
}

@keyframes tpd-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.72); }
}
@media (prefers-reduced-motion: reduce) {
  .live-chip.st-live::before { animation: none; }
}

/* ---- "Today so far" strip ---------------------------------------------- */

.live-strip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 12px;
}
.live-strip[hidden] { display: none; }
.live-strip-label {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.live-strip-body { color: var(--text); font-weight: 600; }

/* ---- game rows: the score is the story ---------------------------------
   .score-now wraps the SECOND live-chip on Scores-board rows (live.js
   repaints every [data-live-pk], so this cell stays fresh too). Rendered as
   a real scoreline under the PROJ figure, not a footnote pill. */
.score-now { display: block; margin-top: 4px; }
.score-now .live-chip {
  margin-left: 0;
  padding: 2px 9px 3px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.score-now .live-chip.st-live::after {
  content: 'LIVE';
  order: -1;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--green);
}
