/* =============================================================================
 * Myso_44 · theme.css — Zentrales Design-System (§9)
 *
 * „Edel + cozy" — wie ein hochwertiges, ästhetisches Büro: warme Beige-/Holz-
 * töne, ruhiges Grün als Akzent, klare Struktur, weiche (nicht-neon) Schatten.
 * Kein KI-Lila, kein Neon-Glow, keine Gradient-Flächen.
 *
 * Aufbau:
 *   1. Design-Tokens  — strukturelle Tokens in :root, Farb-Tokens je Modus
 *   2. 2 Modi          — Light (Beige/Grün/Eiche) & Dark (Graphit/Walnuss/Grün)
 *   3. Reset & Basis
 *   4. Typografie
 *   5. Hintergrund (Canvas) + Konfetti
 *   6. Komponenten     — Button, Card, Input, Modal, Toast, Badge, Pill,
 *                        Avatar, Player-Row, Option, Podium, Theme-Switch
 *   7. Animationen & Utilities
 * ========================================================================== */

/* -----------------------------------------------------------------------------
 * 1. Strukturelle Tokens (themeunabhängig)
 * -------------------------------------------------------------------------- */
:root {
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --gap:   14px;
  --pad:   24px;

  /* 4pt-Spacing-Skala — konsistente Dichten statt Einzelwerte (--pad == --space-6) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  --blur:  14px;
  --ease:  cubic-bezier(0.22, 0.61, 0.36, 1);   /* ruhiges ease-out */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);   /* kräftiges ease-out — Press/Entrance */
  --t-fast: 0.15s;
  --t:      0.25s;
  --t-slow: 0.4s;

  /* Typo-Skala — feste rem-Leiter (Produkt-UI). Rollenbenannt, ~1.15–1.25 Schritte.
     Wenige Stufen mit klarem Kontrast statt vieler dicht beieinanderliegender Größen. */
  --fs-2xs:    0.6875rem;  /* 11px — Mikro-Tags, Badges, Mini-Labels */
  --fs-xs:     0.75rem;    /* 12px — Labels, Eyebrows, Sektions-Header */
  --fs-sm:     0.8125rem;  /* 13px — kompakte UI, Pills, Status, Meta */
  --fs-md:     0.875rem;   /* 14px — Sekundärtext, Hilfetext, Fehler */
  --fs-base:   1rem;       /* 16px — Fließtext, Inputs, Buttons, Optionen */
  --fs-lg:     1.125rem;   /* 18px — Lead-Text, h3 */
  --fs-xl:     1.375rem;   /* 22px — h2, Wortmarke */
  --fs-2xl:    1.75rem;    /* 28px — h1 */
  --fs-display:2.6rem;     /* 41.6px — Podium-Krone / große Ziffern */

  --lh-tight: 1.15;        /* Display & Überschriften */
  --lh-snug:  1.35;        /* kompakte UI-Blöcke */
  --lh-body:  1.55;        /* Fließtext / hell-auf-dunkel */

  --tracking-caps:    0.18em;   /* Versal-Eyebrows & Sektions-Labels */
  --tracking-display: -0.02em;  /* Fraunces-Display: editorial-eng (minimalist-ui) */

  /* Schriftfamilien — Display = warme, edle Serife; Body = ruhige Grotesk */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* semantische Statusfarben — warm & cozy, über beide Modi konstant.
     Erfolg leicht teal-grün, damit es sich vom Akzent-Grün abhebt. */
  --ok:      #3f9b6e;
  --ok-rgb:  63, 155, 110;
  --ok-soft: rgba(var(--ok-rgb), 0.15);
  --bad:      #c0594b;
  --bad-rgb:  192, 89, 75;
  --bad-soft: rgba(var(--bad-rgb), 0.14);
  --gold:    #c79a3f;
  --gold-rgb: 199, 154, 63;
  --off:     #8a8170;
}

