/* ══════════════ Gemeinsame Lobby-Basis ══════════════ Anfang ═══════════════
   ERZEUGT – NICHT HIER ÄNDERN. Quelle: /var/www/html/gemeinsam/lobby.css
   Ändern, dann `node werkzeug/verteilen.mjs` – das schreibt diesen Block in
   jedes Spiel. `--pruefen` meldet, wo er abgewichen ist.

   --akzent/--akzent2 setzt jedes Spiel unterhalb des Endmarkers selbst;
   alles davon oberhalb ist in allen Spielen gleich.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0612;
  --bg2: #140b23;
  --panel: rgba(30, 18, 52, .72);
  --line: rgba(160, 120, 255, .18);
  --ink: #f2ecff;
  --muted: #9c8fc2;
  --hot: #ff2e88;
  --hot2: #ff8a3d;
  --cool: #35e6ff;
  --gold: #ffd447;
  --good: #52ffa8;
  --bad: #ff4d5e;
  --r: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .55);

  /* Voreinstellung, wird je Spiel überschrieben */
  --akzent: var(--hot);
  --akzent2: var(--gold);
}

/* Screens: beide Schaltklassen, damit jedes Spiel seinen bisherigen
   Umschalter behalten kann (.on in Card Chaos, .active in den anderen). */
.screen.on, .screen.active, .view.active { display: flex; }

/* ── Typo ─────────────────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; flex-wrap: wrap; justify-content: center; }

.logo {
  font-size: clamp(38px, 8vw, 76px); font-weight: 900;
  letter-spacing: -.03em; line-height: .92; text-align: center;
  background: linear-gradient(100deg, #fff 10%, var(--akzent) 45%, var(--akzent2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(255, 46, 136, .35));
}
.logo span {
  display: block;
  background: linear-gradient(100deg, var(--cool), #a06bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.sm { font-size: 20px; line-height: 1; }
.logo.sm span { display: inline; }
.tag {
  color: var(--muted); margin-top: 10px; font-size: 15px;
  letter-spacing: .12em; text-transform: uppercase; text-align: center;
}

/* ── Panels ───────────────────────────────────────────────────────────── */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 24px; backdrop-filter: blur(14px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; width: 100%;
}
.panel.narrow { max-width: 380px; }
.panel.wide { max-width: 700px; }

/* ── Formulare ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 12px; text-transform: uppercase;
  letter-spacing: .12em; color: var(--muted);
}
input, select {
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); color: var(--ink);
  border-radius: 12px; padding: 13px 15px; font-family: inherit; width: 100%;
  /* 16px ist Pflicht: darunter zoomt iOS Safari beim Fokus in das Feld hinein. */
  font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus {
  outline: none; border-color: var(--akzent);
  box-shadow: 0 0 0 3px rgba(255, 46, 136, .18);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--ink);
  border-radius: 12px; padding: 13px 18px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; user-select: none;
  transition: transform .12s, filter .15s, background .15s;
}
.btn:hover { background: rgba(255, 255, 255, .12); }
.btn:active { transform: scale(.96); }
.btn.big { padding: 16px 26px; font-size: 17px; }
/* .sm und .small sind dasselbe – die vier Spiele hatten je eine der beiden
   Schreibweisen, beide bleiben gültig, damit kein Markup umgeschrieben wird. */
