/* Runde — iOS-artige Web-App. Tokens folgen den HIG-Rollen (Hintergrund, Label, Akzent, Signal). */
:root {
  color-scheme: light;
  --bg: #F2F2F7;            /* grouped background */
  --bg-elev: #FFFFFF;       /* cells, sheets */
  --label: #000000;
  --label-2: #6C6C70;       /* 4.69:1 auf --bg, 5.23:1 auf Weiß */
  --sep: rgba(60, 60, 67, 0.29);
  --fill: rgba(118, 118, 128, 0.12);
  --fill-strong: rgba(118, 118, 128, 0.2);
  --accent: #C2255C;        /* Himbeere: 5.07:1 auf --bg, Weiß darauf 5.66:1 */
  --accent-text: #C2255C;
  --on-accent: #FFFFFF;     /* 5.66:1 auf --accent */
  --sheet-bg: #F2F2F7;
  --sheet-elev: #FFFFFF;
  --seg-on: #FFFFFF;
  --danger: #D70015;
  --glass: rgba(250, 250, 252, 0.72);
  --glass-line: rgba(255, 255, 255, 0.6);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);

  /* Spielfarben: Weiß darauf ≥ 5.18:1 */
  --g-tod: #C2255C;
  --g-never: #5B3CC4;
  --g-rather: #0B7A75;
  --g-either: #B54708;
  --g-bomb: #B42318;
  --g-spy: #1D4ED8;
  --g-ten: #A3218F;
  --g-fact: #2B7A2B;
  --g-heads: #0B6E99;
  --g-liar: #7B2FBE;
  --g-taboo: #8F5B00;
  --g-wolf: #3D4A6B;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --gutter: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.45, .5, 1);
}

/* Hell/Dunkel folgt dem System, bis auf der Website etwas gewählt wurde: dann setzen index.html und
   app.js data-theme (light|dark) und data-mood (wild|spicy) – siehe app.js, „Erscheinungsbild“.
   Dunkel nutzt dieselben Töne wie die Website. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B0612;
    --bg-elev: #1A1224;
    --label: #FFFFFF;
    --label-2: #A1A1A6;     /* 7.78:1 auf --bg, 6.86:1 auf --bg-elev */
    --sep: rgba(84, 84, 88, 0.6);
    --fill: rgba(118, 118, 128, 0.24);
    --fill-strong: rgba(118, 118, 128, 0.36);
    --accent-text: #FF6B9D; /* 7.48:1 auf --bg */
    --danger: #FF6961;
    --glass: rgba(26, 18, 36, 0.7);
    --glass-line: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --sheet-bg: #1A1224;
    --sheet-elev: #261B33;
    --seg-on: #4A3D5C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0612;
  --bg-elev: #1A1224;
  --label: #FFFFFF;
  --label-2: #A1A1A6;     /* 7.78:1 auf --bg, 6.86:1 auf --bg-elev */
  --sep: rgba(84, 84, 88, 0.6);
  --fill: rgba(118, 118, 128, 0.24);
  --fill-strong: rgba(118, 118, 128, 0.36);
  --accent-text: #FF6B9D; /* 7.48:1 auf --bg */
  --danger: #FF6961;
  --glass: rgba(26, 18, 36, 0.7);
  --glass-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --sheet-bg: #1A1224;
  --sheet-elev: #261B33;
  --seg-on: #4A3D5C;
}

