:root {
  --pond-deep:     #E8F5E9;
  --frog-green:    #6FCF8A;
  --lily-light:    #1E3328;
  --pad-cream:     #0F1A14;
  --water-blue:    #B3E5FC;
  --cattail-gold:  #C9A84A;
  --warning-coral: #EF9A9A;
  --text-soft:     #A8B5AB;
  --surface-mid:   #172A1F;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--pad-cream);
  color: var(--pond-deep);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: var(--pond-deep);
}

/* ── Header / Hero ─────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(175deg, #1E3328 0%, #131F18 100%);
  border-bottom: 2px solid rgba(111,207,138,0.3);
  padding: 1.5rem 2rem 1.25rem;
}

@media (max-width: 600px) {
  .site-header { padding: 1.1rem 1rem 1rem; }
}

.hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-frog {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(111,207,138,0.4));
  transition: filter 0.3s ease;
}

.hero-frog:hover {
  filter: drop-shadow(0 0 24px rgba(111,207,138,0.7));
}

.wordmark {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--pond-deep);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
  letter-spacing: 0.3px;
}

/* ── Date picker ─────────────────────────────────────────────────────────────── */
.date-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.date-pill {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(111,207,138,0.22);
  background: rgba(111,207,138,0.06);
  color: var(--text-soft);
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.date-pill:hover {
  background: rgba(111,207,138,0.14);
  color: var(--pond-deep);
  border-color: rgba(111,207,138,0.4);
}

.date-pill.active {
  background: var(--frog-green);
  color: #0B1510;
  border-color: var(--frog-green);
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(111,207,138,0.22);
}

/* ── Main layout ────────────────────────────────────────────────────────────── */
.main-layout {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

@media (max-width: 600px) {
  .main-layout { padding: 1.25rem 0.75rem; }
}

.content-col {
  width: 100%;
  min-width: 0;
}

/* ── Ad slot ────────────────────────────────────────────────────────────────── */
.ad-slot {
  min-height: 90px;
  background: var(--lily-light);
  border: 1px dashed rgba(111,207,138,0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.45;
}

/* ── Pro teaser ─────────────────────────────────────────────────────────────── */
.pro-teaser {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--lily-light);
  border-radius: 10px;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(201,168,74,0.22);
  border-left: 3px solid var(--cattail-gold);
  margin-bottom: 1.25rem;
}

.pro-badge {
  display: inline-block;
  background: var(--cattail-gold);
  color: #0B1510;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.12rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.pro-teaser p {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.4;
}

/* ── State panels ───────────────────────────────────────────────────────────── */
.state-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  gap: 1rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(111,207,138,0.12);
  border-top-color: var(--frog-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.state-panel h2 { font-size: 1.2rem; }
.state-panel p  { color: var(--text-soft); font-size: 0.9rem; max-width: 420px; }

/* ── Pending panel ──────────────────────────────────────────────────────────── */
.pending-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 2rem 3rem;
  text-align: center;
  gap: 0.75rem;
}

.pending-icon { font-size: 2.5rem; margin-bottom: 0.25rem; }
.pending-panel h2 { font-size: 1.4rem; }
.pending-panel .sub {
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 380px;
  line-height: 1.6;
}

.backtest-prompt {
  margin-top: 1.5rem;
  background: var(--lily-light);
  border: 1px solid rgba(111,207,138,0.2);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: left;
  max-width: 420px;
  width: 100%;
}

.backtest-prompt h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
  margin-bottom: 0.85rem;
}

.backtest-prompt p {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.backtest-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.backtest-btn {
  width: 100%;
  padding: 0.65rem 1rem;
  background: rgba(111,207,138,0.06);
  border: 1px solid rgba(111,207,138,0.2);
  border-radius: 12px;
  color: var(--pond-deep);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.backtest-btn:hover { background: rgba(111,207,138,0.15); border-color: var(--frog-green); }
.backtest-btn .btn-date { font-weight: 600; }
.backtest-btn .btn-label { font-size: 0.78rem; color: var(--text-soft); }

/* ── Report header ──────────────────────────────────────────────────────────── */
.report-header { margin-bottom: 1.75rem; }
.report-header h1 { font-size: 1.7rem; letter-spacing: -0.3px; }
.report-header p  { color: var(--text-soft); font-size: 0.85rem; margin-top: 0.3rem; }

/* ── Pitcher list ───────────────────────────────────────────────────────────── */
.pitcher-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ── Game divider ───────────────────────────────────────────────────────────── */
.game-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.6rem;
}

.game-divider:first-child { margin-top: 0; }

.game-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111,207,138,0.2) 50%, transparent);
}

