:root {
  --bg: #0f0c0a;
  --card: #1a1512;
  --line: #2e2620;
  --ink: #f5f0e8;
  --mut: #a89880;
  --amber: #f5a623;
  --amber-lt: #ffc966;
}

html[data-theme='light'] {
  --bg: #f7f3ec;
  --card: #fbf7f5;
  --line: #e2d9c8;
  --ink: #2a2118;
  --mut: #8a7a63;
  /* One light-theme gold at the variable level (system, 2026-11-03):
     the bright dark-theme golds wash out on cream, so both amber
     steps take the podium gradient's deep end, #b87409. */
  --amber: #b87409;
  --amber-lt: #b87409;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 20px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 166, 35, .1), transparent);
}

html[data-theme='light'] body::before {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(245, 166, 35, .12), transparent);
}

a {
  color: var(--amber);
  text-decoration: none;
}

.header {
  max-width: 800px;
  margin: 0 auto 20px;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 2rem;
  margin: 0 0 8px;
}

/* Stat cards — same finish as the board's .stat (style_block_0) */
.stats {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin: 26px auto 6px;
  flex-wrap: wrap;
  max-width: 700px;
}

.stat {
  background: rgba(245, 166, 35, .06);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 26px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  flex: 1 1 0;
}

html[data-theme='light'] .stat {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.stat b {
  display: block;
  font-size: 1.5rem;
  color: #f9bd55;
  font-variant-numeric: tabular-nums;
}

html[data-theme='light'] .stat b {
  color: #b87409;
}

.stat span {
  font-size: .72rem;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.score-list {
  max-width: 800px;
  margin: 0 auto;
}

.score-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-name {
  font-weight: 600;
}

.score-val {
  color: var(--amber);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
}