@media (prefers-contrast: more) {
  :root { --label-2: #3A3A3C; --sep: rgba(60, 60, 67, 0.6); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --label-2: #C7C7CC; --sep: rgba(200, 200, 205, 0.6); }
}

/* Stimmungen der Website (nur eingebettet): Wild = Neon, Spicy = Glut.
   Akzentflächen tragen dunkle Schrift, weil Weiß dort unter 4,5:1 fiele. */
:root[data-mood="wild"] {
  color-scheme: dark;
  --bg: #140A2E;
  --bg-elev: #22124A;
  --label: #FFFFFF;
  --label-2: #C9B8F0;       /* 10.42:1 auf --bg, 8.18:1 im Sheet */
  --sep: rgba(201, 184, 240, 0.22);
  --fill: rgba(201, 184, 240, 0.14);
  --fill-strong: rgba(201, 184, 240, 0.24);
  --accent: #FF2E93;
  --on-accent: #140A2E;     /* 5.45:1 */
  --accent-text: #FF5CAD;   /* 6.64:1 auf --bg, 5.21:1 im Sheet */
  --glass: rgba(34, 18, 74, 0.7);
  --glass-line: rgba(255, 255, 255, 0.12);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --sheet-bg: #22124A;
  --sheet-elev: #2E1A5C;
  --seg-on: #4A2F86;
}
:root[data-mood="spicy"] {
  color-scheme: dark;
  --bg: #1A0807;
  --bg-elev: #2E0F0B;
  --label: #FFF4EC;
  --label-2: #E8B9A6;       /* 11.02:1 auf --bg, 9.02:1 im Sheet */
  --sep: rgba(232, 185, 166, 0.2);
  --fill: rgba(232, 185, 166, 0.13);
  --fill-strong: rgba(232, 185, 166, 0.22);
  --accent: #FF5A1F;
  --on-accent: #1A0807;     /* 6.23:1 */
  --accent-text: #FF7A45;   /* 7.51:1 auf --bg, 6.15:1 im Sheet */
  --glass: rgba(46, 15, 11, 0.72);
  --glass-line: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --sheet-bg: #2E0F0B;
  --sheet-elev: #3D1611;
  --seg-on: #5A2219;
}

/* Dynamic Type: Safari liefert die Systemtextgröße über -apple-system-body. */
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 10px; }
svg.i { width: 1.4em; height: 1.4em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Navigation bar (scroll edge) ---------- */
.navbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 6px) calc(var(--gutter) + var(--safe-r)) 6px calc(var(--gutter) + var(--safe-l));
  min-height: calc(var(--safe-t) + 50px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  /* Auf breiten Fenstern bündig mit dem Inhalt (max. 760 px) */
  padding-inline: max(calc(var(--gutter) + var(--safe-l)), calc((100% - 760px) / 2 + var(--gutter)));
  background: transparent;
  transition: background .25s, box-shadow .25s;
}
.navbar.scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0.5px 0 var(--sep);
}
.navbar .title { grid-column: 2; font-weight: 600; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.navbar.scrolled .title { opacity: 1; }
.navbar .trailing { grid-column: 3; justify-self: end; }
.textbtn {
  background: none; border: 0; color: var(--accent-text); padding: 10px 4px; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 1rem;
}
.textbtn.strong { font-weight: 600; }
.textbtn.back { margin-left: -8px; gap: 2px; text-decoration: none; }
.textbtn.back svg.i { width: 1.25em; height: 1.25em; stroke-width: 2.4; }

.view { padding: 0 calc(var(--gutter) + var(--safe-r)) calc(110px + var(--safe-b)) calc(var(--gutter) + var(--safe-l)); max-width: 760px; margin: 0 auto; }
.largetitle { font-size: 2rem; font-weight: 700; letter-spacing: .01em; margin: 2px 0 14px; }
.lede { color: var(--label-2); margin: -8px 0 20px; }

/* ---------- Tab bar (Liquid-Glass-Annäherung, nur Funktionsebene) ---------- */
.tabbar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 10px);
  width: min(440px, calc(100% - 32px));
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 5px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--glass-line);
}
.tab {
  border: 0; background: none; border-radius: 999px; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--label); font-size: .62rem; font-weight: 600; letter-spacing: .01em;
}
.tab svg.i { width: 24px; height: 24px; }
.tab[aria-selected="true"] { color: var(--accent-text); background: var(--fill); }
.tab[aria-selected="true"] svg.i { fill: currentColor; fill-opacity: .18; }

/* Desktop: die Leiste hängt direkt unter dem Inhalt statt am Fensterrand und bleibt nur bei
   langen Seiten unten kleben. */