.game-divider-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--lily-light);
  border: 1px solid rgba(111,207,138,0.2);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-soft);
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
  .game-divider-label {
    white-space: normal;
    text-align: center;
    line-height: 1.6;
    border-radius: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.ghb-time {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.ghb-timestamps {
  font-weight: 400;
  font-size: 0.58rem;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
}

/* ── Pitcher bar ────────────────────────────────────────────────────────────── */
.pitcher-bar {
  background: var(--lily-light);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(111,207,138,0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pitcher-bar:hover {
  border-color: rgba(111,207,138,0.28);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pitcher-bar.open {
  border-color: rgba(111,207,138,0.42);
  box-shadow: 0 4px 18px rgba(0,0,0,0.4);
}

/* ── Collapsed bar ──────────────────────────────────────────────────────────── */
.bar-collapsed {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  color: var(--pond-deep);
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
}

.bar-collapsed:hover {
  background: rgba(111,207,138,0.05);
}

/* Equal-weight sides */
.bar-side {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  overflow: hidden;
}

.bar-batter-side {
  justify-content: flex-end;
}

/* Center VS badge */
.bar-center-vs {
  flex-shrink: 0;
  padding: 0 0.85rem;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-soft);
  opacity: 0.4;
  text-transform: uppercase;
}

/* ── Bar logo wrap ──────────────────────────────────────────────────────────── */
.bar-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.bar-team-logo {
  object-fit: contain;
}

.bar-team-abbr {
  border-radius: 50%;
  background: rgba(111,207,138,0.18);
  color: var(--frog-green);
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
}

/* ── Pitcher info (left side) ───────────────────────────────────────────────── */
.bar-pitcher-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.bar-pitcher-name-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  line-height: 1.3;
}

.bar-pitcher-name {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  color: var(--pond-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

/* ── Batter info (right side) ───────────────────────────────────────────────── */
.bar-batter-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: right;
}

.bar-batter-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 0;
  line-height: 1.3;
}

.bar-batter-name {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  color: var(--pond-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  text-align: right;
}

/* ── Cert chip ──────────────────────────────────────────────────────────────── */
.cert-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.56rem;
  font-weight: 700;
  background: rgba(111,207,138,0.12);
  color: var(--frog-green);
  border: 1px solid rgba(111,207,138,0.3);
  border-radius: 4px;
  padding: 0.08rem 0.32rem;
  flex-shrink: 0;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

/* Shared mini stats line — ERA/xHit are always first so truncation keeps them */
.bar-stats-mini {
  font-size: 0.6rem;
  color: var(--text-soft);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

/* ── Chevron ────────────────────────────────────────────────────────────────── */
.bar-chevron {
  font-size: 0.65rem;
  color: var(--text-soft);
  flex-shrink: 0;
  margin-left: 0.5rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
}

.pitcher-bar.open .bar-chevron {
  transform: rotate(90deg);
}

/* ── Mobile: stack pitcher | VS | batter vertically ─────────────────────────── */
@media (max-width: 600px) {
  .bar-collapsed {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 0.85rem 2.25rem 0.85rem 0.85rem;
    position: relative;
  }

  .bar-side {
    flex: none;
    gap: 0.5rem;
    overflow: visible;
  }

  /* row-reverse flips HTML [info][logo] → visual [logo][info], matching pitcher side */
  .bar-batter-side {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }

  .bar-batter-info {
    text-align: left;
  }

  .bar-batter-name {
    text-align: left;
  }

  .bar-batter-name-row {
    justify-content: flex-start;
  }

  .bar-center-vs {
    text-align: center;
    padding: 0;
    opacity: 0.3;
    font-size: 0.48rem;
    letter-spacing: 1.5px;
  }

  .bar-chevron {
    position: absolute;
    top: 0.9rem;
    right: 0.85rem;
    margin-left: 0;
  }

  /* Shrink logos slightly on mobile to give text more room */
  .bar-side .bar-logo-wrap { width: 26px !important; height: 26px !important; }
  .bar-side .bar-team-logo { width: 26px !important; height: 26px !important; }
  .bar-side .bar-team-abbr { width: 26px !important; height: 26px !important; font-size: 8px !important; }
}

/* ── Expanded section ───────────────────────────────────────────────────────── */
.bar-expanded {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-expanded-inner {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid rgba(111,207,138,0.12);
}

.exp-left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-right: 1px solid rgba(111,207,138,0.12);
  padding-right: 1.5rem;
  min-width: 0;
}

.exp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .bar-expanded-inner {
    flex-direction: column;
    padding: 1rem 0.85rem;
  }
  .exp-left {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(111,207,138,0.12);
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

/* ── Pitcher panel (inside expanded) ───────────────────────────────────────── */
.pitcher-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.team-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.pitcher-name {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pond-deep);
}

.hand-badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  background: rgba(111,207,138,0.14);
  color: var(--frog-green);
  vertical-align: middle;
  margin-left: 0.25rem;
  flex-shrink: 0;
}

.pitcher-team-name {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Stat row ───────────────────────────────────────────────────────────────── */
.stat-row { display: flex; gap: 0.5rem; }

.stat-cell {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(111,207,138,0.1);
  border-radius: 8px;
  padding: 0.55rem 0.4rem;
  text-align: center;
}

.stat-val { font-size: 1rem; font-weight: 700; color: var(--pond-deep); }
.stat-lbl {
  font-size: 0.58rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.12rem;
}

/* ── Style tags ─────────────────────────────────────────────────────────────── */
.style-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.style-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(111,207,138,0.1);
  color: var(--pond-deep);
  border: 1px solid rgba(111,207,138,0.28);
}

/* ── Style summary ──────────────────────────────────────────────────────────── */
.style-summary {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.55;
  padding: 0.65rem 0.9rem;
  background: rgba(111,207,138,0.06);
  border-radius: 8px;
  border-left: 3px solid var(--frog-green);
}

/* ── Arsenal ────────────────────────────────────────────────────────────────── */
.section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.arsenal-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.45rem;
}

.arsenal-code {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--pond-deep);
  font-family: monospace;
  min-width: 22px;
}

.arsenal-name {
  font-size: 0.72rem;
  color: var(--text-soft);
  min-width: 82px;
  flex-shrink: 0;
  white-space: nowrap;
}

.arsenal-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(111,207,138,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.arsenal-bar-fill {
  height: 100%;
  background: var(--frog-green);
  border-radius: 99px;
  opacity: 0.8;
}

.arsenal-pct {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pond-deep);
  min-width: 34px;
  text-align: right;
}

.arsenal-velo {
  font-size: 0.68rem;
  color: var(--text-soft);
  min-width: 50px;
  text-align: right;
}

/* ── Batters panel ──────────────────────────────────────────────────────────── */
.opp-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.batters-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.15rem;
}

.batters-title {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.batters-subtitle {
  font-size: 0.67rem;
  color: var(--text-soft);
  opacity: 0.7;
  margin-top: 0.1rem;
}

/* ── Batter row ─────────────────────────────────────────────────────────────── */
.batter-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  background: #243B2E;
  border-radius: 8px;
  transition: transform 150ms ease, box-shadow 150ms ease;
  cursor: default;
}

.batter-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.batter-row.top-batter {
  border: 1px solid var(--cattail-gold);
  border-left: 4px solid var(--cattail-gold);
}

.conf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.batter-rank {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-soft);
  min-width: 12px;
  padding-top: 2px;
  flex-shrink: 0;
}

