/* ══════════════════════════════════════════════════════
   PROGRESS BARS
   ══════════════════════════════════════════════════════ */
.progress-row {
  display: grid; grid-template-columns: 1fr; gap: var(--s-4);
  margin: var(--s-4) 0;
}
.progress-header {
  display: flex; justify-content: space-between;
  font-size: var(--fs-2); color: var(--muted); margin-bottom: 6px;
}
.progress-header span:last-child { color: var(--text); font-weight: 600; }
.progress-bar {
  height: 7px; background: var(--surface3);
  border-radius: 4px; overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.pf-blue { background: linear-gradient(90deg, #1c3a6e, var(--blue)); box-shadow: 0 0 8px rgba(56,139,253,.2); }
.pf-gold { background: linear-gradient(90deg, #3a2e00, var(--gold)); box-shadow: 0 0 8px rgba(240,192,64,.2); }
.pf-green { background: linear-gradient(90deg, #0d2a1a, var(--green)); box-shadow: 0 0 8px rgba(63,185,80,.2); }

/* ══════════════════════════════════════════════════════
   CHART
   ══════════════════════════════════════════════════════ */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  margin-bottom: var(--s-5);
  transition: opacity .25s ease, border-color .3s;
  position: relative;
}
/* Chart card has no click affordance, so don't fake one on hover.
   Keep the .live-glow accent (separate rule below) since that's
   semantic — live tournaments visually distinct from completed. */
.chart-card.live-glow {
  border-color: rgba(56,139,253,.3);
  box-shadow: 0 0 30px rgba(56,139,253,.06), 0 0 60px rgba(240,192,64,.03);
}
.chart-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: var(--s-3);
  flex-wrap: wrap; gap: var(--s-3);
}
.chart-title { margin: 0; font-weight: 700; font-size: var(--fs-4); }
.chart-subtitle { font-size: var(--fs-2); color: var(--muted); margin-top: 2px; }
.chart-top-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chart-legend { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
/* The range control is a segmented control (controls.css .segmented). */
.legend-item { display: flex; align-items: center; gap: 6px; font-size: var(--fs-2); color: var(--muted); }
@media (max-width: 639px) {
  .chart-legend { gap: var(--s-2); }
  .legend-item { font-size: var(--fs-1); gap: 4px; }
}
.legend-swatch { width: 16px; height: 3px; border-radius: 2px; }
.legend-swatch.dashed { background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px); }
.legend-swatch.band { width: 16px; height: 10px; border-radius: 2px; opacity: .4; }
.chart-wrap { position: relative; height: 320px; }
.chart-wrap canvas { border-radius: 8px; }
.chart-mobile-dates { display: none; }
.about-jump {
  font-size: var(--fs-2); color: var(--muted);
  margin: 0 0 22px;
  display: block;
}
.about-jump a {
  color: var(--text2); text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color .15s, border-color .15s;
}
.about-jump a:hover, .about-jump a:focus-visible { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 639px) {
  .chart-mobile-dates {
    display: flex; flex-wrap: wrap; gap: 14px;
    margin-top: 8px; padding: 6px 2px 0;
    font-size: var(--fs-2); color: var(--muted);
    border-top: 1px dashed var(--border-light);
  }
  .chart-mobile-dates .cmd-eb { color: #3fb950; font-weight: 600; }
  .chart-mobile-dates .cmd-event { color: #f85149; font-weight: 600; }
}