/* -----------------------------------------------------------------------------
 * 2. Modi — Light (warmes Beige, Grün, helle Eiche) & Dark (Graphit, Walnuss,
 *    Dunkelgrün). Pro Modus: Flächen, Akzente, Text, Rahmen, Schatten.
 *      --ac    = Akzent (Grün)         --ac-2  = Holz-Akzent (Eiche/Walnuss)
 *      --on-ac = Textfarbe auf Akzent  --ac-rgb = Akzent als RGB-Tripel
 * -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg:   #ece3d1;
  --bg-2: #e0d4bd;
  --sf:   #fbf7ee;
  --field: #f6f1e6;        /* helles Eingabefeld — Placeholder erreicht AA */
  --ac:    #4a6847;        /* leicht abgedunkelt: Akzent-Text erreicht AA (4.9:1 auf --bg) */
  --ac-2:  #b5895a;
  --ac-rgb: 74, 104, 71;
  --on-ac:  #f7f3e9;

  --tx:     #2c2a24;
  --tx-dim: #6d6453;
  --tx-mute:#9a907a;
  --br:        rgba(54, 45, 30, 0.12);
  --br-strong: rgba(54, 45, 30, 0.22);

  --shadow:    0 8px 24px rgba(54, 45, 30, 0.10);
  --shadow-lg: 0 20px 48px rgba(54, 45, 30, 0.16);

  /* dezente, warme Flächen — flach, kein Glas-Verlauf */
  --sf-grad: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.22));
  --sf-soft: rgba(54, 45, 30, 0.035);

  --wood-rgb: 168, 124, 78;   /* Eiche — für dezente Holz-Textur */
  /* „Glow" = weicher, FARBLOSER Schatten (kein Neon) */
  --glow:        0 8px 22px rgba(54, 45, 30, 0.12);
  --glow-strong: 0 14px 34px rgba(54, 45, 30, 0.18);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.55);   /* „von oben beleuchtet" — Premium-Oberkante */
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg:   #1e1e20;
  --bg-2: #161617;
  --sf:   #27262a;
  --field: #161617;        /* gesunkenes dunkles Eingabefeld */
  --ac:    #8fb07a;
  --ac-2:  #8a5a3b;
  --ac-rgb: 143, 176, 122;
  --on-ac:  #1c1d18;

  --tx:     #ece6da;
  --tx-dim: #a39b8c;
  --tx-mute:#6f685c;
  --br:        rgba(255, 255, 255, 0.09);
  --br-strong: rgba(255, 255, 255, 0.17);

  --shadow:    0 10px 30px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.52);

  --sf-grad: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.006));
  --sf-soft: rgba(255, 255, 255, 0.03);

  --wood-rgb: 138, 90, 59;    /* Walnuss — für dezente Holz-Textur */
  --glow:        0 12px 30px rgba(0, 0, 0, 0.50);
  --glow-strong: 0 18px 44px rgba(0, 0, 0, 0.62);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* abgeleitete Akzent-Tokens (gelten für beide Modi via --ac-rgb).
   Kein Neon mehr: „--glow" ist jetzt ein weicher, gerichteter Schatten. */
:root {
  --ac-soft: rgba(var(--ac-rgb), 0.14);
  --ac-line: rgba(var(--ac-rgb), 0.38);
  --ac-faint:rgba(var(--ac-rgb), 0.07);
}

/* -----------------------------------------------------------------------------
 * 3. Reset & Basis
 * -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; }   /* je Modus überschrieben (siehe [data-theme]) */

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-optical-sizing: auto;
  transition: background var(--t-slow) var(--ease);
}

::selection { background: var(--ac-soft); color: var(--tx); }

a { color: var(--ac); text-decoration: none; }

/* Tastatur-Fokus: sichtbarer Ring NUR bei Keyboard-Navigation (nicht Maus/Touch).
   Inputs/Selects/Textareas haben ihren eigenen Fokus-Glow → kein doppelter Ring. */
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }

.hidden { display: none !important; }

/* dünne, ruhige Scrollbar passend zum Theme */
* { scrollbar-width: thin; scrollbar-color: var(--br-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--br-strong); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }

/* -----------------------------------------------------------------------------
 * 4. Typografie
 * -------------------------------------------------------------------------- */
.font-display { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; }
.font-mono    { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Überschriften-Skala — feste rem-Stufen (28 / 22 / 18). Seiten dürfen pro
   Kontext überschreiben; dies ist der kohärente Default + enges Display-Leading. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }

.brand {
  font-family: 'Russo One', system-ui, sans-serif;   /* Wortmarke — die einzige Russo-One-Stelle */
  font-size: var(--fs-xl);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--tx);
  white-space: nowrap;
}
.brand .ac { color: var(--ac); }

.kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--tx-dim);
}

/* -----------------------------------------------------------------------------
 * 5. Hintergrund (ein einziges Canvas) + Konfetti (ein einziges Canvas)
 *    Bewusst genau EIN bg- und EIN fx-Canvas pro Seite (§9:
 *    doppelte <canvas>-Bugs vermeiden). Die Animation liest --ac live aus.
 * -------------------------------------------------------------------------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  opacity: .9;
}
/* weicher, themengekoppelter Glow-Schleier über dem Partikel-Canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.82'%20numOctaves='2'%20stitchTiles='stitch'/%3E%3CfeColorMatrix%20type='saturate'%20values='0'/%3E%3C/filter%3E%3Crect%20width='100%25'%20height='100%25'%20filter='url(%23n)'%20opacity='0.07'/%3E%3C/svg%3E") repeat,
    radial-gradient(1100px 640px at 84% -10%, rgba(var(--wood-rgb), 0.06), transparent 62%),
    linear-gradient(180deg, transparent 55%, var(--bg-2));
  background-size: 200px 200px, auto, auto;
  transition: background var(--t-slow) var(--ease);
}
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

/* -----------------------------------------------------------------------------
 * 6. Komponenten
 * -------------------------------------------------------------------------- */