.batter-info { flex: 1; min-width: 0; }

.batter-name-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.12rem;
}

.batter-name {
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Quicksand', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--pond-deep);
}

.batter-pos {
  font-size: 0.63rem;
  color: var(--text-soft);
  background: var(--lily-light);
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ── Result pills ───────────────────────────────────────────────────────────── */
.result-pill {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 99px;
  letter-spacing: 0.2px;
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
}

.result-hit  { background: rgba(111,207,138,0.2);  color: var(--frog-green); }
.result-miss { background: rgba(239,154,154,0.15); color: var(--warning-coral); }
.result-dnp  { background: rgba(168,181,171,0.1);  color: var(--text-soft); }

.batter-stats-line {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--frog-green);
  margin-bottom: 0.1rem;
}

.batter-reason {
  font-size: 0.68rem;
  color: var(--text-soft);
  line-height: 1.35;
}

/* ── Pitch hit % breakdown ──────────────────────────────────────────────────── */
.pitch-hit-table {
  margin-top: 0.5rem;
  background: var(--pad-cream);
  border: 1px solid rgba(111,207,138,0.1);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow: hidden;
  width: 100%;
}

.ph-row {
  display: grid;
  grid-template-columns: 22px 44px 40px 1fr 44px;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.66rem;
}

.ph-code {
  font-family: monospace;
  font-weight: 700;
  color: var(--pond-deep);
}