@media (min-width: 700px) and (hover: hover) and (pointer: fine) {
  .view { padding-bottom: 32px; }
  .tabbar { position: sticky; left: auto; transform: none; margin: 0 auto 28px; bottom: calc(var(--safe-b) + 20px); }
}

@media (prefers-reduced-transparency: reduce) {
  .tabbar, .navbar.scrolled, .sheet-head, .toast { background: var(--bg-elev) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}

/* ---------- Spiele-Übersicht ---------- */
.players-row {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--bg-elev); border: 0; border-radius: 16px; padding: 12px 14px; min-height: 64px; margin-bottom: 22px;
}
.players-row .meta { flex: 1; min-width: 0; }
.players-row strong { display: block; font-weight: 600; }
.players-row .meta > span { display: block; color: var(--label-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--label-2); width: 1em; height: 1em; }
.tv-row { color: inherit; text-decoration: none; margin-top: -10px; }
.tv-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--g-either); color: #fff; flex: none; }
.tv-ic svg.i { width: 20px; height: 20px; }
.stack { display: flex; }
.stack .av { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg-elev); }
.stack .av:first-child { margin-left: 0; }
.av {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .82rem; font-family: var(--font-round);
}
.av.empty { background: var(--fill-strong); color: var(--label-2); }

.section-h { font-size: 1.3rem; font-weight: 700; margin: 6px 0 12px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile {
  position: relative; overflow: hidden; text-align: left; border: 0; color: #fff;
  background: var(--c); border-radius: 22px; padding: 16px; min-height: 168px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .2s var(--ease);
}
.tile:active { transform: scale(.97); }
.tile .glyph { position: relative; width: 34px; height: 34px; stroke-width: 2; margin-bottom: 14px; }
.tile h3 { margin-top: auto !important; }
.tile .deco { position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.1); }
.tile .deco::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: rgba(255,255,255,.08); }
.tile h3 { margin: 0; font-family: var(--font-round); font-size: 1.12rem; font-weight: 800; line-height: 1.15; }
.tile p { margin: 0; font-size: .8rem; line-height: 1.25; }
.tile .need { margin-top: 6px; font-size: .72rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.tile.wide { grid-column: 1 / -1; min-height: 132px; }
@media (max-width: 360px) {
  :root { --gutter: 14px; }
  .grid { gap: 10px; }
  .tile { padding: 14px 12px; border-radius: 20px; min-height: 150px; }
  .tile h3 { font-size: 1rem; }
  .tile .glyph { width: 28px; height: 28px; margin-bottom: 10px; }
}
.footnote { color: var(--label-2); font-size: .8rem; text-align: center; margin: 22px 8px 0; }

/* ---------- Listen (inset grouped) ---------- */
.group-h { color: var(--label-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; margin: 22px 16px 7px; }
.group-f { color: var(--label-2); font-size: .8rem; margin: 7px 16px 0; line-height: 1.35; }
.list { list-style: none; margin: 0; padding: 0; background: var(--bg-elev); border-radius: 14px; overflow: hidden; }
.list > li { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; position: relative; }
.list > li + li::before { content: ""; position: absolute; top: 0; right: 0; left: 16px; border-top: 0.5px solid var(--sep); }
.list > li.has-av + li.has-av::before { left: 62px; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--label-2); font-size: .82rem; }
.list .value { color: var(--label-2); }
.rowbtn { width: 100%; background: none; border: 0; text-align: left; padding: 0; min-height: 36px; display: flex; align-items: center; }
.rowbtn.danger { color: var(--danger); }
.iconbtn {
  border: 0; background: none; color: var(--label-2); min-width: 44px; min-height: 44px; margin-right: -10px;
  display: grid; place-items: center; border-radius: 50%;
}
.iconbtn.del { color: var(--danger); }

.addform { display: flex; gap: 10px; align-items: center; background: var(--bg-elev); border-radius: 14px; padding: 6px 6px 6px 16px; }
.addform input {
  flex: 1; min-width: 0; border: 0; background: none; outline: none; min-height: 44px; font-size: 1rem;
}
.addform input::placeholder { color: var(--label-2); }
.pill {
  border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 600;
  min-height: 40px; padding: 0 16px;
}
.pill:disabled { background: var(--fill-strong); color: var(--label-2); }
.empty-state { text-align: center; color: var(--label-2); padding: 34px 20px; }
.empty-state .big { font-size: 2.4rem; display: block; margin-bottom: 6px; }

/* Schalter: eigene Form im Stil der Spielkacheln. Aus = umrandete Spur mit kleinem Knopf,
   An = Akzentfläche, der Knopf wächst nach rechts. */
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute; inset: 0; border-radius: 11px; background: var(--fill);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--label-2) 55%, transparent);
  transition: background .25s, box-shadow .25s;
}
.switch span::after {
  content: ""; position: absolute; top: 8px; left: 8px; width: 14px; height: 14px; border-radius: 5px; background: var(--label-2);
  transition: left .32s var(--spring), top .32s var(--spring), width .32s var(--spring), height .32s var(--spring), background .25s;
}
.switch input:checked + span { background: var(--accent); box-shadow: 0 4px 12px -4px var(--accent); }
.switch input:checked + span::after { top: 4px; left: 24px; width: 22px; height: 22px; border-radius: 8px; background: var(--on-accent); }
.switch input:active + span::after { width: 18px; }
.switch input:checked:active + span::after { width: 26px; left: 20px; }
.switch input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* Segmented control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--fill); border-radius: 10px; padding: 2px; }
.seg button {
  border: 0; background: none; border-radius: 8px; min-height: 36px; font-size: .88rem; font-weight: 500;
}
.seg button[aria-checked="true"] { background: var(--seg-on); font-weight: 600; box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 0 0 .5px rgba(0,0,0,.04); }

