.statistics-section,
.player-stat-list,
.stat-card-body {
  display: grid;
  gap: 12px;
}

.player-stat-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.player-stat-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.player-stat-card > summary::-webkit-details-marker {
  display: none;
}

.player-stat-card > summary > div {
  display: grid;
  gap: 3px;
}

.player-stat-card > summary span {
  color: var(--muted);
  font-size: 0.84rem;
}

.player-stat-card[open] > summary {
  border-bottom: 1px solid var(--line);
  background: rgba(228, 245, 233, 0.45);
}

.stat-card-body {
  padding: 14px;
}

.stat-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stat-metric-grid article {
  display: grid;
  gap: 4px;
  border-radius: 8px;
  background: rgba(244, 247, 239, 0.85);
  padding: 10px;
}

.stat-metric-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.stat-metric-grid strong {
  font-size: 1.15rem;
}

.form-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(34px, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(to top, rgba(20, 122, 61, 0.06), transparent);
  padding: 14px 10px 8px;
}

.form-column {
  display: grid;
  grid-template-rows: 18px 100px auto;
  align-items: end;
  justify-items: center;
  gap: 4px;
  min-width: 0;
}

.form-value {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.form-bar {
  width: min(32px, 78%);
  min-height: 4px;
  border-radius: 7px 7px 3px 3px;
  background: var(--brand);
}

.form-level-0 { height: 4px; background: #d8e2d3; }
.form-level-1 { height: 10%; }
.form-level-2 { height: 20%; }
.form-level-3 { height: 30%; }
.form-level-4 { height: 40%; }
.form-level-5 { height: 50%; }
.form-level-6 { height: 60%; }
.form-level-7 { height: 70%; }
.form-level-8 { height: 80%; }
.form-level-9 { height: 90%; }
.form-level-10 { height: 100%; }

.form-column small {
  overflow: hidden;
  width: 100%;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.last-five {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.last-five span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 900;
}

.last-five .is-hit {
  background: var(--brand-soft);
  color: var(--brand);
}

.last-five .is-miss {
  background: #f1eeee;
  color: var(--muted);
}

.statistic-badges {
  margin-top: 0;
}

@media (max-width: 640px) {
  .stat-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-chart {
    gap: 4px;
    padding-inline: 6px;
  }
}
