/* Games progress panel. Split from the single original stylesheet; zero visual change. */

.progress-bar { width: 100%; accent-color: var(--accent); }

/* Collapsible progress sections (Games tab, 2026-11-01): each header
   is the toggle AND carries its aggregate, so totals stay visible
   while collapsed. Expanded by default; state persists device-local
   in the progress store. Chevron via ::after (down = open). */
.progress-section { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 0.5rem; }

.progress-section-toggle {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  background: none; border: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left; padding: 0.25rem 0;
}

.progress-section-title { font-weight: 700; }

.progress-section-agg { margin-left: auto; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

.progress-section-toggle .progress-bar { width: 80px; }

.progress-section-toggle::after { content: "▾"; color: var(--accent); }

.progress-section-toggle[aria-expanded="false"]::after { content: "▸"; }

/* Show-more blocks: first 4 visible, the rest hidden until .expanded
   (toggled by the buttons beside each list). */
#achievements-list:not(.expanded) li:nth-child(n+5) { display: none; }

#progress-words:not(.expanded) .chip:nth-child(n+5) { display: none; }

#achievements-toggle, #words-toggle { margin: 0.5rem 0 1rem; }

/* Games progress (DEV-GAMES-004) + leaderboard (DEV-GAMES-003). */
#progress-card h3 { margin: 1rem 0 0.25rem; font-size: 1rem; }