/* Icons (aus icons.js injiziert) — erben Farbe & Strichstärke vom Kontext */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }
.icon svg { width: 100%; height: 100%; display: block; }

/* --- Card / Glas-Fläche --- */
.card {
  background: var(--sf-grad);
  border: 1px solid var(--br);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: var(--edge), var(--shadow);
}

/* --- Buttons --- */
button, .btn {
  font-family: inherit;
  font-weight: 600;
  font-size: var(--fs-base);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  color: var(--tx);
  background: transparent;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t) var(--ease),
              background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease);
}
button:active, .btn:active { transform: scale(0.97); }
button:disabled, .btn:disabled { opacity: .4; cursor: default; box-shadow: none; transform: none; }
button .icon, .btn .icon { font-size: 1.1em; }

.btn-primary {
  background: var(--ac);
  color: var(--on-ac);
  border-color: transparent;
  box-shadow: var(--edge), var(--glow);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover:not(:disabled) { box-shadow: var(--glow-strong); transform: translateY(-1px); }
}

.btn-ghost { background: transparent; color: var(--tx-dim); border-color: var(--br); }
.btn-ghost:hover:not(:disabled) { color: var(--tx); border-color: var(--ac-line); }

.btn-ok { background: var(--ok); color: #06241a; }
@media (hover: hover) and (pointer: fine) {
  .btn-ok:hover:not(:disabled) { box-shadow: var(--glow); transform: translateY(-1px); }
}

.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad-soft); }
.btn-danger:hover:not(:disabled) { border-color: var(--bad); }

.btn-block { width: 100%; }

/* --- Inputs --- */
label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--tx-dim);
  margin: 0 0 6px;
}
input[type=text], input[type=password], input[type=number], input:not([type]) {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--br);
  background: var(--field);
  color: var(--tx);
  font-family: inherit;
  font-size: var(--fs-base);
  outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
input::placeholder { color: var(--tx-dim); }
/* Einheitlicher Fokus-Glow für alle Formularelemente (statt nur input). */
input:focus, select:focus, textarea:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-soft); }

.err { color: var(--bad); font-size: var(--fs-md); min-height: 1.1em; margin-top: 10px; }

/* --- Modal / Overlay --- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 9, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: overlay-in var(--t) var(--ease);
}
.modal {
  max-width: 560px;
  width: 100%;
  padding: 34px;
  animation: modal-in var(--t-slow) var(--ease);
}

/* --- Toast --- */
#toast-stack {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--sf);
  border: 1px solid var(--br-strong);
  box-shadow: var(--shadow-lg);
  color: var(--tx);
  font-size: var(--fs-md);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  animation: toast-in var(--t) var(--ease);
}
.toast.leaving { animation: toast-out var(--t) var(--ease) forwards; }
.toast .icon { font-size: 1.15em; }
.toast.ok    .icon { color: var(--ok); }
.toast.err   .icon { color: var(--bad); }
.toast.info  .icon { color: var(--ac); }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--br);
  color: var(--tx-dim);
  white-space: nowrap;
}
.badge .icon { font-size: 1em; }
.badge.ok  { color: var(--ok);  border-color: rgba(var(--ok-rgb), 0.4);  background: var(--ok-soft); }
.badge.no  { color: var(--bad); border-color: rgba(var(--bad-rgb), 0.4); background: var(--bad-soft); }
.badge.ac  { color: var(--ac);  border-color: var(--ac-line); background: var(--ac-soft); }

/* --- Pill (Status / Fortschritt) --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-sm);
  color: var(--tx-dim);
  border: 1px solid var(--br);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}
.pill b { font-family: 'JetBrains Mono', monospace; color: var(--ac); font-weight: 700; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--off); flex: none; transition: background var(--t); }
.dot.live { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }

/* --- Avatar --- */
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  color: #fff;
  background: linear-gradient(140deg, var(--ac), var(--ac-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* --- Player-Row (Lobby / Scoreboard, geteilt zwischen Host & Player) --- */
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--br);
  border-radius: 12px;
  background: var(--sf-soft);
  animation: pop var(--t) var(--ease);
  transition: border-color var(--t), box-shadow var(--t), opacity var(--t);
}
.player.offline { opacity: .5; }
.player.me   { border-color: var(--ac-line); background: var(--ac-soft); }
.player.lead { border-color: var(--ac); box-shadow: 0 0 0 1px var(--ac-soft), var(--glow); }
.player .pname { flex: 1; font-weight: 500; }
.player .rank  { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; color: var(--tx-dim); width: 1.5em; text-align: right; }
.player .pts   { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ac); }
.player .pstatus { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-sm); color: var(--tx-dim); }
/* Siege-Badge der Session-Bestenliste (E3): Pokal + Anzahl. */
.player .wins { display: inline-flex; align-items: center; gap: 5px; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--tx-dim); font-size: var(--fs-md); }
.player .wins .icon { color: var(--ac); display: inline-flex; }
.player .wins .icon svg { width: 15px; height: 15px; }

