/* Game statistics page: key numbers, charts, sourced statistics, citation box */
.st-intro .wrap { max-width: 860px; text-align: center; }
.st-intro p { margin-inline: auto; max-width: 62ch; }
.st-sec .eyebrow, .st-intro .eyebrow { text-transform: none; } /* dates and names keep their capitals (German nouns) */
.st-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 1.4rem; }
.st-toc a {
  padding: 6px 12px 7px; border-radius: 999px; font-weight: 800; font-size: .88rem; text-decoration: none; color: var(--text);
  background: var(--surface); border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--drop);
}
.st-toc a:hover { background: var(--lemon); color: var(--ink); }
.st-sec { scroll-margin-top: 80px; }
.st-sec .wrap { max-width: 980px; }
.st-sec-intro { max-width: 70ch; margin: 0 auto 1.6rem; text-align: center; color: var(--muted); font-size: 1.06rem; }

/* key numbers */
.st-keys { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.st-keys a {
  height: 100%; display: grid; align-content: start; gap: 6px; padding: 16px 16px 14px; border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: var(--surface); border: var(--bw) solid var(--line); box-shadow: var(--shadow-s); transition: translate .15s var(--ease);
}
.st-keys a:hover { translate: -2px -2px; }
.st-keys li:nth-child(6n+1) .st-big { background: var(--lemon); }
.st-keys li:nth-child(6n+2) .st-big { background: var(--mint); }
.st-keys li:nth-child(6n+3) .st-big { background: var(--pink); }
.st-keys li:nth-child(6n+4) .st-big { background: var(--lilac); }
.st-keys li:nth-child(6n+5) .st-big { background: #ffb199; }
.st-keys li:nth-child(6n) .st-big { background: #9fd8ff; }
.st-big {
  justify-self: start; padding: 2px 8px 4px; border-radius: 8px; color: var(--ink);
  font: 800 clamp(1.45rem, 4vw, 1.8rem)/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--lemon);
}
.st-keys span { font-size: .95rem; line-height: 1.4; }
.st-keys small { color: var(--faint); font-weight: 700; font-size: .78rem; }

/* charts */
.st-charts, .st-track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-bottom: 1.8rem; }
.st-chart {
  margin: 0; min-width: 0; padding: 16px 18px 14px; border-radius: var(--radius); background: var(--surface);
  border: var(--bw) solid var(--line); box-shadow: var(--shadow-s); display: grid; gap: 12px; align-content: start;
}
.st-chart figcaption { display: grid; gap: 2px; }
.st-chart figcaption b { font: 800 1.08rem/1.25 var(--font); text-wrap: balance; }
.st-chart figcaption span { font-size: .84rem; color: var(--faint); font-weight: 700; }
.st-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.st-bars li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.st-bar-label { font-size: .88rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.st-bar-track { display: block; width: 100%; height: 18px; overflow: visible; }
.st-bar { stroke: var(--ink); stroke-width: 2px; fill: var(--cobalt); }
.st-c0 { fill: var(--cobalt); } .st-c1 { fill: var(--tomato); } .st-c2 { fill: var(--lemon); }
.st-c3 { fill: var(--mint); } .st-c4 { fill: var(--pink); } .st-c5 { fill: var(--lilac); }
.st-bar-val { font-size: .92rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-chart-src { margin: 0; font-size: .8rem; color: var(--faint); }
.st-chart-src a { color: inherit; }
@media (max-width: 480px) {
  .st-bars { gap: 10px; }
  .st-bars li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .st-bar-track { grid-column: 1 / -1; grid-row: 2; height: 14px; }
  .st-claim { font-size: 1rem; }
}

/* line charts (tracked by BeatMe) */
.st-svg { width: 100%; height: auto; display: block; overflow: visible; }
.st-grid { stroke: var(--line); stroke-opacity: .14; stroke-width: 1; }
.st-ax { fill: var(--faint); font: 700 13px var(--font); }
.st-line { fill: none; stroke: var(--cobalt); stroke-width: 3; stroke-linejoin: round; }
.st-area { fill: var(--cobalt); fill-opacity: .14; stroke: none; }
.st-dot { fill: var(--tomato); stroke: var(--ink); stroke-width: 2.5; }
.st-tracked .st-chart { box-shadow: var(--shadow); }
.st-facts { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .95rem; color: var(--muted); }
.st-facts strong { color: var(--text); }
.st-big-solo { margin: 6px 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.st-big-solo .st-big { font-size: clamp(2.2rem, 7vw, 3rem); }

/* the statistics */
.st-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-item {
  scroll-margin-top: 90px; padding: 14px 16px 12px; border-radius: var(--radius-s); background: var(--surface);
  border: 2px solid var(--line); display: grid; gap: 6px; min-width: 0;
}
.st-item:target { background: var(--surface-2); box-shadow: 0 0 0 4px var(--lemon); }
.st-claim { margin: 0; font-size: 1.06rem; line-height: 1.45; }
.st-claim strong { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--lemon) 75%, transparent) 60%); }
.st-note { margin: 0; color: var(--muted); font-size: .92rem; }
.st-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .82rem; color: var(--faint); }
.st-meta a { color: var(--muted); font-weight: 700; }
.st-meta cite { font-style: normal; overflow-wrap: anywhere; }
.st-tag { padding: 1px 8px 2px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 800; color: var(--muted); white-space: nowrap; }
.st-copy {
  margin-left: auto; padding: 3px 9px 4px; border-radius: 8px; font: 800 .76rem/1.2 var(--font); cursor: pointer;
  color: var(--text); background: transparent; border: 1.5px solid var(--line);
}
.st-copy:hover { background: var(--lemon); color: var(--ink); }

/* cite this page */
.st-cite {
  max-width: 760px; margin: 0 auto; padding: clamp(18px, 4vw, 28px); border-radius: var(--radius-l); display: grid; gap: 12px;
  background: var(--surface); border: var(--bw) solid var(--line); box-shadow: var(--shadow);
}
.st-cite h2 { margin: 0; }
.st-cite p { margin: 0; color: var(--muted); }
.st-cite-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.st-cite-row code {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; font-size: .84rem; line-height: 1.45;
  background: var(--surface-2); border: 1.5px solid var(--line); overflow-wrap: anywhere; user-select: all;
}
.st-small { font-size: .84rem; }
@media (max-width: 520px) { .st-cite-row { flex-direction: column; align-items: stretch; } }
