.statistics-heading { align-items: center; }
.statistics-section { margin-top: 30px; }
.statistics-section > h2 { margin: 0 0 8px; font-size: 1.35rem; }
.statistics-section > h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.statistics-section > p { margin: 0 0 12px; line-height: 1.5; }
.statistics-club-summary { display: grid; gap: 10px; padding: 22px; border-radius: 16px; color: #fff; background: #1f345f; }
.statistics-club-summary > strong:first-child { font-size: 1.15rem; }
.statistics-club-summary b { font-size: 2rem; }
.statistics-club-summary span { color: rgba(255,255,255,.75); }
.statistics-period { margin: 0 0 10px; padding: 0; }
.statistics-period + .statistics-period { margin-top: 0; }
.statistics-period-toggle { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 88px; padding: 16px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.statistics-period-toggle:focus-visible, .statistics-badge:focus-visible { outline: 3px solid #5875c3; outline-offset: 2px; }
.statistics-period-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #1f345f; background: #e6ecfb; font-size: 1.4rem; }
.statistics-period-label { display: grid; flex: 1; gap: 4px; min-width: 0; }
.statistics-period-label small { color: #5c6471; line-height: 1.4; }
.statistics-period-toggle > b { color: #1f345f; white-space: nowrap; }
.statistics-chevron { color: #1f345f; font-size: 1.25rem; }
.statistics-period-details { margin: 0 16px; padding: 4px 0 16px; border-top: 1px solid #e5e7eb; }
.statistics-period-details h4 { margin: 12px 0 4px; }
.statistics-period-details p { margin: 12px 0 0; }
.statistics-detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.statistics-detail-row + .statistics-detail-row { border-top: 1px solid #eef0f3; }
.statistics-detail-row span { display: grid; gap: 3px; }
.statistics-detail-row small { color: #6d7482; }
.statistics-detail-row b { color: #1f345f; white-space: nowrap; }
.statistics-progress h3, .statistics-goal h3 { margin: 0 0 8px; font-size: 1rem; }
.statistics-progress p, .statistics-goal p { margin: 7px 0; line-height: 1.5; }
.statistics-progress .statistics-encouragement { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5e7eb; color: #1f345f; font-weight: 800; }
.statistics-chart { display: flex; align-items: end; gap: 8px; min-height: 130px; margin-top: 14px; }
.statistics-bar { display: grid; flex: 1; justify-items: center; align-content: end; gap: 4px; min-width: 0; font-size: .72rem; }
.statistics-bar i { width: 100%; max-width: 70px; border-radius: 6px 6px 0 0; background: #5b78c8; }
.statistics-bar small { color: #6d7482; }
.statistics-goal { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.statistics-goal progress { width: min(320px, 100%); height: 9px; accent-color: #5875c3; }
.statistics-badge-group { margin-top: 18px; }
.statistics-badge-group h3 { margin: 0 0 10px; font-size: 1rem; }
.statistics-badge-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.statistics-badge { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; padding: 12px 6px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; cursor: pointer; text-align: center; }
.statistics-badge img { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; }
.statistics-badge strong { line-height: 1.25; }
.statistics-badge small { color: #2e7d32; }
.statistics-badge.is-locked img, .statistics-dialog img.is-locked { opacity: .38; filter: grayscale(1); }
.statistics-badge.is-locked small { color: #6d7482; }
.statistics-dialog { max-width: min(440px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 24px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.statistics-dialog::backdrop { background: rgba(9, 30, 57, .55); }
.statistics-dialog h2 { margin: 0 0 18px; }
.statistics-dialog form label { display: grid; gap: 8px; }
.statistics-dialog input { padding: 12px; border: 1px solid #cbd3df; border-radius: 8px; }
.statistics-dialog form > div { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
#statistics-badge-detail { display: grid; justify-items: center; gap: 8px; text-align: center; }
#statistics-badge-detail img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
#statistics-badge-detail h2 { margin: 4px 0 0; }
#statistics-badge-detail p { margin: 0 0 8px; }
@media (max-width: 1100px) { .statistics-badge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .statistics-badge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .statistics-badge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics-period-toggle { flex-wrap: wrap; gap: 8px; }
  .statistics-period-toggle > b { margin-left: 50px; }
  .statistics-goal { align-items: start; flex-direction: column; }
}