/* --- Session-Bestenliste (E3, dauerhaft in der Lobby — Host & Player) --- */
.session-board { margin-top: 18px; }
.session-board h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--tx-dim); font-weight: 600; margin: 0 0 10px;
}
.session-board h3 .icon { color: var(--ac); display: inline-flex; }
.session-board ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.session-board .empty { color: var(--tx-dim); font-size: var(--fs-md); padding: 6px 2px; }

/* --- Lobby-Chat (E4, ephemer — Host & Player) ---
 * Nur in der Lobby sichtbar. Nachrichten faden client-seitig über ~30 s aus
 * (zuerst sichtbar, dann .fading → Opazität 0) und werden danach entfernt.
 * Showmaster-Nachrichten sind farblich (Akzent) + namentlich (Badge) abgehoben. */
.chat { margin-top: 18px; border-top: 1px solid var(--br); padding-top: 16px; }
.chat h3 {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--tx-dim); font-weight: 600; margin: 0 0 10px;
}
.chat h3 .icon { color: var(--ac); display: inline-flex; }
.chat-log {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  max-height: 240px; overflow-y: auto;
}
.chat-empty { color: var(--tx-dim); font-size: var(--fs-md); padding: 4px 2px; }
.chat-msg {
  padding: 8px 12px;
  border: 1px solid var(--br);
  border-radius: 12px;
  background: var(--sf-soft);
  animation: pop var(--t) var(--ease);
  transition: opacity 4s linear;
}
.chat-msg.fading { opacity: 0; }
.chat-msg .chat-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.chat-msg .chat-name { font-weight: 600; font-size: var(--fs-sm); color: var(--tx-dim); }
.chat-msg .chat-text { font-size: var(--fs-md); color: var(--tx); word-break: break-word; overflow-wrap: anywhere; }
/* Showmaster (role host): Akzent-Rahmen + hervorgehobener Name + Badge. */
.chat-msg.host { border-color: var(--ac-line); background: var(--ac-soft); }
.chat-msg.host .chat-name { color: var(--ac); }
.chat-badge {
  font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  color: var(--ac); background: var(--ac-soft);
  border: 1px solid var(--ac-line); border-radius: 999px; padding: 1px 8px;
}
.chat-input { display: flex; gap: 8px; }
/* 16px (var(--fs-base)) statt darunter: verhindert iOS-Auto-Zoom beim Fokus (mobiles Publikum). */
.chat-input input { flex: 1; min-width: 0; padding: 10px 12px; font-size: var(--fs-base); }
.chat-input button { flex: none; padding: 10px 14px; }
.chat-input button .icon { font-size: 1.05em; }

/* --- Spielerklärung + Bereit-Gate (E1, Host & Player) --- */
.intro-lead h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: var(--fs-lg); }
.intro-lead h3 .icon { color: var(--ac); }
.intro-lead p { color: var(--tx-dim); margin: 0 0 18px; font-size: var(--fs-md); max-width: 62ch; }
.intro-example { position: relative; padding: 18px; border: 1px solid var(--br); border-radius: 16px; background: var(--sf-soft); margin-bottom: 16px; }
.intro-example .ie-tag { display: inline-block; font-size: var(--fs-2xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--ac); background: var(--ac-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; }
.intro-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.point-pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--tx-dim); border: 1px solid var(--br); border-radius: 999px; padding: 5px 12px; background: var(--sf-soft); }
.point-pill b { font-family: 'JetBrains Mono', monospace; color: var(--ac); }
.intro-timer { display: flex; align-items: center; gap: 8px; color: var(--tx-dim); font-size: var(--fs-md); margin-bottom: 16px; }
.intro-timer .icon { color: var(--ac); flex: none; }

/* Bereit-Gate (Host) */
.ready-gate { border-top: 1px solid var(--br); padding-top: 14px; }
.ready-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); color: var(--tx-dim); margin-bottom: 10px; }
.ready-head .icon { color: var(--ac); }
.ready-head b { font-family: 'JetBrains Mono', monospace; color: var(--tx); }
.ready-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ready-list li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ok); border: 1px solid transparent; background: var(--ok-soft); border-radius: 999px; padding: 4px 10px; }
.ready-list li .icon { color: var(--ok); }