.ph-badge {
  font-size: 0.54rem;
  font-weight: 800;
  padding: 0.05rem 0.28rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ph-badge.hot  {
  background: rgba(111,207,138,0.2);
  color: var(--frog-green);
  animation: pulse-hot 2.2s ease-in-out infinite;
}
.ph-badge.cold { background: rgba(180,60,60,0.35); color: #FFCDD2; }

@keyframes pulse-hot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.ph-hs {
  color: var(--text-soft);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ph-bar-wrap {
  height: 3px;
  background: rgba(111,207,138,0.1);
  border-radius: 99px;
  overflow: hidden;
}

.ph-bar-fill { height: 100%; border-radius: 99px; }

.ph-pct {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-nodata {
  font-size: 0.66rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ── Bullpen ────────────────────────────────────────────────────────────────── */
.bullpen-section {
  margin-top: 0.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(111,207,138,0.12);
}

.bp-bar-fill  { background: var(--cattail-gold) !important; opacity: 0.7; }
.bp-code      { color: var(--text-soft) !important; }

.bp-unavailable {
  font-size: 0.75rem;
  color: var(--text-soft);
  padding: 0.25rem 0;
  opacity: 0.55;
}

/* ── No games ───────────────────────────────────────────────────────────── */
.no-games { text-align: center; padding: 4rem 2rem; color: var(--text-soft); }
.no-games h2 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--pond-deep); }

/* ── Expected hit rate ──────────────────────────────────────────────────────── */
.ehr-block {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--pond-deep);
  margin-bottom: 0.18rem;
}

.ehr-block strong { font-weight: 800; color: var(--frog-green); }
.ehr-coverage     { color: var(--text-soft); font-weight: 400; }
.ehr-null         { color: var(--text-soft); font-style: italic; }

.ehr-limited {
  display: inline-block;
  background: rgba(239,154,154,0.15);
  color: var(--warning-coral);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 99px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ── Swamp progress scene ───────────────────────────────────────────────────── */
.swamp-scene {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.swamp-water {
  position: relative;
  height: 110px;
  background: linear-gradient(180deg, #152B1C 0%, #0A1410 100%);
  border-radius: 14px;
  margin-bottom: 1.75rem;
  overflow: hidden;
  border: 1px solid rgba(111,207,138,0.12);
}

/* Animated water shimmer */
.swamp-water::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 9px,
    rgba(111,207,138,0.03) 9px,
    rgba(111,207,138,0.03) 10px
  );
  animation: water-shimmer 4s ease-in-out infinite;
}

@keyframes water-shimmer {
  0%, 100% { opacity: 0.6; transform: translateX(0); }
  50%       { opacity: 1;   transform: translateX(5px); }
}

/* Depth gradient at bottom */
.swamp-water::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
  pointer-events: none;
}

.lily-pad {
  position: absolute;
  bottom: 22px;
  width: 32px;
  height: 19px;
  background: rgba(111,207,138,0.38);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* V-notch on each lily pad */
.lily-pad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 9px solid #0A1410;
}

/* Frog emoji that hops along */
.frog-runner {
  position: absolute;
  bottom: 30px;
  font-size: 1.65rem;
  line-height: 1;
  transform: translateX(-50%);
  transition: left 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: frog-hop 0.85s ease-in-out infinite;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6));
  z-index: 1;
}

@keyframes frog-hop {
  0%, 100% { transform: translateX(-50%) translateY(0px) scaleY(1); }
  45%       { transform: translateX(-50%) translateY(-9px) scaleY(1.05); }
  55%       { transform: translateX(-50%) translateY(-9px) scaleY(1.05); }
  90%       { transform: translateX(-50%) translateY(1px) scaleY(0.95); }
}

@keyframes frog-arrive {
  0%   { transform: translateX(-50%) translateY(0) scale(1); }
  35%  { transform: translateX(-50%) translateY(-18px) scale(1.2); }
  60%  { transform: translateX(-50%) translateY(-6px) scale(1.1); }
  80%  { transform: translateX(-50%) translateY(2px) scale(0.95); }
  100% { transform: translateX(-50%) translateY(0) scale(1.15); }
}

.progress-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.progress-pct {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Quicksand', sans-serif;
  color: var(--frog-green);
  line-height: 1;
  letter-spacing: -1.5px;
  text-shadow: 0 0 28px rgba(111,207,138,0.35);
}

.progress-pitcher {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 500;
}

.progress-step {
  font-size: 0.72rem;
  color: var(--text-soft);
  opacity: 0.5;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  border-top: 1px solid rgba(111,207,138,0.15);
  margin-top: 3rem;
  opacity: 0.65;
}
