:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --line: #2a2f3a;
  --text: #e8eaef;
  --muted: #8b93a4;
  --accent: #34c38f;
  --warn: #f1b44c;
  --danger: #f46a6a;
  --dart: #ffd34d;
  --board-dark: #1b1b1b;
  --board-light: #e9dfc4;
  --board-red: #d8322f;
  --board-green: #1f8f4e;
  --radius: 14px;
  --deep: #0b0d11;          /* noch dunkler als --bg: Tooltips, Leisten */
  --tag-bg: rgb(0 0 0 / .45); /* Namensschild auf farbigem Grund */
  /* Akzentfarbe (waehlbar, siehe unten): Farbe, gleiche Farbe als RGB-Kanaele fuer Toenungen, zweiter Ton fuer Verlaeufe,
     Schrift auf der Akzentfarbe */
  --accent-rgb: 52 195 143;
  --accent-2: #1e8f69;
  --on-accent: #06281b;
  color-scheme: dark;
}
/* Heller Modus: theme.js setzt data-theme auf <html> (Wahl je Geraet, Standard = System).
   Akzent/Warnung/Fehler sind dunkler als im dunklen Modus, damit sie auf Weiss als Schrift lesbar bleiben;
   die dunkle Schrift auf diesen Farben (z. B. #06281b auf --accent) bleibt ebenfalls lesbar. Die Scheibe bleibt wie sie ist. */
:root[data-theme="light"] {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --panel-2: #eceef3;
  --line: #d6dae2;
  --text: #161a22;
  --muted: #5b6474;
  --accent: #1d9a6c;
  --warn: #b97a10;
  --danger: #d34545;
  --deep: #e4e7ed;
  --tag-bg: rgb(255 255 255 / .7);
  color-scheme: light;
}
/* Waehlbare Akzentfarbe (Profil -> Darstellung, je Konto; theme.js setzt data-accent auf <html>). Ohne Angabe: Gruen.
   Im hellen Modus jeweils ein dunklerer Ton, damit die Farbe als Schrift auf Weiss lesbar bleibt. */