/* ---------- Sheet ---------- */
.sheet, .actions { --bg: var(--sheet-bg); --bg-elev: var(--sheet-elev); }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); opacity: 0; transition: opacity .3s; }
.scrim.in { opacity: 1; }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 600px;
  max-height: calc(100% - var(--safe-t) - 12px); display: flex; flex-direction: column;
  background: var(--bg); border-radius: 22px 22px 0 0; box-shadow: var(--shadow);
  transform: translateY(100%); transition: transform .38s var(--ease);
}
.sheet.in { transform: translateY(0); }
.sheet-head {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px 16px 4px; border-radius: 22px 22px 0 0; touch-action: none;
}
.grabber { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 36px; height: 5px; border-radius: 3px; background: var(--fill-strong); border: 0; padding: 0; }
.sheet-head h2 { grid-column: 2; margin: 0; font-size: 1rem; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 8px 16px 12px; -webkit-overflow-scrolling: touch; }
.sheet-foot { padding: 10px 16px calc(var(--safe-b) + 14px); }
.hero-tile { background: var(--c); color: #fff; border-radius: 22px; padding: 18px; display: flex; gap: 14px; align-items: center; margin-top: 6px; }
.hero-tile svg.i { width: 40px; height: 40px; stroke-width: 2; }
.hero-tile h3 { margin: 0; font-family: var(--font-round); font-size: 1.4rem; font-weight: 800; }
.hero-tile p { margin: 2px 0 0; font-size: .86rem; }
.rules { margin: 0; padding-left: 1.2em; line-height: 1.45; }
.rules li { margin: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--fill); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: .88rem; font-weight: 500; }
.chip .av { width: 26px; height: 26px; font-size: .7rem; }
.notice { display: flex; gap: 10px; align-items: flex-start; color: var(--label); background: var(--fill); padding: 12px 14px; border-radius: 14px; font-size: .88rem; margin-top: 12px; }
.notice svg.i { color: var(--accent-text); width: 20px; height: 20px; margin-top: 1px; }