/* „Alle bereit" hebt den Start-Button hervor (D6) — klickbar bleibt er immer. */
.ready-go { box-shadow: 0 0 0 3px var(--ok-soft), var(--glow); }

/* Bereit-Meta + aktiver Bereit-Button (Player) */
.ready-meta { text-align: center; color: var(--tx-dim); font-size: var(--fs-sm); margin-top: 10px; }
.btn-primary.is-ready { background: var(--ok); color: #06241a; }

.count {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--ac);
  background: var(--ac-soft);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: var(--fs-md);
  font-variant-numeric: tabular-nums;
}

.empty { color: var(--tx-dim); font-size: var(--fs-md); text-align: center; padding: 28px 0; }

/* --- Option (QuoteQuest-Antwort) --- */
.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--br);
  border-radius: 12px;
  background: var(--sf-soft);
  color: var(--tx);
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 400;
  box-shadow: none;
  justify-content: flex-start;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease),
              box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.opt .key {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--tx-dim);
  width: 1.3em;
  flex: none;
  text-align: center;
}
button.opt:hover:not(:disabled) { border-color: var(--ac-line); transform: none; }
.opt.sel { border-color: var(--ac); background: var(--ac-soft); box-shadow: 0 0 0 2px var(--ac-soft); }
.opt.sel .key { color: var(--ac); }
.opt.correct {
  border-color: var(--ok);
  background: var(--ok-soft);
  animation: reveal-correct var(--t-slow) var(--ease);
}
.opt.correct .key { color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .key { color: var(--bad); }
.opt:disabled { cursor: default; }

/* --- E6: Live-Vote-Verteilung (nur Host-Dashboard) --- */
/* Zähler + Balken je Option. Der Balken (.opt-fill) liegt hinter dem Inhalt; der
   eigentliche Text wird via z-index darübergehoben. Bleibt beim Reveal sichtbar. */
.opt.tallied { position: relative; overflow: hidden; }
.opt.tallied > span:not(.opt-fill) { position: relative; z-index: 1; }
.opt-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
  background: var(--ac-soft); z-index: 0;
  transform: scaleX(0); transform-origin: left; will-change: transform;
  transition: transform var(--t) var(--ease);
}
.opt.correct .opt-fill { background: var(--ok-soft); }
.opt-count {
  margin-left: auto; flex: none;
  font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 700;
  color: var(--ac); min-width: 1.6em; text-align: right;
}
.opt.correct .opt-count { color: var(--ok); }

/* --- Timer --- */
.timer {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ac);
  min-width: 2.5em;
  text-align: center;
  transition: color var(--t);
}
.timer.urgent { color: var(--bad); animation: pulse 1s ease-in-out infinite; }

/* --- Podium --- */
.crown { color: var(--gold); filter: drop-shadow(0 1px 2px rgba(54, 45, 30, 0.3)); }
.podium-crown {
  display: grid;
  place-items: center;
  font-size: var(--fs-display);
  color: var(--gold);
  margin: 10px 0 2px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
  animation: crown-rise var(--t-slow) var(--ease-out);
}
.podium-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 8px; }
.podium-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1px solid var(--br); border-radius: 12px;
  background: var(--sf-soft);
  animation: pop var(--t) var(--ease) backwards;
}
.podium-list li:nth-child(1) { animation-delay: .04s; }
.podium-list li:nth-child(2) { animation-delay: .10s; }
.podium-list li:nth-child(3) { animation-delay: .16s; }
.podium-list li.p1 { border-color: var(--ac); background: var(--ac-soft); box-shadow: var(--glow); }
.podium-list .rank { font-family: var(--font-display); font-weight: 600; color: var(--ac); width: 1.6em; }
.podium-list .nm   { flex: 1; text-align: left; font-weight: 500; }
.podium-list .sc   { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-weight: 700; }