:root[data-accent="blue"] { --accent: #4c8dff; --accent-rgb: 76 141 255; --accent-2: #2f6fe0; --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="blue"] { --accent: #2563eb; }
:root[data-accent="teal"] { --accent: #2bc6d4; --accent-rgb: 43 198 212; --accent-2: #159aa6; --on-accent: #032a2e; }
:root[data-theme="light"][data-accent="teal"] { --accent: #0e8f9c; }
:root[data-accent="purple"] { --accent: #a77bff; --accent-rgb: 167 123 255; --accent-2: #7c4dff; --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="purple"] { --accent: #7c4dff; }
:root[data-accent="pink"] { --accent: #ff6fae; --accent-rgb: 255 111 174; --accent-2: #e0447f; --on-accent: #33061a; }
:root[data-theme="light"][data-accent="pink"] { --accent: #d6337d; }
:root[data-accent="red"] { --accent: #f25c5c; --accent-rgb: 242 92 92; --accent-2: #c93a3a; --on-accent: #ffffff; }
:root[data-theme="light"][data-accent="red"] { --accent: #d03535; }
:root[data-accent="orange"] { --accent: #ff8a3d; --accent-rgb: 255 138 61; --accent-2: #e06a1b; --on-accent: #2b1300; }
:root[data-theme="light"][data-accent="orange"] { --accent: #d9620f; }
:root[data-accent="yellow"] { --accent: #f5c518; --accent-rgb: 245 197 24; --accent-2: #c99a00; --on-accent: #2b2200; }
:root[data-theme="light"][data-accent="yellow"] { --accent: #a87f00; }


* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0 12px;
}
.top h1 { margin: 0; font-size: 22px; letter-spacing: .3px; }
.top h1 span { color: var(--accent); }

.conn { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.conn--on { color: var(--accent); }
.conn--off { color: var(--danger); }

.devices {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 16px;
}
.empty { color: var(--muted); }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.card__name { margin: 0; font-size: 17px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__state { font-size: 13px; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex: none; }
.card--online .dot { background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .15); }

.card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  align-items: start;
}
@media (max-width: 560px) {
  .card__body { grid-template-columns: 1fr; }
}

.board svg { width: 100%; height: auto; display: block; }
.board .num { fill: var(--accent); font-size: 17px; font-weight: 800; text-anchor: middle; dominant-baseline: central; } /* Zahlenring in der Akzentfarbe */
.board .dart circle { fill: var(--dart); stroke: #000; stroke-width: 1.5; }
.board .dart text { fill: #000; font-size: 9px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.board .dart--old circle { fill: #9aa3b5; opacity: .55; }
.board .dart--old text { opacity: .6; }
.board .dart--new circle { animation: pop .35s ease-out; }
@keyframes pop { from { r: 12; } }

.visit {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.visit__darts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.slot {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 54px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slot:empty::after { content: "–"; color: var(--line); }
.slot--miss { color: var(--danger); }
.slot--bull { color: var(--board-red); }
.slot--triple { color: var(--warn); }
.slot--double { color: var(--accent); }
.visit__sum {
  min-width: 84px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  align-content: center;
  padding: 4px 10px;
}
.visit__total { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.visit__sum small { font-size: 11px; font-weight: 600; opacity: .8; }

.hint { min-height: 1.4em; margin: 10px 0 0; color: var(--warn); font-size: 13px; }

.info h3 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--panel-2);
  font-variant-numeric: tabular-nums;
}
.history li b { font-weight: 700; }
.history li span { color: var(--muted); }

.foot { max-width: 1200px; margin: 24px auto; color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- Navigation */
.nav { display: flex; gap: 4px; margin-right: auto; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.nav a[aria-current="page"] { background: var(--panel-2); color: var(--text); }
.nav a:hover { color: var(--text); }

/* ---------------------------------------------------------------- Allgemein */
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel h2, .panel h3 { margin-top: 0; }
.panel h3 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }

.btn {
  font: inherit; font-weight: 600; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer;
  min-height: 44px; touch-action: manipulation;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled { opacity: .4; cursor: default; }
.btn--primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn--warn { background: var(--warn); color: #2b1d00; border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--danger { color: var(--danger); }
.btn--big { width: 100%; padding: 14px; font-size: 17px; margin-top: 12px; }

/* ---------------------------------------------------------------- Einrichtung */
.setup { max-width: 760px; margin: 0 auto; }
.setup .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.setup label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.setup select, .setup input {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; min-height: 44px; width: 100%;
}
.player-rows { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.player-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
@media (max-width: 480px) { .player-row { grid-template-columns: 1fr auto; } .player-row select { grid-column: 1 / -1; grid-row: 2; } }

/* ---------------------------------------------------------------- Spiel */
.game { max-width: 1200px; margin: 0 auto; display: grid; gap: 16px; }
.players { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.player {
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; display: grid; gap: 6px; transition: border-color .2s, transform .2s;
}
.player header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.player__name { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__legs { color: var(--accent); letter-spacing: 2px; font-size: 13px; white-space: nowrap; }
.player__score { font-size: clamp(44px, 9vw, 72px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.player__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.player__stats div { background: var(--panel-2); border-radius: 8px; padding: 4px 8px; }
.player__stats dt { font-size: 11px; color: var(--muted); }
.player__stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.player__device { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.player--active { border-color: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .12); }
.player--winner { border-color: var(--warn); }
.dot--on { background: var(--accent); }
.dot--manual { background: var(--muted); }

/* Handy (Hochformat): Aufnahme -> Scheibe -> Bedienung untereinander.
   Die Scheibe richtet sich nach der Bildschirmhoehe, damit alles zusammen sichtbar bleibt. */
.game__main {
  display: grid; gap: 12px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "info" "board" "controls";
}
.game__info { grid-area: info; }
.game__board { grid-area: board; }
.game__controls { grid-area: controls; }
.game__board .board { width: min(100%, 38vh); width: min(100%, 38svh); margin: 0 auto; }
.info__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.turn__who { margin: 0; font-weight: 700; font-size: 17px; }
.visit__sum--bust { background: var(--danger); color: #2a0606; }
.visit__sum--bust .visit__total { font-size: 22px; }

/* Hochformat (Handy und Tablet): Spielerkarten -> Aufnahme -> Scheibe -> Knoepfe untereinander, alles auf einen Blick.
   Die Scheibe nimmt die Hoehe, die nach Karten, Aufnahme und Knoepfen uebrig bleibt. */
@media (orientation: portrait) and (min-width: 640px) {
  .game { gap: 14px; }
  .game__main { gap: 14px; }
  /* uebrig = Hoehe minus Spielleiste, Karten, Aufnahme, Knoepfe und Abstaende (~650 px mit der grossen Schrift, gemessen auf 800x1280) */
  .game__board .board { width: min(100%, calc(100vh - 650px)); width: min(100%, calc(100svh - 650px)); min-width: 300px; }
  .game__info .slot { min-height: 86px; font-size: 32px; }
  .game__info .visit__sum { min-width: 120px; }
  .game__info .visit__total { font-size: 40px; }
  .game__controls .controls .btn { min-height: 72px; font-size: 17px; }
  .player__score { font-size: clamp(56px, 10vw, 96px); }
}

/* Querformat (Tablet quer / Desktop): Scheibe links, Aufnahme + Bedienung rechts */
@media (min-width: 640px) and (orientation: landscape) {
  .game__main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "board info" "board controls";
  }
  .game__board .board { width: min(100%, 56vh); width: min(100%, 56svh); }
}
/* Handy quer (wenig Hoehe): Scheibe links ueber die volle Hoehe, rechts Spieler + Aufnahme + Bedienung */
@media (orientation: landscape) and (max-height: 500px) {
  body.play { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .play .top { padding: 6px 0; }
  .play .top h1 { font-size: 16px; }
  .game {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "board players" "board info" "board controls" "log log";
    gap: 8px 12px;
    align-items: start;
  }
  .game__main { display: contents; }
  .players { grid-area: players; gap: 8px; }
  .game__log { grid-area: log; }
  .game__board .board { width: calc(100vh - 56px); width: calc(100svh - 56px); max-width: 46vw; }
  .play .panel { padding: 10px 12px; }
  .player { padding: 6px 10px; gap: 2px; }
  .player__score { font-size: 32px; }
  .player__stats { grid-template-columns: 1fr 1fr; gap: 4px; }
  .player__stats div { padding: 1px 6px; }
  .player__stats div:nth-child(3), .player__device { display: none; }
  .info__top { margin-bottom: 6px; }
  .play .slot { min-height: 40px; font-size: 17px; }
  .play .visit__total { font-size: 22px; }
  .banner { margin-top: 6px; }
  .banner:empty, .suggestion:empty { display: none; }
  .controls { margin-top: 0; }
  .controls .btn { min-height: 40px; padding: 6px 10px; }
}
.banner { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; }
.banner--bust { color: var(--danger); }
.banner--good { color: var(--accent); }
.suggestion { min-height: 1.4em; margin: 6px 0 0; color: var(--warn); font-weight: 700; font-size: 18px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.pad { margin-top: 12px; display: grid; gap: 8px; }
.pad__mult { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pad__nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pad button {
  font: inherit; font-weight: 700; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; min-height: 44px; cursor: pointer; touch-action: manipulation;
}
.pad__mult button.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pad__nums .wide { grid-column: span 2; }
.pad__nums .miss { color: var(--danger); grid-column: span 3; }

.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.log li {
  display: grid; grid-template-columns: minmax(70px, 1fr) 2fr auto; gap: 10px; align-items: center;
  padding: 6px 10px; background: var(--panel-2); border-radius: 8px; font-variant-numeric: tabular-nums;
}
.log b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log__res { font-weight: 700; }
.log__res.is-bust { color: var(--danger); }
.log__res.is-checkout { color: var(--accent); }
.game.log-hidden .game__log { display: none; } /* Verlauf aus: unten nichts mehr, Seite passt ohne Scrollen */
.game-menu__sep { height: 1px; background: var(--line); margin: 4px 6px; }
.game-menu__list button.game-menu__danger { color: var(--danger); }
.game-menu__info { margin: 2px 10px 6px; font-size: 12px; color: var(--muted); }
.game-menu__info:empty { display: none; }
.game__footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Ergebnis / Toast */
.result {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; width: min(560px, calc(100vw - 32px));
}
.result::backdrop { background: rgb(0 0 0 / .6); }
.result h2 { margin: 0 0 4px; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
.result table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.result th, .result td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.result th:first-child { text-align: left; color: var(--muted); font-weight: 600; }
.result thead th { color: var(--text); }
.result__actions { display: flex; gap: 8px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 10px 16px;
  border-radius: 10px; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgb(0 0 0 / .4); z-index: 10;
}
.toast--error { border-color: var(--danger); color: var(--danger); }

/* ---------------------------------------------------------------- kompakt fuer Handys */
@media (max-width: 600px) {
  body.play { padding-left: 12px; padding-right: 12px; }
  .play .top { padding: 10px 0 8px; }
  .play .top h1 { font-size: 18px; }
  .play .nav { margin-left: 6px; }
  .play .nav a { padding: 5px 10px; }
  .game { gap: 10px; }
  .play .panel { padding: 12px; }
  .players { gap: 8px; }
  .player { padding: 8px 10px; gap: 4px; }
  .player__name { font-size: 15px; }
  .player__score { font-size: 40px; }
  .player__stats { grid-template-columns: 1fr 1fr; gap: 4px; }
  .player__stats div { padding: 2px 6px; }
  .player__stats div:nth-child(3) { display: none; }
  .player__device { display: none; }
  .play .slot { min-height: 44px; font-size: 18px; }
  .play .visit__sum { min-width: 70px; }
  .play .visit__total { font-size: 24px; }
  .banner { margin-top: 8px; }
  .suggestion { font-size: 16px; }
  .banner:empty, .suggestion:empty { display: none; }
  .controls { margin-top: 0; }
  .controls .btn { flex: 1 1 auto; padding: 8px 10px; }
}

/* ---------------------------------------------------------------- Bildschirm wach */
.awake {
  font: inherit; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px;
  margin: 0 0 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer;
}
.awake--on { color: var(--accent); }
.awake--off { color: var(--warn); border-color: var(--warn); }

.info__top .awake { margin: 0; }

.setup__hint { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--warn); font-size: 14px; }

.btn--removed { flex: 2 1 auto; }

/* ---------------------------------------------------------------- Board-Markierungen */
.board .hl path, .board .hl circle { fill: rgb(var(--accent-rgb) / .14); stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; }
.board .tgt line, .board .tgt circle { stroke: #ffffff; stroke-width: 2.5; fill: none; filter: drop-shadow(0 0 2px #000); }
.board .tgt circle { stroke: #ff4fd8; }
/* Zonen-Spiel: drei Kreise um den Zielpunkt (feste Farben wie die Scheibe) */
.board .tgt circle.zone { stroke: #ffffff; stroke-width: 2; filter: none; }
.board .tgt circle.zone--1 { fill: rgb(255 79 216 / .55); }
.board .tgt circle.zone--2 { fill: rgb(255 79 216 / .35); }
.board .tgt circle.zone--3 { fill: rgb(255 79 216 / .2); }
.board .tgt circle.zone--3, .board .tgt circle.zone--2 { stroke-dasharray: 5 4; }
/* Tic Tac Toe */
.grid.grid--ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 320px; margin: 10px auto 0; overflow: visible; }
.ttt__cell { aspect-ratio: 1.6; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); line-height: 1.05; }
.ttt__cell small { color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; padding: 0 4px; }
.ttt__cell b { font-size: 26px; min-height: 1.05em; }
.ttt__cell--p0 b { color: var(--accent); }
.ttt__cell--p1 b { color: var(--warn); }
.ttt__cell--p0, .ttt__cell--p1 { background: rgb(var(--accent-rgb) / .08); }
.ttt__cell--win { border-color: var(--accent); box-shadow: 0 0 0 2px rgb(var(--accent-rgb) / .5); }

/* ---------------------------------------------------------------- Wurffelder mit Zusatz */
.slot { line-height: 1.1; text-align: center; }
.slot small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.slot--note-main { font-size: 14px; white-space: nowrap; letter-spacing: -.2px; }

/* ---------------------------------------------------------------- Tabelle im Spiel (Cricket) */
.grid { margin-top: 10px; overflow-x: auto; }
.grid table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 3px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.grid thead th { color: var(--muted); font-size: 12px; font-weight: 600; }
.grid tbody th { color: var(--text); text-align: left; width: 3.5em; }
.grid td { font-size: 18px; font-weight: 700; color: var(--accent); }

.game-desc { margin: 6px 0 0; }

/* ---------------------------------------------------------------- Wurf korrigieren */
.slot[data-id] { cursor: pointer; transition: transform .1s, border-color .15s; }
.slot[data-id]:hover { border-color: var(--muted); }
.slot[data-id]:active { transform: scale(.96); }
.slot--corrected { border-style: dashed; border-color: var(--warn); }
.is-editing, .slot.is-editing, .chip.is-editing { outline: 3px solid var(--warn); outline-offset: 1px; }
.pad__edit {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 6px 6px 12px; border-radius: 10px; background: rgb(241 180 76 / .12);
  color: var(--warn); font-weight: 700; font-size: 14px;
}
.pad__edit .btn { min-height: 36px; padding: 4px 10px; color: var(--text); }
.log__darts { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; min-height: 28px; cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip:disabled { cursor: default; opacity: .7; }
.chip--corrected { border-style: dashed; border-color: var(--warn); }

/* ---------------------------------------------------------------- Seite "Gerät" */
.device { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.device p { line-height: 1.5; }
.link-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.link-box { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; flex: 1 1 140px; }
.link-box b { display: block; }
.link-box small { color: var(--muted); }
.link-arrow { color: var(--muted); font-size: 20px; }
.dart-log { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.dart-log li { background: var(--panel-2); border-radius: 8px; padding: 6px 10px; }
.results { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.result { width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.result b { display: block; }
.result small { color: var(--muted); }
.result.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .15); }
.manual { margin-top: 12px; }
.manual summary { cursor: pointer; color: var(--muted); }
.device label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.device input { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 44px; width: 100%; }
#link-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.device-note { margin: 0; }
.bridge-pill { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); text-decoration: none; white-space: nowrap; }
.bridge-pill--on { color: var(--accent); }
.bridge-pill--off { color: var(--warn); }

a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ---------------------------------------------------------------- Konto / Login */
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; }
.user-chip a { color: var(--text); text-decoration: none; font-weight: 600; }
.linklike { font: inherit; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; text-decoration: underline; }
.auth { max-width: 440px; margin: 24px auto; display: grid; gap: 12px; }
.auth form { display: grid; gap: 12px; }
.auth label, .lobby label, .profile label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.auth input, .lobby input, .lobby select, .profile input {
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; min-height: 44px; width: 100%;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; }
.tabs button { font: inherit; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; cursor: pointer; }
.tabs button.is-on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
@media (max-width: 600px) { .user-chip a { max-width: 110px; overflow: hidden; text-overflow: ellipsis; } }

/* ---------------------------------------------------------------- Lobby / offene Spiele */
.lobby { max-width: 760px; margin: 0 auto; }
.room-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.room-list a { display: block; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); color: var(--text); text-decoration: none; border: 1px solid var(--line); }
.room-list a:hover { border-color: var(--accent); }
.room-list span { color: var(--muted); }
.invite { background: var(--panel-2); border: 1px solid var(--accent); border-radius: 12px; padding: 12px; margin: 10px 0; }
.invite h3 { margin: 0 0 4px; color: var(--accent); }
.invite__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.lobby-players { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.lobby-players li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; background: var(--panel-2); border-radius: 10px; }
.lobby-players li b { flex: 1 1 140px; }
.lobby-players li select { flex: 1 1 180px; width: auto; }
.lobby-players .dot { display: inline-block; vertical-align: middle; }
.join { display: grid; gap: 10px; margin: 10px 0; }
.guest-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin: 10px 0; }
@media (max-width: 520px) { .guest-add { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Profil */
.profile { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.device-list, .history-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.device-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 12px; background: var(--panel-2); border-radius: 10px; }
.device-list li b { flex: 1 1 120px; }
.device-list .btn { min-height: 36px; padding: 4px 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.stat { background: var(--panel-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.stat span { color: var(--muted); font-size: 13px; }
.history-item { width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }
.history-item:hover { border-color: var(--muted); }
.history-item .small { grid-column: 2; }
.badge { grid-row: span 2; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.badge--won { background: rgb(var(--accent-rgb) / .18); color: var(--accent); }
.badge--lost { background: rgb(244 106 106 / .15); color: var(--danger); }

/* Kopfzeile: umbrechen statt ueberlaufen */
.top { flex-wrap: wrap; row-gap: 6px; }
.bridge-pill { max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .bridge-pill { max-width: 150px; } .play .nav a { padding: 5px 8px; } }

/* ---------------------------------------------------------------- Admin */
.nav-badge { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: var(--warn); color: #2b1d00; font-size: 11px; line-height: 18px; text-align: center; font-weight: 800; }
.nav-badge[hidden] { display: none; }
.admin { display: grid; gap: 12px; }
.admin .banner { margin: 0; }
.count { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.user-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.user-list > li:not(.muted) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.user-list b { display: block; }
.user-list small { color: var(--muted); }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.user-actions .btn { min-height: 40px; }
.mode-pick { display: grid; gap: 8px; }
.admin label.mode { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; color: var(--text); font-size: 15px; }
.admin label.mode:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .15); }
.mode input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.mode small { display: block; color: var(--muted); font-size: 13px; }
.admin code { background: var(--panel-2); padding: 1px 5px; border-radius: 5px; }
.tabs--single { grid-template-columns: 1fr; }
.hint-box { margin: 0; padding: 8px 10px; border-radius: 8px; background: rgb(241 180 76 / .12); color: var(--warn); }

/* ---------------------------------------------------------------- Geräte-Seite (Live + Verbinden + Einstellungen) */
.geraete { max-width: 1200px; margin: 0 auto; display: grid; gap: 16px; }
.geraete .devices { margin: 0; padding: 0; max-width: none; }
.geraete .device { max-width: none; margin: 0; }
.bridge-bar h2 { margin: 0; font-size: 16px; }
.bridge-bar__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bridge-bar__head p { margin: 2px 0 0; }
.bridge-bar .banner { margin: 0 0 8px; }
.icon-btn { font: inherit; font-size: 18px; line-height: 1; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; min-width: 40px; min-height: 40px; cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--text); border-color: var(--accent); }
.card__settings { display: grid; gap: 14px; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.card__settings[hidden] { display: none; }
.card__settings h3 { margin: 0 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.card__settings p { margin: 6px 0 0; line-height: 1.45; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg button { font: inherit; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; cursor: pointer; }
.seg button.is-on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.cal-state { font-weight: 600; min-height: 1.2em; }
.cal-state.is-good, .cams .is-good { color: var(--accent); }
.cal-state.is-bad, .cams .is-bad { color: var(--danger); }
.cams { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; font-size: 13px; }
.cams[hidden] { display: none; }
.cams li { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.dev-info:empty { display: none; }

/* ---------------------------------------------------------------- Sicherheit (Profil/Admin) */
.pw-form { display: grid; gap: 10px; max-width: 420px; margin-bottom: 8px; }
.pw-form .btn { justify-self: start; }
.temp-pw { border-color: var(--warn); }
.temp-pw code { font-size: 18px; letter-spacing: .5px; user-select: all; }

/* ---------------------------------------------------------------- Geraete teilen (Profil) */
.device-list li.share-box { display: grid; gap: 8px; margin-top: -4px; background: var(--panel); border: 1px dashed var(--line); }
.device-list li.share-box[hidden] { display: none; }
.share-box p { margin: 0; }
.share-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.share-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--panel-2); border-radius: 8px; }
.share-box .inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.share-box .inline-form input { flex: 1 1 160px; min-width: 0; }

/* ---------------------------------------------------------------- Freunde, Online-Status, Hinweise */
.friends { display: grid; gap: 12px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.friends label.invite-room { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.friends label.invite-room[hidden] { display: none; }
.invite-room select { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; min-height: 40px; }
.search-row input { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-height: 44px; width: 100%; }
.friend-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.friend-list > li:not(.muted) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.friend-list .btn { min-height: 38px; padding: 4px 12px; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person a, .person b { display: block; color: var(--text); font-weight: 700; text-decoration: none; }
.person a:hover { text-decoration: underline; }
.person small { color: var(--muted); }
.presence { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--muted); opacity: .6; }
.presence--online { background: var(--accent); opacity: 1; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .15); }
.presence--playing { background: var(--warn); opacity: 1; }
.profile-head { display: flex; align-items: center; gap: 12px; }
.profile-head h2 { margin: 0; }
.profile-head p { margin: 2px 0 0; }
.friend-invite { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.friend-invite h3 { margin: 0; }
.notify-stack { position: fixed; right: 12px; bottom: 12px; z-index: 50; display: grid; gap: 8px; width: min(360px, calc(100vw - 24px)); }
.notify { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .35); font-size: 14px; }
.notify--invite { border-color: var(--accent); display: grid; gap: 4px; }
.notify--invite small { color: var(--muted); }
.notify__actions { display: flex; gap: 8px; margin-top: 6px; }
.notify__actions .btn { flex: 1; min-height: 40px; }

/* ---------------------------------------------------------------- Spielauswahl als Karten, Optionen als Knopfgruppen */
.game-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.game-card {
  position: relative; display: grid; justify-items: start; align-content: start; gap: 4px; text-align: left;
  font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; min-height: 118px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.game-card:hover { border-color: var(--muted); transform: translateY(-1px); }
.game-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.game-card b { font-size: 15px; line-height: 1.2; }
.game-card small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.game-card__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 4px;
  background: rgb(var(--accent-rgb) / .12); color: var(--accent);
}
.game-card__icon svg { width: 26px; height: 26px; }
.game-card__badge { position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 700; color: var(--warn); background: rgb(241 180 76 / .12); padding: 2px 6px; border-radius: 999px; }
.game-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .18); }
.game-card.is-on .game-card__icon { background: var(--accent); color: var(--on-accent); }
.game-card.is-on::after {
  content: '✓'; position: absolute; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--accent); color: var(--on-accent);
}
.opt-groups { display: grid; gap: 12px; margin: 12px 0 4px; }
.opt-group { display: grid; gap: 6px; }
.opt-group__label { font-size: 13px; color: var(--muted); }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip {
  display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  min-height: 40px; padding: 0 16px; cursor: pointer;
}
.opt-chip:hover { border-color: var(--muted); }
.opt-chip.is-on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.opt-chip.is-on .dot { box-shadow: 0 0 0 2px var(--on-accent); }
.select-chips { margin: 6px 0 4px; }
.join .select-chips { margin: 4px 0 10px; }
@media (max-width: 600px) {
  .game-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .game-card { min-height: 104px; padding: 12px; }
  .game-card__icon { width: 36px; height: 36px; }
  .game-card__icon svg { width: 22px; height: 22px; }
}
.setup h3 { margin: 22px 0 8px; }
.setup h3:first-of-type { margin-top: 6px; }
.game-card__icon { width: 50px; height: 50px; border-radius: 14px; }
.game-card__icon svg { width: 32px; height: 32px; }
.game-card { min-height: 132px; }
@media (max-width: 600px) {
  .game-card { min-height: 112px; }
  .game-card__icon { width: 42px; height: 42px; }
  .game-card__icon svg { width: 27px; height: 27px; }
}

/* ---------------------------------------------------------------- Profil: Tabs und X01-Statistik */
.tabs--page { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.tab-panel { display: grid; gap: 12px; }
.tab-panel[hidden] { display: none; }
.profile { display: grid; gap: 12px; }
.stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.stats-head h2 { margin: 0; }
.stats-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stats-range .opt-chip { min-height: 36px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.stats-basis { margin: 10px 0 12px; }
.stats-body[aria-busy="true"] { opacity: .55; transition: opacity .2s; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.kpis--hero { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kpi { display: grid; gap: 2px; align-content: start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kpi__value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.15; }
.kpi__label { font-size: 12px; color: var(--muted); }
.kpi--hero { padding: 14px 16px; border-color: rgb(var(--accent-rgb) / .35); }
.kpi--hero .kpi__value { font-size: 32px; }
.stats-block { margin-top: 16px; }
.stats-block h3 { margin: 0 0 10px; }
.vbars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; max-width: 560px; }
.vbar { display: grid; justify-items: center; gap: 6px; }
.vbar__value { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.vbar__track { width: 100%; max-width: 64px; height: 120px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); }
.vbar__fill { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; }
.vbar:hover .vbar__fill { filter: brightness(1.15); }
.vbar__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.stats-tops { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }
.top-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.top-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.top-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.top-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.top-table tbody tr:first-child td { font-weight: 700; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi--hero .kpi__value { font-size: 26px; }
  .tabs--page button { font-size: 14px; }
}
.kpis--hero { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis--hero { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- Profil anderer Spieler: Kopf + Statistik-Karten */
.pub-profile { max-width: 640px; }
.pub-head__row { display: flex; align-items: center; gap: 14px; }
.pub-head__name h2 { margin: 0; font-size: 22px; }
.pub-head__name p { margin: 2px 0 0; }
.pub-head .user-actions { margin-top: 10px; }
.avatar {
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px rgb(var(--accent-rgb) / .35);
}
.avatar__presence { position: absolute; right: -1px; bottom: -1px; width: 16px; height: 16px; box-shadow: 0 0 0 3px var(--panel); }
.pub-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-top: 6px; }
.pub-tabs__tab { padding: 10px 2px; font-weight: 700; font-size: 17px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pub-tabs__tab.is-on { color: var(--text); border-bottom-color: var(--text); }
.sum-cards { display: grid; gap: 14px; }
.sum-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.sum-card h3 { margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--text); }
.sum-card__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sum-card__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.sum-card__value { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.15; }
.sum-card__foot { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.sum-card--note p { margin: 0; }
@media (max-width: 420px) {
  .sum-card { padding: 16px; }
  .sum-card h3 { font-size: 18px; }
  .sum-card__value { font-size: 22px; }
  .sum-card__label { font-size: 12px; }
}

/* ---------------------------------------------------------------- Direktvergleich (fremdes Profil) */
.duel { margin: 4px 0 14px; }
.duel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.duel__side { font-size: 18px; font-weight: 800; }
.duel__side--me { color: var(--accent); }
.duel__side--them { color: var(--danger); text-align: right; }
.duel__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.duel__bar { display: flex; gap: 2px; height: 12px; }
.duel__mine, .duel__theirs { flex-basis: 0; min-width: 4px; }
.duel__mine { background: var(--accent); border-radius: 6px 0 0 6px; }
.duel__theirs { background: var(--danger); border-radius: 0 6px 6px 0; }
.duel__bar--empty .duel__mine, .duel__bar--empty .duel__theirs { background: var(--panel-2); }

/* ---------------------------------------------------------------- Eigene Statistik (Übersicht) */
.stats-page { display: grid; gap: 14px; }
.sp-modes { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.sp-modes::-webkit-scrollbar { display: none; }
.sp-mode { flex: none; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.sp-mode.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.sp-x01, .sp-other { display: grid; gap: 14px; }
.sp-x01[hidden], .sp-other[hidden] { display: none; }
.sp-title { margin: 10px 0 0; font-size: 24px; font-weight: 900; letter-spacing: .3px; text-transform: uppercase; }
.sp-section { margin: 8px 0 0; font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: .3px; }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.sp-head .sp-title { margin: 0; }
.sp-sub { margin: -4px 0 0; color: var(--muted); }
.sp-stack { display: grid; gap: 14px; }
.sp-stack[aria-busy="true"] { opacity: .5; transition: opacity .2s; }
.sp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; min-width: 0; }
.sp-card--center { display: grid; justify-items: center; text-align: center; gap: 4px; }
.sp-card-title { margin: 0 0 12px; text-align: center; color: var(--muted); font-size: 15px; }
.sp-center-value { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-center-label { color: var(--muted); font-size: 15px; }
.sp-foot { margin: 10px 0 0; max-width: 520px; }
.sp-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sp-big { display: grid; gap: 18px; }
.sp-big--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-big__item { border-left: 4px solid var(--accent); padding: 2px 0 2px 14px; display: grid; gap: 4px; }
.sp-big--violet .sp-big__item { border-color: #a35bd6; }
.sp-big--aqua .sp-big__item { border-color: #2bb3c9; }
.sp-big--gold .sp-big__item { border-color: var(--warn); }
.sp-big__value { font-size: 34px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.sp-big__label { color: var(--muted); font-size: 14px; }
.sp-rows { list-style: none; margin: 0; padding: 0; }
.sp-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.sp-rows li:last-child { border-bottom: 0; }
.sp-rows b { color: var(--text); font-variant-numeric: tabular-nums; }
.sp-select { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--accent); border-radius: 14px; padding: 0 12px; color: var(--text); background: var(--panel); }
.sp-select select { font: inherit; font-weight: 600; color: var(--text); background: transparent; border: 0; padding: 9px 4px; min-height: 42px; cursor: pointer; }
.sp-select select option { background: var(--panel); color: var(--text); }
.sp-select:focus-within { box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .25); }
.sp-prog { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.sp-prog:last-child { border-bottom: 0; }
.sp-prog__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sp-prog__label { color: var(--muted); }
.sp-prog__value { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 8px; }
.sp-prog__arrow { font-size: 12px; }
.sp-prog__arrow.is-up { color: var(--accent); }
.sp-prog__arrow.is-down { color: var(--danger); }
.sp-prog__track { position: relative; height: 12px; border-radius: 999px; background: var(--panel-2); }
.sp-prog__fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); }
.sp-prog__prev { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--text); }
.sp-prog__note { color: var(--muted); font-size: 13px; text-align: center; }
.sp-seg { display: inline-flex; background: var(--panel-2); border-radius: 999px; padding: 4px; margin-bottom: 12px; max-width: 100%; }
.sp-seg button { font: inherit; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.sp-seg button.is-on { background: var(--text); color: var(--bg); }
.sp-table td, .sp-table th { white-space: nowrap; }
.sp-kind { display: inline-grid; place-items: center; color: var(--muted); }
.sp-score { display: grid; justify-items: end; }
.sp-score small { color: var(--muted); font-size: 12px; }
/* Diagramme */
.chart { position: relative; width: 100%; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: var(--muted); font-size: 12px; font-family: inherit; font-variant-numeric: tabular-nums; }
.chart-bar { fill: var(--accent); }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-avg { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 5; }
.chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-line--dashed { stroke-dasharray: 5 4; }
.chart-cross { stroke: var(--muted); stroke-width: 1; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--deep); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.5; box-shadow: 0 8px 20px rgb(0 0 0 / .45); white-space: nowrap; }
.chart-tip__row { display: flex; align-items: center; gap: 6px; }
.chart-tip__row b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.chart-tip i, .chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--text); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 70px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.hbar__label { color: var(--muted); text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.hbar__track { height: 14px; display: block; }
.hbar__fill { display: block; height: 100%; border-radius: 0 7px 7px 0; background: var(--accent); }
.hbar__value { font-weight: 700; font-variant-numeric: tabular-nums; }
.cmp-cur { fill: var(--accent); }
.hatch-bg { fill: var(--panel-2); }
.hatch-line { stroke: var(--muted); stroke-width: 2; opacity: .55; }
.ring-track { fill: none; stroke: var(--panel-2); stroke-width: 20; }
.ring-value { fill: none; stroke: var(--accent); stroke-width: 20; stroke-linecap: round; }
.ring-prev { stroke: var(--text); stroke-width: 2; stroke-dasharray: 3 3; }
.ring-text { fill: var(--text); font-size: 26px; font-weight: 800; font-family: inherit; }
.chart--board { max-width: 360px; }
.board-guide { fill: none; stroke: var(--line); stroke-width: 1; }
.board-seg { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.board-seg--empty { fill: var(--panel-2); }
.board-bull { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.board-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.board-note b { color: var(--text); }
@media (max-width: 600px) {
  .sp-card { padding: 16px; }
  .sp-big__value { font-size: 28px; }
  .sp-title { font-size: 21px; }
  .chart-axis { font-size: 14px; }
}
.profile label.sp-select { display: inline-flex; font-size: 15px; color: var(--text); gap: 8px; }
.profile .sp-select select { width: auto; min-height: 42px; padding: 9px 4px; border: 0; background: transparent; }
.sp-card--center > .chart-svg { max-width: 280px; }
.sp-card--center > .chart-svg[aria-label^="Checkout"] { max-width: 220px; }
.ring-text { font-size: 22px; }
.sp-table tbody tr:first-child td { font-weight: inherit; }
@media (max-width: 600px) { .chart-axis { font-size: 12px; } }

.sp-note { margin: -8px 0 0; }
@media (max-width: 600px) { .sp-table td, .sp-table th { padding: 7px 5px; font-size: 13px; } }

/* ---------------------------------------------------------------- Spielseite (Statistik eines Spiels) */
.match-page { max-width: 760px; }
.back-link { color: var(--muted); text-decoration: none; font-weight: 600; }
.back-link:hover { color: var(--text); }
.match-head .sp-title { margin: 0; }
.match-head p { margin: 4px 0 0; }
.match-score { display: grid; gap: 6px; margin-top: 14px; }
.match-score__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); }
.match-score__name { font-weight: 700; }
.match-score__legs { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 34px; text-align: center; border-radius: 8px; padding: 0 6px; }
.match-score__row.is-winner .match-score__legs { color: var(--accent); }
.match-score__row.is-me .match-score__name::after { content: ' (du)'; color: var(--muted); font-weight: 400; }
.match-compare th.is-me { color: var(--accent); }
.match-compare td.is-best { color: var(--accent); font-weight: 800; }
.match-compare tbody th { text-align: left; font-weight: 400; color: var(--muted); font-size: 14px; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.match-sub { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.match-leg { border-top: 1px solid var(--line); }
.match-leg:first-of-type { border-top: 0; }
.match-leg summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 12px 2px; cursor: pointer; list-style: none; }
.match-leg summary::-webkit-details-marker { display: none; }
.match-leg summary::before { content: '▸'; color: var(--muted); margin-right: 4px; }
.match-leg[open] summary::before { content: '▾'; }
.match-leg summary b { margin-right: auto; }
.match-leg summary span { color: var(--muted); font-size: 14px; }
.match-visits td.is-me { color: var(--accent); }
.match-visits .match-darts { font-variant-numeric: tabular-nums; color: var(--muted); }
.match-visits tr.is-checkout td { font-weight: 800; color: var(--accent); }
.match-visits tr.is-bust td:nth-child(3) { color: var(--danger); }
.history-item--link { text-decoration: none; color: inherit; }
.history-item--link:hover { border-color: var(--accent); }

/* ---------------------------------------------------------------- Spielseite: Kopf, Duell, Heatmap, Aufnahmen */
.mx-titlebar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.mx-titlebar__title { text-align: center; }
.mx-titlebar__title h2 { margin: 0; font-size: 20px; font-weight: 900; }
.mx-titlebar::after { content: ''; width: 90px; }
.mx-board { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.mx-board__players { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.mx-player { --pc: var(--accent); display: grid; justify-items: center; gap: 10px; padding: 16px 10px 14px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 55%, transparent), color-mix(in srgb, var(--pc) 18%, transparent)); }
.mx-player__tag { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--tag-bg); }
.mx-player__avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--pc); color: #0b0d11; }
.mx-player__name { font-weight: 800; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mx-player__legs { font-size: 48px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mx-player.is-winner .mx-player__legs::after { content: ' 🏆'; font-size: 20px; vertical-align: middle; }
.mx-board__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; padding: 9px 12px; font-size: 13px; color: var(--muted); background: var(--deep); }
.mx-board__meta b { color: var(--text); }
.mx-tabs { margin-top: 2px; }
.mx-tabs .pub-tabs__tab { font: inherit; font-weight: 700; font-size: 16px; background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; padding: 10px 2px; color: var(--muted); }
.mx-tabs .pub-tabs__tab.is-on { color: var(--text); border-bottom-color: var(--text); }
.mx-duel { display: grid; gap: 4px; }
.mx-duel__row { display: grid; grid-template-columns: 1fr minmax(90px, auto) 1fr; align-items: center; gap: 6px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mx-duel__row:last-child { border-bottom: 0; }
.mx-duel__label { text-align: center; color: var(--muted); font-size: 13px; line-height: 1.25; max-width: 120px; }
.mx-val { justify-self: start; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; padding: 2px 8px; border-radius: 8px; }
.mx-val--b { justify-self: end; }
.mx-val small { font-size: 12px; font-weight: 400; color: var(--muted); }
.mx-val--a.is-better { background: #3987e5; color: #fff; }
.mx-val--b.is-better { background: #d95926; color: #fff; }
.mx-val.is-better small { color: rgb(255 255 255 / .8); }
.mx-duel__bars { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mx-bar { position: relative; height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.mx-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: var(--w); border-radius: 999px; }
.mx-bar--a::after { right: 0; background: #3987e5; }
.mx-bar--b::after { left: 0; background: #d95926; }
.mx-counts { padding-top: 6px; padding-bottom: 6px; }
.mx-counts__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.mx-counts__row:last-child { border-bottom: 0; }
.mx-counts__row > :first-child { text-align: left; }
.mx-counts__row > :last-child { text-align: right; }
.mx-counts__label { color: var(--muted); text-align: center; font-size: 15px; padding: 0 8px; }
.mx-counts__row .num { font-variant-numeric: tabular-nums; }
.mx-counts__row .is-better { font-weight: 800; }
.mx-heat { display: grid; justify-items: center; gap: 12px; }
.mx-heat__board { width: min(100%, 460px); }
.mx-heat__svg { display: block; width: 100%; height: auto; }
.mx-heat__dot { stroke: #0b0d11; stroke-width: 1; opacity: .85; }
.mx-heat__toggles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mx-toggle { --pc: var(--accent); display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.mx-toggle i { width: 12px; height: 12px; border-radius: 50%; background: var(--pc); opacity: .35; }
.mx-toggle.is-on { color: var(--text); border-color: var(--pc); }
.mx-toggle.is-on i { opacity: 1; }
.mx-visits-wrap { overflow-x: auto; }
.mx-visits { display: grid; grid-template-columns: 34px repeat(var(--cols), minmax(140px, 1fr)); gap: 6px; }
.mx-visits__head { --pc: var(--accent); display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); border-top: 3px solid var(--pc); font-weight: 700; }
.mx-visits__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-visits__start { color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-visits__round { display: grid; place-items: center; color: var(--muted); font-weight: 700; border-radius: 8px; background: var(--panel-2); }
.mx-visit { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 10px; background: var(--panel-2); }
.mx-visit__main { display: grid; }
.mx-visit__main b { font-size: 19px; font-variant-numeric: tabular-nums; }
.mx-visit__main small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.mx-visit__rest { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--panel); }
.mx-visit.is-high { background: rgb(var(--accent-rgb) / .14); background: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
.mx-visit.is-checkout { outline: 2px solid var(--accent); }
.mx-visit.is-checkout .mx-visit__rest { color: var(--accent); }
.mx-visit.is-bust .mx-visit__main b { color: var(--danger); }
@media (max-width: 600px) {
  .mx-titlebar::after { width: 0; }
  .mx-titlebar { grid-template-columns: auto 1fr; }
  .mx-player__legs { font-size: 40px; }
  .mx-val { font-size: 17px; }
  .mx-visits { grid-template-columns: 26px repeat(var(--cols), minmax(118px, 1fr)); }
}

/* Checkout-Challenge: Hinweis, wenn der Checkout in dieser Aufnahme nicht mehr moeglich ist */
.suggestion.is-impossible { color: var(--danger); font-weight: 800; background: rgb(244 106 106 / .12); border-radius: 10px; padding: 6px 10px; }

/* ---------------------------------------------------------------- Checkout-Challenge in den Stats */
.cc-head { display: grid; gap: 6px; }
.cc-head__pct { font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.cc-head__sub { color: var(--muted); }
.cc-bar { height: 12px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin-top: 6px; }
.cc-bar__fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.cc-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.cc-cell { display: grid; place-items: center; min-height: 34px; border-radius: 7px; background: var(--panel-2); color: var(--muted); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: default; }
.cc-cell.is-done { background: var(--accent); color: var(--on-accent); }
.cc-cell.is-impossible { background: transparent; color: var(--line); text-decoration: line-through; border: 1px dashed var(--line); }
.cc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.cc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cc-key { display: inline-block; width: 14px; height: 14px; border-radius: 4px; background: var(--panel-2); }
.cc-key.is-done { background: var(--accent); }
.cc-key.is-impossible { background: transparent; border: 1px dashed var(--muted); }
@media (max-width: 420px) { .cc-cell { min-height: 28px; font-size: 11px; } .cc-grid { gap: 3px; } }

/* ---------------------------------------------------------------- Spielansicht: Gluehbirne, groessere Wurffelder, "nicht moeglich" */
.info__top { position: relative; padding-right: 44px; }
.awake--bulb { position: absolute; top: -2px; right: 0; width: 38px; height: 38px; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 50%; }
.awake--bulb.awake--on { color: #ffd34d; border-color: rgb(255 211 77 / .5); background: rgb(255 211 77 / .14); box-shadow: 0 0 14px rgb(255 211 77 / .35); }
.awake--bulb.awake--on svg path:last-child { fill: rgb(255 211 77 / .35); }
:root[data-theme="light"] .awake--bulb.awake--on { color: var(--warn); }
.awake--bulb.awake--off { color: var(--muted); border-color: var(--line); animation: bulb-hint 2.4s ease-in-out 3; }
@keyframes bulb-hint { 50% { color: var(--warn); border-color: var(--warn); } }
@media (prefers-reduced-motion: reduce) { .awake--bulb.awake--off { animation: none; } }
.game__info .slot { min-height: 72px; font-size: 26px; border-radius: 12px; }
.game__info .visit__sum { min-width: 96px; border-radius: 12px; }
.game__info .visit__total { font-size: 32px; }
.visit__sum--impossible { background: var(--danger); color: #2a0606; }
.visit__sum--impossible .visit__total { font-size: 26px; }
.visit__sum--impossible small { font-weight: 800; opacity: 1; }
@media (max-width: 600px) {
  .play .game__info .slot { min-height: 62px; font-size: 22px; }
  .play .game__info .visit__sum { min-width: 84px; }
  .play .game__info .visit__total { font-size: 28px; }
}
.cc-runs { flex-wrap: wrap; overflow: visible; }
.cc-runs .sp-mode { flex: 0 1 auto; white-space: normal; text-align: left; }

/* ---------------------------------------------------------------- Spielleiste statt Kopfzeile (im laufenden Spiel) */
.in-game .top { display: none; }
.game-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: max(6px, env(safe-area-inset-top)) 12px 6px; margin: -8px -4px 6px; background: var(--bg); }
.game-bar[hidden] { display: none; }
.game-bar__back { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.game-bar__back:hover { border-color: var(--muted); }
.game-bar__status { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.game-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.game-dot--on { background: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .18); }
.game-dot--off { background: var(--danger); box-shadow: 0 0 0 3px rgb(244 106 106 / .2); }
.game-dot--omni { border-radius: 3px; }
.game-bar .awake--bulb { position: static; width: 40px; height: 40px; }
.info__top { padding-right: 0; }
.game-bar { margin: -6px 0 10px; }

/* ---------------------------------------------------------------- Spielleiste als Text, Optionen-Menue */
.game-bar { padding-left: 4px; padding-right: 4px; }
.game-bar__back { width: auto; height: auto; border: 0; border-radius: 8px; background: none; padding: 8px 6px; font: inherit; font-weight: 700; font-size: 16px; color: var(--text); display: inline-flex; }
.game-bar__back:hover { color: var(--accent); }
.game-bar__state { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.game-bar__state.is-on { color: var(--accent); }
.game-bar__state.is-off { color: var(--danger); }
.game-bar #game-conn { margin-left: 4px; }
.game-bar #game-bridge { margin-right: auto; }
.game-bar #game-bridge[hidden] + .game-menu { margin-left: auto; }
.game-menu { position: relative; margin-left: auto; }
.game-bar__menu { position: relative; font: inherit; font-size: 24px; line-height: 1; font-weight: 800; color: var(--text); background: none; border: 0; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.game-bar__menu:hover, .game-bar__menu[aria-expanded="true"] { background: var(--panel-2); }
.game-bar__menu.has-warning::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.game-menu__list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; display: grid; padding: 6px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 30px rgb(0 0 0 / .45); z-index: 30; }
.game-menu__list[hidden] { display: none; }
.game-menu__list button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--text); background: none; border: 0; border-radius: 8px; padding: 10px; cursor: pointer; }
.game-menu__list button:hover { background: var(--panel-2); }
.game-menu__list button > span:first-of-type { flex: 1; white-space: nowrap; }
.volume { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 4px 10px 10px; }
.volume[hidden] { display: none; }
.volume input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent); height: 28px; }
.volume__more { flex: 1 1 100%; padding: 4px 0 2px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.volume__value { flex: none; width: 44px; text-align: right; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.sound-kinds { display: grid; gap: 6px; margin-top: 6px; }
.sound-kinds[hidden] { display: none; }
.sound-kinds__title { margin: 4px 0 0; }
.sound-kind { display: flex; align-items: center; gap: 8px; }
.sound-kind .switch-row { flex: 1; min-width: 0; }
.sound-kind__play { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); cursor: pointer; }
.sound-kind__play:active { background: var(--accent); color: var(--on-accent); }
.caller-more { display: grid; gap: 8px; margin-top: 8px; }
.caller-more[hidden] { display: none; }
.caller-voice { display: flex; align-items: center; gap: 8px; }
.accent-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.accent-swatch { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; color: var(--text);
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; cursor: pointer; }
.accent-swatch__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgb(0 0 0 / .15); }
.accent-swatch.is-on { border-color: var(--sw); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sw) 30%, transparent); }
.caller-name { display: grid; gap: 6px; font-weight: 600; }
.caller-source { width: 100%; font: inherit; font-weight: 600; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.caller-rec-link { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.caller-exact summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.caller-exact select { width: 100%; margin-top: 6px; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.caller-voice select { flex: 1; min-width: 0; font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.game-menu__value { flex: none; font-weight: 700; color: var(--muted); }
.game-menu__switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line); flex: none; transition: background .15s; }
.game-menu__switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.game-menu__switch.is-on { background: var(--accent); }
.game-menu__switch.is-on::after { transform: translateX(16px); }
/* zentrierter Checkout-Weg */
.suggestion { text-align: center; }
/* ---------------------------------------------------------------- Schimmer ums Board */
.game__board .board { border-radius: 50%; transition: box-shadow .4s; }
/* Leuchtrand = Zustand des Boards, bewusst feste Ampelfarben (nicht die waehlbare Akzentfarbe):
   gruen = bereit, gelb = Darts ziehen, rot = OMNI nicht erreichbar */
.game__board .board[data-glow="ready"] { box-shadow: 0 0 24px 4px rgb(52 195 143 / .55), 0 0 0 3px rgb(52 195 143 / .55); }
.game__board .board[data-glow="wait"] { box-shadow: 0 0 24px 4px rgb(241 180 76 / .6), 0 0 0 3px rgb(241 180 76 / .6); }
/* Pulsieren ueber die Deckkraft einer eigenen Ebene (guenstig fuer die Grafikkarte, kein Neuzeichnen des Boards) */
.game__board .board { position: relative; }
.game__board .board::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; pointer-events: none; opacity: 0; box-shadow: 0 0 36px 10px rgb(241 180 76 / .8); }
.game__board .board[data-glow="wait"]::after { animation: glow-wait 1.6s ease-in-out infinite; will-change: opacity; }
.game__board .board[data-glow="error"] { box-shadow: 0 0 24px 4px rgb(244 106 106 / .6), 0 0 0 3px rgb(244 106 106 / .65); }
@keyframes glow-wait { 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .game__board .board[data-glow="wait"]::after { animation: none; } }

/* ---------------------------------------------------------------- Profilbilder (Bild oder Initialen im Kreis) */
.pic { --pic: 36px; flex: none; width: var(--pic); height: var(--pic); border-radius: 50%; overflow: hidden; display: inline-grid; place-items: center;
  font-size: calc(var(--pic) * .38); font-weight: 800; letter-spacing: .3px; line-height: 1; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); user-select: none; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-wrap { position: relative; flex: none; display: inline-block; width: var(--pic); height: var(--pic); }
.pic-wrap > .pic { width: 100%; height: 100%; }
.pic__presence { position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; box-shadow: 0 0 0 2.5px var(--panel); opacity: 1; }
.presence--offline.pic__presence, .presence--offline.avatar__presence { background: #5b6472; opacity: 1; }
.avatar__presence { z-index: 1; }
.user-chip a { display: inline-flex; align-items: center; gap: 8px; }
.user-chip__name { overflow: hidden; text-overflow: ellipsis; }
.avatar__pic { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; background: none; color: inherit; font-size: inherit; }
.pic--xl { --pic: 88px; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px rgb(var(--accent-rgb) / .35); }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin: 4px 0 16px; }
.avatar-edit__body { display: grid; gap: 4px; min-width: 0; }
.avatar-edit__body p { margin: 0; }
.avatar-edit__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.avatar-edit__actions label.btn { cursor: pointer; }
/* Spielerkarte: Bild + Name, Punktzahl mittig */
.player header { align-items: center; justify-content: flex-start; }
.player__pic { --pic: 28px; }
.player__name { flex: 1; min-width: 0; }
.player__score { text-align: center; }
@media (max-width: 600px) { .player__pic { --pic: 24px; } }

/* ---------------------------------------------------------------- Uhr (Bull-Challenge) */
.clock { margin-left: auto; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.clock.is-idle { color: var(--muted); }
.clock.is-warn { color: var(--warn); }
.clock.is-danger { color: var(--danger); animation: clock-pulse 1s ease-in-out infinite; }
@keyframes clock-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .clock.is-danger { animation: none; } }
.clock-bar { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: -2px 0 12px; }
.clock-bar[hidden] { display: none; }
.clock-bar > span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform-origin: left center; transition: transform .2s linear; will-change: transform; }
.clock-bar.is-warn > span { background: var(--warn); }

/* ---------------------------------------------------------------- Zeit frei waehlbar (Schieberegler) */
.opt-range__row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.opt-range__value { min-width: 110px; text-align: center; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.opt-range__step { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 24px; font-weight: 700; cursor: pointer; }
.opt-range__step:disabled { opacity: .4; cursor: default; }
.opt-range input[type=range] { width: 100%; accent-color: var(--accent); margin: 6px 0 8px; }
/* groessere Uhr: eigene Zeile, mittig */
.clock { flex-basis: 100%; margin: 2px 0 0; text-align: center; font-size: 60px; letter-spacing: 1px; }
@media (max-width: 600px) { .clock { font-size: 54px; } }

/* ---------------------------------------------------------------- Knoepfe unter dem Board: eine Reihe, Symbol ueber dem Text */
.game__controls .controls { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; margin-top: 0; }
.game__controls .controls .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; min-height: 56px; padding: 6px 4px; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.game__controls .controls .btn > span:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ctl__icon { font-size: 20px; line-height: 1; }
#toggle-pad[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- Lieblingsdoppel */
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; margin-bottom: 12px; }
.fav-grid .opt-chip { padding: 8px 0; justify-content: center; text-align: center; font-variant-numeric: tabular-nums; }
.fav-grid__none { grid-column: span 2; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; font: inherit; font-weight: 600;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.switch-row:disabled { opacity: .5; cursor: default; }
.fav-examples { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; font-size: 14px; }
.fav-examples th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 6px; }
.fav-examples td { padding: 6px; border-top: 1px solid var(--line); white-space: nowrap; }
.fav-examples td:last-child { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- Bruch-Challenge: Editor in der Einrichtung */
.cl-edit__list { display: grid; gap: 8px; }
.cl-edit__item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 8px; }
.cl-edit__top { display: flex; align-items: center; gap: 8px; }
.cl-edit__no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-size: 13px; }
.cl-edit__types { flex: 1; gap: 4px; }
.cl-edit__types .opt-chip { padding: 5px 9px; font-size: 13px; }
.cl-edit__del { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--muted); font: inherit; cursor: pointer; }
.cl-edit__del:disabled { opacity: .3; cursor: default; }
.cl-edit__params { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font-weight: 600; }
.cl-edit__num { width: 64px; text-align: center; font: inherit; font-weight: 700; padding: 6px 4px; }
.cl-edit__target { width: auto; max-width: 100%; font: inherit; padding: 6px 8px; }
.cl-edit__add { margin-top: 8px; }
/* ---------------------------------------------------------------- Bruch-Challenge: Liste im Spiel */
.cl-list { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.cl-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.cl-item:hover:not(:disabled) { border-color: var(--muted); }
.cl-item.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; cursor: default; }
.cl-item.is-done { opacity: .55; cursor: default; }
.cl-item__no { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--line); }
.cl-item.is-active .cl-item__no { background: var(--accent); color: var(--on-accent); }
.cl-item.is-done .cl-item__no { background: none; color: var(--accent); font-size: 18px; }
.cl-item__body { display: grid; min-width: 0; }
.cl-item__text { font-weight: 700; font-size: 15px; }
.cl-item small { color: var(--muted); font-size: 12px; }
.cl-item.is-active small { color: var(--accent); font-weight: 700; }
/* Editor: kompakte Felder (gegen .setup input { width: 100% }), Arten als eine Reihe */
.setup .cl-edit__num { width: 64px; flex: 0 0 64px; min-height: 40px; padding: 6px 4px; text-align: center; }
.setup .cl-edit__target { width: auto; flex: 1 1 150px; min-height: 40px; }
.cl-edit__types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cl-edit__types .opt-chip { padding: 6px 2px; font-size: 12.5px; justify-content: center; text-align: center; min-width: 0; }
.cl-edit__params > span { white-space: nowrap; }
.setup .cl-edit__item input, .setup .cl-edit__item select { background: var(--panel); }
.cl-list { gap: 5px; }
.cl-item { padding: 7px 10px; min-height: 42px; }
.cl-item__no { width: 24px; height: 24px; font-size: 13px; }
.cl-item__text { font-size: 14.5px; line-height: 1.25; }

/* Hochformat: offenes Tastenfeld ersetzt die Scheibe (Querformat: beides nebeneinander sichtbar) */
@media (orientation: portrait) and (min-height: 501px) {
  .game.pad-open .game__board { display: none; }
  /* Tasten so hoch, dass das Tastenfeld (Multiplikator + 5 Zahlenreihen = 6 Reihen) den Platz der Scheibe ausfuellt.
     Handy: Scheibe = 38 % der Hoehe; Tablet (ab 640 px Breite): Hoehe minus ~700 px (siehe oben). */
  .game.pad-open .pad button { min-height: max(42px, calc((34vh - 10px) / 6)); min-height: max(42px, calc((34svh - 10px) / 6)); font-size: 22px; }
}
@media (orientation: portrait) and (min-height: 501px) and (min-width: 640px) {
  .game.pad-open .pad button { min-height: max(56px, calc((100vh - 700px) / 6)); min-height: max(56px, calc((100svh - 700px) / 6)); font-size: 32px; font-weight: 800; border-radius: 12px; }
  .game.pad-open .pad { margin-top: 10px; }
}

/* ---------------------------------------------------------------- Medaillen */
.medal { --mc: #3a4150; --mc2: #262b36; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: radial-gradient(circle at 35% 30%, var(--mc), var(--mc2)); box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--mc); }
.medal--none { filter: grayscale(1); opacity: .45; box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px var(--line); }
.medal--bronze { --mc: #d0905f; --mc2: #8a5329; }
.medal--silver { --mc: #dfe5ec; --mc2: #8c96a3; }
.medal--gold { --mc: #f4cf5d; --mc2: #b98712; }
.medal--platinum { --mc: #a5ece6; --mc2: #3f9c95; }
.medal--diamond { --mc: #b3cdff; --mc2: #4a6fd1; }
.medal--legend { --mc: #e0b3ff; --mc2: #8a3fd1; }
.medal--sm { width: 18px; height: 18px; box-shadow: none; }
.medals { display: grid; gap: 14px; }
.medals__head { display: grid; gap: 10px; }
.medals__count b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.medals__tiers { display: flex; flex-wrap: wrap; gap: 12px; }
.medals__tier { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.medals__bar, .medal-card__bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.medals__bar > span, .medal-card__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.medals__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.medal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; align-content: start; }
.medal-card.is-complete { border-color: rgb(var(--accent-rgb) / .5); }
.medal-card__top { display: flex; align-items: center; gap: 14px; }
.medal-card__title { display: grid; min-width: 0; }
.medal-card__title b { font-size: 16px; }
.medal-card__dots { display: flex; gap: 6px; }
.medal-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line); }
.medal-dot[class*="medal--"] { background: radial-gradient(circle at 35% 30%, var(--mc), var(--mc2)); border-color: transparent; }
.medal-card__progress { display: grid; gap: 6px; }
.medal-card__row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.medal-card__row b { color: var(--text); font-variant-numeric: tabular-nums; }
.medal-card__done { margin: 0; color: var(--accent); font-weight: 700; }
/* Popup nach dem Spiel */
.medal-pop { width: min(420px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); padding: 20px; }
.medal-pop::backdrop { background: rgb(0 0 0 / .6); }
.medal-pop__head { text-align: center; }
.medal-pop__head h2 { margin: 6px 0 14px; }
.medal-pop__burst { font-size: 54px; animation: medal-pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.medal-pop__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; max-height: 50vh; overflow: auto; }
.medal-pop__list li { display: flex; align-items: center; gap: 14px; animation: medal-in .4s ease-out both; animation-delay: var(--d); }
.medal-pop__list li > span:last-child { display: grid; }
.medal-pop__list small { color: var(--muted); }
.medal-pop__actions { display: flex; gap: 8px; justify-content: flex-end; }
@keyframes medal-pop { from { transform: scale(.3); opacity: 0; } }
@keyframes medal-in { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .medal-pop__burst, .medal-pop__list li { animation: none; } }
.medal-pop__list { padding: 6px 6px 6px 6px; }
/* Profil: vier Tabs in einer Reihe */
.profile .tabs--page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .profile .tabs--page button { font-size: 13px; padding-left: 4px; padding-right: 4px; } }

/* Roter Balken ueber den Wurffeldern, grosse Zahl im Summenfeld (Checkout 2-170) */
.turn__who--alert { flex: 1 1 100%; background: var(--danger); color: #fff; border-radius: 10px; padding: 3px 12px; text-align: center; font-size: 16px; }
.turn__who--alert .muted { display: none; }
.game__info .visit__sum--big .visit__total { font-size: 40px; line-height: 1; }
@media (max-width: 600px) { .game__info .visit__sum--big .visit__total { font-size: 34px; } }

/* Freigabe: Erlaubnis zum Einstellen je Konto */
.share-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.share-name { flex: 1 1 160px; font-weight: 600; }
.share-perm { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; color: var(--text); background: none; border: 0; padding: 4px 0; cursor: pointer; }

/* Geraetekarte: Kalibrier-Status fuer alle */
.card__cal { margin: -4px 0 10px; color: var(--muted); }
.card__cal.is-running { color: var(--warn); font-weight: 700; }
.card__cal.is-bad { color: var(--danger); }

/* ---------------------------------------------------------------- Caller aufnehmen (caller.html) */
.rec-packs { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 8px; }
.rec-pack { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.rec-pack.is-on { border-color: var(--accent); }
.rec-pack__info { display: grid; gap: 2px; min-width: 0; }
.rec-pack__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-new { grid-template-columns: 1fr; justify-items: start; }
.rec-new label { justify-self: stretch; }
.rec-new[hidden] { display: none; }
.rec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rec-head h2 { margin: 0; }
.rec-card { display: grid; justify-items: center; gap: 10px; margin: 12px 0 6px; padding: 18px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-2); text-align: center; }
.rec-card__say { font-size: clamp(28px, 7vw, 44px); font-weight: 900; line-height: 1.1; }
.rec-card__hint { min-height: 1.2em; }
.rec-btn { width: 92px; height: 92px; border-radius: 50%; border: 4px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; padding: 0; }
.rec-btn span { width: 46px; height: 46px; border-radius: 50%; background: var(--danger); transition: border-radius .15s, width .15s, height .15s; }
.rec-btn.is-rec { border-color: var(--danger); animation: rec-pulse 1s ease-in-out infinite; }
.rec-btn.is-rec span { width: 34px; height: 34px; border-radius: 8px; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 10px rgb(244 106 106 / .2); } }
@media (prefers-reduced-motion: reduce) { .rec-btn.is-rec { animation: none; } }
.rec-card__state { font-weight: 600; color: var(--muted); min-height: 1.4em; }
.rec-card__state.is-rec { color: var(--danger); }
.rec-card__state.is-good { color: var(--accent); }
.rec-card__state.is-bad { color: var(--danger); }
.rec-card__actions, .rec-card__saved { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rec-report { margin-top: 8px; color: var(--accent); background: rgb(var(--accent-rgb) / .12); }
.rec-report.is-bad { color: var(--warn); background: rgb(241 180 76 / .12); }
.rec-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-chip { font: inherit; font-size: 13px; font-weight: 700; min-width: 40px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); cursor: pointer; }
.rec-chip.is-done { background: rgb(var(--accent-rgb) / .16); color: var(--accent); border-color: transparent; }
.rec-chip.is-on { outline: 2px solid var(--accent); outline-offset: 1px; color: var(--text); }

/* ---------------------------------------------------------------- Kalibrierbilder (Geraeteseite) */
.cal-images { display: grid; gap: 6px; margin-top: 10px; }
.cal-images[hidden], .cal-images .btn[hidden] { display: none; }
.cal-images__note:empty { display: none; }
.cal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cal-grid[hidden] { display: none; }
.cal-thumb { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--deep); cursor: pointer; aspect-ratio: 1; }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cal-thumb span { position: absolute; left: 6px; bottom: 6px; padding: 2px 8px; border-radius: 999px; background: rgb(0 0 0 / .6); color: #fff; font-size: 12px; font-weight: 700; }
.cal-thumb.is-missing { display: grid; place-items: center; }
.cal-thumb.is-missing img { display: none; }
.cal-thumb.is-missing span { position: static; background: none; color: var(--muted); }
.cal-view { width: min(96vw, 900px); max-height: 96vh; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); }
.cal-view::backdrop { background: rgb(0 0 0 / .7); }
.cal-view img { display: block; width: 100%; max-height: 72vh; object-fit: contain; background: var(--deep); border-radius: 8px; margin: 8px 0; }
.cal-view__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }

/* ---------------------------------------------------------------- Ausbullen (eigener Bildschirm vor dem Spiel) */
.game.bull-phase #players, .game.bull-phase .game__info { display: none; }
.bulloff[hidden] { display: none; }
.bulloff { display: grid; gap: 10px; }
.bulloff__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bulloff__head h2 { margin: 0; font-size: 26px; }
.bulloff__round { color: var(--muted); font-weight: 700; }
.bulloff__rule { margin: 0; font-size: 14px; }
.bulloff__status { margin: 0; font-size: 22px; font-weight: 800; color: var(--accent); }
.bulloff__status.is-bad { color: var(--warn); }
.bulloff__status.is-wait { color: var(--warn); }
.bulloff__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bulloff__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.bulloff__row b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulloff__tag { font-size: 13px; font-weight: 700; color: var(--muted); }
.bulloff__res { display: grid; justify-items: end; min-width: 76px; }
.bulloff__dart { font-size: 30px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.bulloff__res small { color: var(--muted); font-weight: 700; }
.bulloff__row.is-turn { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .2); }
.bulloff__row.is-turn .bulloff__tag { color: var(--accent); }
.bulloff__row.is-winner { border-color: var(--accent); background: rgb(var(--accent-rgb) / .14); }
.bulloff__row.is-winner .bulloff__tag { color: var(--accent); }
.bulloff__row.is-out { opacity: .45; }
@media (orientation: portrait) and (min-width: 640px) {
  .bulloff__head h2 { font-size: 32px; }
  .bulloff__status { font-size: 28px; }
  .bulloff__row { padding: 14px 18px; }
  .bulloff__row b { font-size: 22px; }
  .bulloff__dart { font-size: 40px; }
}

/* ---------------------------------------------------------------- "Wer beginnt?" (Auswahl + Muenzwurf) */
.game.starter-phase #players, .game.starter-phase .game__main, .game.starter-phase #bulloff { display: none; }
.starter[hidden] { display: none; }
/* fuellt den Bildschirm unter der Spielleiste: Kacheln teilen sich die Hoehe, die Muenze steht mittig */
.starter { display: grid; gap: 16px; grid-template-rows: auto 1fr; min-height: calc(100vh - 90px); min-height: calc(100svh - 90px); }
.starter__title { margin: 4px 0 0; font-size: 30px; text-align: center; }
.starter__choices { display: grid; gap: 14px; grid-auto-rows: 1fr; }
.starter__choices[hidden] { display: none; }
.starter-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px;
  align-items: center; align-content: center; text-align: left; font: inherit; color: var(--text); background: var(--panel); border: 2px solid var(--line);
  border-radius: 18px; padding: 22px 20px; cursor: pointer; min-height: 120px; transition: border-color .15s, transform .1s; }
.starter-card:hover { border-color: var(--accent); }
.starter-card:active { transform: scale(.98); }
.starter-card__icon { grid-row: 1 / span 2; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 34px;
  background: rgb(var(--accent-rgb) / .14); color: var(--accent); }
.starter-card b { font-size: 22px; }
.starter-card__text { color: var(--muted); font-size: 15px; line-height: 1.35; }
@media (orientation: portrait) and (min-width: 640px) {
  .starter__title { font-size: 40px; margin-top: 20px; }
  .starter-card { min-height: 190px; padding: 28px; }
  .starter-card__icon { width: 92px; height: 92px; font-size: 48px; }
  .starter-card b { font-size: 30px; }
  .starter-card__text { font-size: 18px; }
}
.coin-stage { display: grid; justify-items: center; align-content: center; gap: 22px; padding: 10px 0 60px; }
.coin-stage[hidden] { display: none; }
.coin-scene { width: 220px; height: 220px; perspective: 900px; }
.coin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.coin__face { position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; --pic: 220px;
  display: grid; place-items: center; overflow: hidden; font-size: 80px; font-weight: 900; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px #d9b44a, 0 0 0 11px #a8862b, 0 12px 30px rgb(0 0 0 / .35); }
.coin__face img { width: 100%; height: 100%; object-fit: cover; }
.coin__back { transform: rotateY(180deg); }
.coin-names { display: flex; gap: 14px; align-items: baseline; font-size: 18px; font-weight: 700; color: var(--muted); }
.coin-names span:first-child, .coin-names span:last-child { color: var(--text); }
.coin-result { margin: 0; min-height: 1.3em; font-size: 30px; font-weight: 900; color: var(--accent); text-align: center; }
@media (orientation: portrait) and (min-width: 640px) {
  .coin-scene { width: 420px; height: 420px; }
  .coin__face { --pic: 420px; font-size: 150px; }
  .coin-names { font-size: 24px; }
  .coin-result { font-size: 40px; }
}

/* ---------------------------------------------------------------- Einrichtung in zwei Schritten (Handy/Tablet zuerst) */
.setup-wizard { max-width: 900px; padding: 0; background: none; border: 0; }
.setup-step[hidden] { display: none; }
.setup-step { display: grid; gap: 14px; }
.setup-step__title { margin: 6px 0 2px; font-size: 28px; }
/* Schritt 1: grosse Spielkacheln */
.game-groups { display: grid; gap: 22px; }
.game-group { display: grid; gap: 10px; }
.game-group__title { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--accent); }
@media (min-width: 640px) { .game-groups { gap: 28px; } .game-group__title { font-size: 16px; } }
.game-cards--big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.game-cards--big .game-card { min-height: 150px; padding: 18px 16px; border-radius: 18px; gap: 8px; align-content: start; }
.game-cards--big .game-card b { font-size: 19px; }
.game-cards--big .game-card small { font-size: 13.5px; }
.game-cards--big .game-card__icon { width: 52px; height: 52px; border-radius: 14px; }
.game-cards--big .game-card__icon svg { width: 30px; height: 30px; }
.game-cards--big .game-card.is-on::after { display: none; } /* kein Haekchen: Antippen fuehrt direkt weiter */
.game-cards--big .game-card.is-on { box-shadow: none; }
@media (min-width: 640px) {
  .game-cards--big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .game-cards--big .game-card { min-height: 190px; padding: 22px 20px; }
  .game-cards--big .game-card b { font-size: 22px; }
  .game-cards--big .game-card small { font-size: 15px; }
  .game-cards--big .game-card__icon { width: 64px; height: 64px; }
  .game-cards--big .game-card__icon svg { width: 36px; height: 36px; }
  .setup-step__title { font-size: 34px; }
}
/* Schritt 2: Einstellungen */
.setup-head { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 12px; }
.setup-back { min-height: 44px; padding: 8px 14px; }
.setup-head__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.setup-head__icon svg { width: 28px; height: 28px; }
.setup-head__title { margin: 0; font-size: 26px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.setup-wizard .game-desc { margin: 0; color: var(--muted); font-size: 15px; }
.setup-card { display: grid; gap: 14px; padding: 16px; border-radius: 18px; }
.setup-card[hidden] { display: none; }
.setup-card h3 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.setup-card .opt-groups { margin: 0; gap: 16px; }
.setup-card .opt-group { gap: 8px; }
.setup-card .opt-group__label { font-size: 15px; font-weight: 700; color: var(--text); }
/* gleich breite Knoepfe im Raster statt unregelmaessigem Umbruch */
.setup-card .opt-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.setup-card .opt-chip { min-height: 48px; padding: 10px 12px; font-size: 17px; border-radius: 12px; justify-content: center; text-align: center; }
.setup-card select { min-height: 48px; font-size: 16px; }
.setup-add { justify-self: start; min-height: 46px; }
.setup-submit { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--bg) 35%); z-index: 5; }
.setup-submit .btn--big { width: 100%; min-height: 60px; font-size: 20px; border-radius: 16px; }
@media (min-width: 640px) {
  .setup-head__title { font-size: 32px; }
  .setup-card { padding: 22px; }
  .setup-card .opt-chips { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
  .setup-card .opt-chip { min-height: 56px; padding: 12px 14px; font-size: 19px; }
  .setup-card .opt-group__label { font-size: 17px; }
  .setup-submit .btn--big { min-height: 68px; font-size: 22px; }
}
/* Geraetewahl als Knoepfe: breiter, Statuspunkt links neben dem Namen */
.setup-card .select-chips .opt-chips { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.setup-card .select-chips .opt-chip { display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; }
.setup-card .player-row input, .setup-card .player-row select { min-height: 48px; font-size: 16px; }
@media (min-width: 640px) {
  .game-cards--big .game-card { min-height: 220px; }
  .setup-card .select-chips .opt-chips { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Meldung (links) und Checkout-Weg (rechts) teilen sich eine Zeile mit fester Hoehe: nichts verrutscht, wenn sie kommen/gehen */
.info__msgs { display: flex; align-items: center; gap: 12px; height: 28px; margin-top: 8px; }
.info__msgs .banner, .info__msgs .suggestion { margin: 0; min-height: 0; line-height: 1.2; white-space: nowrap; }
.info__msgs .banner { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.info__msgs .suggestion { flex: none; margin-left: auto; }

/* ---------------------------------------------------------------- Spielbildschirm: lesbar aus ~2 m (Hochformat)
   Steht bewusst am Ende und mit .play davor, damit es die aelteren, verstreuten Groessen oben ueberschreibt. */
.board .num { font-size: 20px; font-weight: 900; }
@media (orientation: portrait) {
  .play .player__name { font-size: 19px; font-weight: 800; }
  .play .player__pic { --pic: 30px; }
  .play .player__legs { font-size: 16px; }
  .play .player__score { font-size: 60px; }
  .play .player__stats dt { font-size: 12px; color: var(--text); opacity: .7; }
  .play .player__stats dd { font-size: 17px; }
  .play .turn__who { font-size: 19px; }
  .play .game__info .slot { min-height: 56px; font-size: 28px; font-weight: 800; }
  .play .game__info .visit__total { font-size: 34px; }
  .play .game__info .visit__sum small { font-size: 12px; }
  .play .turn__who .muted { font-size: .75em; }
  .play .suggestion { font-size: 22px; font-weight: 800; }
  .play .banner { font-size: 19px; }
  .play .game__controls .controls .btn { font-size: 16px; font-weight: 700; }
}
@media (orientation: portrait) and (max-width: 639px) {
  /* lieber zweizeilig als abgeschnitten ("Rückgän…") */
  .play .game__controls .controls .btn { font-size: 15px; line-height: 1.1; padding-left: 6px; padding-right: 6px; white-space: normal; }
  .play .game__controls .controls .btn > span:last-child { overflow: visible; text-overflow: clip; }
}
@media (orientation: portrait) and (min-width: 640px) {
  .play .player { padding: 10px 14px; gap: 4px; }
  .play .player__name { font-size: 26px; }
  .play .player__pic { --pic: 42px; }
  .play .player__legs { font-size: 20px; }
  .play .player__score { font-size: clamp(80px, 12vw, 108px); }
  .play .player__stats dt { font-size: 14px; line-height: 1.2; }
  .play .player__stats dd { font-size: 22px; line-height: 1.2; }
  .play .player__stats div { padding: 3px 10px; }
  .play .player__device { display: none; } /* steht schon in der Zeile "… ist am Zug" */
  .play .turn__who { font-size: 26px; }
  .play .game__info .slot { min-height: 84px; font-size: 44px; }
  .play .game__info .visit__sum { min-width: 140px; }
  .play .game__info .visit__total { font-size: 54px; }
  .play .game__info .visit__sum small { font-size: 15px; }
  .play .suggestion { font-size: 30px; }
  .play .banner { font-size: 26px; }
  .play .info__msgs { height: 38px; }
  .play .game__controls .controls .btn { min-height: 76px; font-size: 21px; }
}

/* Checkout-Spiele: statt Rest "nicht möglich" (Text, rot, passend klein) */
.player__score-note { color: var(--danger); font-size: .42em; vertical-align: middle; white-space: nowrap; }

/* Meldung + Checkout-Weg: Zeile mittig; ohne Meldung steht der Checkout-Weg genau in der Mitte (Hoehe bleibt fest) */
.info__msgs { justify-content: center; }
.info__msgs .banner { flex: 0 1 auto; }
.info__msgs .banner:empty { display: none; }
.info__msgs .suggestion { margin-left: 0; text-align: center; }
/* Meldung ("X ist Killer!", "Rico: D16 ✓" ...) rechts in der Kopfzeile der Aufnahme, einzeilig; so steht der Hinweis
   (Checkout-Weg, "X gibt vor" ...) allein und mittig in seiner Zeile und nichts verrutscht */
.info__top .banner { flex: 1 1 0; min-width: 0; margin: 0; min-height: 0; text-align: right; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-size: 16px; line-height: 1.3; }
.play .info__top .banner { font-size: 17px; }
.info__top .turn__who { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .info__top:has(.banner:not(:empty)) #turn-device { display: none; } }
.info__msgs .suggestion { max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------ Hilfe / FAQ (faq.html) */
.faq__head h2 { margin-bottom: 10px; }
#faq-search { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; min-height: 44px; width: 100%; box-sizing: border-box; }
.faq__toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.faq__toc a { padding: 6px 12px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.faq__toc a:hover, .faq__toc a:focus-visible { border-color: var(--accent); color: var(--accent); }
.faq__group { scroll-margin-top: 12px; }
.faq__group h2 { margin-bottom: 4px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; font-weight: 700; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 22px; font-weight: 600; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq summary:hover { color: var(--accent); }
.faq details > p, .faq details > ul, .faq details > ol { margin: 0 0 12px; line-height: 1.55; color: var(--text); }
.faq details > ul, .faq details > ol { padding-left: 22px; }
.faq details li + li { margin-top: 4px; }
.faq details a { color: var(--accent); }
.faq code { background: var(--panel-2); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
.login__help { text-align: center; margin-top: 14px; }
.login__help a { color: var(--accent); }

.game.has-clock.no-hint .info__msgs { display: none; }
/* Spiele mit Uhr und Wurffeldern (Powerscoring): die Uhr braucht ~70 px (Tablet) bzw. ~60 px (Handy) mehr Hoehe */
@media (orientation: portrait) and (min-width: 640px) {
  .game.has-clock .game__board .board { width: min(100%, calc(100vh - 690px)); width: min(100%, calc(100svh - 690px)); }
  .game.has-clock.pad-open .pad button { min-height: max(52px, calc((100vh - 732px) / 6)); min-height: max(52px, calc((100svh - 732px) / 6)); }
}
@media (orientation: portrait) and (max-width: 639px) and (min-height: 501px) {
  .play .game.has-clock .clock { font-size: 40px; }
  .game.has-clock .game__board .board { width: min(100%, 34vh); width: min(100%, 34svh); }
  .game.has-clock.pad-open .pad button { min-height: 38px; }
}

/* Spiele ohne Caller-Ansagen: Schalter und Lautstaerke im Spielmenue ausblenden */
body.no-caller #caller-item, body.no-caller #caller-volume { display: none !important; }

/* Handy: steht eine Meldung, zeigt die Kopfzeile nur den Namen ("Rico" statt "Rico ist am Zug"), sonst blieben fuer die
   Meldung nur ~100 px. Wer dran ist, zeigt auch der Rahmen der Spielerkarte; "Darts ziehen" der gelbe Rand. */
@media (max-width: 600px) { .info__top:has(.banner:not(:empty)) .turn__suffix { display: none; } }

/* Tic Tac Toe im Hochformat: das 3x3-Feld ersetzt die Scheibe (Darts stehen in den Wurffeldern), der Hinweis
   "Triff ein freies Feld" faellt weg. Bei offenem Tastenfeld (Handy) wird alles etwas kompakter. */
@media (orientation: portrait) {
  .game.has-ttt .game__board { display: none; }
  .game.has-ttt .info__msgs { display: none; }
  .game.has-ttt .grid.grid--ttt { max-width: none; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game.has-ttt .ttt__cell { aspect-ratio: auto; height: clamp(64px, 13vh, 200px); height: clamp(64px, 13svh, 200px); min-width: 0; }
  .game.has-ttt .ttt__cell small { font-size: 20px; font-weight: 800; color: var(--text); }
  .game.has-ttt .ttt__cell b { font-size: 40px; }
}
@media (orientation: portrait) and (max-width: 639px) {
  .game.has-ttt .ttt__cell small { font-size: 17px; }
  .game.has-ttt.pad-open .grid.grid--ttt { margin-top: 6px; gap: 6px; }
  .game.has-ttt.pad-open .ttt__cell { aspect-ratio: auto; height: 40px; flex-direction: row; gap: 6px; }
  .game.has-ttt.pad-open .ttt__cell small { font-size: 14px; }
  .game.has-ttt.pad-open .ttt__cell b { font-size: 24px; min-height: 0; }
  .game.has-ttt.pad-open .player__stats { display: none; }
  .game.has-ttt.pad-open .pad button { min-height: 36px; }
}
@media (orientation: portrait) and (min-width: 640px) {
  .game.has-ttt.pad-open .grid.grid--ttt { margin-top: 8px; }
  .game.has-ttt.pad-open .ttt__cell { height: 64px; flex-direction: row; gap: 10px; }
  .game.has-ttt.pad-open .ttt__cell b { font-size: 34px; min-height: 0; }
  .game.has-ttt.pad-open .pad button { min-height: max(52px, calc((100vh - 870px) / 6)); min-height: max(52px, calc((100svh - 870px) / 6)); }
}

/* Statistik "Gesamt": Spielname in der Tabelle antippbar (fuehrt zur Statistik dieses Spiels) */
.sp-link { font: inherit; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 4px 0; cursor: pointer; text-align: left; }
.sp-link:hover { text-decoration: underline; }