.primary {
  width: 100%; border: 0; border-radius: 16px; min-height: 54px; background: var(--accent); color: var(--on-accent);
  font-size: 1.06rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.primary:disabled { background: var(--fill-strong); color: var(--label-2); }
.primary:not(:disabled):active { filter: brightness(.92); }

/* Action sheet (Bestätigung) */
.actions { position: fixed; z-index: 41; left: 8px; right: 8px; bottom: calc(var(--safe-b) + 8px); max-width: 560px; margin: 0 auto; transform: translateY(120%); transition: transform .35s var(--ease); display: grid; gap: 8px; }
.actions.in { transform: none; }
.actions .box { background: var(--bg-elev); border-radius: 14px; overflow: hidden; }
.actions p { margin: 0; padding: 14px 16px; text-align: center; color: var(--label-2); font-size: .82rem; border-bottom: .5px solid var(--sep); }
.actions button { width: 100%; border: 0; background: var(--bg-elev); min-height: 56px; font-size: 1.1rem; color: var(--accent-text); }
.actions button.destructive { color: var(--danger); }
.actions button.cancel { font-weight: 600; border-radius: 14px; }

/* Toast */
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--safe-b) + 84px); transform: translate(-50%, 20px);
  /* Farben aus den Tokens, damit der Toast in Locker hell/dunkel, Wild und Spicy passt */
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent); color: var(--label);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow), inset 0 0 0 0.5px var(--sep);
  border-radius: 16px; padding: 8px 8px 8px 16px; min-height: 44px; width: max-content; text-align: center; line-height: 1.3;
  display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: var(--accent); color: var(--on-accent); border-radius: 999px; min-height: 34px; padding: 0 14px; font-weight: 600; flex: none; }
.toast.solo { padding-right: 16px; }

