#stats-main {
  padding: 20px 16px 40px;
}

#stats-main h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin: 28px 0 10px;
}

.overall-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.stat-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

.stat-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.stat-name {
  font-size: 14px;
  font-weight: 600;
}

.overall-card .stat-name {
  font-size: 15px;
}

.stat-count {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .3s ease;
}

.stat-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-faint);
}

.stat-bar-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-bar-line-label {
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.stat-bar-fill--shiny {
  background: var(--shiny);
}

@media (max-width: 640px) {
  .stat-row-header {
    flex-wrap: wrap;
  }
}