/* --- Theme-Switch (Palette-Dropdown) --- */
.theme-switch { position: relative; }
.theme-switch > button {
  padding: 8px;
  border: 1px solid var(--br);
  border-radius: 10px;
  color: var(--tx-dim);
  background: var(--sf-soft);
}
.theme-switch > button:hover { color: var(--ac); border-color: var(--ac-line); }
.theme-switch > button .icon { font-size: 1.15rem; }
/* Lautsprecher-Umschalter (Ton an/aus) — gleiche Optik wie der Theme-Button. */
.sound-toggle {
  padding: 8px;
  border: 1px solid var(--br);
  border-radius: 10px;
  color: var(--tx-dim);
  background: var(--sf-soft);
  cursor: pointer;
}
.sound-toggle:hover { color: var(--ac); border-color: var(--ac-line); }
.sound-toggle.muted { color: var(--tx-dim); opacity: 0.7; }
.sound-toggle .icon { font-size: 1.15rem; }
.theme-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  width: 184px;
  background: var(--sf);
  border: 1px solid var(--br-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transform-origin: top right;   /* Dropdown skaliert vom Trigger (oben rechts), nicht aus der Mitte */
  animation: modal-in var(--t) var(--ease);
}
.theme-menu.hidden { display: none; }
.theme-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-2xs);
  color: var(--tx-dim);
}
.theme-opt:hover { background: var(--sf-soft); }
.theme-opt.active { border-color: var(--swatch); color: var(--tx); }
.theme-opt .swatch {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(140deg, var(--swatch), var(--swatch-2));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

/* -----------------------------------------------------------------------------
 * 7. Animationen & Utilities
 * -------------------------------------------------------------------------- */
@keyframes pop        { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-in   { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-in   { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out  { to   { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes pulse      { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes crown-rise { from { opacity: 0; transform: translateY(14px) scale(.8); } to { opacity: 1; transform: none; } }

/* Spannungsvolles Reveal: korrekte Option pulst kurz im OK-Glow auf */
@keyframes reveal-correct {
  0%   { box-shadow: 0 0 0 0 var(--ok-soft);   transform: scale(1); }
  40%  { box-shadow: 0 0 0 6px var(--ok-soft); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 2px var(--ok-soft); transform: scale(1); }
}

/* Reveal-Stagger für Ergebniszeilen (per inline --i index) */
.reveal-row { animation: pop var(--t) var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* -----------------------------------------------------------------------------
 * F6 — Lobby-Emotes (Reaktions-Leiste + aufsteigende Bursts)
 *   Ephemer & spoilerfrei (E1-Emote): erscheinen in Lobby + Bühne. Reine
 *   Allowlist-Emojis; der Burst steigt ~2.4 s auf und wird danach entfernt (Cap).
 * -------------------------------------------------------------------------- */
.emote-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.emote-bar.compact { gap: 6px; }
.emote-btn {
  font-size: 1.25rem; line-height: 1; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--br); background: var(--sf-soft); cursor: pointer;
  transition: transform .12s var(--ease), border-color .2s, background .2s;
}
.emote-bar.compact .emote-btn { font-size: 1.05rem; padding: 6px 8px; border-radius: 10px; }
/* Hover-Lift nur auf echten Zeigern — auf Touch (Player/Stage) klebt er sonst nach dem Tippen. */
@media (hover: hover) and (pointer: fine) {
  .emote-btn:hover { transform: translateY(-2px) scale(1.08); border-color: var(--ac-line); background: var(--ac-soft); }
}
.emote-btn:active { transform: scale(.94); }

/* Touch-Geräte (coarse pointer): geteilte Icon-Buttons auf ≥44px Trefferfläche
   (WCAG 2.5.5). Auf Maus/Trackpad (fine) bleibt die kompakte Größe. */
@media (pointer: coarse) {
  .theme-switch > button,
  .emote-btn,
  .chat-input button {
    min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
}

/* Fixierte Burst-Ebene (unten rechts) — überlagert die aktuelle Ansicht. */
.emote-layer {
  position: fixed; right: 18px; bottom: 18px; width: 130px; height: 46vh;
  pointer-events: none; z-index: 60; overflow: hidden;
}
.emote-burst {
  position: absolute; bottom: 0; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: emote-rise 2.4s var(--ease) forwards;
  will-change: transform, opacity;
}
.emote-burst .em { font-size: 2rem; line-height: 1; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.emote-burst .who {
  font-size: var(--fs-2xs); color: var(--tx-dim); background: var(--sf);
  padding: 1px 6px; border-radius: 999px; border: 1px solid var(--br);
  max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@keyframes emote-rise {
  0%   { opacity: 0; transform: translate(-50%, 10px) scale(.6); }
  14%  { opacity: 1; transform: translate(-50%, -8px) scale(1.1); }
  30%  { transform: translate(calc(-50% + var(--dx, 0px)), -28vh) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx2, 0px)), -44vh) scale(.92); }
}

/* =============================================================================
   Ranking / Tierlist (rk) — geteilte Render-Bausteine (Host + Player + Bühne).
   Nutzt die Design-Tokens; funktioniert in Light & Dark. Surface-spezifisches
   Chrome (Cockpit, Board-Editor, mobiles Layout, Bühnen-Größe) liegt je Seite inline.
   ========================================================================== */

/* Element-Kachel (Bild + Kurztext) */
.rk-el {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 6px; border-radius: var(--radius-sm);
  background: var(--sf); border: 1px solid var(--br);
  color: var(--tx); font: inherit; font-size: var(--fs-sm); text-align: left;
  cursor: pointer; transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  max-width: 220px;
}
.rk-el:hover:not(.static):not(:disabled) { border-color: var(--ac-line); transform: translateY(-1px); }
.rk-el.static, .rk-el:disabled { cursor: default; }
.rk-el.mark { border-color: var(--ac); box-shadow: 0 0 0 2px var(--ac-soft); }
.rk-el-img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sf-soft); }
.rk-el-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tier-Balken (farbiges Label + Inhalt) */
.rk-tierlist { display: flex; flex-direction: column; gap: 6px; }
.rk-bar {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--br); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--sf-soft); min-height: 52px;
}
.rk-bar-label {
  flex: none; width: 66px; display: flex; align-items: center; justify-content: center;
  background: var(--tier, #7f7f7f); color: #16130d; font-family: var(--font-display);
  font-weight: 600; font-size: var(--fs-lg); text-align: center; padding: 6px;
  text-shadow: 0 1px 1px rgba(255,255,255,.35); word-break: break-word;
}
.rk-bar-body, .rk-bar-items { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; align-items: center; padding: 7px; flex: 1; min-width: 0; }

/* Reveal — Rahmen + Konsens-Banner */
.rk-reveal { display: flex; flex-direction: column; gap: 14px; }
.rk-reveal-intro { text-align: center; color: var(--tx-dim); padding: 24px; }
.rk-reveal-kicker, .rk-rev-tier-label { font-family: var(--font-display); }
.rk-agree-banner {
  align-self: center; margin-top: 4px; padding: 8px 18px; border-radius: var(--radius-pill);
  background: var(--ac-soft); color: var(--ac); border: 1px solid var(--ac-line);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg);
}

/* Reveal — nach Element */
.rk-rev-item { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.rk-rev-item-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rk-rev-item-head.tappable { cursor: pointer; }
.rk-rev-progress { font-size: var(--fs-xs); color: var(--tx-mute); text-transform: uppercase; letter-spacing: .06em; }
.rk-rev-item-img { width: 120px; height: 120px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--br); }
.rk-rev-item-name { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 600; }
.rk-rev-item-sub { color: var(--tx-dim); font-size: var(--fs-md); }
.rk-rev-places { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 440px; }
.rk-rev-place { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--br); border-radius: var(--radius-sm); background: var(--sf); }
.rk-rev-places.agree .rk-rev-place { border-color: var(--ac-line); background: var(--ac-faint); }
.rk-rev-place-name { font-weight: 600; }
.rk-tier-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; padding: 4px 12px; border-radius: var(--radius-pill); color: #16130d; font-weight: 700; font-size: var(--fs-sm); text-shadow: 0 1px 1px rgba(255,255,255,.35); }
.rk-tier-tag.none { background: var(--sf-soft); color: var(--tx-mute); text-shadow: none; }

/* Reveal — nach Tier */
.rk-rev-tier { display: flex; flex-direction: column; gap: 12px; }
.rk-rev-tier-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-radius: var(--radius-sm); background: var(--tier, #7f7f7f); }
.rk-rev-tier-label { font-size: var(--fs-2xl); font-weight: 700; color: #16130d; text-shadow: 0 1px 1px rgba(255,255,255,.35); }
.rk-rev-tier-head .rk-rev-progress { color: #16130d; opacity: .8; }
.rk-rev-cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 10px; }
.rk-rev-col { border: 1px solid var(--br); border-radius: var(--radius-sm); background: var(--sf-soft); padding: 10px; transition: opacity var(--t); }
.rk-rev-col.hidden { opacity: .5; }
.rk-rev-col-name { font-weight: 600; margin-bottom: 8px; text-align: center; }
.rk-rev-col-items { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 40px; }
.rk-rev-empty { color: var(--tx-mute); font-size: var(--fs-sm); font-style: italic; }
.rk-rev-hidden { font-size: var(--fs-2xl); color: var(--tx-mute); font-weight: 700; }

/* Endansicht — alle Listen nebeneinander */
.rk-allboards { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.rk-allboard { border: 1px solid var(--br); border-radius: var(--radius); background: var(--sf-soft); padding: 12px; min-width: 220px; }
.rk-allboard-name { font-family: var(--font-display); font-weight: 600; text-align: center; margin-bottom: 8px; font-size: var(--fs-lg); }

/* Detail-Overlay (Bilder-Roulette) */
.rk-detail-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 16, 10, .55); backdrop-filter: blur(3px); }
.rk-detail-card { width: min(560px, 94vw); max-height: 90vh; overflow: auto; background: var(--bg); border: 1px solid var(--br-strong); border-radius: var(--radius-lg); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.35); text-align: center; }
.rk-detail-close { position: absolute; top: 16px; right: 18px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--br); background: var(--sf); color: var(--tx); font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background var(--t), transform var(--t); }
.rk-detail-close:hover { background: var(--ac-soft); transform: scale(1.06); }
.rk-detail-name { font-family: var(--font-display); font-size: var(--fs-2xl); margin-bottom: 12px; }
.rk-roulette { position: relative; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.rk-roulette-img { max-width: 100%; max-height: 46vh; border-radius: var(--radius); border: 1px solid var(--br); object-fit: contain; }
.rk-roulette-none { color: var(--tx-mute); padding: 30px; }
.rk-roulette-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--br); background: var(--sf); color: var(--tx); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rk-roulette-nav.prev { left: 0; }
.rk-roulette-nav.next { right: 0; }
.rk-roulette-count { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: var(--fs-xs); color: var(--tx); background: var(--sf); border: 1px solid var(--br); padding: 2px 10px; border-radius: var(--radius-pill); }
.rk-detail-desc { color: var(--tx-dim); margin-top: 14px; line-height: 1.5; text-align: left; }
.rk-detail-foot { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* -----------------------------------------------------------------------------
 * Gespeicherte Rankings — Ansicht (Verwaltung, Spieler, Bühne), Verwaltungs-
 * Karten, „wird gezeigt"-Leiste und Speichern-Formular in der Ranking-Endansicht.
 * -------------------------------------------------------------------------- */
.svr { display: flex; flex-direction: column; gap: 16px; }
.svr-head { display: flex; flex-direction: column; gap: 4px; }
.svr-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--ac); }
.svr-kicker svg { width: 16px; height: 16px; }
.svr-name { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.1; }
.svr-meta { color: var(--tx-dim); font-size: var(--fs-md); }
.svr-desc { margin: 2px 0 0; color: var(--tx-dim); max-width: 70ch; }
.svr.is-stage { padding: clamp(16px, 3vw, 44px); gap: clamp(14px, 2vw, 28px); }
.svr.is-stage .svr-kicker { font-size: clamp(1rem, 1.6vw, 1.4rem); }
.svr.is-stage .svr-kicker svg { width: 1.2em; height: 1.2em; }
.svr.is-stage .svr-name { font-size: clamp(2rem, 4.4vw, 3.8rem); }
.svr.is-stage .svr-meta, .svr.is-stage .svr-desc { font-size: clamp(1rem, 1.7vw, 1.5rem); }
.svr.is-stage .rk-allboard-name { font-size: clamp(1.1rem, 1.8vw, 1.7rem); }
.svr.is-stage .rk-el { font-size: clamp(.95rem, 1.5vw, 1.4rem); max-width: none; }
.svr.is-stage .rk-el-img { width: clamp(34px, 3.4vw, 52px); height: clamp(34px, 3.4vw, 52px); }
.svr.is-stage .rk-bar-label { width: clamp(66px, 7vw, 110px); font-size: clamp(1.2rem, 2.4vw, 2.2rem); }