.btn.sm, .btn.small { padding: 8px 12px; font-size: 13px; width: auto; }
.btn.ghost { background: transparent; }
.btn.primary {
  background: linear-gradient(100deg, var(--akzent), var(--akzent2));
  border-color: transparent; color: #180a12;
  box-shadow: 0 6px 22px rgba(255, 46, 136, .3);
}
.btn.primary:hover { filter: brightness(1.12); }
.btn.on { background: linear-gradient(100deg, #1ec98a, var(--good)); color: #04220f; border-color: transparent; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

/* ── Trenner „oder beitreten" ─────────────────────────────────────────── */
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Einstellungszeile: Beschriftung links, Schalter rechts ───────────── */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setting-label {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
}

/* ── Sichtbarkeit: Öffentlich | Privat ────────────────────────────────── */
.segmented {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line); border-radius: 12px;
}
.seg {
  flex: 1; border: 0; background: transparent; color: var(--muted);
  font: 700 14px/1 inherit; font-family: inherit; padding: 10px 8px;
  border-radius: 9px; cursor: pointer; transition: background .15s, color .15s;
}
.seg.sel { background: rgba(255, 255, 255, .1); color: var(--ink); }

/* ── Raumcode + Teilen ────────────────────────────────────────────────── */
.codebox {
  text-align: center; background: var(--panel);
  border: 2px dashed var(--line); border-radius: var(--r); padding: 16px;
}
.codebox-label {
  display: block; font-size: 11px; letter-spacing: .18em;
  color: var(--muted); text-transform: uppercase;
}
.codebox strong {
  display: block; font-size: clamp(34px, 11vw, 46px); font-weight: 900;
  letter-spacing: .22em; color: var(--gold); margin: 4px 0 10px;
  /* Der Code wird abgetippt und vorgelesen – Ziffern gleich breit. */
  font-variant-numeric: tabular-nums;
}
.codebox-vis { display: block; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.codebox .btn { margin: 0 auto; }

.joinrow { display: flex; gap: 10px; }
.joinrow input { text-align: center; letter-spacing: .3em; font-weight: 800; }
.joinrow .btn { width: auto; flex: 0 0 auto; }

/* ── Offene Räume ─────────────────────────────────────────────────────── */
.rooms-head {
  font-size: 13px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.rooms-head span { color: var(--cool); }
.roomlist { display: flex; flex-direction: column; gap: 8px; }
.rooms-empty {
  font-size: 13px; color: var(--muted); line-height: 1.45;
  padding: 12px 14px; border: 2px dashed var(--line); border-radius: var(--r);
}
.roomrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 14px;
  cursor: pointer; text-align: left; color: inherit;
  font-family: inherit; font-size: 15px;
  transition: transform .14s, border-color .15s, background .15s;
}
.roomrow:hover { transform: translateY(-2px); border-color: var(--akzent); background: rgba(255, 46, 136, .1); }
.roomrow:active { transform: scale(.98); }
.roomrow-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomrow-meta { font-size: 12px; color: var(--muted); }
.roomrow-code { font-weight: 900; letter-spacing: .12em; color: var(--gold); font-variant-numeric: tabular-nums; }
.roomrow-count { font-weight: 900; color: var(--gold); font-variant-numeric: tabular-nums; }

.pill {
  font-size: 11px; padding: 3px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); letter-spacing: .06em;
  text-transform: uppercase; white-space: nowrap;
}
.pill.live { background: rgba(255, 46, 136, .22); color: var(--hot); }
.pill.open { background: rgba(82, 255, 168, .18); color: var(--good); }

/* ── Warteraum: Sitze ─────────────────────────────────────────────────── */
/* 110px, nicht 140: bei 360px Displaybreite bleiben nach Screen- und
   Panel-Polsterung nur ~276px übrig – mit 140px stünden die Sitze
   untereinander und der Warteraum wäre doppelt so hoch. */
.seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.seat {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px;
  text-align: center; background: rgba(0, 0, 0, .28);
  transition: border-color .2s, box-shadow .2s;
}
.seat.ready { border-color: var(--good); box-shadow: 0 0 0 3px rgba(82, 255, 168, .12); }
.seat.off { opacity: .45; }
.seat .av { font-size: 30px; }
.seat .nm { font-weight: 800; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat .st { font-size: 12px; color: var(--muted); margin-top: 3px; }
.seat.ready .st { color: var(--good); }
.seat .host { font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.seat.empty { border-style: dashed; opacity: .4; }

/* ── Tippen statt Zoomen ─────────────────────────────────────────────────
   `user-scalable=no` im Viewport steht in jedem Spiel – und iOS Safari hält
   sich seit Version 10 nicht mehr daran. Der Doppeltipp-Zoom bleibt damit an,
   und mit ihm die Wartezeit: der Browser hält jeden Tipp erst zurück, um zu
   sehen, ob ein zweiter folgt. Wer schnell hintereinander tippt – und genau
   das tut man in einem Spiel –, dessen zweiter Tipp verschwindet dann im
   Zoomversuch. „Am Handy geht es manchmal nicht, Karten lassen sich nicht
   anklicken" (Bugreport 13).

   `manipulation` schaltet genau diese Gesten ab und lässt Scrollen und
   Aufziehen in Ruhe. */
html, body, button, .btn, .seat, .roomrow, .seg { touch-action: manipulation; }

/* ── Der Weg zurück ──────────────────────────────────────────────────────
   Jeder Bildschirm braucht einen sichtbaren Ausgang: von der Startseite eines
   Spiels zur Übersicht, aus Runde und Endstand aus dem Raum. Vorher hatten nur
   die fünf Spiele ohne Lobby einen solchen Link, und aus dem Spielbildschirm
   führte für alle ausser dem Host gar nichts heraus – Bugreport 10. */
.zurueckzeile { text-align: center; margin-top: 12px; }
.zurueck {
  display: inline-block; padding: 6px 4px;
  color: var(--muted); font-size: 13px; text-decoration: none;
}
.zurueck:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .btn, .roomrow, .seat { transition: none; }
  /* Auch Einblend-Animationen aus: sie starten bei opacity 0, und wer
     Bewegung abgeschaltet hat, soll den Inhalt sofort sehen – nicht erst
     nach der Animation. Nebenbei trifft so auch der Layout-Screenshot
     nicht mehr Frame 0. */
  .screen, .screen.on { animation: none !important; }
}


/* --- Sprachwahl ---------------------------------------------------------- */
/* Der Umschalter wird von sprache.js gefuellt und bleibt ohne JavaScript leer
   – deshalb :empty, sonst stuende dort ein leerer Kasten. Er steht auf dem
   Startbildschirm: gewaehlt wird vor dem Spielen, und die Wahl gilt
   geraeteweit fuer alle Spiele. */
.sprachwahl {
  display: flex;
  gap: 2px;
  padding: 2px;
  margin: 10px auto 0;
  width: fit-content;
  border: 1px solid var(--linie, rgba(255, 255, 255, .14));
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}
.sprachwahl:empty { display: none; }

.sprachknopf {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 5px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--leise, #9c8fc2);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}
.sprachknopf:hover { color: #fff; }
.sprachknopf.sel { background: rgba(255, 255, 255, .12); color: #fff; }
.sprachknopf:focus-visible { outline: 2px solid var(--akzent, #52ffa8); outline-offset: 2px; }

/* ══════════════ Gemeinsame Lobby-Basis ══════════════ Ende ═════════════════ */

/* Flaschendrehen: eigener Akzent. Alles darüber ist der gemeinsame Block. */
:root {
  --akzent: #35e6ff;
  --akzent2: #ff2e88;
  --dim: var(--muted);
  --radius: var(--r);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overscroll-behavior: none;
}

body {
  background:
    radial-gradient(90vw 60vh at 12% -10%, #06303a 0%, transparent 62%),
    radial-gradient(80vw 50vh at 100% 110%, #33082a 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

button, input { font: inherit; color: inherit; }

.screen {
  position: fixed;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.screen.active { display: block; }

.hintline { color: var(--dim); font-size: .85rem; text-align: center; margin-top: 10px; text-wrap: pretty; }
.fussnote { font-size: .78rem; color: var(--muted); margin-top: -6px; text-wrap: pretty; }

#status, #toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: #000c;
  border: 1px solid var(--line);
  font-size: .82rem;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#status { top: calc(8px + env(safe-area-inset-top)); }
#toast { bottom: calc(18px + env(safe-area-inset-bottom)); }
#status.show, #toast.show { opacity: 1; }

.home, .lobby, .final {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100dvh;
  justify-content: center;
}

.field-label { font-size: .8rem; color: var(--dim); letter-spacing: .08em; text-transform: uppercase; }

.lobby-head h2 { font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.lobby-head span { color: var(--ink); }

#hostControls, #guestControls { display: flex; flex-direction: column; gap: 10px; }
#hostControls[hidden], #guestControls[hidden] { display: none; }

.setting { flex-direction: column; align-items: stretch; gap: 6px; }
.setting-label { text-align: left; }

/* --- Spielbildschirm ----------------------------------------------------- */

.game {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 6px;
}
.tb-runde { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.tb-runde strong { color: var(--ink); font-size: 1.05rem; }
.tb-runde small { color: var(--dim); }
.tb-modus {
  margin-left: auto;
  font-size: 11px; padding: 4px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .08); color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase;
}
#endeBtn { border-color: transparent; color: var(--muted); font-weight: 600; }
#endeBtn:hover { color: var(--ink); }

.buehne {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 14px;
  padding: 10px 16px;
  text-align: center;
}

/* --- Der Kreis ----------------------------------------------------------- */
/* Ein Quadrat, auf dessen Rand die Namen liegen. Position 0 ist oben, dann im
   Uhrzeigersinn – genau die Reihenfolge, auf die sich der Winkel vom Server
   bezieht. Wer hier etwas an der Anordnung ändert, muss den Winkel im Server
   mitändern, sonst zeigt die Flasche daneben. */

.kreis {
  position: relative;
  width: min(78vw, 46vh, 360px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px dashed var(--line);
  background: radial-gradient(circle, rgba(53, 230, 255, .07), transparent 70%);
}

.platz {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78px;
  margin: -26px 0 0 -39px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  /* Erst auf die Position drehen, dann hinausschieben, dann die Schrift
     zurückdrehen – sonst stünden die Namen schräg. */
  transform:
    rotate(var(--grad))
    translate(0, calc(min(78vw, 46vh, 360px) / -2))
    rotate(calc(-1 * var(--grad)));
  transition: opacity .2s;
}
.platz-av { font-size: 24px; line-height: 1.1; }
.platz-name {
  font-size: 11px; font-weight: 700;
  max-width: 78px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 1px 7px; border-radius: 99px;
  background: rgba(6, 3, 12, .8);
  border: 1px solid transparent;
}
.platz.ich .platz-name { border-color: var(--akzent); }
.platz.dreher .platz-name { background: rgba(53, 230, 255, .22); }
.platz.weg { opacity: .35; }
/* Wen die Flasche getroffen hat – nach der Drehung, nicht währenddessen. */
.platz.ziel .platz-name {
  background: var(--akzent2);
  color: #2b0512;
  font-weight: 900;
  border-color: transparent;
}
.platz.ziel .platz-av { filter: drop-shadow(0 0 10px var(--akzent2)); }

.kreis-mitte {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--line);
}

/* Die Flasche. Zeigt bei 0° nach oben, also auf Position 0 – das ist die
   Verabredung mit dem Server. Als CSS-Form statt als Emoji, weil ein Emoji
   je nach Schrift in eine andere Richtung zeigt und die Drehung dann überall
   anders daneben läge. */
.flasche {
  position: absolute;
  left: 50%; top: 50%;
  width: 26px;
  height: min(48vw, 28vh, 220px);
  margin-left: -13px;
  /* Der Drehpunkt liegt in der Mitte des Kreises, nicht in der Flasche. */
  transform-origin: 50% 50%;
  margin-top: calc(min(48vw, 28vh, 220px) / -2);
  z-index: 2;
  pointer-events: none;
}
.flasche-bild {
  position: absolute;
  inset: 0;
  /* Hals oben, Bauch unten: eine schmale Spitze auf einem breiteren Körper. */
  background:
    linear-gradient(180deg,
      transparent 0 4%,
      var(--akzent) 4% 8%,
      transparent 8% 100%),
    linear-gradient(180deg,
      transparent 0 6%,
      #cfe9ee 6% 30%,
      transparent 30% 100%),
    linear-gradient(180deg,
      transparent 0 30%,
      #9fd7e0 30% 100%);
  clip-path: polygon(
    38% 0%, 62% 0%, 62% 26%, 100% 40%, 100% 96%,
    88% 100%, 12% 100%, 0% 96%, 0% 40%, 38% 26%);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .6));
}

.phasen-text {
  font-size: clamp(1rem, 4.6vw, 1.35rem);
  font-weight: 900;
  text-wrap: balance;
  min-height: 1.4em;
}

/* --- Die Karte ----------------------------------------------------------- */

.karte {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--akzent);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  text-align: left;
}
.karte[hidden] { display: none; }
.karte.pflicht { border-left-color: var(--akzent2); }
.karte-kopf {
  display: block;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--akzent);
}
.karte.pflicht .karte-kopf { color: var(--akzent2); }
.karte-text {
  margin-top: 6px;
  font-size: clamp(1.02rem, 4.4vw, 1.28rem);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: pretty;
}

/* --- Fußbereich ---------------------------------------------------------- */

.fussbereich { flex: 0 0 auto; padding: 6px 16px 14px; }

.aktionen { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aktionen .btn { flex: 1 1 auto; min-width: 130px; }
.aktionen .btn.sm { flex: 0 0 auto; min-width: 0; }

/* Wahrheit und Pflicht sind die eine Entscheidung, die man trifft, ohne sie
   zurücknehmen zu können – deshalb deutlich verschieden gefärbt. */
.btn.wahl { padding: 17px 14px; font-size: 16px; font-weight: 900; }
.btn.wahl.wahrheit {
  background: linear-gradient(100deg, #1ea8c9, var(--akzent));
  color: #04222b; border-color: transparent;
}
.btn.wahl.pflicht {
  background: linear-gradient(100deg, var(--akzent2), var(--hot2));
  color: #2b0509; border-color: transparent;
}

.punktleiste {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 12px;
}
.chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid transparent;
  font-size: 12px; max-width: 46vw;
  /* Ohne festes line-height bestimmt die Emoji-Schrift die Zeilenhöhe – und
     die ist eine Bitmap-Schrift mit riesiger Grundlinie. Die Chips wären
     dreimal so hoch wie ihr Inhalt. */
  line-height: 1.4;
}
.chip-av { font-size: 14px; }
.chip-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-zahl { font-weight: 900; color: var(--akzent); font-variant-numeric: tabular-nums; }
.chip.me { background: rgba(53, 230, 255, .16); }
.chip.gone { opacity: .4; }

/* --- Endstand ------------------------------------------------------------ */

.final-title { text-align: center; font-size: 1.6rem; font-weight: 900; }
.podium { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.podest {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel);
}
.podest.me { border-color: var(--akzent); }
.podest.sieg { border-color: var(--gold); background: rgba(255, 212, 71, .1); }
.podest-av { font-size: 24px; }
.podest-name { font-weight: 800; overflow: hidden; }
.podest-name small { display: block; font-size: 11px; font-weight: 600; color: var(--akzent); }
.podest-zahl { font-weight: 900; font-size: 1.2rem; color: var(--akzent); text-align: right; }
.podest-zahl small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }

/* --- Überlagerung: Hilfe ------------------------------------------------- */

#help {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 3, 12, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 18px;
  overflow-y: auto;
}
#help[hidden] { display: none; }

.help-inner {
  max-width: 460px; width: 100%;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow);
}
.help-inner h2 { font-size: 1.2rem; }
.help-inner ul { padding-left: 18px; display: flex; flex-direction: column; gap: 9px; }
.help-inner li { font-size: .92rem; line-height: 1.45; text-wrap: pretty; }
.help-klein { font-size: .8rem; color: var(--muted); text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .chip, .karte, .podest, .platz { transition: none; }
  /* Die Drehung bleibt: sie ist keine Verzierung, sondern das Ergebnis der
     Runde. Sie wird nur kurz – das setzt app.js nicht, deshalb hier nichts
     weiter zu tun als der Hinweis, warum sie stehen bleibt. */
}
