/* /redial/: the 30-day tables and their notes (site/assets/js/redial-live.js fills the bodies). */
/* the full live line (map, players, bots) can take two lines in a narrow card: reserve them, no jump on load */
.srv-live { min-height: 2.9em; }
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }   /* a wide table scrolls in its box, not the page */
.stats-meta, .stats-note { color: var(--muted); font-size: 14px; max-width: 57ch; }
.stats-note a { color: var(--horizon); }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: start; }
.table-wrap { overflow-x: auto; background: var(--hull); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.table-wrap:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.stat-table caption { text-align: left; padding: 16px 14px 10px; font: 600 13px/1.3 var(--f-body); letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.stat-table th, .stat-table td { padding: 8px 14px; text-align: right; white-space: nowrap; border-top: 1px solid var(--line); }
.stat-table thead th { font: 600 11px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.stat-table thead tr:first-child th { border-top: 0; }
.stat-table thead th[scope="colgroup"] { text-align: center; }
.stat-table abbr { text-decoration: none; cursor: help; }
.stat-table .l { text-align: left; }
.stat-table tbody th { color: var(--text); font-weight: 600; white-space: normal; overflow-wrap: anywhere; min-width: 7em; }
.stat-table td { color: var(--muted); }
.stat-table td.hi { color: var(--text); font-weight: 600; }
.stat-table tbody tr:first-child td, .stat-table tbody tr:first-child th { border-top-color: var(--line-strong); }
.stat-table .empty-row td { text-align: left; white-space: normal; }
/* Redial evenings: when (the dates come from site/assets/js/redial-abende.js) and where */
.abende { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.abende-panel { display: grid; gap: 12px; align-content: start; }
.abende-panel h3 { margin: 0; }
.abende-panel p { color: var(--muted); max-width: 64ch; }
.abende-panel .abende-rule { color: var(--text); font-size: 18px; font-weight: 600; }
.abende-panel .self-start { justify-self: start; }
.abende-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-variant-numeric: tabular-nums; }
.abende-list li { display: grid; gap: 1px; padding-left: 12px; border-left: 2px solid var(--chevron); min-width: 0; }
.abende-list time { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.abende-local { font: 500 12.5px/1.4 var(--f-mono); color: var(--muted); overflow-wrap: anywhere; }
.abende-ics { font-weight: 600; }
.abende-panel .abende-hint { font-size: 13.5px; color: var(--dim); }
.abende-panel .abende-sub { margin: 4px 0 0; color: var(--text); font-weight: 600; }
.abende-themen { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.abende-themen li { min-width: 0; overflow-wrap: anywhere; }
.abende-n { color: var(--muted); }
.abende-thema { font-size: 13.5px; color: var(--muted); }
.abende-neu { grid-column: 1 / -1; }
.abende-tipps { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); max-width: 72ch; }
@media (max-width: 860px) { .abende { grid-template-columns: minmax(0, 1fr); } }
/* Server rules and how to report (#regeln) */
.regeln { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.regeln-panel { display: grid; gap: 12px; align-content: start; }
.regeln-panel h3 { margin: 0; }
.regeln-panel p { color: var(--muted); max-width: 64ch; }
.regeln-list { margin: 0; padding-left: 1.5em; display: grid; gap: 8px; max-width: 64ch; }
.regeln-list li { padding-left: 4px; }
.regeln-list li::marker { color: var(--chevron); font: 600 14px var(--f-mono); }
.regeln-list strong { color: var(--text); }
.regeln-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.regeln-actions .btn { max-width: 100%; line-height: 1.25; }
.regeln-panel .regeln-small { font-size: 13.5px; color: var(--dim); }
.regeln-panel .regeln-small a { color: var(--horizon); }
@media (max-width: 860px) { .regeln { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .stats-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .stat-table th, .stat-table td { padding: 7px 8px; }
  .stat-table caption { padding: 14px 10px 8px; }
}
/* the teaser for /redial/installer/ under "Einsteigen" */
.inst-teaser { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.inst-teaser > div { flex: 1 1 32ch; min-width: 0; }
.inst-teaser h3 { margin-bottom: 8px; }
.inst-teaser p { color: var(--muted); max-width: 72ch; }
.inst-teaser .btn { max-width: 100%; }
/* "Befehl kopieren" next to each server address (shown by redial-live.js) */
/* address on one line where it fits; the button moves under it instead of squeezing it */
.srv .addr { flex-wrap: wrap; }
.srv .addr code { flex: 1 1 17em; min-width: 0; }
.srv-copy { flex: none; font: 600 12px/1 var(--f-mono); color: var(--horizon); background: none; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 11px; min-height: 32px; }
.srv-copy:hover { border-color: rgba(86, 200, 255, 0.55); }
.srv-copy:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; }
/* "Player", the game's default name, on the leaderboard: greyed, with a short note */
.stat-table tr.default-name th, .stat-table tr.default-name td { color: var(--dim); }
.stat-table .name-note { font: 500 11px/1.3 var(--f-mono); color: var(--dim); letter-spacing: .04em; white-space: nowrap; }
.stat-table tbody th a { color: inherit; text-decoration: underline; text-decoration-color: rgba(86, 200, 255, 0.5);
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* the ten multiplayer maps */
.map-table td { white-space: normal; overflow-wrap: anywhere; }
.stat-table.map-table tbody th { min-width: 0; }
.stat-table.map-table thead th { white-space: normal; }
@media (min-width: 561px) { .map-table td.map-modes { white-space: nowrap; } }
/* map name and file break between words only (the build puts <wbr> after the hyphens and between the words of the
   file name), so the column keeps the width of its longest word */
.stat-table.map-table tbody th { overflow-wrap: normal; }
.map-table .map-file { display: block; margin-top: 2px; font: 500 12px/1.4 var(--f-mono); color: var(--muted); overflow-wrap: normal; }
.maps-note { margin-top: 14px; }
/* the last 30 days (#verlauf): a bar per day, its height --v (0..1) set by redial-live.js (the width on the li gives
   the fit-content plot its size: up to 40px a bar, so 30 days fill a wide card); the tables are the
   accessible version, the chart is aria-hidden. "few": fewer than 3 players or not counted, hatched. */
.hist-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; scroll-margin-top: 80px; }
.hist-block h3 { margin: 0; }
.hist-chart { background: var(--hull); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 12px; }
.hist-plot { width: fit-content; min-width: min(100%, 18em); max-width: 100%; }
.hist { display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; height: 96px; margin: 0; padding: 0; list-style: none;
  border-bottom: 1px solid var(--line-strong); }
.hist li { flex: 1 1 40px; width: 40px; min-width: 0; max-width: 40px; height: 100%; display: flex; align-items: flex-end; }
.hist li.we { background: rgba(122, 162, 230, 0.06); }
.hist .bar { display: block; width: 100%; height: max(2px, calc(var(--v, 0) * 100%)); background: var(--chevron);
  border-radius: 2px 2px 0 0; }
.hist .bar.few, .hist-key.few { height: 10px; background: repeating-linear-gradient(135deg, var(--dim) 0 2px, transparent 2px 5px); }
.hist-axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font: 500 12px/1.4 var(--f-mono);
  color: var(--muted); }
.hist-legend { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.hist-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.hist-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--chevron); }
.hist-more summary { cursor: pointer; color: var(--horizon); font-size: 14px; width: fit-content; }
.hist-more summary:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; }
.hist-more[open] summary { margin-bottom: 10px; }
.stats-grid.hist-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hist-block .stat-table thead th { white-space: normal; }
@media (max-width: 860px) { .stats-grid.hist-grid { grid-template-columns: minmax(0, 1fr); } }
/* the Redial feed under "Neu in Redial" (as the feed button on /neues/) */
.r-feed { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.r-feed p { color: var(--muted); font-size: 14px; max-width: 52ch; }
.r-feed .btn { max-width: 100%; }
.r-feed .btn svg { color: var(--chevron); flex: none; }
