.stats-view {
  margin: 24px 0 30px;
  min-height: 55vh;
}

.game-stats-heading {
  margin-bottom: 14px;
}

.game-stats-heading h1,
.game-stats-heading h3 {
  margin: 7px 0 0;
  color: var(--text);
  font: 700 34px/.95 var(--display);
  letter-spacing: .5px;
}

.game-stats-heading h1 span,
.game-stats-heading h3 span {
  color: var(--lime);
}

.game-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-stats-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(29, 37, 32, .94), rgba(23, 29, 26, .9));
}

.game-stats-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.game-stats-card-heading h4 {
  margin: 0;
  color: var(--lime);
  font: 500 10px var(--mono);
  letter-spacing: .7px;
}

.game-stats-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 13px 0 17px;
  background: var(--line);
  border: 1px solid var(--line);
}

.game-stat {
  min-width: 0;
  min-height: 74px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 9px;
  background: var(--panel);
}

.game-stat span,
.recent-runs-heading {
  color: var(--muted);
  font: 500 8px var(--mono);
  letter-spacing: .6px;
}

.game-stat strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font: 600 19px var(--display);
}

.recent-runs-heading {
  margin: 0 0 7px;
}

.recent-runs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-runs-list li {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(48, 58, 51, .75);
}

.recent-run-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recent-run-details strong {
  overflow: hidden;
  color: #dfe6dc;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-run-details span,
.recent-run-time {
  color: var(--muted);
  font: 9px var(--mono);
}

.recent-run-time {
  flex-shrink: 0;
  color: var(--lime);
}

.recent-runs-list .recent-runs-empty {
  justify-content: flex-start;
  color: var(--muted);
  font-size: 10px;
}

@media(max-width:800px) {
  .game-stats-grid { grid-template-columns: 1fr; }
}

@media(max-width:520px) {
  .stats-view { margin: 20px 0 25px; }
  .game-stats-heading h1,
  .game-stats-heading h3 { font-size: 28px; }
  .game-stats-card { padding: 14px; }
  .game-stat { min-height: 68px; padding: 10px; }
  .game-stat strong { font-size: 17px; }
}
