.stats-intro h2 { font-family: "Archivo Black", sans-serif; font-size: clamp(2rem, 5vw, 3.25rem); }
.stats-back { color: var(--gold); display: inline-block; padding-block: .5rem; margin-bottom: 1.25rem; }
.stats-eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 700; margin-bottom: .5rem; }
.stats-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.stats-nav button { min-height: 60px; background: var(--surface); text-align: left; }
.stats-nav button[aria-pressed="true"] { background: var(--purple); border-color: var(--gold); box-shadow: inset 0 -3px var(--gold); }
.stats-nav button:hover { background: var(--purple); }
#stats-content { min-width: 0; min-height: 260px; }
#stats-content h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.stat-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin-block: 1.5rem; }
.stat-metric { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; overflow-wrap: anywhere; }
.stat-metric strong { display: block; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--gold); }
.stat-metric span { color: var(--muted); font-size: .9rem; }
.stats-table { width: 100%; }
.stats-table th, .stats-table td { white-space: normal; }
.stats-table td:first-child { min-width: 10rem; overflow-wrap: anywhere; }
.stats-scroll { overflow-x: auto; border-radius: 8px; margin-top: 1rem; }
.stats-scroll:focus-visible, .stats-back:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.stats-picker { display: grid; gap: .5rem; max-width: 26rem; margin-block: 1rem; }
.stats-picker select { width: 100%; min-height: 44px; }
.digits-table { width: 100%; min-width: 420px; table-layout: fixed; text-align: center; }
.digits-table td, .digits-table th { padding: .6rem .2rem; text-align: center; }
.digits-table td[data-hot="true"] { background: var(--purple); color: var(--gold); font-weight: 700; }
.stats-note { color: var(--muted); font-size: .9rem; margin-top: 1rem; }
@media (max-width: 600px) {
  .stats-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-nav button { font-size: .85rem; padding: .75rem; }
  .stat-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.digits-table td[data-level="1"] { background: #30233f; }
.digits-table td[data-level="2"] { background: #4f2683; }
.digits-table td[data-level="3"] { background: #6b379e; }
.digits-table td[data-level="4"] { background: #8548b5; }
@media (max-width: 600px) {
  .stats-table, .stats-table tbody { display: block; }
  .stats-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .stats-table tbody { display: grid; gap: .75rem; }
  .stats-table tr { display: block; padding: .5rem .75rem; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; }
  .stats-table td { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .75rem; padding: .5rem 0; text-align: right; overflow-wrap: anywhere; }
  .stats-table td::before { content: attr(data-label); text-align: left; color: var(--muted); font-size: .8rem; }
  .stats-table td:first-child { min-width: 0; color: var(--gold); font-weight: 700; }
  .stats-table td:last-child { border-bottom: 0; }
}
