/* Your stats: the hub's look. One column on a phone, two from 40rem, three from 70rem so a 1920 px screen is not a thin strip. */
.stats-main { max-width: 74rem; padding-top: 2.3rem; }
.stats-hero { padding-bottom: 1.6rem; }
.stats-hero .hero-copy { max-width: 42rem; }
[hidden] { display: none !important; }
.stats-figures, .stat-figures { display: grid; margin: 0; gap: .6rem .9rem; }
.stats-figures { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-figures div, .stat-figures div { min-width: 0; }
.stats-figures dt, .stat-figures dt { color: var(--hub-muted); font-size: .8rem; line-height: 1.35; }
.stats-figures dd, .stat-figures dd { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 800; overflow-wrap: anywhere; }
.stats-totals { margin-bottom: 2rem; padding: .9rem 1rem; border: 1px solid var(--hub-line); border-radius: .9rem; background: var(--hub-panel); }
.stats-totals h2, .stats-by-game h2 { margin: 0 0 .6rem; font-size: 1.1rem; letter-spacing: -.02em; }
.stats-note { margin: 0 0 1rem; color: var(--hub-muted); font-size: .88rem; line-height: 1.45; }
.stats-empty { margin: 0 0 1.5rem; padding: .8rem 1rem; border: 1px dashed var(--hub-teal); border-radius: .9rem; line-height: 1.5; }
.stats-empty a, .stat-play { color: var(--hub-teal); font-weight: 800; }
.stats-empty a:focus-visible, .stat-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: .25rem; }
.stats-milestones { margin-bottom: 2rem; }
.stats-milestones h2 { margin: 0 0 .6rem; font-size: 1.1rem; letter-spacing: -.02em; }
.milestone-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 40rem) { .milestone-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .milestone-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.milestone { min-width: 0; display: grid; gap: .15rem; padding: .75rem 1rem; border: 1px solid var(--hub-line); border-radius: .9rem; background: var(--hub-panel); overflow-wrap: anywhere; }
.milestone.is-earned { border-color: var(--hub-teal); }
.milestone-name { font-size: 1rem; font-weight: 800; line-height: 1.25; }
.milestone-state, .milestone-progress { color: var(--hub-muted); font-size: .85rem; line-height: 1.35; }
.milestone.is-earned .milestone-state { color: var(--hub-teal); font-weight: 800; }
.milestone-note { color: var(--hub-muted); font-size: .88rem; line-height: 1.4; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: .85rem; }
@media (min-width: 40rem) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-card { min-width: 0; display: flex; flex-direction: column; gap: .85rem; padding: 1rem; border: 1px solid var(--hub-line); border-radius: 1rem; background: var(--hub-panel); }
.stat-name { margin: 0; font-size: 1.2rem; line-height: 1.2; letter-spacing: -.03em; }
.stat-strip { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: .2rem; }
.day { display: grid; place-items: center; aspect-ratio: 1; min-width: 0; border: 1px solid var(--hub-muted); border-radius: .3rem; color: var(--hub-muted); font-size: .72rem; line-height: 1; }
.day.is-played { border-color: var(--hub-teal); background: var(--hub-teal); color: #142b39; font-weight: 900; }
.stat-play { min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; text-decoration: none; font-size: .95rem; }
.stat-play:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Move your record: a code and link to copy, a paste box and a preview. Boxes fill the width of a phone; buttons are 44 px tall. */
.stats-move { max-width: 46rem; margin-bottom: 2rem; padding: .9rem 1rem; border: 1px solid var(--hub-line); border-radius: .9rem; background: var(--hub-panel); }
.stats-move h2 { margin: 0 0 .6rem; font-size: 1.1rem; letter-spacing: -.02em; }
.stats-move h3 { margin: 0 0 .4rem; font-size: 1rem; }
.stats-move > p, .stats-move form, .stats-move > div { margin: 0 0 .5rem; }
.move-label { display: block; margin: .6rem 0 .3rem; font-size: .88rem; font-weight: 800; }
.move-box { display: block; box-sizing: border-box; width: 100%; min-height: 4.5rem; padding: .55rem .65rem; border: 1px solid var(--hub-muted); border-radius: .6rem; background: var(--hub-bg); color: var(--hub-ink); font: inherit; font-size: .82rem; line-height: 1.4; overflow-wrap: anywhere; resize: vertical; }
.move-box:focus-visible, .move-button:focus-visible, .move-preview:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.move-button { min-height: 44px; margin: .5rem .5rem 0 0; padding: .35rem .95rem; border: 1px solid var(--hub-teal); border-radius: 999px; background: var(--hub-teal); color: #142b39; font: inherit; font-size: .92rem; font-weight: 800; cursor: pointer; }
.move-button-quiet { background: transparent; color: var(--hub-ink); }
.move-link { overflow-wrap: anywhere; font-size: .85rem; line-height: 1.4; }
.move-link a { color: var(--hub-teal); }
.move-preview { margin-top: .9rem; padding: .8rem .9rem; border: 1px dashed var(--hub-teal); border-radius: .75rem; }
.move-preview p { line-height: 1.45; }
.move-status { min-height: 1.5em; margin: .8rem 0 0; color: var(--hub-teal); font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
@media (min-width: 90rem) {
  .stats-figures dt, .stat-figures dt, .stats-note { font-size: .95rem; }
  .stats-figures dd, .stat-figures dd { font-size: 1.3rem; }
  .stat-name { font-size: 1.5rem; }
  .day { font-size: .85rem; }
}