/* ---------- Spiel (Vollbild, Inhaltsebene in Spielfarbe) ---------- */
.game {
  position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--c) 74%, #000); color: #fff;
  display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 6px) calc(16px + var(--safe-r)) calc(var(--safe-b) + 14px) calc(16px + var(--safe-l));
  transform: translateY(100%); transition: transform .42s var(--ease), background-color .5s;
}
.game.in { transform: none; }
.game-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 48px; }
.game-top h2 { margin: 0; text-align: center; font-size: 1rem; font-weight: 600; }
.round-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.round-btn svg.i { width: 20px; height: 20px; stroke-width: 2.4; }
.turn { align-self: center; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,.22); border-radius: 999px; padding: 5px 14px 5px 5px; font-weight: 600; }
.turn .av { width: 30px; height: 30px; background: #fff; color: var(--c); }
.stage { flex: 1; display: grid; place-items: center; padding: 18px 0 34px; min-height: 0; }
.card {
  position: relative; width: 100%; max-width: 520px; min-height: min(58vh, 460px);
  border: 0; color: inherit; text-align: left; border-radius: 30px; padding: 28px 26px;
  background: var(--c);
  /* Kartenstapel: zwei angedeutete Karten dahinter, per Schatten statt Extra-Elementen */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18),
    0 12px 0 -8px color-mix(in srgb, var(--c) 86%, #000),
    0 24px 0 -16px color-mix(in srgb, var(--c) 80%, #000),
    0 30px 50px -10px rgba(0,0,0,.3);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.card .eyebrow { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.card .prompt { font-family: var(--font-round); font-size: clamp(1.7rem, 7.4vw, 2.6rem); font-weight: 800; line-height: 1.12; margin: 0; overflow-wrap: break-word; }
.card .prompt.mid { font-size: clamp(1.4rem, 6vw, 2.1rem); }
.card .tap-hint { position: absolute; bottom: 18px; left: 26px; right: 26px; font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.card.enter { animation: cardIn .42s var(--ease) both; }
@keyframes cardIn { from { transform: translateX(46px) rotate(2.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.card.leave { animation: cardOut .22s ease-in both; }
@keyframes cardOut { to { transform: translateX(-70px) rotate(-4deg); opacity: 0; } }

.versus { display: grid; gap: 10px; width: 100%; max-width: 520px; }
.versus .opt {
  border: 0; border-radius: 28px; min-height: 22vh; padding: 22px; color: #fff; text-align: center;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 20px 40px -14px rgba(0,0,0,.35);
  display: grid; place-items: center;
  font-family: var(--font-round); font-weight: 800; font-size: clamp(1.4rem, 6.4vw, 2.1rem); line-height: 1.15;
}
.versus .opt[aria-pressed="true"] { background: #fff; color: var(--c); }
.versus .or { justify-self: center; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; background: rgba(0,0,0,.22); border-radius: 999px; padding: 6px 14px; }

.game-foot { display: grid; gap: 10px; max-width: 520px; width: 100%; margin: 0 auto; }
.hint { text-align: center; font-size: .86rem; line-height: 1.35; margin: 0; }
.btn-white {
  border: 0; border-radius: 18px; min-height: 56px; background: #fff; color: var(--c); font-weight: 700; font-size: 1.06rem;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
}
.btn-ghost { border: 0; border-radius: 18px; min-height: 56px; background: rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 1.06rem; width: 100%; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Bombe */
.fuse { position: relative; width: min(64vw, 280px); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 4px; }
.fuse .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); }
.fuse .core { width: 64%; aspect-ratio: 1; border-radius: 50%; background: rgba(0,0,0,.25); display: grid; place-items: center; text-align: center; padding: 10px; }
.fuse .core svg.i { width: 46%; height: 46%; stroke-width: 1.6; }
.fuse.live .ring { animation: pulse var(--tick, 1s) ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.86); opacity: 1; } 100% { transform: scale(1.12); opacity: 0; } }
.task { text-align: center; }
.task .eyebrow { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.task .prompt { font-family: var(--font-round); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 800; line-height: 1.1; margin: 6px 0 0; }
.boom-word { font-family: var(--font-round); font-weight: 900; font-size: clamp(3.6rem, 20vw, 6rem); line-height: 1; letter-spacing: -.01em; margin: 0; text-align: center; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.live-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; }

/* Spion */
.reveal { text-align: center; display: grid; gap: 8px; }
.reveal .who { font-family: var(--font-round); font-size: clamp(2rem, 9vw, 3rem); font-weight: 800; margin: 0; line-height: 1.1; }
.reveal .big { font-family: var(--font-round); font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 900; margin: 0; line-height: 1.05; overflow-wrap: anywhere; }
.reveal .big.long { font-size: clamp(1.6rem, 7.4vw, 2.6rem); }
.timer { font-family: var(--font-round); font-variant-numeric: tabular-nums; font-size: clamp(3.4rem, 18vw, 5.4rem); font-weight: 800; margin: 0; }
.dots { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.dots i.on { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fuse.live .ring { animation: none; border-color: #fff; }
}
.reveal .hint { font-size: 1rem; }

/* Fakt oder Fake, Seherin */
.verdict {
  justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-round); font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; color: var(--c);
}
.verdict.yes::before { content: "✓"; }
.verdict.no::before { content: "✕"; }
.reveal .verdict { justify-self: center; align-self: center; font-size: 1.3rem; padding: 8px 18px; }
.card .why { margin: 0; font-size: 1rem; line-height: 1.4; opacity: .92; }

/* Wer bin ich?, Verbotene Wörter: Sekunden, große Knöpfe, Ergebnisliste */
.secs { margin: 0; font-family: var(--font-round); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.6rem; }
.heads-live { gap: 18px; }
.heads-live .big { font-size: clamp(2.6rem, 13vw, 4.2rem); }
.duo.tall button { min-height: 96px; font-size: 1.3rem; }
.trio { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 10px; }
.trio button { min-height: 64px; padding: 0 6px; }
.log { list-style: none; margin: 6px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 440px; }
.log li { padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.22); font-weight: 600; font-size: .9rem; opacity: .75; }
.log li.ok { background: #fff; color: var(--c); opacity: 1; }
.scores { align-self: center; margin-top: 10px; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.22); font-weight: 600; font-size: .9rem; }
.scores span { padding: 5px 12px; border-radius: 999px; opacity: .8; }
.scores span.on { background: #fff; color: var(--c); opacity: 1; }
.scores b { font-family: var(--font-round); margin-left: 4px; }
.taboo-card { justify-content: flex-start; }
.taboo-top { display: flex; justify-content: space-between; align-items: center; }
.banned { list-style: none; margin: auto 0 0; padding: 14px 16px; border-radius: 18px; background: rgba(0,0,0,.22); display: grid; gap: 6px; }
.banned li { font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.banned li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(45deg, transparent 44%, currentColor 44% 56%, transparent 56%); opacity: .8; }

/* Werwolf: Drehbuch für die Spielleitung, Namen zum Antippen */
.wolf-stage { grid-template-columns: minmax(0, 1fr); overflow-y: auto; align-items: start; padding-top: 12px; }
.wolf-stage .reveal { width: 100%; max-width: 520px; margin: auto 0; grid-template-columns: minmax(0, 1fr); }
.say { margin: 0; font-family: var(--font-round); font-size: clamp(1.5rem, 6.4vw, 2.1rem); font-weight: 800; line-height: 1.18; text-wrap: balance; }
.names { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; width: 100%; max-width: 520px; margin: 14px auto 0; }
.name-btn {
  border: 0; border-radius: 16px; min-height: 52px; padding: 8px 12px; background: rgba(255,255,255,.18); color: #fff;
  font-weight: 700; font-size: 1rem; overflow-wrap: anywhere;
}
.name-btn:active { background: #fff; color: var(--c); }
.name-btn.quiet { background: transparent; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }

/* ---------- Im Handy-Rahmen der Website (html.embed): nichts scrollt ----------
   Die Ansicht ist genau so hoch wie der Bildschirm, die Spielkacheln teilen sich den Rest.
   Lange Spielerlisten und Sheets scrollen in sich, ohne sichtbare Leiste. */
html.embed, html.embed body { height: 100%; overflow: hidden; }
html.embed * { scrollbar-width: none; }
html.embed ::-webkit-scrollbar { display: none; }
html.embed { --gutter: 16px; }
html.embed #app, html.embed #view { height: 100%; }
html.embed #view { display: flex; flex-direction: column; }
html.embed .navbar { flex: none; min-height: 50px; }
/* Leere Navigationsleiste (ohne Knopf rechts) braucht im Rahmen nur Abstand zur Ecke */
html.embed .navbar:has(.trailing:empty) { min-height: 18px; padding-block: 0; }
html.embed .view { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; padding-bottom: 80px; }
html.embed .view > * { flex: none; }
html.embed .largetitle { font-size: 1.85rem; margin: 0 0 10px; }
html.embed .lede { margin: -6px 0 14px; }
html.embed .players-row { min-height: 54px; padding: 7px 12px; margin-bottom: 8px; }
html.embed .tv-row { margin-top: 0; }
html.embed .section-h { font-size: 1.18rem; margin: 8px 0 8px; }
html.embed .view > .grid { flex: 1 1 auto; min-height: 0; gap: 10px; grid-auto-rows: minmax(0, 1fr); }
html.embed .tile { min-height: 0; padding: 13px 14px; border-radius: 20px; gap: 3px; }
html.embed .tile .glyph { width: 26px; height: 26px; margin-bottom: 0; }
html.embed .tile h3 { font-size: 1.02rem; }
html.embed .tile p { font-size: .76rem; }
html.embed .tile .need { margin-top: 3px; }
/* Als Vorschau zeigt der Rahmen nur die ersten sechs Spiele – die volle Liste gibt es in der App. */
html.embed .tile:nth-child(n+7) { display: none; }
html.embed .footnote { margin-top: 10px; }
html.embed .view > .list { flex: 0 1 auto; min-height: 0; overflow-y: auto; }
html.embed .group-h { margin: 14px 16px 6px; }
html.embed .group-h:first-of-type { margin-top: 4px; }
html.embed .group-f { margin-top: 6px; }
html.embed .list > li { min-height: 48px; padding-block: 6px; }