.svd-lead { color: var(--tx-dim); margin: 0 0 14px; max-width: 72ch; }
.svd-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.svd-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--br); border-radius: var(--radius); background: var(--sf-soft); }
.svd-card.is-showing { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.svd-thumbs { display: flex; gap: 6px; min-height: 40px; }
.svd-thumbs img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--br); }
.svd-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); line-height: 1.2; }
.svd-meta { color: var(--tx-dim); font-size: var(--fs-sm); }
.svd-people { display: flex; flex-wrap: wrap; gap: 6px; }
.svd-people span { padding: 2px 10px; border-radius: var(--radius-pill); border: 1px solid var(--br); background: var(--sf); font-size: var(--fs-xs); }
.svd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.svd-actions button { padding: 8px 12px; font-size: var(--fs-sm); }
.svd-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 16px; }
.svd-showbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--ok); background: var(--ok-soft); font-weight: 600; }
.svd-showbar .grow { flex: 1; min-width: 12rem; }
.svd-showbar svg { width: 18px; height: 18px; color: var(--ok); }
#savedShowBar { margin-top: var(--pad); }

.rk-save { display: flex; flex: 1 1 420px; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.rk-save input { flex: 1 1 220px; min-width: 0; }
.rk-saved-note { display: inline-flex; flex: 1 1 auto; align-items: center; gap: 8px; color: var(--ok); font-weight: 600; }
.rk-saved-note svg { width: 18px; height: 18px; }
/* Gespeicherte Ansicht: nicht antippbare Chips voll deckend zeigen (Button-Disabled-Stil aufheben). */
.svr .rk-el:disabled { opacity: 1; }
