/*
  Styles for the standalone /statistics page.
  Reuses the CSS variables defined in ../styles.css (--bg, --panel, --border,
  --text, --text-muted, --accent) so it stays visually consistent with the
  rest of the site and the game's own palette.
*/

.site-main--stats {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
}

.stats-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.stats-page__head {
  margin-bottom: 24px;
}

.stats-page__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Difficulty tabs ---------- */

.difficulty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
}

.difficulty-tab {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.difficulty-tab:hover {
  color: var(--text);
}

.difficulty-tab.is-active {
  color: var(--text);
  font-weight: 700;
  border-bottom-color: var(--accent);
}

/* ---------- Empty state ---------- */

.stats-empty {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 0 28px;
}

/* ---------- Stat cards ---------- */

.stats-reel {
  max-width: 420px;
}

.stats-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 6px 16px rgba(43, 51, 63, 0.06);
}

.stats-card__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.stats-card__rows {
  margin: 0;
}

.stats-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
}

.stats-row + .stats-row {
  border-top: 1px solid var(--border);
}

.stats-row dt {
  color: var(--text-muted);
  font-weight: 400;
}

.stats-row dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

@media (max-width: 480px) {
  .stats-page {
    padding: 20px 16px 48px;
  }

  .stats-page__title {
    font-size: 24px;
  }
}
