/* ════════════════════════════════════════════════════════════
   SHADOW SALOON – Haupt-Stylesheet
   Western-Noir Theme
════════════════════════════════════════════════════════════ */

:root {
  --ink:        #0d0a07;
  --dark-wood:  #1a1208;
  --mid-wood:   #2e1f0e;
  --warm-wood:  #4a2f14;
  --gold:       #c8922a;
  --gold-light: #e8b84b;
  --amber:      #d4620a;
  /* --smoke: warmer Sand-Beige für Sekundärtexte (Labels, Hints, Counter).
     Aufgehellt von #8a7a6a → #a89784, damit der Kontrast auf dunklem
     Saloon-Background komfortabel AA-konform ist (~6:1 statt 4.5:1).
     Atmosphäre bleibt warm/gedämpft. */
  --smoke:      #a89784;
  --parchment:  #e8d5b0;
  --old-paper:  #c9b48a;
  --blood-red:  #8b1a1a;
  --red-light:  #c0352a;
  --green-felt: #1a3d2b;
  --green-ok:   #2d7a4a;
  --shadow:     #0a0806;
  /* Generischer Rahmen-Ton (gedämpftes Gold). WAR NIRGENDS DEFINIERT → jedes
     `border: 1px solid var(--border)` (Admin-Shell, Toolbar-Trennlinien, Filter-
     Felder, Pager, Podium-/Report-Box) war eine ungültige Deklaration und rendert
     GAR keinen Rahmen — deshalb fehlte der äußere Kasten der Variante-B-Shell. */
  --border:     rgba(200, 146, 42, .22);
  --btn-radius: 6px;            /* SS-Button-Standard: einheitlicher Eckenradius (Weich) für alle echten Aktions-Buttons */

  /* Per-Modus-Akzent: defaultet auf Gold, wird in .mode-* überschrieben. */
  --accent:       var(--gold);
  --accent-light: var(--gold-light);

  /* Body-Font (SS-0113): Inter für UI-Lesbarkeit + Tabular-Zahlen, geladen
     via Google Fonts in App.razor. System-Stack als Fallback. Headings nutzen
     Rye (siehe h1/h2/h3 + .card-title/.lobby-code/etc. mit expliziter
     font-family: 'Rye'). Special Elite wurde komplett entfernt. */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
}

/* Pro-Spiel-Akzentfarben: greifen über die mode-* Klassen am Game-Screen-
   Wurzel, am Lobby-Wrapper sowie an Modus-Pillen in Profil/Statistik. */
.mode-schattenspiel { --accent: #5a2f4a; --accent-light: #9a5a8a; }
.mode-hangman       { --accent: #7a3a1a; --accent-light: #b8693a; }
.mode-tabu          { --accent: #a8553a; --accent-light: #d68a72; }
.mode-musikquiz     { --accent: #a3324a; --accent-light: #d65c78; }
/* SS-0182 Wissensquiz: Petrol/Blaugrün — bewusst der einzige KÜHLE Akzent, hebt sich klar
   von den vier warmen Tönen ab. (Kandidaten-Mockup: docs/mockups/wissensquiz-accent.html) */
.mode-wissensquiz   { --accent: #1f6f6a; --accent-light: #3fa89f; }
/* SS-0187 Memory: Jade/Spieltisch-Grün (Mockup: docs/mockups/ss0187-memory-akzentfarbe.html) */
.mode-memory        { --accent: #1f8a6d; --accent-light: #37b894; }
/* SS-0188 Durak: Zaren-Violett (Mockup: docs/mockups/ss0188-durak-akzentfarbe.html) */
.mode-durak         { --accent: #4a2f6e; --accent-light: #7d5bc0; }
/* SS-0190 Skat: Eichenlaub-Grün (Stammtisch-Modus) */
.mode-skat          { --accent: #3f6b32; --accent-light: #7faa55; }
/* SS-0191 Doppelkopf: Cognac/Bernstein (Stammtisch-Modus) */
.mode-doppelkopf    { --accent: #9a5a1e; --accent-light: #d18a3e; }
/* SS-0192 Poker: Granatrot (Stammtisch-Modus) */
.mode-poker         { --accent: #8e2c3b; --accent-light: #c85a6a; }
/* SS-0183 Seeschlacht: Marine-/Stahlblau (Mockup: docs/mockups/ss0183-schiffe-akzentfarbe.html) */
.mode-seeschlacht   { --accent: #2b4f74; --accent-light: #4d7eab; }

/* SS-0190 Skat: Reizleiter-Chips + Result-Zeilen */
.skat-rung { font-size: 11px; padding: 3px 9px; border-radius: 5px; background: rgba(8,5,2,.4); border: 1px solid var(--border); color: var(--smoke); }
.skat-rung.done { opacity: .5; text-decoration: line-through; }
.skat-rung.now { background: color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent-light); color: var(--accent-light); font-weight: 700; }
.skat-resrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13px; color: var(--old-paper); }
.skat-resrow:last-child { border-bottom: none; }
.skat-resrow b { color: var(--parchment); }

/* SS-0191 Doppelkopf: Re/Kontra-Parteiboxen im Result */
.doko-party { flex: 1 1 200px; border-radius: 12px; padding: 11px 13px; background: rgba(8,5,2,.4); border: 1px solid var(--border); }
.doko-party.re { border-color: #7faa55; }
.doko-party.kontra { border-color: #c85a6a; }
.doko-party-h { font-family: 'Rye', serif; font-size: 15px; margin-bottom: 7px; }
.doko-party.re .doko-party-h { color: #7faa55; }
.doko-party.kontra .doko-party-h { color: #c85a6a; }
.doko-pmember { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--old-paper); padding: 3px 0; }
.doko-pmember .pts { color: var(--parchment); font-weight: 600; }

/* SS-0192 Poker: Stack-Chip, Aktionsleiste, Raise-Slider */
.pk-stack { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-light); font-weight: 700; }
/* Live-Handstärke neben „Ihre Hand" (z.B. „Paar Buben"). */
.pk-handlabel {
  margin-left: 10px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--accent-light); background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); white-space: nowrap;
}
.pk-stack::before { content: ""; width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  background: radial-gradient(circle at 35% 30%, var(--gold-light), var(--gold)); box-shadow: 0 0 0 1.5px #6b4a14; }
.pk-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 6px;
  padding: 12px; border-radius: 12px; background: rgba(8,5,2,.4); border: 1px solid var(--border); }
/* SS-0169: Basis-.btn ist display:block + width:100%. In den Karten-Aktionsleisten sollen die
   Buttons inline + auf Inhaltsbreite + kompakt sein (sonst Vollbreit-„Slabs"). */
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.card-actions .btn,
.pk-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; flex: 0 0 auto; min-width: 104px; padding: 9px 18px;
  font-size: 13px; letter-spacing: .06em; border-radius: var(--btn-radius, 6px);
}

/* SS-0193: Karten-Tische kompakter — Sektionen dichter, kleinere Mitte, kompakter „Spiel beenden"
   (gescoped auf .card-board, damit Durak/Seeschlacht unberührt bleiben). */
/* Das ganze Spiel sitzt in EINEM gerahmten Panel (wie der Header-„card"): akzentfarbiger
   Rand + dunkler Verlauf, damit nichts lose auf dem Hintergrund schwebt. */
.card-board {
  gap: 8px; position: relative;
  background: linear-gradient(135deg, rgba(22,14,6,.96), rgba(14,9,3,.98));
  border: 1px solid rgba(200,146,42,.28);
  border-radius: 0 0 4px 4px; padding: 16px 18px;
  box-shadow: 0 18px 55px rgba(0,0,0,.55), inset 0 1px 0 rgba(200,146,42,.09);
}
/* Direkt an die Header-Karte angedockt (wie .lobby-actions): Header unten offen,
   Brett oben eckig, gemeinsame 1px-Trennlinie, kein Spalt. */
.lobby-redesign .lobby-header + .card-board { border-radius: 0 0 4px 4px; }
.card-board .durak-seats { gap: 8px; }
.card-board .durak-table { padding: 12px 16px; }
.card-board .durak-hand-head { margin-bottom: 4px; }
.card-board .durak-hand { padding-top: 6px; }
.card-board .host-section { border-top: none; padding-top: 0; margin-top: 4px; }
.card-board .abort-btn { width: auto; max-width: 220px; margin: 0 auto; padding: 6px 16px; font-size: 12px; }
/* Gemeinsame verankerte Fußzeile (Lobby = Game): Strip am unteren Rand des Brett-Panels,
   links Statusinfo (cab-status), rechts die Kontext-Aktion (Start-Button bzw. Spiel-Aktionen).
   Nichts schwebt frei; die innere .card-actions/.pk-actions-Reihe behält ihre kompakten Maße. */
.card-board .card-actions-bar {
  margin: 10px -18px -16px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px 14px; flex-wrap: wrap; padding: 12px 18px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  background: rgba(0, 0, 0, .28); border-radius: 0 0 4px 4px;
}
.card-board .card-actions-bar:empty { display: none; }
.card-board .card-actions-bar .cab-status {
  display: flex; align-items: center; gap: 8px; flex: 1 1 220px; min-width: 0;
  font-size: 12.5px; color: var(--old-paper); line-height: 1.3;
}
.card-board .card-actions-bar .cab-status b { color: var(--parchment); font-weight: 600; }
.card-board .card-actions-bar .card-actions { margin: 0; flex: 0 0 auto; }
/* Poker-Aktionen im Footer: KEIN innerer Rahmen (das Brett-Panel rahmt schon) und volle
   Footer-Breite — die Buttons spreizen sich über den ganzen Streifen statt in einer Box. */
.card-board .card-actions-bar .pk-actions {
  margin: 0; flex: 1 1 100%; width: 100%;
  padding: 0; border: none; background: none; border-radius: 0;
  justify-content: space-between;
}

/* ════ SS: Vereinheitlichte Hülle — Mock-only-Regeln real gezogen (Plan Phase 0,
   Ref docs/mockups/stammtisch-cardtable-layout.html). Gilt für ALLE Spiele in der
   gemeinsamen GameShell (Lobby + Spiel). ════ */
/* Breiten-Cap: Brett deckungsgleich mit dem 880px-Header (.lobby-header) — width:100%,
   sonst schrumpft das Panel im zentrierten screen-game-Flex auf Inhaltsbreite (Grid kollabiert). */
.card-board { width: 100%; max-width: 880px; margin-left: auto; margin-right: auto; }
/* Verschachteltes (entrahmtes) Karten-Panel füllt die Hülle ohne eigenen Cap. */
.card-board .card-board { max-width: none; }
/* Kein Doppelrahmen: innere .card / Steckbrief im Accent-Panel entrahmen. */
.card-board .card { background: none; border-color: transparent; box-shadow: none; }
.card-board .card::before, .card-board .card::after { display: none; }
.card-board .stat-box.wanted-poster { background: none; border-color: transparent; box-shadow: none; }
/* Innere Spiel-Container in die Hülle einpassen. */
.card-board .screen-voting { background: none; min-height: 0; padding: 0; }
.card-board .hangman-layout, .card-board .see-wrap, .card-board .mq-card,
.card-board .hangman-word-card, .card-board .memory-board-card { margin: 0; }
/* Seeschlacht: „Deine Flotte" + „Zielgewässer" nebeneinander (sonst Umbruch im schmaleren Panel). */
.card-board .see-main { flex-wrap: nowrap; justify-content: center; gap: 14px; padding: 12px; align-self: stretch; }
.card-board .see-main > div { min-width: 0; }
.card-board .see-targets { justify-content: center; }
/* Break-/Podium-/Result-Screens: Höhe/Zentrierung + Entrahmung (eigene Rahmen/✦ raus). */
.card-board .screen-result { min-height: 0; padding: 4px 0; }
.card-board .break-stage, .card-board .podium-wrapper { min-height: 0; margin: 0 auto; }
.card-board .break-stage, .card-board .podium-wrapper, .card-board .card-break { background: none; border: none; box-shadow: none; }
.card-board .break-stage::before, .card-board .break-stage::after { display: none; }
/* Podium-Statistik: schlanke Accent-Scrollbar + mitlaufende Überschrift bei vielen Runden. */
.card-board .podium-stats {
  max-height: 460px; overflow-y: auto; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 60%, transparent) transparent;
}
.card-board .podium-stats::-webkit-scrollbar { width: 7px; }
.card-board .podium-stats::-webkit-scrollbar-track { background: transparent; }
.card-board .podium-stats::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 52%, transparent); border-radius: 999px; }
.card-board .podium-stats::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--accent) 80%, transparent); }
.card-board .podium-stats .section-label { position: sticky; top: 0; z-index: 2; margin: 0 0 8px; padding: 2px 0 6px; background: #130d06; }
/* In-Game: die Spiel-Komponenten rendern ihren eigenen screen-game/screen-break-Wrapper INNERHALB
   der gemeinsamen GameShell-card-board — neutralisieren (kein zweiter Saloon-Hintergrund/Panel). */
.card-board .screen-game, .card-board .screen-break { background: none; min-height: 0; padding: 0; }
/* Kartenspiele bringen ein eigenes „durak-board card-board" mit → verschachteltes Panel entrahmen,
   damit nur die äußere GameShell den Accent-Rand zeichnet (kein Doppelrahmen). */
.card-board .card-board { border: none; background: none; box-shadow: none; padding: 0; margin: 0; }
/* In-Game-Abbruch läuft jetzt zentral über das Header-✕ → die komponenteneigenen
   „Spiel beenden"-Buttons (host-section/abort-btn) in der Hülle ausblenden. */
.card-board .host-section, .card-board .abort-btn { display: none; }
/* Poker-Setzleiste: kein eigener Innenrahmen im Accent-Panel (kein Doppelrahmen). */
.card-board .pk-actions { background: none; border: none; padding: 0; }

.pk-raise { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.pk-raise-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--old-paper); }
.pk-raise-top b { font-family: 'Rye', serif; font-size: 16px; color: var(--gold-light); }
.pk-raise input[type=range] { width: 100%; accent-color: var(--accent); }
.pk-quick { display: flex; gap: 6px; }
.pk-quick .qbet { cursor: pointer; font-size: 11px; padding: 3px 10px; border-radius: 999px; background: rgba(8,5,2,.5);
  border: 1px solid var(--border); color: var(--old-paper); }
.pk-quick .qbet:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* SS-0193 Deck-Skin-Wähler (Bildkarten-Buchstaben) am Karten-Tisch */
.deck-skin-select { display: inline-flex; gap: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.deck-skin-select .dss { background: rgba(8,5,2,.4); border: none; border-right: 1px solid var(--border); color: var(--smoke);
  font-family: var(--font-body); font-size: 11px; padding: 4px 9px; cursor: pointer; line-height: 1; }
.deck-skin-select .dss:last-child { border-right: none; }
.deck-skin-select .dss.on { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-light); font-weight: 600; }
.deck-skin-select .dss:hover:not(.on) { color: var(--old-paper); }

/* ════════════════════════════════════════════════════════════
   Modal v2 — einheitliche Basis-Komponente
   Greift via <Modal>-Komponente in Components/Shared/Modal.razor.
   Die alten Modal-Wrapper-Klassen (.modal-overlay, .modal-backdrop,
   .modal-content*, .modal-header/body/footer/close, .tdm-modal/-head/-close/-body,
   .history-modal*, .player-profile-modal, .mode-info-modal, .rules-modal,
   .matchmaking-modal, .help-modal/-body, .mini-dialog, .create-lobby-modal)
   wurden im Mai 2026 entfernt (~308 Zeilen). Body-/Inhalts-Klassen wie
   .tdm-hero, .player-profile-info, .join-dialog-* etc. leben weiter und
   werden direkt im <Modal>-BodyContent-Slot verwendet.
═══════════════════════════════════════════════════════════════ */
.modal-overlay-v2 {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  /* backdrop-filter entfernt: verursachte GPU-Repaint auf jedem Animations-Frame
     (SS-0171 Perf-Messung: presentation delay dominiert, blur unnötig teuer) */
  z-index: 1000;
  /* SS-0110: align-items:flex-start + overflow-y:auto + margin:auto am Kind statt
     align-items:center. Behebt das iOS-Safari-Hochformat-Problem (fixed + backdrop-
     filter + flex-Zentrierung ließ das Modal nach unten rechts springen) und scrollt
     bei sehr hohen Modals sauber, ohne oben abzuschneiden. Auf Desktop unverändert
     zentriert (margin:auto). */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  animation: modalV2FadeIn .05s ease-out;
}
@keyframes modalV2FadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-v2 {
  background: linear-gradient(to bottom, var(--mid-wood) 0%, var(--ink) 100%);
  border: 1px solid rgba(200,146,42,.3);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-height: calc(100vh - 40px);
  margin: auto;   /* SS-0110: zentriert vertikal wenn Platz, sonst scrollt das Overlay */
}
.modal-v2-sm { max-width: 440px; }
.modal-v2-md { max-width: 580px; }
.modal-v2-lg { max-width: 760px; }

.modal-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(200,146,42,.18);
  background: rgba(0,0,0,.25);
  flex-shrink: 0;
  /* Wrap auf Mobile: wenn der Header-Inhalt (z.B. Title + HeaderContent + Close)
     nicht in eine Zeile passt, dürfen Elemente auf die nächste Zeile umbrechen,
     statt überzulaufen oder zu überlappen. Auf Desktop ohne Effekt, da der
     Inhalt komfortabel reinpasst. */
  flex-wrap: wrap;
}
.modal-v2-title {
  font-family: 'Rye', cursive;
  font-size: 17px;
  color: var(--gold-light);
  letter-spacing: .5px;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.modal-v2-title-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  /* Emoji/Glyph-Vertikalausgleich: Emoji-Glyphen sitzen optisch hoch in ihrer
     Line-Box (mehr Luft nach unten als oben), während die Rye-Title-Caps
     tief im Line-Box stehen (Cap-Height nahe Baseline). flex align-items:center
     fluchtet die Line-Box-Mitten, nicht die optischen Glyphen-Mitten — daher
     wirkt das Icon ohne Korrektur ca. 2px über dem Title. translateY bügelt
     das aus. line-height:1 macht die Icon-Box zusätzlich tight, damit der
     Nudge konsistent bleibt. */
  transform: translateY(2px);
}
.modal-v2-title-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.modal-v2-title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-v2-subtitle {
  font-size: 11px;
  color: var(--smoke);
  font-style: italic;
  letter-spacing: 0;
  margin-top: 2px;
}

.modal-v2-close {
  background: transparent;
  border: 1px solid rgba(168,151,132,.25);
  color: var(--smoke);
  width: 28px;
  height: 28px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  flex-shrink: 0;
  transition: all .15s;
  padding: 0;
}
.modal-v2-close:hover {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(200,146,42,.08);
}

.modal-v2-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-v2-footer {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid rgba(200,146,42,.18);
  background: rgba(0,0,0,.25);
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.modal-v2-footer-vertical {
  flex-direction: column;
  align-items: stretch;
}
.modal-v2-footer-vertical .btn {
  width: 100%;
}

/* ── SS-0017: Confirm-Switch — Info-Karte der bestehenden Lobby ────────── */
.switch-lobby-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(8,5,2,.55);
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 4px 0 14px;
}
.switch-lobby-code {
  font-family: 'Rye', cursive;
  font-size: 18px;
  letter-spacing: .22em;
  color: var(--gold-light);
  background: rgba(8,5,2,.9);
  border: 1px solid var(--gold);
  padding: 5px 12px;
  border-radius: 3px;
  white-space: nowrap;
}
.switch-lobby-meta { min-width: 0; }
.switch-lobby-game { color: var(--parchment); font-weight: 600; }
.switch-lobby-sub  { color: var(--smoke); font-size: 12px; margin-top: 2px; }
.switch-role-chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .04em;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 2px;
  border: 1px solid rgba(200,146,42,.4);
  color: var(--gold-light);
}
.switch-host-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--old-paper);
  background: rgba(139,26,26,.12);
  border-left: 2px solid var(--amber);
  padding: 8px 11px;
  border-radius: 0 3px 3px 0;
}
.switch-host-note span:first-child { flex-shrink: 0; }

/* ─── Hero-Stage: zentrales Spiel-Element bekommt Bühne ─────────────────
   Greift auf den Hero-Cards der vier Spiele:
   .secret-word-card (Schattenspiel-Crew, Tabu-RoleReveal),
   .hangman-word-card (Hangman-Playing),
   .tabu-word-display (Tabu-Erklärer-Playing).
   Spotlight-Glow in Akzentfarbe + ✦-Eck-Ornamente (via .stage-corner spans)
   + größere, dramatischere Hero-Typo. */

.secret-word-card,
.hangman-word-card,
.tabu-word-display,
.tabu-reveal-word-card,
.mq-card {
  position: relative;
  container-type: inline-size;
}
.secret-word-card::before,
.hangman-word-card::before,
.tabu-word-display::before,
.tabu-reveal-word-card::before,
.mq-card::before {
  content: '';
  position: absolute;
  inset: -14px;
  background: radial-gradient(ellipse at center 45%, var(--accent) 0%, transparent 60%);
  opacity: .22;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.secret-word-card > *,
.hangman-word-card > *,
.tabu-word-display > *,
.tabu-reveal-word-card > *,
.mq-card > * { position: relative; z-index: 1; }

.stage-corner {
  position: absolute;
  font-size: 14px;
  color: var(--accent-light);
  font-family: 'Times New Roman', serif;
  line-height: 1;
  opacity: .8;
  pointer-events: none;
  z-index: 2;
}
.stage-corner-tl { top: 6px; left: 8px; }
.stage-corner-tr { top: 6px; right: 8px; }
.stage-corner-bl { bottom: 6px; left: 8px; }
.stage-corner-br { bottom: 6px; right: 8px; }

/* ─── Western-Avatar (prozedural, deterministisch aus Name-Hash) ──────
   Verwendet vom Avatar.razor-Komponente. Drei Hut-Varianten, drei
   Schnauzer-Varianten, zwei Augen-Stile → 18 Kombinationen.
   Vier Größen Sm/Md/Lg/Xl. */

.avatar {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  --av-size: 28px;
  --hat-color: #1a0f06;
  width: var(--av-size);
  height: var(--av-size);
  /* SS-0016: rund clippen → prozedurales Porträt ist ein sauberer Kreis wie das
     Foto; die Hut-Ecken des quadratischen Kastens ragen nicht mehr aus dem Ring. */
  border-radius: 50%;
  overflow: hidden;
}
.avatar-sm { --av-size: 20px; }
.avatar-md { --av-size: 28px; }
.avatar-lg { --av-size: 44px; }
.avatar-xl { --av-size: 60px; }
.avatar-xxl { --av-size: 104px; }

/* SS-0016: hochgeladenes Porträt — liegt über dem prozeduralen (gleiches Maß),
   rund & deckend. onerror entfernt das <img> bei 404 → prozedurales bleibt. */
.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.5);
  background: #2a1a0c;
  /* Versteckt bis onload bestätigt, dass die Datei existiert; bei 404 hält
     onerror es versteckt → prozedurales Porträt bleibt sichtbar. */
  visibility: hidden;
}

/* SS-0169: Team-Logo (eckig-rund; Platzhalter 🛡 + optionales Bild darüber). */
.team-logo {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #5a3a1f, #241608);
  border: 1px solid rgba(200,146,42,.4);
}
.team-logo-sm { width: 40px; height: 40px; font-size: 20px; border-radius: 8px; }
.team-logo-md { width: 64px; height: 64px; font-size: 30px; }
.team-logo-lg { width: 88px; height: 88px; font-size: 44px; }
.team-logo-ph  { color: rgba(232,213,176,.55); line-height: 1; }
.team-logo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }

/* SS-0169: Team-Übersicht (/Teams) */
.teams-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.teams-search  { flex: 1; min-width: 180px; max-width: 320px; }
.teams-create-btn { margin-left: auto; }
/* SS-0169: Die Basis-.btn ist display:block + width:100% + hintergrundlos. In der
   Team-UI sollen die Buttons inline + auf Inhaltsbreite + kompakter sein. */
.teams-toolbar .btn,
.team-row .btn,
.team-hero-actions .btn,
.team-admin-actions .btn,
.team-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: auto; flex: 0 0 auto; padding: 9px 16px; font-size: 13px; letter-spacing: .06em;
}
/* Buttons OHNE Farb-Modifier (Suchen, Ansehen, Logo ändern, Befördern, Zurück)
   erben sonst die hintergrundlose Basis-.btn → weißer <button>-Default bzw. lila
   <a>-Link. Hier explizit als Ghost stylen; Gold-/Rot-Buttons sind ausgenommen. */
.teams-toolbar .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]),
.team-row .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]),
.team-hero-actions .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]),
.team-admin-actions .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]),
.team-member-actions .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]),
.team-back {
  background: transparent;
  border: 1px solid rgba(200,146,42,.32);
  color: var(--old-paper);
  text-decoration: none;
}
.teams-toolbar .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]):hover,
.team-row .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]):hover,
.team-hero-actions .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]):hover,
.team-admin-actions .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]):hover,
.team-member-actions .btn:not([class*="btn-gold"]):not([class*="btn-ghost-red"]):not([class*="btn-red"]):hover,
.team-back:hover {
  border-color: var(--gold); color: var(--gold-light); background: rgba(200,146,42,.05);
}
.teams-list { display: flex; flex-direction: column; }
.team-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid rgba(200,146,42,.1); }
.team-row:last-child { border-bottom: none; }
.team-row-main { flex: 1; min-width: 0; }
.team-row-name { color: var(--parchment); font-size: 14px; }
.team-row-desc { color: var(--smoke); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* SS-0169: Teamseite (/Team/{id}) */
.team-hero { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.team-hero-main { flex: 1; min-width: 200px; }
.team-hero-name { font-size: 22px; margin: 0; text-align: left; }
.team-hero-desc { margin: 4px 0; }
.team-hero-meta { font-size: 12px; }
.team-hero-actions { display: flex; align-items: center; }
.team-hero-note { font-size: 12px; }
.team-sub { color: var(--gold); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; margin: 16px 0 6px; }
.team-sub-first { margin-top: 0; }
.team-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 540px) { .team-stats-grid { grid-template-columns: repeat(2, 1fr); } }
.team-stat { background: rgba(8,5,2,.45); border: 1px solid rgba(200,146,42,.16); border-radius: 5px; padding: 12px 10px; text-align: center; }
.team-stat-val { display: block; font-family: 'Rye', cursive; color: var(--gold-light); font-size: 20px; }
.team-stat-mode { font-size: 15px; }
.team-stat-lbl { display: block; color: var(--smoke); font-size: 11px; margin-top: 3px; }
.team-members { display: flex; flex-direction: column; }
.team-member-row { display: flex; align-items: center; gap: 11px; padding: 8px 4px; border-bottom: 1px solid rgba(200,146,42,.08); }
.team-member-row:last-child { border-bottom: none; }
.team-member-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.team-member-name { color: var(--parchment); font-size: 13.5px; }
.team-req-meta { font-size: 11px; }
.team-member-actions { display: flex; gap: 7px; flex-shrink: 0; }
.team-role-badge { font-size: 10px; letter-spacing: .03em; padding: 1px 8px; border-radius: 10px; border: 1px solid rgba(200,146,42,.22); color: var(--smoke); }
.team-role-admin { background: rgba(200,146,42,.16); border-color: rgba(200,146,42,.6); color: var(--gold-light); }
.team-admin-box { border-color: rgba(200,146,42,.5); margin-top: 16px; background: rgba(200,146,42,.05); }
.team-admin-title { font-size: 14px; }
.team-admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* SS-0191-Folge: Team-Beschreibung-Inline-Editor (Teamadmins). */
.team-desc-current { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.team-desc-current .btn { width: auto; flex: 0 0 auto; }
.team-desc-edit { display: flex; flex-direction: column; gap: 8px; }
.team-desc-textarea { width: 100%; resize: vertical; min-height: 60px; }
.team-desc-edit-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.team-desc-count { margin-right: auto; font-size: 12px; }

.team-back { margin-top: 10px; }
.team-mine { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.team-mine-main { flex: 1; min-width: 0; }
.team-mine-name { color: var(--parchment); font-size: 14px; }

/* SS-0016: Avatar-Bereich im Profil (Vorschau + Upload/Entfernen) */
.avatar-edit         { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.avatar-ring         { border: 2px solid rgba(200,146,42,.35); border-radius: 50%; padding: 3px; display: inline-flex; flex-shrink: 0; }
.avatar-edit-body    { flex: 1; min-width: 220px; }
.avatar-edit-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
/* SS-0171: kompakte Inline-Buttons (überschreibt .btn-Base: voll-breit/Rye/groß). */
.avatar-edit-actions .btn {
  width: auto; padding: 8px 16px; font-size: 12px; letter-spacing: .06em;
  text-align: center; box-sizing: border-box; cursor: pointer;
}
.avatar-file-input   { display: none; }
.avatar-locked-note  {
  display: flex; gap: 8px; align-items: flex-start;
  color: var(--smoke); font-size: 12.5px;
  background: rgba(200,146,42,.07); border: 1px solid rgba(200,146,42,.18);
  border-radius: 4px; padding: 10px 12px; max-width: 460px;
}

/* SS-0016: Zuschneide-Editor (Modal). Die Stage zeigt das Bild (per JS als
   absolut positioniertes <img> eingefügt + per Pan/Zoom verschoben); ::before
   dunkelt alles außerhalb des Kreises ab, ::after zeichnet den gestrichelten
   Kreis-Rahmen. Beide pointer-events:none, damit das Ziehen durchgeht. */
.crop-stage {
  position: relative;
  width: 300px; height: 300px;
  margin: 0 auto;
  background: #241608;
  border-radius: 4px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage::before {
  content: ''; position: absolute; inset: 0;
  box-shadow: 0 0 0 999px rgba(8,5,2,.62);
  border-radius: 50%;
  pointer-events: none; z-index: 2;
}
.crop-stage::after {
  content: ''; position: absolute; inset: 0;
  border: 1.5px dashed rgba(232,184,75,.7);
  border-radius: 50%;
  pointer-events: none; z-index: 3;
}
.zoom-row { display: flex; align-items: center; gap: 10px; margin: 14px 2px 2px; color: var(--smoke); font-size: 13px; }
.zoom-row input[type=range] { flex: 1; accent-color: var(--gold); }
.crop-hint { display: block; text-align: center; margin-top: 6px; }

/* SS-0016: Avatar oben im Spieler-Profil-Modal (zentriert). */
.player-profile-avatar { display: flex; justify-content: center; margin-bottom: 14px; }

/* Gesicht: warmer Hautton, leicht gradient */
.avatar-face {
  position: absolute;
  left: calc(var(--av-size) * .14);
  top: calc(var(--av-size) * .28);
  width: calc(var(--av-size) * .72);
  height: calc(var(--av-size) * .72);
  border-radius: 50%;
  background: linear-gradient(180deg, #c9a880 0%, #a08560 100%);
  border: 1px solid rgba(0,0,0,.5);
}

/* Hut: rechteckig mit Krempe (::before) */
.avatar-hat {
  position: absolute;
  left: calc(var(--av-size) * .04);
  top: 0;
  width: calc(var(--av-size) * .92);
  height: calc(var(--av-size) * .42);
  background: var(--hat-color);
  border: 1px solid rgba(0,0,0,.6);
  border-radius: 2px 2px 50% 50% / 2px 2px 30% 30%;
}
.avatar-hat::before {
  content: '';
  position: absolute;
  left: calc(var(--av-size) * .14);
  bottom: -1px;
  width: calc(var(--av-size) * .64);
  height: calc(var(--av-size) * .11);
  background: inherit;
  border-radius: 2px;
}

/* Hut-Varianten: Farbe */
.avatar-hat-cowboy   { --hat-color: #1f140a; }
.avatar-hat-sheriff  { --hat-color: linear-gradient(180deg, #c9a070, #8a6840); }
.avatar-hat-stranger { --hat-color: #3a2614; }

/* Augen */
.avatar-eyes {
  position: absolute;
  left: calc(var(--av-size) * .32);
  top: calc(var(--av-size) * .54);
  width: calc(var(--av-size) * .36);
  height: calc(var(--av-size) * .07);
  display: flex;
  justify-content: space-between;
}
.avatar-eyes::before, .avatar-eyes::after {
  content: '';
  background: var(--ink);
  border-radius: 50%;
  width: calc(var(--av-size) * .07);
  height: calc(var(--av-size) * .07);
}
.avatar-eyes-slits::before, .avatar-eyes-slits::after {
  width: calc(var(--av-size) * .11);
  height: calc(var(--av-size) * .04);
  border-radius: 1px;
}

/* Schnauzer */
.avatar-mustache {
  position: absolute;
  background: var(--ink);
  border-radius: 50%;
}
.avatar-mustache-thick .avatar-mustache {
  left: calc(var(--av-size) * .28);
  top: calc(var(--av-size) * .74);
  width: calc(var(--av-size) * .44);
  height: calc(var(--av-size) * .11);
}
.avatar-mustache-thin .avatar-mustache {
  left: calc(var(--av-size) * .32);
  top: calc(var(--av-size) * .74);
  width: calc(var(--av-size) * .36);
  height: calc(var(--av-size) * .07);
  opacity: .85;
}

/* ─── Wanted-Poster: Sidebar im Western-Steckbrief-Stil ──────────────
   Greift via .stat-box.wanted-poster — Score-Sidebar während Hangman/Tabu/
   Musikquiz. Atmosphärischer Tausch der nüchternen Box gegen ein
   Steckbrief-Layout (Parchment-Header, doppelte Trennlinie, Avatar pro Zeile). */
.wanted-poster {
  background:
    radial-gradient(ellipse at center top, rgba(201,180,138,.06) 0%, transparent 70%),
    rgba(74,47,20,.32);
  border: 1px solid rgba(201,180,138,.22);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.4);
  padding: 12px 12px 10px;
}
.wanted-poster .wanted-header {
  text-align: center;
  font-family: 'Rye', cursive;
  font-size: 13px;
  color: var(--old-paper);
  letter-spacing: .22em;
  padding-bottom: 4px;
  border-bottom: 2px double rgba(201,180,138,.3);
  margin-bottom: 4px;
}
.wanted-poster .wanted-sub {
  text-align: center;
  font-size: 9px;
  color: var(--smoke);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.wanted-poster .wanted-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border-bottom: 1px dotted rgba(201,180,138,.18);
}
.wanted-poster .wanted-row:last-child { border-bottom: none; }
.wanted-poster .wanted-row.answered {
  background: rgba(45,122,74,.06);
}
.wanted-poster .wanted-row.active {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-bottom-color: var(--accent-light);
}
.wanted-poster .sidebar-player-name,
.wanted-poster .sidebar-player-name-me {
  flex: 1;
  font-size: 13px;
}
.wanted-poster .sidebar-player-status {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 14px;
}

/* ─── Phase C: Animationen für Übergänge und Highlights ─────────────
   Halten sich an CSS-only-Patterns (kein JS), damit es mit Blazor
   Server + SignalR sauber zusammenspielt. Triggern, sobald sich
   Klassen am DOM ändern (durch Re-Render). */

/* Aktiver Spieler in turn-list: dezentes Pulsen */
.turn-row.active {
  animation: activePulse 2.2s ease-in-out infinite;
}
@keyframes activePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0,0,0,0); border-color: rgba(200,146,42,.28); }
  50%      { box-shadow: 0 0 16px color-mix(in srgb, var(--accent-light) 35%, transparent);
             border-color: var(--accent-light); }
}

/* Wanted-Row "answered" puls einmal beim Status-Wechsel */
.wanted-poster .wanted-row.answered {
  animation: answeredFlash 1.2s ease-out;
}
@keyframes answeredFlash {
  0%   { background: color-mix(in srgb, var(--accent) 25%, transparent); }
  100% { background: rgba(45,122,74,.06); }
}

/* Eingehender Clue: dezenter Fade-In + Slide */
.turn-row.done .t-clue {
  animation: clueFadeIn .55s ease-out;
}
@keyframes clueFadeIn {
  0%   { opacity: 0; transform: translateX(-6px); }
  60%  { opacity: 1; transform: translateX(0); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Screen-Übergänge: sanfter Fade beim Wechsel zwischen Playing/Break/Voting */
.screen-game,
.screen-break,
.screen-voting,
.screen-result {
  animation: screenFadeIn .35s ease-out;
}
@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero-Element (Geheimwort/Placeholder) glanzvolles Einschweben */
.stage-corner {
  animation: cornerTwinkle 3.5s ease-in-out infinite;
}
.stage-corner-tr { animation-delay: .4s; }
.stage-corner-bl { animation-delay: .8s; }
.stage-corner-br { animation-delay: 1.2s; }
@keyframes cornerTwinkle {
  0%, 100% { opacity: .8; text-shadow: 0 0 0 transparent; }
  50%      { opacity: 1;
             text-shadow: 0 0 8px color-mix(in srgb, var(--accent-light) 70%, transparent); }
}

/* Voting: ausgewählte Karte bekommt subtilen "Eingerastet"-Effekt */
.vote-card.selected {
  animation: votePopIn .3s ease-out;
}
@keyframes votePopIn {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

/* Reduced-Motion: Respektiert die User-Präferenz für weniger Animation */
@media (prefers-reduced-motion: reduce) {
  .turn-row.active,
  .turn-row.done .t-clue,
  .wanted-poster .wanted-row.answered,
  .screen-game, .screen-break, .screen-voting, .screen-result,
  .stage-corner, .vote-card.selected {
    animation: none;
  }
}
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html,
body { height: 100%; }

/* Background liegt auf html, damit body transparent bleiben kann.
   Das ist nötig, weil .saloon-bg mit z-index: -1 unter dem Body-Background
   verschwinden würde, wenn der Body einen eigenen Hintergrund hätte. */
html {
  background: var(--ink);
}

body {
  color: var(--parchment);
  /* Inter als Body-Font (SS-0113). 14px ist optimal für Inter — vorher 15px
     wegen Special Elite, das visuell etwas größer wirkt; Inter braucht die
     Kompensation nicht. Variable-Definition siehe :root oben. */
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Form-Controls erben Body-Font statt Browser-Default (sonst
   plattformspezifisch Arial/Helvetica/System-Sans). Macht einzelne
   font-family-Deklarationen auf .btn/.inp/etc. überflüssig. */
input, button, select, textarea {
  font-family: inherit;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 998; opacity: .35; mix-blend-mode: overlay;
}

/* ── Saloon-Hintergrund-Silhouette ──────────────────────────────────────────
   Schemenhafte Saloon-Szene (Theke, Schwingtüren, Hängelampen, Regale mit
   Flaschen). Fixed-positioniert, hinter dem gesamten App-Inhalt. Sehr niedrige
   Opacity, damit der Text gut lesbar bleibt – die Szene wirkt eher wie eine
   Erinnerung oder ein Schatten als wie ein konkretes Bild. */
.saloon-bg {
  position: fixed;
  inset: 0;
  background-image: url("/img/saloon-bg.svg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  /* Negativer z-index legt das Element hinter den normalen Document-Flow.
     body hat keine background-color die das überlagern könnte (nur das
     Wood-Gradient aus html-Hintergrund), also bleibt der Saloon sichtbar. */
  z-index: -1;
  opacity: 0.22;
  /* Sanftes Ausblenden nach oben, damit der Hintergrund nicht überall
     gleichstark präsent ist sondern atmosphärisch nach unten "anhaftet". */
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

/* ── Screens ── */
.screen-home,
.screen-lobby,
.screen-game,
.screen-break,
.screen-voting,
.screen-result {
  flex: 1 0 auto; /* füllen den verfügbaren Platz in app-main */
  padding: 40px 20px 48px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
}

.btn-copy {
    font-size: 13px;
    color: var(--gold);
    background: transparent;
    border: 1px solid rgba(200,146,42,.4);
    padding: 6px 14px;
    border-radius: 1px;
    cursor: pointer;
    transition: all .2s;
}

.btn-copy:hover {
    border-color: var(--gold);
    background: rgba(200,146,42,.08);
}

.btn-copy.copied {
    color: var(--green-ok);
    border-color: rgba(45,122,74,.5);
}

.bg-saloon {
  /* Nur sanfter Glow unten – KEIN linear-gradient mehr, damit die globale
     Saloon-Silhouette aus .saloon-bg durchscheint. Wird auf Screens wie
     Home, Admin, Game-Break, Lobby-Break verwendet, also dort wo die
     Atmosphäre sichtbar bleiben soll. Wenn der Screen Stimmung umfärben
     will (Impostor-Mode etc.), nutzt er bg-red/bg-amber/bg-green – die
     setzen weiterhin einen vollen Hintergrund. */
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(74,47,20,.35) 0%, transparent 65%);
}
.bg-red {
  background:
    radial-gradient(ellipse 80% 45% at 50% 55%, rgba(100,14,14,.18) 0%, transparent 70%),
    linear-gradient(to bottom, #060302, #0e0705);
}
.bg-green {
  background:
    radial-gradient(ellipse 80% 45% at 50% 100%, rgba(26,61,43,.28) 0%, transparent 60%),
    linear-gradient(to bottom, #0a0806, #111a0f);
}
.bg-amber {
  background:
    radial-gradient(ellipse 80% 45% at 50% 55%, rgba(100,60,5,.2) 0%, transparent 70%),
    linear-gradient(to bottom, #060402, #0e0905);
}

/* ── Typography ── */
.rye { font-family: 'Rye', cursive; }
.pf { font-family: 'Playfair Display', serif; }
.gold { color: var(--gold); }

.eyebrow {
  font-size: 14px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--smoke); text-align: center; margin-bottom: 14px;
}
.section-label {
  font-size: 14px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--smoke); margin-bottom: 10px;
}
.inline-note {
  font-size: 14px; color: var(--smoke); text-align: center;
  margin-top: 8px; letter-spacing: .08em;
}

/* ── Cards ── */
.card {
  background: linear-gradient(135deg, rgba(22,14,6,.96), rgba(14,9,3,.98));
  border: 1px solid rgba(200,146,42,.28); border-radius: 2px;
  padding: 24px 28px; position: relative;
  box-shadow: 0 18px 55px rgba(0,0,0,.65), inset 0 1px 0 rgba(200,146,42,.09);
}
.card::before,
.card::after {
  content: '✦'; position: absolute; top: 13px;
  color: rgba(200,146,42,.25); font-size: 9px;
}
.card::before { left: 18px; }
.card::after { right: 18px; }

.card-red { border-color: rgba(139,26,26,.35); box-shadow: 0 18px 55px rgba(0,0,0,.65), 0 0 40px rgba(100,14,14,.08); }
.card-red::before,
.card-red::after { color: rgba(139,26,26,.35); }

.card-title {
  font-family: 'Rye', cursive; font-size: 17px; color: var(--gold-light);
  text-align: center; margin-bottom: 20px; letter-spacing: .09em;
}

/* ── Forms ── */
.lbl {
  font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--smoke); display: block; margin-bottom: 7px;
}
.inp {
  width: 100%; background: rgba(8,5,2,.85);
  border: 1px solid rgba(200,146,42,.22); border-radius: 1px;
  color: var(--parchment);
  font-size: 15px; padding: 11px 13px; outline: none; transition: border-color .2s;
}
.inp:focus { border-color: var(--gold); box-shadow: 0 0 14px rgba(200,146,42,.14); }
.inp::placeholder { color: rgba(168, 151, 132,.38); }
.inp-lg { font-family: 'Playfair Display', serif; font-size: 22px; font-style: italic; padding: 13px 15px; }
.inp-red { border-color: rgba(139,26,26,.4) !important; }
.fgrp { margin-bottom: 16px; }
select.inp {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23c8922a' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px;
}
textarea.inp { resize: vertical; min-height: 100px; font-size: 14px; line-height: 1.6; }

.char-count {
  position: absolute; bottom: 10px; right: 12px;
  font-size: 10px; color: var(--smoke); pointer-events: none;
}
.char-count.warn { color: var(--amber); }
.char-count.over { color: var(--blood-red); }

/* ── Slider ── */

.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right,
    var(--gold) 0%,
    var(--gold) var(--val, 50%),
    rgba(200,146,42,.15) var(--val, 50%),
    rgba(200,146,42,.15) 100%);
  outline: none; cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--amber);
  box-shadow: 0 0 10px rgba(200,146,42,.4); cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--amber);
  box-shadow: 0 0 10px rgba(200,146,42,.4); cursor: pointer;
}

/* ── Buttons ── */
.btn {
  display: block; width: 100%; padding: 12px; border-radius: 1px;
  font-family: 'Rye', cursive; font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; cursor: pointer; transition: all .2s;
  border: none; position: relative; overflow: hidden;
  text-decoration: none;
}
a.btn { text-align: center; }
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,.09) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform .45s;
  pointer-events: none;  /* dekorativer Shimmer darf keine Klicks abfangen */
}
.btn:hover::after { transform: translateX(100%); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none !important; }

.btn-gold { background: linear-gradient(135deg, var(--amber), var(--gold)); color: var(--shadow); box-shadow: 0 4px 22px rgba(212,98,10,.38); }
.btn-gold:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 7px 30px rgba(212,98,10,.55); }

/* Amber-Variante für „achtsame Aktion" (Wartung aktivieren, destruktive Confirms). */
.btn-amber { background: linear-gradient(135deg, var(--blood-red), var(--amber)); color: #fff; font-weight: bold; box-shadow: 0 4px 22px rgba(139,26,26,.32); }
.btn-amber:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-amber:disabled { opacity: .55; cursor: not-allowed; }
/* SS-0024: zusammengeführte Einzel-Definition (war doppelt; computed-Stand der Kaskade
   beibehalten: spätere Definition gewann Hintergrund/Farbe, box-shadow stammt aus der frühen). */
.btn-red { background: linear-gradient(135deg, #8b1a1a, #5a0e0e); color: #fff; box-shadow: 0 4px 22px rgba(139,26,26,.38); border: 1px solid rgba(220,100,100,.5); padding: 10px 18px; border-radius: 3px; cursor: pointer; font-family: 'Rye', cursive; letter-spacing: .05em; transition: all .15s; }
.btn-red:not(:disabled):hover { transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--green-felt), var(--green-ok)); color: var(--parchment); }
.btn-green:not(:disabled):hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid rgba(200,146,42,.32); color: var(--old-paper); font-size: 15px; letter-spacing: .08em; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(200,146,42,.05); }
/* SS-0024: zusammengeführte Einzel-Definition (war doppelt; computed-Stand beibehalten:
   spätere Definition gewann Hintergrund/Farbe/Box-Metrik, font-size stammt aus der frühen). */
.btn-ghost-red { background: rgba(139,26,26,.08); border: 1px solid rgba(139,26,26,.4); color: rgba(220,100,100,.9); font-size: 15px; padding: 10px 18px; border-radius: 3px; cursor: pointer; transition: all .15s; }
.btn-ghost-red:hover { background: rgba(139,26,26,.18); border-color: rgba(220,100,100,.6); color: var(--red-light); }
.abort-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px; background: transparent;
  border: 1px solid rgba(139,26,26,.3); border-radius: 1px;
  color: rgba(192,53,42,.55);
  font-size: 15px; letter-spacing: .06em; cursor: pointer; transition: all .25s;
}
.abort-btn:hover { border-color: var(--blood-red); color: var(--red-light); background: rgba(139,26,26,.07); }

/* ── Dividers ── */
.div-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.div-line::before,
.div-line::after { content: ''; flex: 1; height: 1px; background: rgba(200,146,42,.18); }
.div-line span { font-size: 9px; letter-spacing: .22em; color: var(--smoke); }
.h-line { height: 1px; background: linear-gradient(to right, transparent, rgba(200,146,42,.35), transparent); margin: 10px 0 18px; }

/* ── Badges ── */
.badge { display: inline-block; padding: 2px 10px; border: 1px solid rgba(200,146,42,.28); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }

/* ── Lobby code ── */
.lobby-code { font-family: 'Rye', cursive; font-size: 28px; letter-spacing: .35em; color: var(--gold-light); display: inline-block; background: rgba(8,5,2,.9); border: 1px solid var(--gold); padding: 8px 24px; box-shadow: 0 0 26px rgba(200,146,42,.18); }
.code-hint { font-size: 13px; letter-spacing: .2em; color: var(--smoke); text-transform: uppercase; display: block; margin-top: 5px; }

/* ── Streamer-Modus-Toggle (Auge neben Lobby-Code) ─────────────────────────
   Klein, dezent, sitzt direkt rechts neben dem Code. Wenn aktiv (Code wird
   maskiert), bekommt der Button einen golden gefüllten Hintergrund + der
   Augen-Strich-Effekt deutet "versteckt" an. */
.streamer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(200,146,42,.35);
  border-radius: 50%;
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  vertical-align: middle;
  transition: background .15s, border-color .15s;
  position: relative;
}
.streamer-toggle:hover {
  background: rgba(200,146,42,.12);
  border-color: var(--gold);
}
.streamer-toggle.is-on {
  background: rgba(200,146,42,.18);
  border-color: var(--gold);
}
/* Diagonaler Strich durch das Auge, wenn aktiv (Code versteckt).
   Pseudo-Element, damit das Emoji selbst nicht verändert werden muss. */
.streamer-toggle.is-on::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-top: 2px solid var(--gold);
  transform: rotate(-45deg);
  transform-origin: center;
  pointer-events: none;
}

.btn-eye.visible {
    border-color: rgba(200,146,42,.5);
}

/* ── Player slots ── */

.player-slot.filled { border-color: rgba(200,146,42,.32); }
.player-slot.empty { opacity: .35; }
.player-slot.disconnected { opacity: .45; border-color: rgba(139,26,26,.25); background: rgba(30,5,5,.4); }
.player-slot.reconnecting { border-color: rgba(180,100,10,.5); animation: reconnPulse 1.5s ease-in-out infinite; }
@keyframes reconnPulse { 0%,100% { border-color: rgba(180,100,10,.3); } 50% { border-color: rgba(200,146,42,.7); } }

/* (Entfernt SS-0016) Hier stand eine zweite, ungenutzte `.avatar`-Regel
   (32px-Buchstaben-Avatar aus den toten „Player slots"). Sie kollidierte mit
   dem prozeduralen Avatar (oben, ~Z. 263) und zwang dessen Box auf 32px, während
   die Kind-Elemente per --av-size skalierten → Überlauf (riesiger Kopf bei Xxl).
   Kein `class="avatar"`-Letter-Markup mehr im Einsatz → entfernt statt umbenannt. */

.p-name { font-size: 17px; color: var(--parchment); }

/* ── Player progress bar ── */
.player-progress { width: 100%; margin: 10px 0 14px; }
.pp-bar { width: 100%; height: 5px; background: rgba(200,146,42,.1); border-radius: 2px; overflow: hidden; }
.pp-fill { height: 100%; border-radius: 2px; transition: width .4s; }
.pp-fill.ok { background: linear-gradient(to right, var(--green-felt), var(--green-ok)); }
.pp-fill.warn { background: linear-gradient(to right, var(--blood-red), var(--amber)); }
.pp-labels { display: flex; justify-content: space-between; margin-top: 5px; font-size: 14px; color: var(--smoke); }

/* ── Turn list ── */
.turn-list { display: flex; flex-direction: column; gap: 7px; }
.turn-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 1px; border: 1px solid transparent; }
/* Done-Rows NICHT dimmen — die Hinweise sind im Schattenspiel die zentrale
   Beweisführung (wer hat was gesagt → wer ist der Impostor). Visuelle
   Erledigt-Indikation läuft über die Hinweis-Farbe (parchment, semi-bold)
   und das Verschwinden des „tippt…"-Hints, NICHT über Opacity. */
.turn-row.done { opacity: 1; }
.turn-row.active { background: rgba(200,146,42,.07); border-color: rgba(200,146,42,.28); }
.turn-row.pending { opacity: .35; }
.turn-row.reconnecting { background: rgba(180,100,10,.07); border-color: rgba(180,100,10,.35); animation: reconnPulse 1.5s ease-in-out infinite; }
.t-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(200,146,42,.28); display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--smoke); flex-shrink: 0; }
.turn-row.active .t-num { border-color: var(--accent); color: var(--accent-light); }
.turn-row.done .t-num { border-color: rgba(154,90,138,.5); color: var(--accent-light); }
.t-name { font-size: 16px; color: var(--old-paper); flex: 1; }
.t-clue { font-size: 15px; color: var(--smoke); font-style: italic; }
/* Hinweis-Text als zentrale Schattenspiel-Evidenz: parchment-Cream (hoher
   Kontrast auf dunklem Bg), Größe +1px gegen Default, semi-bold. Keine
   Italics — Italics signalisieren „transient" wie „tippt…", das passt nicht
   für eingegebene Hinweise. */
.turn-row.done .t-clue {
  color: var(--parchment);
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
}

/* ── Timer bars ── */
.timer-bar { width: 100%; height: 4px; background: rgba(200,146,42,.1); border-radius: 2px; overflow: hidden; }
.timer-fill { height: 100%; background: linear-gradient(to right, var(--green-felt), var(--accent), var(--accent-light)); border-radius: 2px; }
.timer-fill-red { background: linear-gradient(to right, #7a0f0f, var(--blood-red)); }

/* ── Countdown ring ── */
.countdown-ring { position: relative; width: 88px; height: 88px; }
.countdown-ring svg { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(200,146,42,.12); stroke-width: 6; }
.ring-prog { fill: none; stroke: var(--accent-light); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 213.6; transition: stroke-dashoffset 1s linear; }
.ring-prog.danger { stroke: var(--blood-red); }
.ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-num span:first-child { font-family: 'Rye', cursive; font-size: 21px; color: var(--accent-light); line-height: 1; }
.ring-num span:last-child { font-size: 9px; letter-spacing: .12em; color: var(--smoke); }

/* ── Voting cards ── */
.vote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 11px; width: 100%; max-width: 660px; }
.vote-card { background: rgba(12,8,3,.9); border: 1px solid rgba(200,146,42,.18); border-radius: 2px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .25s; position: relative; }
.vote-card:hover { border-color: var(--accent-light); transform: translateY(-2px); }
.vote-card.selected { border-color: var(--blood-red); background: rgba(100,14,14,.12); }
.vote-card.selected::after { content: '✓'; position: absolute; top: 8px; right: 10px; color: var(--blood-red); font-size: 14px; }
.vote-avatar-wrap { display: flex; justify-content: center; margin: 0 auto 9px; }
.vote-name { font-size: 15px; color: var(--parchment); margin-bottom: 3px; }
.vote-hints { font-size: 14px; color: var(--smoke); font-style: italic; line-height: 1.5; }
.vpip { width: 9px; height: 9px; border-radius: 50%; background: rgba(200,146,42,.18); border: 1px solid rgba(200,146,42,.28); transition: all .3s; }
.vpip.done { background: var(--accent-light); box-shadow: 0 0 7px var(--accent); }

/* ── Result ── */
.r-title { font-family: 'Rye', cursive; font-size: clamp(24px, 5vw, 40px); text-align: center; margin-bottom: 6px; }
.r-gold { color: var(--gold); text-shadow: 0 0 38px rgba(200,146,42,.45); }
.r-red { color: var(--blood-red); text-shadow: 0 0 38px rgba(139,26,26,.45); }
.r-amber { color: var(--amber); text-shadow: 0 0 38px rgba(212,98,10,.45); }
.reveal-box { background: rgba(12,8,3,.9); border: 1px solid rgba(200,146,42,.28); padding: 16px 24px; width: 100%; text-align: center; border-radius: 2px; }
.reveal-box.red { border-color: rgba(139,26,26,.35); }
.rl { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--smoke); margin-bottom: 7px; }
.rv { font-family: 'Rye', cursive; font-size: 24px; color: var(--gold-light); }
.rv.red { color: var(--blood-red); }
.rsub { font-size: 15px; color: var(--smoke); margin-top: 4px; }

.sb-rank.first { color: var(--gold-light); }

/* ── Toasts / Alerts ── */
.toast { padding: 10px 14px; border-radius: 1px; font-size: 15px; border-left: 3px solid; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; animation: toastIn .32s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.toast-info { background: rgba(10,15,10,.7); border-color: var(--green-ok); color: #5aaa7a; }

.toast-abort { background: rgba(30,8,8,.8);  border-color: var(--red-light); color: var(--red-light); }

/* SS-0013: Achievement-Unlock-Toast (Finished-Screen) */
.toast-achievement { background: rgba(20,15,5,.85); border-color: var(--gold); color: var(--gold-light); }

.notifications-overlay { position: fixed; top: 16px; right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.alert-error { background: rgba(30,8,8,.7); border: 1px solid rgba(139,26,26,.4); border-left: 3px solid var(--blood-red); color: var(--red-light); padding: 9px 12px; border-radius: 1px; font-size: 15px; margin-bottom: 10px; }
/* SS-0024: .alert-success-Doppeleintrag entfernt — war vollständig von der späteren
   Definition (Profil-Bereich, ~Z.3840) überschrieben, inkl. border-left via border-Shorthand. */

/* OAuth-only-Hinweis im Löschen-Modal (kein Passwort → Tipp-zur-Bestätigung statt Re-Auth). */
.oauth-delete-note { display: flex; gap: 8px; align-items: flex-start; background: rgba(70,110,160,.1); border: 1px solid rgba(120,150,200,.3); border-radius: 4px; padding: 10px 12px; margin-bottom: 14px; font-size: 12.5px; color: #bcc8e0; line-height: 1.45; }

/* ── Banners ── */
.waiting-banner { font-size: 16px; letter-spacing: .07em; color: var(--smoke); text-align: center; padding: 12px; border: 1px dashed rgba(200,146,42,.18); border-radius: 1px; margin-bottom: 14px; animation: waitBlink 2s ease-in-out infinite; }
@keyframes waitBlink { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

/* ── Dots ── */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-idle { background: var(--smoke); }
.dot-active { background: var(--gold); box-shadow: 0 0 8px rgba(200,146,42,.6); animation: dotPulse 1.4s ease-in-out infinite; }
.dot-done { background: var(--green-ok); }

.dot-reconnect { background: var(--amber); animation: dotPulse 1s ease-in-out infinite; }
@keyframes dotPulse { 0%,80%,100% { transform: scale(1); opacity: .5; } 40% { transform: scale(1.4); opacity: 1; } }

/* ── SS-0150: Reconnect-Indikator (Kopfzeile oben rechts) ───────────────────
   Eigenes #components-reconnect-modal statt des blockierenden Default-Modals.
   Online = unsichtbar (User-Wahl: nur bei Problemen). Blazor schaltet die
   -show/-failed/-rejected-Klassen; das Aussehen kommt von hier. */
#components-reconnect-modal.conn-indicator {
  /* SS-0150: oben mittig IN der sticky Header-Leiste (~50px hoch). top:10px
     zentriert die 30px-Pill vertikal in der Leiste; z-index 1200 > Header (900),
     also liegt sie über der (mittig freien) Header-Mitte. Die Header-Actions
     (Streamer/Volume/Profil) sitzen rechts und bleiben unberührt. */
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1200;
  display: none;                       /* default + components-reconnect-hide: nichts */
  align-items: center; gap: 8px;
  height: 30px; padding: 0 8px 0 11px;
  border-radius: 16px; font-size: 12px; letter-spacing: .02em;
  background: rgba(13,10,7,.92);
  border: 1px solid rgba(200,146,42,.3);
  box-shadow: 0 4px 16px rgba(0,0,0,.45);
}
#components-reconnect-modal .conn-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
#components-reconnect-modal .conn-label { white-space: nowrap; }
#components-reconnect-modal .conn-label-reconnect,
#components-reconnect-modal .conn-label-lost { display: none; }
#components-reconnect-modal .conn-reload {
  display: none; margin-left: 2px; font-size: 11px; padding: 3px 9px;
  border-radius: 12px; border: 1px solid rgba(200,146,42,.4);
  background: rgba(200,146,42,.16); color: var(--gold-light);
  cursor: pointer; white-space: nowrap; font-family: inherit;
}
#components-reconnect-modal .conn-reload:hover { background: rgba(200,146,42,.28); }

/* Verbindet neu (Blip) — Punkt wird zum drehenden amber Ring, nicht-blockierend */
#components-reconnect-modal.components-reconnect-show { display: inline-flex; }
#components-reconnect-modal.components-reconnect-show .conn-dot {
  background: transparent;
  border: 2px solid rgba(212,98,10,.35); border-top-color: var(--amber);
  animation: spin .7s linear infinite;
}
#components-reconnect-modal.components-reconnect-show .conn-label-reconnect { display: inline; color: var(--amber); }
/* SS-0024: gemeinsame 360°-Drehung (war connspin ≡ mqSpin, exaktes Duplikat). */
@keyframes spin { to { transform: rotate(360deg); } }

/* Verbindung verloren / Reload nötig (failed = Server weg, rejected = Circuit weg) */
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: inline-flex; }
#components-reconnect-modal.components-reconnect-failed .conn-dot,
#components-reconnect-modal.components-reconnect-rejected .conn-dot {
  background: var(--red-light); box-shadow: 0 0 7px rgba(192,53,42,.6);
}
#components-reconnect-modal.components-reconnect-failed .conn-label-lost,
#components-reconnect-modal.components-reconnect-rejected .conn-label-lost { display: inline; color: #e8a59b; }
#components-reconnect-modal.components-reconnect-failed .conn-reload,
#components-reconnect-modal.components-reconnect-rejected .conn-reload { display: inline-block; }

/* ── Shadow figure (Impostor) ── */
.impostor-figure { position: relative; width: 110px; height: 170px; margin: 0 auto; }
.f-hat-crown { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 36px; height: 28px; background: #050202; border-radius: 3px 3px 0 0; }
.f-hat-brim { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 62px; height: 9px; background: #050202; border-radius: 2px; }
.f-head { position: absolute; top: 19px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%; background: #060302; }
.f-head::before,
.f-head::after { content: ''; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--blood-red); top: 36%; box-shadow: 0 0 10px var(--blood-red), 0 0 22px rgba(139,26,26,.7); animation: eyeGlow 2.4s ease-in-out infinite; }
.f-head::before { left: 22%; }
.f-head::after { right: 22%; }
@keyframes eyeGlow { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.f-body { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 52px; height: 86px; background: #060302; border-radius: 26px 26px 8px 8px; }
.f-arm-l { position: absolute; width: 13px; height: 55px; background: #060302; border-radius: 7px; bottom: 36px; left: 13px; transform: rotate(14deg); }
.f-arm-r { position: absolute; width: 13px; height: 55px; background: #060302; border-radius: 7px; bottom: 36px; right: 13px; transform: rotate(-14deg); }
.f-glow { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 68px; height: 16px; border-radius: 50%; background: radial-gradient(ellipse, rgba(139,26,26,.35) 0%, transparent 70%); }
.fig-pulse { animation: figPulse 3s ease-in-out infinite; }
@keyframes figPulse { 0%,100% { filter: drop-shadow(0 0 8px rgba(139,26,26,.3)); } 50% { filter: drop-shadow(0 0 22px rgba(139,26,26,.6)); } }

/* ── Crewmate-Figur: Sheriff im Cowboy-Outfit, Gegenstück zum Impostor ──
   Gleiches Layout-Format wie .impostor-figure (110×170), aber heller gefärbt,
   mit Sheriff-Stern auf der Brust und Gold-Glow statt Blood-Red-Glow.
   Animation `fig-crew-pulse` analog zu `fig-pulse`. */
.crewmate-figure { position: relative; width: 110px; height: 170px; margin: 0 auto; }

/* Hut: warmer brauner Cowboy-Hut */
.c-hat-crown {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 26px;
  background: linear-gradient(180deg, #6a4828 0%, #4a3018 100%);
  border: 1px solid #2a1d0e;
  border-radius: 6px 6px 3px 3px;
}
.c-hat-brim {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 66px; height: 10px;
  background: linear-gradient(180deg, #5a3f1a 0%, #3a2614 100%);
  border: 1px solid #2a1d0e;
  border-radius: 3px;
}
/* Hutband (kleine helle Linie unterm Crown) */
.c-hat-crown::after {
  content: '';
  position: absolute; bottom: -1px; left: 4px; right: 4px;
  height: 3px;
  background: var(--gold);
  opacity: .7;
}

/* Kopf: warmer Hautton (analog zum Avatar) */
.c-head {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #c9a880 0%, #a08560 100%);
  border: 1px solid #6a4828;
}
.c-head::before,
.c-head::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  top: 42%;
}
.c-head::before { left: 26%; }
.c-head::after  { right: 26%; }

/* Klassischer Westernschnauzer */
.c-mustache {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  z-index: 1;
}

/* Körper: Weste, etwas heller als Impostor */
.c-body {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 88px;
  background: linear-gradient(180deg, #5a3f1a 0%, #3a2614 100%);
  border: 1px solid #2a1d0e;
  border-radius: 22px 22px 6px 6px;
}

/* Sheriff-Stern auf der Brust — der zentrale Akzent */
.c-star {
  position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%);
  font-size: 22px;
  color: var(--gold-light);
  text-shadow:
    0 0 8px var(--gold-light),
    0 0 16px var(--gold);
  line-height: 1;
  z-index: 2;
  user-select: none;
}

/* Arme */
.c-arm-l, .c-arm-r {
  position: absolute;
  width: 13px; height: 55px;
  background: linear-gradient(180deg, #5a3f1a 0%, #3a2614 100%);
  border: 1px solid #2a1d0e;
  border-radius: 7px;
  bottom: 36px;
}
.c-arm-l { left: 11px;  transform: rotate(8deg); }
.c-arm-r { right: 11px; transform: rotate(-8deg); }

/* Glow am Boden — Gold statt Blood-Red */
.c-glow {
  position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 72px; height: 16px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(232,184,75,.4) 0%, transparent 70%);
}

.fig-crew-pulse { animation: figCrewPulse 3s ease-in-out infinite; }
@keyframes figCrewPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(200,146,42,.25)); }
  50%      { filter: drop-shadow(0 0 18px rgba(232,184,75,.5)); }
}

/* ── Secret word card ── */
.secret-word-card { border-color: rgba(200,146,42,.45); text-align: center; padding: 20px 24px; }
.secret-word-label { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--dark-wood); padding: 0 12px; font-size: 9px; letter-spacing: .25em; color: var(--smoke); white-space: nowrap; }

/* ── Layouts ── */
.lobby-header {
  text-align: center;
  margin-bottom: 14px;
  width: 100%;
  max-width: 880px;
}
.lobby-header-card {
  padding: 14px 22px;
  background: rgba(8,5,2,.55);
  border: 1px solid rgba(200,146,42,.18);
  border-radius: 4px;
}
.lobby-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
/* In der Header-Row hat .code-hint mehr Platz nach links/rechts und
   verliert das block-display, damit es inline neben Code und Button steht. */
.lobby-header-row .code-hint {
  display: inline;
  margin-top: 0;
  max-width: 260px;
  text-align: left;
}
/* Lobby-Layout: vertikal gestapelt.
   Oben (volle Breite): Spieler-Chips-Bar
   Darunter: lobby-main-row mit Chat links groß + Sidebar rechts schmal */
.lobby-layout { display: flex; flex-direction: column; gap: 16px;
                    width: 100%; max-width: 880px; }

/* Hauptbereich unter den Spieler-Chips: Chat links groß, Sidebar rechts schmal.
   DOM-Reihenfolge ist 'chat-col → sidebar-col', also bekommt jede ihre Spalte
   automatisch via Grid – kein expliziter grid-column nötig. */
.lobby-main-row {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 16px;
  align-items: start;
}
.lobby-chat-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0; /* erlaubt der Spalte zu schrumpfen, sonst pusht Chat-Inhalt das Grid auf */
}
.lobby-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Beibehalten für eventuelle Stellen die noch .lobby-sidebar referenzieren
   (z.B. die alte Responsive-Regel). Nicht mehr aktiv genutzt. */
.lobby-sidebar { display: flex; flex-direction: column; gap: 13px; }
.lobby-players-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.game-layout { display: grid; grid-template-columns: 1fr 240px; gap: 20px; width: 100%; max-width: 820px; align-items: start; }
.game-sidebar { display: flex; flex-direction: column; gap: 12px; }

/* ── Loading & misc ── */
.loading-screen { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; }
.not-found { text-align: center; padding: 60px 20px; }
.not-found h2 { font-size: 28px; color: var(--gold); margin-bottom: 16px; }
.not-found a { color: var(--old-paper); text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .lobby-main-row,
.game-layout { grid-template-columns: 1fr; }
  .lobby-sidebar,
.game-sidebar { display: contents; }
}

/* ── Lobby Page ─────────────────────────────────────────────────────────── */
.lobby-loading-text { font-size: 22px; }
.lobby-title { font-family: 'Rye', cursive; font-size: 22px; color: var(--accent); }

.card-players { padding: 20px 22px; }
.card-sidebar { padding: 16px 18px; }

.lobby-section-title { font-family: 'Rye', cursive; font-size: 15px; color: var(--accent); }
.lobby-player-count { font-size: 15px; color: var(--smoke); }
.card-title-sm { font-family: 'Rye', cursive; font-size: 15px; color: var(--accent-light);
                        letter-spacing: .09em; margin-bottom: 10px; }

.text-danger { color: var(--blood-red); }
.text-success { color: var(--green-ok); }

.settings-info { font-size: 15px; color: var(--smoke); line-height: 2.2; }
.settings-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.settings-value { color: var(--accent-light); text-align: right;
                        min-width: 0; overflow-wrap: anywhere; }
.settings-fixed-note { font-size: 14px; color: rgba(168, 151, 132,.5);
                        margin-top: 8px; font-style: italic; }
.btn-edit { margin-top: 10px; padding: 7px; font-size: 14px; width: 100%; }

/* ── Player-Chips (Lobby) ───────────────────────────────────────────────── */
/* Spieler-Übersicht oben als kompakte Chip-Reihe statt großer Slot-Liste.
   Avatar + Name + Badges (Host-Stern, Admin-Krone, Mod-Schwert, Gast-Raute,
   eigener „Du"-Marker). Klick öffnet das Profil-Modal. */
.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(8,5,2,.5);
  border: 1px solid rgba(200,146,42,.18);
  color: var(--parchment);
  padding: 5px 12px 5px 5px;
  border-radius: 22px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.player-chip:hover {
  border-color: var(--gold);
  background: rgba(8,5,2,.7);
}
.player-chip:active {
  transform: scale(.98);
}
.player-chip.is-host {
  border-color: rgba(200,146,42,.55);
  background: rgba(200,146,42,.08);
}
.player-chip.is-me {
  outline: 1px solid var(--gold-light);
  outline-offset: -1px;
}
.player-chip.is-guest .player-chip-name {
  color: var(--smoke);
  font-style: italic;
}
.player-chip-avatar {
  display: inline-flex;
  flex-shrink: 0;
}
/* SS-0016: die Avatar-Komponente liefert jetzt das runde Porträt/Foto (statt
   eines Namens-Buchstabens); der Container ist nur noch ein Flex-Slot. */
.player-chip-avatar .avatar { --av-size: 26px; }
.player-chip-name {
  font-size: 13px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-chip-badge {
  font-size: 14px;
  line-height: 1;
  margin-left: -2px;
}
/* SS-0175: Verifiziertes Profil — blauer Haken (Twitter-Stil), neben dem Namen. */
.verified-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1d9bf0;
  color: #fff;
  font-weight: bold;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25);
}
.verified-check.vc-sm { width: 15px; height: 15px; font-size: 9px; }
.verified-check.vc-md { width: 17px; height: 17px; font-size: 10px; }
.verified-check.vc-lg { width: 21px; height: 21px; font-size: 12px; }
.player-chip-you {
  background: rgba(45,122,74,.2);
  color: var(--green-ok);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 2px;
}
.player-chip-empty {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px dashed rgba(168, 151, 132,.3);
  color: var(--smoke);
  font-size: 12px;
  border-radius: 22px;
  font-style: italic;
}

/* Abwesender Spieler – Chip ausgegraut, durchgestrichener Hintergrund,
   bleibt aber anklickbar (Profil-Modal lässt sich weiterhin öffnen). */
.player-chip.is-away {
  opacity: 0.5;
  filter: grayscale(0.6);
}
.player-chip.is-away .player-chip-name {
  text-decoration: line-through;
  text-decoration-color: rgba(168, 151, 132,.4);
  text-decoration-thickness: 1px;
}

/* ── Home Page ───────────────────────────────────────────────────────────── */
.card-home { width: 100%; max-width: 440px; }
.inp-code { letter-spacing: .2em; text-transform: uppercase; }

/* ── Game Page – Playing ─────────────────────────────────────────────────── */
.impostor-title { font-family: 'Rye', cursive; font-size: 28px; color: var(--blood-red); margin-bottom: 6px; }
.impostor-subtitle { font-size: 15px; color: var(--smoke); margin-bottom: 20px; }
.secret-word-card-wrap { margin-bottom: 14px; text-align: center; }
.secret-word-text {
  font-family: 'Rye', cursive;
  /* Skaliert mit der tatsächlichen Card-Breite (cqi = container-query inline).
     7cqi statt 9cqi — Rye hat breite Glyphen, lange deutsche Komposita wie
     „VORHÄNGESCHLOSS" (15 Z.) sprengten die Card sonst und brachen mitten
     im Wort um. Plus dynamische Letter-Spacing-Anpassung im Razor-Code. */
  font-size: clamp(20px, 7cqi, 44px);
  color: var(--parchment);
  letter-spacing: .03em;
  line-height: 1.05;
  /* break-word nur als letzte Ausweg-Lösung wenn das Wort durch ALL diese
     Maßnahmen immer noch nicht fitten würde. In Normal-Fällen greift's nicht. */
  word-break: break-word;
  text-shadow:
    0 0 24px var(--accent-light),
    0 0 48px var(--accent),
    0 2px 0 var(--shadow);
}
.secret-word-hint { font-size: 15px; color: var(--smoke); margin-top: 5px; }
.progress-wrap { margin-bottom: 14px; }
.progress-header { display: flex; justify-content: space-between; font-size: 15px; color: var(--smoke); margin-bottom: 5px; }
.card-turn-list { padding: 18px 20px; margin-bottom: 12px; }
.turn-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.turn-list-title { font-family: 'Rye', cursive; font-size: 15px; color: var(--gold); }
.text-amber { color: var(--amber); }
.text-smoke { color: var(--smoke); }
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.text-blood-red { color: var(--blood-red); }

.typing-anim { animation: waitBlink 1s ease-in-out infinite; }
.card-clue-input { padding: 22px 24px; border-color: rgba(200,146,42,.5); }
.clue-title { font-family: 'Rye', cursive; font-size: 16px; color: var(--gold); margin-bottom: 5px; }
.clue-title-red { font-family: 'Rye', cursive; font-size: 16px; color: var(--blood-red); margin-bottom: 5px; }
.clue-hint { font-size: 15px; color: var(--smoke); margin-bottom: 12px; }
.clue-input-wrap { position: relative; margin-bottom: 12px; }

.sidebar-player-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.sidebar-player-name { font-size: 15px; color: var(--old-paper); flex: 1; }
.sidebar-player-name-me { font-size: 15px; color: var(--accent-light); flex: 1; }
.sidebar-player-status { font-size: 15px; color: var(--smoke); }
.round-label { font-size: 15px; color: var(--smoke); margin-bottom: 2px; }
.round-number { font-family: 'Rye', cursive; font-size: 30px; color: var(--gold-light); }
.round-total { font-size: 16px; color: var(--smoke); }
.host-section { border-top: 1px solid rgba(200,146,42,.1); padding-top: 10px; }
.host-only-label { font-size: 13px; color: rgba(200,146,42,.25); text-align: center;
                      text-transform: uppercase; margin-bottom: 7px; }

/* ── Game Page – Break ───────────────────────────────────────────────────── */
.screen-break-center { text-align: center; }
.impostor-figure-sm { width: 90px; height: 138px; margin-bottom: 16px; }
.showdown-title { font-family: 'Rye', cursive; font-size: 30px; color: var(--blood-red);
                        text-shadow: 0 0 28px rgba(139,26,26,.5); margin-bottom: 8px; }
.break-subtitle { font-size: 15px; color: var(--smoke); margin-bottom: 20px; }
.break-emoji { font-size: 46px; margin-bottom: 14px; }
.break-title { font-family: 'Rye', cursive; font-size: 26px; color: var(--accent-light); margin-bottom: 8px; }
.card-break { max-width: 400px; width: 100%; margin: 0 auto; }
.section-label-mb { margin-bottom: 8px; }
.break-clue-row { display: flex; justify-content: space-between; padding: 6px 0;
                        border-bottom: 1px solid rgba(200,146,42,.07); font-size: 15px; }
.countdown-label { text-align: center; font-size: 15px; color: var(--smoke); margin-top: 14px; }
.countdown-number { font-family: 'Rye', cursive; font-size: 36px; color: var(--accent-light);
                        text-align: center; margin-top: 4px; }
.countdown-number-red { font-family: 'Rye', cursive; font-size: 36px; color: var(--red-light);
                        text-align: center; margin-top: 4px; }
.timer-bar-mt10 { margin-top: 10px; }

/* ── Game Page – Voting ──────────────────────────────────────────────────── */
.voting-header { text-align: center; margin-bottom: 18px; }
.voting-title { font-family: 'Rye', cursive; font-size: 24px; color: var(--blood-red); }
.voting-subtitle { font-size: 15px; color: var(--smoke); margin-top: 5px; }
.timer-ring-wrap { display: flex; align-items: center; justify-content: center;
                          gap: 28px; margin-bottom: 18px; flex-wrap: wrap; }
.vpip-row { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; }
.impostor-guess-panel { display: flex; align-items: flex-start; justify-content: center;
                          gap: 20px; width: 100%; max-width: 700px; flex-wrap: wrap; }
.card-clues-sidebar { padding: 14px 18px; max-width: 220px; }
.clue-item { font-size: 15px; margin-bottom: 5px; }
.guess-panel-right { flex: 1; max-width: 370px; }
.card-guess { padding: 22px 26px; }
.guess-title { font-family: 'Rye', cursive; font-size: 16px; color: var(--blood-red); margin-bottom: 5px; }
.guess-hint { font-size: 15px; color: var(--smoke); margin-bottom: 14px; }
.btn-vote { max-width: 260px; margin-top: 14px; }
.host-abort-section { margin-top: 20px; border-top: 1px solid rgba(139,26,26,.15);
                          padding-top: 12px; text-align: center; }
.abort-btn-centered { max-width: 260px; margin: 0 auto; }

/* ── Game Page – Result ──────────────────────────────────────────────────── */
.impostor-figure-result { width: 110px; height: 168px; position: relative; margin-bottom: 14px; }
.result-header { text-align: center; margin-bottom: 8px; }
.h-line-result { width: 100%; max-width: 480px; margin: 12px auto; }
.reveal-stack { display: flex; flex-direction: column; gap: 10px; align-items: center;
                          width: 100%; max-width: 460px; margin-bottom: 14px; }

/* ── SchattenspielResult Unified-Card (SS-0118) ──────────────────────────────
   Eine zentrale Card mit zwei Sektionen: Reveal-Paar (Geheimwort | Impostor)
   oben + History-Grid (Hinweise | Abstimmungen) unten. Vorher waren es 4
   freistehende bordered Boxes vertikal — wirkten gestapelt bei ungleichen
   Content-Höhen. Mobile (< 720 px): beide Reihen kollabieren zur Säule. */
.ss-result-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 14px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(22,14,6,.96), rgba(14,9,3,.98));
  border: 1px solid rgba(200,146,42,.3);
  border-radius: 6px;
  box-shadow: 0 18px 55px rgba(0,0,0,.65);
  position: relative;
}
.ss-result-card::before,
.ss-result-card::after {
  content: '✦'; position: absolute; top: 10px;
  color: rgba(200,146,42,.25); font-size: 11px;
}
.ss-result-card::before { left: 16px; }
.ss-result-card::after  { right: 16px; }

/* Reveal-Zeile: Wort | vertikale Linie | Impostor */
.ss-result-reveal {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.ss-result-reveal-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ss-result-reveal-label {
  font-size: 11px;
  color: var(--smoke);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.ss-result-reveal-value {
  font-family: 'Rye', cursive;
  font-size: 24px;
  color: var(--gold-light);
  line-height: 1.1;
  word-break: break-word;
}
.ss-result-reveal-value.red { color: var(--blood-red); }
.ss-result-reveal-sub {
  font-size: 12px;
  color: var(--smoke);
  margin-top: 2px;
}
.ss-result-reveal-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(200,146,42,.2);
}

/* Horizontale Section-Trennlinie zwischen Reveal und History */
.ss-result-section-divider {
  height: 1px;
  background: rgba(200,146,42,.15);
  margin: 18px 0 16px;
}

/* History: Hinweise | Abstimmungen */
.ss-result-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.ss-result-history-col { min-width: 0; }
.ss-result-section-title {
  font-family: 'Rye', cursive;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: .1em;
  margin-bottom: 10px;
  text-align: center;
  font-weight: normal;
}

.ss-result-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(200,146,42,.07);
  font-size: 13px;
}
.ss-result-row:last-child { border-bottom: none; }
.ss-result-name {
  color: var(--old-paper);
  flex: 0 0 auto;
  min-width: 0;
}
.ss-result-name.imp {
  color: var(--blood-red);
  font-weight: 600;
}
.ss-result-arrow { color: var(--smoke); flex-shrink: 0; }
.ss-result-val {
  flex: 1;
  text-align: right;
  color: var(--gold);
  min-width: 0;
  word-break: break-word;
}
.ss-result-val.hit { color: var(--green-ok); }

/* Mobile: beide Grids zur Säule kollabieren */
@media (max-width: 640px) {
  .ss-result-card { padding: 18px 16px; }
  .ss-result-reveal {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ss-result-reveal-divider {
    width: 60%;
    height: 1px;
    justify-self: center;
  }
  .ss-result-history {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.result-actions { display: flex; gap: 10px; max-width: 460px; width: 100%; }
.btn-flex1 { flex: 1; }
.btn-flex2 { flex: 2; }

/* ── Draw / Unentschieden ────────────────────────────────────────────────── */

/* ── Voting: Eigene Karte ────────────────────────────────────────────────── */
.vote-card-self {
  opacity: .55;
  cursor: not-allowed;
  border-style: dashed;
}
.vote-card-self:hover {
  border-color: rgba(200,146,42,.18);
  transform: none;
}

/* ── Impostor Mission Box ────────────────────────────────────────────────── */
.impostor-mission {
  width: 100%;
  max-width: 460px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.impostor-mission-title {
  font-family: 'Rye', cursive;
  font-size: 15px;
  color: var(--blood-red);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: .08em;
}
.impostor-mission-text {
  font-size: 14px;
  color: var(--smoke);
  line-height: 1.7;
  border-left: 2px solid rgba(139,26,26,.4);
  padding-left: 13px;
}
.impostor-mission-text strong { color: var(--parchment); }

/* ── Endscreen Spielhistorie ─────────────────────────────────────────────── */
.history-card {
  width: 100%;
  max-width: 480px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.history-title {
  font-family: 'Rye', cursive;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: .08em;
  margin-bottom: 12px;
  text-align: center;
}
.history-clue-row,
.history-vote-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200,146,42,.07);
  font-size: 14px;
}
.history-clue-row:last-child,
.history-vote-row:last-child {
  border-bottom: none;
}
.history-name { color: var(--old-paper); flex: 0 0 130px; }
.history-name-impostor { color: var(--blood-red); flex: 0 0 130px; font-weight: bold; }
.history-clues { color: var(--gold); flex: 1; text-align: right; }
.history-arrow { color: var(--smoke); }
.history-vote-hit { color: var(--green-ok); flex: 1; text-align: right; }
.history-vote-miss { color: var(--smoke);   flex: 1; text-align: right; }

/* ── Reconnect Wartescreen ───────────────────────────────────────────────── */
.reconnect-card {
  width: 100%;
  max-width: 460px;
  padding: 28px 24px;
  text-align: center;
  border-color: rgba(200,146,42,.4);
}
.reconnect-icon { font-size: 38px; margin-bottom: 12px; }
.reconnect-title {
  font-family: 'Rye', cursive;
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 8px;
}
.reconnect-subtitle { font-size: 14px; color: var(--smoke); margin-bottom: 22px; line-height: 1.5; }
.reconnect-subtitle strong { color: var(--parchment); }
.reconnect-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
}
.reconnect-ring-wrap svg .ring-bg {
  fill: none; stroke: rgba(200,146,42,.12); stroke-width: 6;
}
.reconnect-ring-wrap svg .ring-prog {
  fill: none; stroke: var(--amber); stroke-width: 6; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 60px 60px;
  stroke-dasharray: 301.6;
  transition: stroke-dashoffset 1s linear;
}
.reconnect-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Rye', cursive; font-size: 32px; color: var(--gold-light);
}
.reconnect-info { font-size: 13px; color: var(--smoke); margin-bottom: 16px; }
.btn-reconnect-action { max-width: 240px; margin: 0 auto; }

/* ── Zu wenige Spieler Screen ────────────────────────────────────────────── */
.toofew-card { max-width: 420px; width: 100%; text-align: center; padding: 28px 32px; }
.toofew-text { font-size: 14px; color: var(--smoke); }

/* ── Clue-Timer im Eingabefeld ───────────────────────────────────────────── */
.clue-timer-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; margin-bottom: 6px;
  font-size: 13px;
}
.clue-timer-label { color: var(--smoke); letter-spacing: .08em; text-transform: uppercase; }
.clue-timer-num { color: var(--accent-light); font-family: 'Rye', cursive; font-size: 16px; }
.clue-timer-num.danger { color: var(--blood-red); }

/* ── Home-Logo ───────────────────────────────────────────────────────────── */
/* ── Home-Page: Hero / Mode-Karten / Aktionen ────────────────────────────── */
/* Kopfbereich der Modus-Sektion: Überschrift + Pitch als Untertitel.
   Ersetzt den früheren separaten Hero-Banner (Variante D). */
.home-modes-head {
  text-align: center;
  margin-bottom: 22px;
}
.home-pitch {
  color: var(--smoke);
  font-size: 14px;
  line-height: 1.6;
  margin: 6px auto 0;
  max-width: 520px;
}
.home-alert {
  max-width: 540px;
  width: 100%;
  margin: 0 auto 24px;
}
.home-modes-section {
  max-width: 940px;
  width: 100%;
  margin-bottom: 36px;
}
.home-section-title {
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 20px;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.home-mode-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.home-mode-card {
  position: relative;   /* SS-0143: Anker für den „🔧 Aus"-Badge */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 20px 16px 16px;
  background: rgba(8,5,2,.65);
  border: 1px solid rgba(200,146,42,.22);
  border-radius: 5px;
  color: var(--parchment);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.home-mode-card:hover {
  background: rgba(200,146,42,.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}
/* SS-0143: abgeschalteter Modus (nur für Admins sichtbar) */
.home-mode-card-off {
  border-style: dashed;
  border-color: rgba(163,50,74,.5);
  opacity: .9;
}
.home-mode-card-off:hover { border-color: rgba(163,50,74,.85); }
.home-mode-off-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  letter-spacing: .04em;
  color: #e88;
  background: rgba(163,50,74,.18);
  border: 1px solid rgba(163,50,74,.5);
  border-radius: 3px;
  padding: 1px 6px;
}
.mode-switch-off {
  margin-left: auto;
  font-size: 10px;
  color: #e88;
  border: 1px solid rgba(163,50,74,.5);
  border-radius: 3px;
  padding: 0 5px;
}
.home-mode-card-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}
.home-mode-card-name {
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 16px;
  margin: 0;
}
.home-mode-card-desc {
  color: var(--parchment);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.home-mode-card-more {
  color: var(--gold-light);
  font-size: 12px;
  margin-top: 6px;
  letter-spacing: 0.04em;
}
/* SS-0189: Gruppen-Karte (Stammtisch) — dezenter „Stapel" + Mehrfach-Badge */
.home-mode-card.is-group { border-color: rgba(200,146,42,.4); }
.home-mode-card .group-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; letter-spacing: .03em; color: var(--gold-light);
  background: rgba(200,146,42,.14); border: 1px solid rgba(200,146,42,.45);
  border-radius: 3px; padding: 1px 6px;
}
@media (max-width: 860px) {
  .home-mode-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .home-mode-cards { grid-template-columns: 1fr; }
}

/* ── JoinLobbyDialog (Modal-Spezifika) ───────────────────────────────────── */
.join-dialog {
  max-width: 540px;
}
.join-dialog-loading {
  text-align: center;
  padding: 30px;
  color: var(--smoke);
  font-style: italic;
}
.join-dialog-info {
  margin-bottom: 18px;
}
.join-dialog-mode {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  background: rgba(200,146,42,.06);
  border: 1px solid rgba(200,146,42,.22);
  border-radius: 4px;
  margin-bottom: 12px;
}
.join-dialog-mode-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.join-dialog-mode-name {
  font-family: 'Rye', cursive;
  font-size: 17px;
  color: var(--gold);
  margin: 0 0 6px 0;
}
.join-dialog-mode-desc {
  color: var(--parchment);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.join-dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14px;
  color: var(--smoke);
  margin-bottom: 12px;
}
.join-dialog-meta strong {
  color: var(--gold-light);
}
/* "Du trittst der Lobby als X bei." – etwas Atmungs-Margin nach unten,
   damit der Beitritts-Button nicht direkt am Text klebt. */
.join-dialog-as-user {
  color: var(--smoke);
  font-size: 14px;
  margin: 0 0 14px 0;
}
.join-dialog-as-user strong {
  color: var(--gold-light);
}
.join-dialog-section {
  padding: 14px 0;
}
.join-dialog-section-title {
  font-size: 14px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px 0;
}
.join-dialog-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.join-dialog-account-required {
  margin-bottom: 14px;
}

/* SS-0107-Nachzug: kompakte OAuth-Button-Liste im Join-Dialog (Variante B aus
   `docs/mockups/join-lobby-dialog-refactor.html`). Buttons stapeln untereinander
   mit kleinem Gap; darunter zwei dezente Footer-Text-Links für E-Mail-Login
   bzw. Register, statt der vorher dominanten breiten Buttons. */
.join-dialog-oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.join-dialog-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 10px;
  font-size: 12px;
}
.join-dialog-footer-links a {
  color: var(--gold);
  text-decoration: none;
}
.join-dialog-footer-links a:hover {
  color: var(--gold-light);
}

/* ── App-Shell: Header + Main + Footer Layout ────────────────────────────── */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  /* KEIN padding-bottom hier! Sonst entsteht ein Streifen ohne Screen-Background.
     Footer-Reserve liegt in jedem .screen-* selbst (siehe oben). */
}

/* ── App-Header (fix oben) ───────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: rgba(8, 5, 2, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(200, 146, 42, 0.15);
}
.app-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gold);
  font-family: 'Rye', cursive;
  font-size: 16px;
  letter-spacing: 0.06em;
  transition: opacity 0.15s;
}
.app-header-brand:hover { opacity: 0.85; }
.app-header-logo {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 6px rgba(200, 146, 42, 0.4));
}
.app-header-title {
  display: inline-block;
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* SS-0128: Streamer-Modus-Indikator im Header (nur sichtbar wenn aktiv).
   SS-0196: Auf die 38px-Höhe + Pillen-Form der übrigen Header-Bedienelemente
   gebracht (Sprach-Dropdown, Mute, Avatar), damit der Chip nicht kleiner
   heraussticht. Rote Tönung bleibt als „Privatsphäre aktiv"-Signal. */
.streamer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: rgba(139, 26, 26, .22);
  border: 1px solid rgba(200, 146, 42, .45);
  color: var(--gold-light);
  border-radius: 19px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.streamer-chip:hover {
  background: rgba(139, 26, 26, .34);
  border-color: var(--gold);
}
@media (max-width: 540px) {
  /* Auf schmalen Screens nur das Kamera-Icon, Text ausblenden, um Platz zu sparen.
     Höhe bleibt auf 34px wie die anderen Header-Buttons im Mobile-Layout. */
  .streamer-chip { font-size: 0; height: 34px; padding: 0 11px; }
  .streamer-chip::before { content: '🎥'; font-size: 14px; }
}

/* ── Header-Auth-Buttons (Gäste) ─────────────────────────────────────────
   Ersetzen für nicht angemeldete Besucher das frühere ☰-Menü. „Anmelden"
   und „Registrieren" sind so direkt sichtbar statt im Dropdown versteckt. */
.header-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.auth-btn-ghost {
  background: transparent;
  border: 1px solid rgba(200, 146, 42, 0.4);
  color: var(--parchment);
}
.auth-btn-ghost:hover { border-color: var(--gold); }
.auth-btn-solid {
  background: linear-gradient(180deg, #3a2710, #26190a);
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.auth-btn-solid:hover { background: linear-gradient(180deg, #4a3214, #2e1f0c); }

/* ── Nav-Lobby-Pill ──────────────────────────────────────────────────────
   Wird im Header neben dem Logo angezeigt, wenn der User in einer Lobby
   ist aber gerade nicht auf der Lobby-/Game-Seite. Klick navigiert zurück. */
.nav-lobby-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  margin-right: auto;     /* pusht den Header-Actions-Block weiter nach rechts */
  padding: 5px 12px 5px 8px;
  background: rgba(200,146,42,.08);
  border: 1px solid rgba(200,146,42,.4);
  border-radius: 18px;
  color: var(--gold-light);
  font-size: 13px;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  /* sanftes Pulsieren, damit der User die Pille bemerkt */
  animation: navLobbyPulse 2.4s ease-in-out infinite;
}
.nav-lobby-pill:hover {
  background: rgba(200,146,42,.18);
  border-color: var(--gold);
  animation-play-state: paused;
}
.nav-lobby-pill-icon {
  font-size: 16px;
  line-height: 1;
}
.nav-lobby-pill-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.nav-lobby-pill-count {
  color: var(--smoke);
  font-size: 12px;
}
@keyframes navLobbyPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(200,146,42,0); }
  50%      { box-shadow: 0 0 14px rgba(200,146,42,.18); }
}

/* Innerhalb der Lobby: kein Pulsieren (User ist ja schon da),
   etwas dezenter und mit "Mitglied"-Cursor statt Pointer. */
.nav-lobby-pill.is-current {
  animation: none;
  cursor: default;
  background: rgba(200,146,42,.04);
  border-color: rgba(200,146,42,.25);
}
.nav-lobby-pill.is-current:hover {
  background: rgba(200,146,42,.04);
  border-color: rgba(200,146,42,.25);
}

/* ── Kick-Toast (vom MainLayout angezeigt, wenn User außerhalb der
   Lobby aus dieser entfernt wurde) ──────────────────────────────────────── */
.kick-toast-wrap {
  /* Mittig zentriert direkt unter dem Header, schiebt aber nichts.
     Container ist nur Platzhalter für das Toast-Element, das sticky bleibt. */
  position: sticky;
  top: 60px;
  z-index: 850;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.kick-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 16px;
  margin: 14px 16px 0 16px;
  background: rgba(30,10,5,.92);
  border: 1px solid rgba(192,53,42,.7);
  border-left: 3px solid var(--blood-red);
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
  color: var(--old-paper);
  font-size: 14px;
  max-width: 480px;
  pointer-events: auto;
  animation: kickToastSlideIn .25s ease-out;
}
.kick-toast-icon {
  font-size: 18px;
  color: var(--red-light);
  flex-shrink: 0;
}
.kick-toast-text {
  flex: 1;
}
.kick-toast-close {
  background: transparent;
  border: none;
  color: var(--smoke);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  margin: -2px -4px -2px 0;
  border-radius: 2px;
  transition: color .15s, background .15s;
}
.kick-toast-close:hover {
  color: var(--old-paper);
  background: rgba(255,255,255,.08);
}
@keyframes kickToastSlideIn {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
/* Mobile: kompakter, ohne Mode-Name */
@media (max-width: 600px) {
  .nav-lobby-pill-text { gap: 4px; }
  .nav-lobby-pill { font-size: 12px; padding: 4px 10px 4px 6px; }
}

/* ── Lautstärke (Slider nur bei Hover sichtbar, öffnet nach LINKS) ──────── */
.volume-control {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  position: relative;
}
.mute-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 5, 2, 0.85);
  border: 1px solid rgba(200, 146, 42, 0.35);
  color: var(--gold);
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mute-btn:hover {
  border-color: var(--gold);
  background: rgba(20, 12, 3, 0.95);
  transform: scale(1.05);
}
.mute-btn.muted {
  color: rgba(168, 151, 132, 0.55);
  border-color: rgba(168, 151, 132, 0.25);
}
.mute-btn.muted:hover {
  color: var(--smoke);
  border-color: rgba(200, 146, 42, 0.4);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  max-width: 0;
  margin-right: 0;
  height: 4px;
  background: rgba(8, 5, 2, 0.85);
  border: 1px solid rgba(200, 146, 42, 0.35);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s ease, max-width 0.25s ease, margin-right 0.25s ease, opacity 0.2s ease;
}
.volume-control:hover .volume-slider,
.volume-control:focus-within .volume-slider {
  width: 80px;
  max-width: 80px;
  margin-right: 8px;
  opacity: 1;
  pointer-events: auto;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid rgba(8, 5, 2, 0.8);
  cursor: pointer;
}
.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid rgba(8, 5, 2, 0.8);
  cursor: pointer;
}

/* Header-Help-Button (Spielregeln) — sitzt in den header-actions, kein fixed mehr */
.header-help-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 5, 2, 0.85);
  border: 1px solid rgba(200, 146, 42, 0.35);
  color: var(--gold);
  font-family: 'Rye', cursive;
  font-size: 16px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-help-btn:hover {
  border-color: var(--gold);
  background: rgba(20, 12, 3, 0.95);
  transform: scale(1.05);
}

@media (max-width: 540px) {
  .app-header { padding: 8px 12px; }
  .app-header-title { display: none; } /* nur Logo auf Mobile */
  .mute-btn,
.header-help-btn { width: 34px; height: 34px; font-size: 14px; }
  .volume-control:hover .volume-slider { width: 60px; max-width: 60px; }
  /* Schmaler Header: nur „Anmelden" zeigen, „Registrieren" ist von der
     Login-Seite aus erreichbar. Spart Breite neben Logo + Lautstärke. */
  .auth-btn-solid { display: none; }
  .auth-btn { height: 34px; padding: 0 12px; }
}

/* ── Spielstart: Sidebar-Button + Fullscreen-Countdown-Overlay ─────────── */

/* Schlankerer Start-Button unter den Settings (statt breit unter Chat) */
.btn-start-sidebar {
  width: 100%;
  margin-top: 14px;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: .08em;
}
.waiting-banner-sidebar {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}

/* Overlay für Start-Countdown — liegt im .lobby-frame, deckt nur die Lobby-Karte ab */
.lobby-frame {
  position: relative;
  width: 100%;
  max-width: 880px;
  border-radius: 4px;
  overflow: hidden;
}
.start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: startOverlayFadeIn .25s ease-out;
}
@keyframes startOverlayFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.start-overlay-content {
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.start-overlay-label {
  font-size: 15px;
  color: var(--smoke);
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.start-overlay-num {
  font-family: 'Rye', cursive;
  font-size: clamp(96px, 18vw, 168px);
  color: var(--accent-light);
  line-height: 1;
  text-shadow:
    0 0 32px var(--accent-light),
    0 0 64px var(--accent),
    0 4px 0 var(--shadow);
  margin-bottom: 18px;
  animation: startOverlayPulse 1s ease-in-out infinite;
}
@keyframes startOverlayPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.start-overlay-bar {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(168,151,132,.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 20px;
}
.start-overlay-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  box-shadow: 0 0 14px var(--accent-light);
}
.start-overlay-cancel {
  margin-top: 4px;
}

/* Behalten: timer-fill-gold wird noch von CountdownScreen.razor genutzt */
.timer-fill-gold {
  background: var(--gold) !important;
  box-shadow: 0 0 10px rgba(200,146,42,.5);
}

/* ── Chat ────────────────────────────────────────────────────────────────── */
.chat-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-title {
  font-family: 'Rye', cursive;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: .08em;
}
.chat-messages {
  /* War vorher 180px – mit der neuen Lobby-Layout (Spielerliste oben kompakt)
     haben wir mehr Höhe übrig, also nutzen wir den Platz für den Chat. */
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,146,42,.2) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(200,146,42,.2); border-radius: 2px; }

/* Status-Zeile */
.chat-status {
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 1px 0;
}
.chat-status-text {
  font-size: 13px;
  color: rgba(168, 151, 132,.6);
  font-style: italic;
}

/* Chat-Nachricht */
.chat-msg {
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding: 2px 0;
  flex-wrap: wrap;
}
.chat-msg-own .chat-sender { color: var(--gold-light); }
.chat-time {
  font-size: 12px;
  color: rgba(168, 151, 132,.5);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.chat-sender {
  font-size: 13px;
  color: var(--amber);
  font-weight: bold;
  flex-shrink: 0;
}
.chat-sender::after { content: ':'; }
.chat-text {
  font-size: 14px;
  color: var(--old-paper);
  word-break: break-word;
  flex: 1;
}

/* Eingabezeile */
.chat-input-row {
  display: flex;
  gap: 6px;
  /* stretch statt center: Button passt sich der Input-Höhe an (Input hat
     padding-basierte Höhe ~36 px, Button hatte fix 32 px → 4 px Versatz). */
  align-items: stretch;
}
.chat-inp {
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.chat-send-btn {
  flex-shrink: 0;
  width: 32px;
  background: rgba(8,5,2,.6);
  border: 1px solid rgba(200,146,42,.35);
  border-radius: 1px;
  font-size: 20px;
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  line-height: 1;
  padding: 0;
}
.chat-send-btn:hover:not(:disabled) { background: rgba(200,146,42,.12); border-color: var(--gold); }
.chat-send-btn:disabled { opacity: .35; cursor: default; }

/* Emoji Picker entfernt */

/* ── Spielverlauf Modal — Body-Klassen (alle Wrapper auf <Modal>-Komponente migriert) ──── */

.history-loading,
.history-empty {
  padding: 32px;
  text-align: center;
  color: var(--smoke);
  font-size: 14px;
}
.history-list {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Game Card ── */
.history-game-card {
  background: rgba(200,146,42,.04);
  border: 1px solid rgba(200,146,42,.12);
  border-radius: 2px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.history-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.history-game-meta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.history-game-date {
  font-size: 13px;
  color: var(--smoke);
}
.history-game-duration {
  font-size: 12px;
  color: rgba(168, 151, 132,.55);
  background: rgba(200,146,42,.07);
  padding: 1px 7px;
  border-radius: 10px;
}
.history-winner-badge {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: .05em;
}
.history-winner-crewmates { background: rgba(34,139,34,.2);   color: #5c5; }
.history-winner-impostor { background: rgba(139,26,26,.25);  color: #e66; }
.history-winner-draw { background: rgba(168, 151, 132,.2); color: var(--smoke); }

.history-label {
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 68px;
}
.history-word-row,
.history-impostor-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-word {
  font-family: 'Rye', cursive;
  font-size: 16px;
  color: var(--gold-light);
  letter-spacing: .08em;
}
.history-impostor { font-size: 14px; color: var(--blood-red); }
.history-guess {
  font-size: 12px;
  margin-left: 4px;
}
.history-guess.correct { color: var(--green-ok); }
.history-guess.wrong { color: rgba(200,60,60,.7); }

.history-clues-section { display: flex; flex-direction: column; gap: 6px; }
.history-clues-grid { display: flex; flex-direction: column; gap: 4px; padding-left: 4px; }
.history-player-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(200,146,42,.05);
}
.history-player-row:last-child { border-bottom: none; }
.history-player-row.is-impostor .history-pname { color: var(--blood-red); }
.history-pname { flex: 0 0 110px; color: var(--old-paper); }
.history-pclues { flex: 1; color: var(--gold); }
.history-pvotes { flex: 0 0 80px; text-align: right; color: rgba(168, 151, 132,.6); font-size: 12px; }

/* ── Impostor: Kategorie-Anzeige ─────────────────────────────────────────── */
.impostor-category {
  width: 100%;
  max-width: 320px;
  padding: 14px 22px;
  text-align: center;
  margin-top: 4px;
}
.impostor-category-value {
  font-family: 'Rye', cursive;
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: .08em;
  margin-top: 6px;
}

/* ── Settings: Toggle-Zeile ─────────────────────────────────────────────── */
.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}
/* .lbl bringt display:block + margin-bottom mit — in der Flex-Zeile
   zurücksetzen, damit das Label vertikal mittig sitzt, und auf die
   kompakte 13px-Größe der übrigen Konfig-Zeilen angleichen. Gilt für das
   direkte Label und die Inline-Label-mit-Hilfe-Variante. */
.settings-toggle-row > .lbl,
.settings-toggle-row > .lbl-with-help-inline {
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.settings-toggle-row > .lbl,
.settings-toggle-row .lbl-with-help-inline .lbl {
  font-size: 13px;
  margin-bottom: 0;
}

/* ── Settings Toggle Button ──────────────────────────────────────────────── */
/* SS-0126: Bool-Slider (rot/grün) mit ✓/✕ im Schiebeknopf. Basis = AUS (rot),
   .on = AN (grün). Wird zentral genutzt: Admin-Einstellungen + Lobby-Konfig.
   Markup: <button class="settings-toggle-btn [on]"><span class="toggle-knob">✓/✕</span></button> */
.settings-toggle-btn {
  width: 46px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  padding: 0;
  border: none;
  cursor: pointer;
  background: rgba(139, 26, 26,.6);   /* aus = rot */
  transition: background .18s;
  flex-shrink: 0;
}
.settings-toggle-btn.on { background: var(--green-ok); }   /* an = grün */
.settings-toggle-btn .toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8d5b0;
  color: #1a1208;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  transition: left .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.settings-toggle-btn.on .toggle-knob { left: 24px; }
.settings-toggle-btn:hover { filter: brightness(1.12); }

/* ── Settings-Sektions-Label (SS-0163) ──────────────────────────────────
   Dezente Trenn-Überschrift zwischen Lobby- und Spiel-Einstellungen im
   Neue-Lobby-Dialog. Zwei horizontale Linien (Pseudo-Elemente) flankieren
   den Label-Text. .first = kein oberer Abstand (erste Sektion direkt am
   Anfang des Modal-Body). Gilt für alle Spielmodi. */
.settings-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 4px;
  color: var(--smoke);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.settings-section-label::before,
.settings-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200,146,42,.15);
}
.settings-section-label.first { margin-top: 0; }

/* ── Spielvariante-Block (SS-0162) ───────────────────────────────────────
   Visuell hervorgehobener Block für den Schnellfeuer-Modus im Musikquiz-
   Lobby-Dialog — ersetzt die bisherige settings-toggle-row.
   Zeigt Modus-Name, kurzen Beschreibungstext und den Toggle-Knopf.
   .active = Schnellfeuer eingeschaltet (goldener Rahmen + leichter Hintergrund). */
.spielvariante-block {
  border: 1px solid rgba(200,146,42,.2);
  border-radius: 5px;
  background: rgba(0,0,0,.2);
  margin: 2px 0 6px;
  transition: border-color .18s, background .18s;
}
.spielvariante-block.active {
  border-color: rgba(200,146,42,.45);
  background: rgba(200,146,42,.07);
}
.spielvariante-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}
.spielvariante-info { flex: 1; min-width: 0; }
.spielvariante-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--parchment);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .18s;
}
.spielvariante-block.active .spielvariante-name { color: var(--gold-light); }
.spielvariante-desc {
  font-size: 11px;
  color: var(--smoke);
  margin-top: 3px;
  line-height: 1.5;
}

/* ── Erweiterte-Einstellungen-Collapsible (SS-0162) ──────────────────────
   Klappt Feintuning-Optionen (Antwortverzögerung, Stop-on-First) weg.
   Nutzt native <details> — kein JS-Zustand nötig.
   Spiegelt bewusst den filter-collapsible-Look (umrandeter Kasten, rotierendes
   ▸-Dreieck), damit es als gleichwertiger Block neben den Filtern steht und
   einen klaren Klick-Anker hat — statt schwebendem zentriertem Text. */
.settings-advanced-collapsible {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  background: rgba(0,0,0,.12);
  margin-top: 6px;
}
.settings-advanced-collapsible > .settings-advanced-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  user-select: none;
  border-radius: 4px;
  transition: background .15s ease;
}
.settings-advanced-collapsible > .settings-advanced-summary::-webkit-details-marker {
  display: none;
}
.settings-advanced-collapsible > .settings-advanced-summary:hover {
  background: rgba(255,255,255,.03);
}
.settings-advanced-collapsible > .settings-advanced-summary::before {
  content: '▸';
  font-size: 18px;
  font-weight: 700;
  color: var(--gold, #c8922a);
  transition: transform .2s ease;
  display: inline-block;
  margin-right: 8px;
}
.settings-advanced-collapsible[open] > .settings-advanced-summary::before {
  transform: rotate(90deg);
}
/* Innenraum bekommt seitliches Padding wie die filter-collapsible-Chips,
   damit die Toggle-Zeile/Pills nicht am Kasten-Rand kleben. */
.settings-advanced-body {
  padding: 2px 14px 12px;
}

/* ── Lobby Sidebar: Schnellzugriff-Buttons oben ──────────────────────────── */
.lobby-sidebar-top-btns {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.btn-sm-action {
  flex: 1;
  font-size: 12px !important;
  padding: 6px 10px !important;
  white-space: nowrap;
}

/* ── Stat-Box (Game-Sidebar) ─────────────────────────────────────────────── */
.stat-box { background: rgba(8,5,2,.8); border: 1px solid rgba(200,146,42,.18); padding: 14px 16px; border-radius: 1px; }
.stat-box h4 { font-family: 'Rye', cursive; font-size: 16px; color: var(--accent); margin-bottom: 10px; letter-spacing: .08em; }
.stat-box-center { text-align: center; }

/* ── Hangman ─────────────────────────────────────────────────────────────── */

.hangman-placeholder {
  font-family: 'Rye', cursive;
  /* Skaliert mit der Card-Breite — der inline-style letter-spacing aus
     HangmanPlaying.razor regelt die Buchstaben-Abstände dynamisch nach Wortlänge,
     aber die Font-Größe selbst soll sich auch an die Card anpassen. */
  font-size: clamp(24px, 8cqi, 46px);
  color: var(--parchment);
  letter-spacing: .22em;
  margin: 12px 0 16px;
  word-break: break-all;
  text-shadow:
    0 0 20px var(--accent-light),
    0 0 40px var(--accent),
    0 2px 0 var(--shadow);
}
.hangman-letter-count {
  font-size: 12px;
  color: rgba(168, 151, 132,.5);
  letter-spacing: .08em;
}

/* ── Tabu ────────────────────────────────────────────────────────────────── */
.tabu-clues-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.tabu-clue-item {
  font-size: 14px;
  color: var(--old-paper);
  padding: 6px 10px;
  background: rgba(200,146,42,.06);
  border-left: 2px solid rgba(200,146,42,.25);
  border-radius: 1px;
}

/* Gold background for Erklärer role reveal */
.bg-gold {
  background: radial-gradient(ellipse at 50% 30%, rgba(200,146,42,.12) 0%, transparent 70%),
              var(--dark);
}

/* ── History: Session-Header als ausklappbarer Button ───────────────────── */
.history-session-header {
  /* Button-Reset weil wir <button> statt <div> verwenden */
  background: rgba(0,0,0,.15);
  border: 1px solid rgba(200,146,42,.15);
  color: var(--gold);
  font-family: 'Rye', cursive;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 10px 14px;
  margin-top: 10px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s ease, border-color .15s ease;
}
.history-session-header:hover {
  background: rgba(200,146,42,.08);
  border-color: rgba(200,146,42,.3);
}
.history-session-header:first-of-type {
  margin-top: 0;
}
.history-session-header.expanded {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}
.history-session-toggle {
  color: var(--smoke, #a89784);
  font-size: 11px;
  width: 12px;
  flex-shrink: 0;
}
.history-session-title {
  flex-shrink: 0;
}
.history-session-summary {
  font-size: 12px;
  color: var(--smoke, #a89784);
  letter-spacing: .03em;
  margin-left: auto;
  text-transform: none;
  text-align: right;
}
.history-session-my-result strong {
  color: var(--amber, #e8a040);
}

/* ── Hangman: kompaktes Layout ───────────────────────────────────────────── */
.hangman-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  width: 100%;
  max-width: 820px;
  padding: 24px 20px;
  align-items: start;
}
.hangman-main { display: flex; flex-direction: column; gap: 14px; }
.hangman-word-card {
  padding: 20px 24px 18px;
  text-align: center;
}
.hangman-word-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: .07em;
}
.hangman-word-progress {
  color: var(--smoke);
}
.hangman-word-category {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hangman-letter-count { color: rgba(168, 151, 132,.5); }
.hangman-input-area { margin-top: 18px; }
.hangman-correct-msg {
  color: var(--green-ok);
  font-size: 14px;
  padding: 12px 0;
}

/* ── Podest Layout ───────────────────────────────────────────────────────── */
.podium-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  padding: 28px 24px;
  gap: 16px;
}
.podium-title-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.podium-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  width: 100%;
  align-items: start;
}
/* Modi ohne Runden-Statistik (z.B. Memory): nur der Endstand, einspaltig und
   zentriert statt linksbündig in der 280px-Spalte. */
.podium-layout.no-stats {
  grid-template-columns: 280px;
  justify-content: center;
}
.podium-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.podium-scores { width: 100%; padding: 16px 20px; }
.podium-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200,146,42,.06);
}
.podium-score-row:last-child { border-bottom: none; }
.podium-medal { font-size: 20px; width: 30px; flex-shrink: 0; }

/* Klickbarer Spielername im End-Podium — öffnet das PlayerProfileModal.
   Hover hebt heller + unterstrichen ab; das Unterstreichen ist bewusst
   ein deutlicheres Signal als bei den Track-Zeilen, weil eine Namens-
   zeile weniger offensichtlich interaktiv wirkt. */
.podium-name-clickable { cursor: pointer; transition: color .12s; }
.podium-name-clickable:hover { color: var(--gold-light); text-decoration: underline; }

/* Hinweis-Pille für Spieler, die die Lobby vor Spielende verlassen haben —
   ihr Name bleibt im Endstand, ist aber nicht klickbar. */
.podium-name-left-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .08em;
  padding: 1px 7px;
  margin-left: 6px;
  border-radius: 3px;
  background: rgba(168, 151, 132, .2);
  color: var(--smoke);
  vertical-align: middle;
}

.podium-pts { color: var(--accent-light); font-family: 'Rye', cursive; font-size: 20px; }
.podium-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.podium-btn { width: 100% !important; }

/* ── Podest Statistik ────────────────────────────────────────────────────── */
.podium-stats {
  background: rgba(8,5,2,.4);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 16px 18px;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,146,42,.2) transparent;
}
.podium-word-block {
  padding: 10px 0;
  border-bottom: 1px solid rgba(200,146,42,.08);
}
.podium-word-block:last-child { border-bottom: none; }
.podium-word-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.podium-word-num { color: var(--smoke); font-size: 12px; flex-shrink: 0; }
.podium-word-text { font-family: 'Rye', cursive; font-size: 15px; color: var(--accent-light); }
.podium-word-cat { font-size: 12px; color: var(--smoke); padding: 1px 6px; background: rgba(200,146,42,.08); border-radius: 2px; }
.podium-word-erklaerer { font-size: 12px; color: var(--amber); }
.podium-stat-row {
  display: grid;
  grid-template-columns: 1fr 50px 55px;
  gap: 8px;
  font-size: 13px;
  padding: 3px 0;
  color: var(--old-paper);
}
.podium-stat-time { color: var(--smoke); text-align: right; }
.podium-stat-pts { color: var(--accent-light); text-align: right; }

@media (max-width: 700px) {
  .hangman-layout { grid-template-columns: 1fr; }
  .podium-layout { grid-template-columns: 1fr; }
}

/* ── Hangman Role Reveal ─────────────────────────────────────────────────── */
.hangman-reveal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 400px;
}
.hangman-reveal-letters {
  font-family: 'Rye', cursive;
  font-size: clamp(28px, 6vw, 48px);
  color: var(--gold-light);
  letter-spacing: .35em;
  text-shadow: 0 0 30px rgba(200,146,42,.3);
}
.hangman-reveal-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.hangman-rule-item {
  font-size: 14px;
  color: var(--old-paper);
  background: rgba(200,146,42,.06);
  border: 1px solid rgba(200,146,42,.12);
  border-radius: 2px;
  padding: 8px 16px;
  text-align: center;
}

/* ── Hangman Timer ───────────────────────────────────────────────────────── */
.hangman-timer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
}
.hangman-timer-num {
  font-size: 13px;
  color: var(--smoke);
  flex-shrink: 0;
  min-width: 34px;
  text-align: right;
}
.hangman-timer-num.danger { color: var(--blood-red); }

/* ── Tabu Role Reveal ─────────────────────────────────────────────────────── */
.tabu-reveal-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 400px;
}
.tabu-reveal-badge {
  font-family: 'Rye', cursive;
  font-size: 22px;
  color: var(--gold-light);
  letter-spacing: .2em;
  padding: 8px 24px;
  border: 1px solid rgba(200,146,42,.3);
  border-radius: 2px;
  background: rgba(200,146,42,.08);
}
.tabu-reveal-word-card { width: 100%; text-align: center; }
.tabu-reveal-erklaerer {
  font-size: 16px;
  color: var(--old-paper);
}
.tabu-reveal-erklaerer strong { color: var(--gold-light); }

/* ── Tabu Spielscreen ────────────────────────────────────────────────────── */
.tabu-word-display {
  text-align: center;
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(200,146,42,.1);
  margin-bottom: 12px;
}
.tabu-clues-area {
  min-height: 60px;
  margin-bottom: 10px;
}
.tabu-waiting {
  font-size: 14px;
  color: var(--smoke);
  text-align: center;
  padding: 12px 0;
  font-style: italic;
}
.tabu-sent-clues {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tabu-sent-clue {
  font-size: 12px;
  color: var(--smoke);
  background: rgba(200,146,42,.07);
  border: 1px solid rgba(200,146,42,.12);
  border-radius: 2px;
  padding: 2px 8px;
}

/* ── Tabu Role Reveal: kompakte Regeln ───────────────────────────────────── */
.tabu-reveal-compact-rules {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}
.tabu-reveal-compact-rules span {
  font-size: 13px;
  color: var(--old-paper);
  background: rgba(200,146,42,.06);
  border: 1px solid rgba(200,146,42,.1);
  border-radius: 2px;
  padding: 5px 12px;
  text-align: center;
}

/* ── Tabu Erklärer Skip ──────────────────────────────────────────────────── */
.tabu-erklaerer-actions {
  margin-top: 8px;
}
.tabu-skip-btn {
  font-size: 12px !important;
  padding: 5px 14px !important;
  color: var(--smoke) !important;
  border-color: rgba(168, 151, 132,.3) !important;
}
.tabu-skip-btn:hover { color: var(--old-paper) !important; }

/* ── Tabu Flash-Nachricht ────────────────────────────────────────────────── */
.tabu-flash {
  font-size: 13px;
  text-align: center;
  padding: 7px 14px;
  border-radius: 2px;
  margin-bottom: 10px;
  letter-spacing: .04em;
  animation: tabu-flash-in .2s ease;
}
.tabu-flash-ok { background: rgba(80,180,80,.12);  color: var(--green-ok);  border: 1px solid rgba(80,180,80,.25); }
.tabu-flash-skip { background: rgba(200,146,42,.08); color: var(--smoke);     border: 1px solid rgba(200,146,42,.15); }
@keyframes tabu-flash-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Tabu Break-Screen ───────────────────────────────────────────────────── */
.tabu-break-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  margin: 12px 0;
}
.tabu-break-card { padding: 14px 16px; }
.tabu-break-word-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(200,146,42,.06);
  gap: 8px;
}
.tabu-break-word-row:last-child { border-bottom: none; }
.tabu-break-word {
  color: var(--gold-light);
  font-size: 13px;
}
.tabu-break-guesser {
  font-size: 12px;
  color: var(--smoke);
  flex-shrink: 0;
}
@media (max-width: 500px) {
  .tabu-break-layout { grid-template-columns: 1fr; }
}

/* ── Spielregeln-Modal — Body-Klassen (Wrapper auf <Modal>-Komponente migriert) ──── */
.rules-content {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  color: var(--old-paper);
}
.rules-content p { margin: 0 0 10px 0; }
.rules-content ul { margin: 4px 0 10px 24px; padding: 0; }
.rules-content li { margin: 4px 0; }
.rules-content strong { color: var(--gold-light); }

/* ── Auth-Pages (Setup, Login, Register, Profile) ─────────────────────── */
.auth-screen,
.setup-screen {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card-auth,
.card-setup {
  background: rgba(8,5,2,.92);
  border: 1px solid rgba(200,146,42,.4);
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 32px rgba(0,0,0,.6);
}
.card-setup { max-width: 480px; }

.auth-emoji,
.setup-emoji {
  text-align: center;
  font-size: 48px;
  margin-bottom: 12px;
}
.auth-title,
.setup-title {
  text-align: center;
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 26px;
  margin: 0 0 6px 0;
}
.setup-subtitle {
  text-align: center;
  color: var(--smoke);
  font-size: 14px;
  margin-bottom: 24px;
}

.auth-form,
.setup-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 13px;
  color: var(--gold-light);
}
.form-group small { color: var(--smoke); font-size: 12px; }

/* Spacing zwischen aufeinanderfolgenden form-groups innerhalb eines Modal-Bodys.
   `.auth-form` regelt das schon über sein `gap: 16px`, im Modal fehlt aber ein
   solcher Wrapper — die form-groups würden sonst aneinanderkleben (Label „Aktuelles
   Passwort" wirkt wie Beschriftung des Inputs darüber). Adjacent-sibling-Selector,
   damit kein Top-Spacing am ersten form-group entsteht. */
.modal-v2-body .form-group + .form-group { margin-top: 14px; }
.form-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--smoke); }
.check-row input[type="checkbox"] { cursor: pointer; }

.text-warning { color: #d97706; }

.btn-block { width: 100%; }

.auth-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 13px;
}
.auth-link:hover { color: var(--gold-light); text-decoration: underline; }
/* Inaktive Variante (z.B. "Passwort vergessen?" wenn SMTP nicht konfiguriert) –
   bleibt sichtbar aber visuell ausgegraut und nicht klickbar. */
.auth-link-disabled {
  color: var(--smoke, #a89784);
  opacity: 0.55;
  cursor: not-allowed;
  text-decoration: line-through;
}
.auth-link-disabled:hover {
  color: var(--smoke, #a89784);
  text-decoration: line-through;
}

.auth-divider {
  text-align: center;
  margin: 24px 0 18px 0;
  position: relative;
  color: var(--smoke);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(200,146,42,.2);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-divider span { background: rgba(8,5,2,.92); padding: 0 12px; position: relative; }

.oauth-buttons { display: flex; flex-direction: column; gap: 8px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px;
  background: rgba(40,28,12,.6);
  border: 1px solid rgba(200,146,42,.25);
  color: var(--old-paper);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
}
.btn-oauth:hover { border-color: var(--gold); background: rgba(60,42,18,.8); }
.oauth-icon { font-weight: bold; width: 20px; text-align: center; }

/* Brand-Icons aus ProviderIcon.razor — gleiche Maße wie .oauth-icon-Container,
   damit Login + Profil-Linked-Accounts-Listen visuell auf gleicher Linie sitzen. */
.provider-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Toggle-Button für Passwort-/E-Mail-Form auf Login + Register.
   OAuth ist der Default-Pfad, der klassische Form-Pfad wird auf Klick expandiert.
   Dezent gehalten, hebt sich erst bei Hover hervor. */
.pw-toggle {
  background: transparent;
  border: 1px solid rgba(200,146,42,.25);
  color: var(--smoke);
  width: 100%;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s;
}
.pw-toggle:hover { color: var(--gold-light); border-color: var(--gold); }
.pw-toggle .chevron { font-size: 12px; transition: transform .2s; }
.pw-toggle.expanded .chevron { transform: rotate(180deg); }

/* Zusammengeklapptes Form unter dem Toggle. Wird per JS umgeschaltet
   (Login: localStorage-Memory, Register: immer initial zugeklappt). */
.pw-form-collapsible { display: none; margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed rgba(200,146,42,.15); }
.pw-form-collapsible.expanded { display: block; }

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--smoke);
}

/* ── Profile Info ─────────────────────────────────────────────────────── */
.profile-info { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.profile-info-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
/* Label fix links, Wert nimmt den Mittel-Platz (`flex:1`), Edit-Button klebt rechts.
   Vor der SS-0094-Erweiterung (Edit-Stifte) nutzten Profile-Info-Rows `space-between`
   mit nur zwei Kindern — jetzt sind es bis zu drei. Mit `flex:1` auf dem Wert bleibt
   das Layout konsistent, egal ob ein Stift hinten dran hängt oder nicht. */
/* min-width:0 lässt das Flex-Item unter seine Content-Breite schrumpfen,
   overflow-wrap bricht lange Werte (z.B. lange E-Mail-Adressen) um statt
   über die Box hinauszuragen (SS-0129). */
.profile-info-row > strong,
.profile-info-row > code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-label { color: var(--smoke); min-width: 90px; }
.profile-section-title { color: var(--gold-light); font-size: 15px; margin: 0 0 10px 0; }
/* SS-0128: maskierte Werte im Streamer-Modus. */
.streamer-masked { color: var(--smoke); letter-spacing: 2px; font-style: italic; }
/* Streamer-Toggle als sauberer Einzeiler: rechtsbündig wie ein Wert/Edit-Stift, kein
   umbrechender Hint mehr (Erklärung liegt im Tooltip). */
.profile-streamer-row .settings-toggle-btn { margin-left: auto; }
/* SS-0018/SS-0196: Sprach-Dropdown rechtsbündig wie der Privatsphäre-Toggle (gleiche Zeilen-Optik). */
.profile-lang-row .lang-dd { margin-left: auto; }
.profile-divider { border: none; border-top: 1px solid rgba(200,146,42,.15); margin: 22px 0; }

/* Edit-Stift hinter änderbaren Werten in der Konto-Karte (Anzeigename, E-Mail).
   Dezent, im Saloon-Gold-Stil, hover hellt auf. */
.edit-btn {
  background: transparent;
  border: 1px solid rgba(200,146,42,.32);
  color: var(--gold);
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 1px;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
  flex-shrink: 0;
  transition: all .15s;
}
.edit-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(200,146,42,.08);
}

/* Action-Zeile unter den Info-Rows (z.B. „🔒 Passwort ändern"-Button).
   Dashed-Trenner trennt sie optisch von den Info-Rows oben. */
.profile-action-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(200,146,42,.1);
  display: flex;
  gap: 8px;
}
/* Buttons in einer Aktions-Zeile sollen nur so breit wie ihr Inhalt sein —
   `.btn` hat `width:100%` als Default, was hier zu „Wand-breiten" Buttons führt. */
.profile-action-row .btn-sm-action {
  flex: 0 0 auto;
  width: auto;
}

/* Modal-Body Form-Label: kleinere graue Bezeichner über den Inputs. */
.form-label {
  display: block;
  font-size: 13px;
  color: var(--smoke);
  margin-bottom: 4px;
}

/* Rollen-Badges in der Konto-Karte: kompakte Symbol-Anzeige (Krone/Waage/Stift)
   statt komma-getrennter Rollennamen, mit title-Tooltip für die Klartext-Rolle.
   So bleibt die Konto-Karte schlank, wenn später weitere Konto-Daten dazukommen. */
.profile-roles {
  display: inline-flex;
  gap: 6px;
  flex: 1;
}
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(200,146,42,.08);
  border: 1px solid rgba(200,146,42,.25);
  color: var(--gold-light);
  font-size: 14px;
  border-radius: 3px;
  cursor: help;
}

/* ── Profile Page Layout (responsive 2-Spalter) ────────────────────────── */
/* Eigener Screen-Container statt .auth-screen, weil das Profile nicht in
   einer schmalen Auth-Card sitzen soll, sondern die Breite ausnutzen darf. */
.profile-screen {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 60px;
}
.profile-page {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profile-page-header {
  text-align: center;
  margin-bottom: 6px;
}

/* Zwei-Spalten-Layout: links (380px, Account-Verwaltung) und rechts (1fr, Statistik
   + Verlauf). Jede Spalte ist ein eigener Flex-Container, damit die linken Sektionen
   eng untereinander gestapelt bleiben — unabhängig davon, wie hoch die rechte Spalte
   wird. Mit dem alten Grid-Layout (grid-auto-flow: dense + explizit zugewiesene
   grid-column) zogen sehr hohe Sektionen rechts die ganze Grid-Zeile mit und ließen
   die linken Karten optisch "auseinandergerissen" wirken. */
.profile-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: start;
}
.profile-column-left,
.profile-column-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;  /* damit lange Inhalte (z.B. lange E-Mail-Adresse) nicht die Spalte sprengen */
}
.profile-section {
  background: rgba(8,5,2,.6);
  border: 1px solid rgba(200,146,42,.18);
  border-radius: 4px;
  padding: 18px 20px 22px;
}
/* Buttons und Button-Links innerhalb einer Profile-Section bekommen Abstand
   zum vorausgehenden Inhalt (typisch ein Erklärungstext). Standard p-Margin
   alleine reicht nicht; der "klebt zu nah"-Eindruck kommt vor allem von
   .btn-block-Buttons die volle Breite einnehmen und dadurch optisch sehr
   schwer wirken. */
.profile-section > .btn,
.profile-section > a.btn {
  margin-top: 10px;
}
.profile-section > p + .btn,
.profile-section > p + a.btn {
  margin-top: 14px;
}
/* Legacy-Modifier: profile-section-left / profile-section-right wurden früher
   für CSS-Grid-Spalten-Zuweisung gebraucht. Mit dem Flex-Spalten-Layout sind
   sie semantisch nicht mehr nötig, bleiben aber an den Razor-Sections, damit
   man den Logik-Zweck im Markup sieht. Hier kein zusätzliches Styling. */
.profile-section-danger {
  border-color: rgba(139,26,26,.35);
}
.profile-section .profile-section-title {
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 16px;
  letter-spacing: .04em;
  margin: 0 0 14px 0;
}
.profile-section .profile-danger-title { color: var(--blood-red); }

/* Auf Tablet / Smartphone in eine Spalte zusammenklappen, Sektionen folgen
   dann der DOM-Reihenfolge: alle linken Sektionen zuerst (Konto, Anzeigename,
   Verknüpfte, Daten, Gefahrenzone), dann die rechten (Statistik, Letzte Spiele).
   Beide Flex-Spalten bleiben aktiv, das Grid stellt nur seinen Spalten-Modus
   um — Stack-Layout funktioniert automatisch. */
@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Profile Dropdown in MainLayout ───────────────────────────────────── */
/* SS-0196: Schließen bei Klick außerhalb läuft jetzt über ssClickOutside
   (document-Listener) statt über einen fixed-Backdrop — der wäre im Header
   wegen backdrop-filter auf die Header-Box eingesperrt. */
.profile-menu { position: relative; }
.profile-btn {
  position: relative;
  z-index: 1001;      /* muss über dem Backdrop bleiben */
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(8,5,2,.85);
  border: 1px solid rgba(200,146,42,.35);
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
/* SS-0016: Avatar füllt den Profil-Button (rundes Foto/Porträt statt Buchstabe). */
.profile-btn .avatar { --av-size: 32px; }
.profile-btn:hover {
  border-color: var(--gold);
  background: rgba(20, 12, 3, 0.95);
  transform: scale(1.05);
}
.profile-initial {
  font-size: 16px;
  /* line-height: 1 unterdrückt den Default-Zeilenabstand der Font, der das
     Zeichen sonst nach oben verschiebt. Special Elite (Typewriter-Font) hat
     zusätzlich etwas Whitespace oben in der Glyphe – ein leichter translateY
     gleicht das optisch im Kreis aus. */
  line-height: 1;
  display: inline-block;
  transform: translateY(1px);
}
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(8,5,2,.95);
  border: 1px solid rgba(200,146,42,.35);
  border-radius: 8px;
  min-width: 180px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
.profile-dropdown-header { padding: 10px 14px; border-bottom: 1px solid rgba(200,146,42,.15); font-size: 13px; color: var(--gold-light); }
.profile-dropdown-item {
  display: block; padding: 8px 14px;
  color: var(--old-paper);
  text-decoration: none;
  font-size: 13px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.profile-dropdown-item:hover { background: rgba(200,146,42,.1); color: var(--gold); }
.profile-dropdown-divider { height: 1px; background: rgba(200,146,42,.15); margin: 4px 0; }
/* Verhindert doppelte Linien wenn der Divider direkt nach Header oder
   Ingame-Banner käme (z.B. im Gast-Menü ohne Profil/Admin-Items davor) –
   beide Vorgänger haben schon eine border-bottom. */
.profile-dropdown-header + .profile-dropdown-divider,
.profile-dropdown-ingame + .profile-dropdown-divider {
  display: none;
}
/* Icons in Dropdown-Items haben unterschiedliche Glyphen-Breiten (👤 vs ⚙).
   Feste Spalte sorgt für linksbündig ausgerichteten Text. */
.dropdown-icon {
  display: inline-block;
  width: 20px;
  text-align: center;
  margin-right: 6px;
  font-size: 13px;
}

/* Warn-Banner im Profil-Menü wenn der Spieler in einem laufenden Spiel ist */
.profile-dropdown-ingame {
  padding: 9px 14px;
  background: rgba(212, 98, 10, 0.14);
  border-bottom: 1px solid rgba(212, 146, 42, 0.3);
  border-left: 3px solid var(--gold);
  font-size: 12px;
  color: var(--bone, #ddd);
  line-height: 1.4;
}
.profile-dropdown-logout { color: #b85a4a; }

.alert-success {
  background: rgba(30,100,30,.2);
  border: 1px solid #4ade80;
  color: #4ade80;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 8px;
}

.toofew-text { color: var(--smoke); font-size: 14px; text-align: center; }

/* ── Gast-Markierung ────────────────────────────────────────────────────── */

.guest-mini {
  display: inline-block;
  color: #9ca3af;
  font-size: 11px;
  margin-left: 4px;
  opacity: 0.85;
}

/* ── Label + ?-Help-Button-Layout ──────────────────────────────────────────
   Form-Label mit kleinem ?-Button rechts daneben. Klick auf ? öffnet ein
   Modal mit Kurzbeschreibungen (z.B. die Spielmodi-Übersicht). Hält die
   Form schlank, erlaubt aber kontextuelles Nachschlagen. */
.lbl-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.lbl-with-help .lbl {
  margin: 0;
}
.help-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(200,146,42,.4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.help-icon-btn:hover {
  background: rgba(200,146,42,.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ── Mode-Info-Modal — Body-Klassen (Wrapper auf <Modal>-Komponente migriert) ──── */
.mode-info-intro {
  font-size: 13px;
  margin: 0 0 18px 0;
}
.mode-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mode-info-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(8,5,2,.5);
  border: 1px solid rgba(200,146,42,.18);
  border-radius: 4px;
}
.mode-info-card.is-highlighted {
  border-color: var(--gold);
  background: rgba(200,146,42,.06);
}
.mode-info-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}
.mode-info-text {
  flex: 1;
}
.mode-info-name {
  font-family: 'Rye', cursive;
  font-size: 16px;
  color: var(--gold);
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mode-info-current {
  font-size: 11px;
  color: var(--gold-light);
  background: rgba(200,146,42,.18);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: normal;
  letter-spacing: 0.02em;
}
.mode-info-desc {
  font-size: 13px;
  color: var(--parchment);
  margin: 0 0 6px 0;
  line-height: 1.5;
}
.mode-info-meta {
  font-size: 12px;
  color: var(--smoke);
}

/* ── Quiz-Modus-Pills (nur sichtbar wenn Musikquiz gewählt) ──────────────── */
.quiz-mode-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.quiz-pill {
  padding: 8px 16px;
  background: var(--mid-wood);
  border: 1px solid rgba(200,146,42,.18);
  color: var(--old-paper);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.quiz-pill:not(:disabled):hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.quiz-pill.selected {
  background: rgba(200,146,42,.15);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
/* Ungültige Option (z.B. Antwortverzögerung >= Zeit pro Track) — nicht wählbar. */
.quiz-pill:disabled {
  opacity: .3;
  cursor: not-allowed;
  filter: grayscale(.6);
}

/* ── Profile: Statistik-Anzeige ────────────────────────────────────────── */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.stats-summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(8, 5, 2, 0.6);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 5px;
  padding: 10px 8px;
  text-align: center;
}
.stats-summary-value {
  font-family: 'Rye', cursive;
  color: var(--gold-light);
  font-size: 18px;
  margin-bottom: 2px;
}
.stats-summary-label {
  color: var(--smoke);
  font-size: 10px;
  letter-spacing: 0.05em;
}

/* SS-0171: Modus-Karten im 2-Spalten-Raster, auf schmalen Schirmen eine Spalte. */
.stats-mode-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .stats-mode-grid-2col { grid-template-columns: 1fr; }
}
.stats-mode-card {
  background: rgba(8, 5, 2, 0.5);
  border: 1px solid rgba(200, 146, 42, 0.12);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 0;
}
.stats-mode-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.12);
}
.stats-mode-name {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 15px;
}
.stats-mode-played {
  font-size: 12px;
  color: var(--smoke);
}
.stats-mode-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.stats-row-label {
  color: var(--smoke);
}
.stats-row-value {
  color: var(--old-paper);
  font-variant-numeric: tabular-nums;
}
.stats-pct {
  color: var(--smoke);
  font-size: 12px;
  margin-left: 4px;
}

@media (max-width: 540px) {
  .stats-summary { grid-template-columns: repeat(2, 1fr); }
}

/* ── SS-0013: Achievement-Galerie (Profil-Tab „Erfolge") ────────────────── */
/* 2-spaltiges Badge-Grid analog .stats-mode-grid-2col; feste Icon-Spalte. */
.ach-subheading {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 15px;
  margin: 16px 0 8px;
}
.ach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 560px) {
  .ach-grid { grid-template-columns: 1fr; }
}
.ach-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(8, 5, 2, 0.5);
  border: 1px solid rgba(200, 146, 42, 0.12);
  border-radius: 6px;
  padding: 12px 14px;
}
.ach-card.unlocked {
  border-color: rgba(200, 146, 42, 0.45);
  background: rgba(20, 14, 4, 0.6);
}
.ach-icon {
  font-size: 26px;
  line-height: 1.2;
  width: 34px;
  text-align: center;
  flex: 0 0 auto;
}
.ach-card.locked .ach-icon { filter: grayscale(1); opacity: 0.55; }
.ach-body { flex: 1 1 auto; min-width: 0; }
.ach-title {
  font-family: 'Rye', cursive;
  font-size: 14px;
  color: var(--gold-light);
}
.ach-card.locked .ach-title { color: var(--old-paper); }
.ach-desc {
  font-size: 12px;
  color: var(--smoke);
  margin-top: 2px;
  line-height: 1.35;
}
.ach-date {
  font-size: 11px;
  color: var(--smoke);
  margin-top: 6px;
}
.ach-progress {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ach-bar {
  flex: 1 1 auto;
  height: 5px;
  background: rgba(200, 146, 42, 0.12);
  border-radius: 3px;
  overflow: hidden;
}
.ach-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
}
.ach-progress-text {
  font-size: 11px;
  color: var(--smoke);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ── Footer (Datenschutz/Impressum-Links) ───────────────────────────────── */
.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  text-align: center;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--smoke);
  border-top: 1px solid rgba(200, 146, 42, 0.15);
  background: rgba(8, 5, 2, 0.85);
  backdrop-filter: blur(6px);
}
.footer-link {
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover {
  color: var(--gold);
}
.footer-sep {
  margin: 0 8px;
  opacity: 0.4;
}

/* ── SS-0196: Sprach-Dropdown (Header + Profil) ─────────────────────────────
   Löst den früheren segmentierten Footer-Umschalter ab. Trigger = Pill mit
   aktueller Flagge + Chevron (Optik wie .header-help-btn/.profile-btn);
   aufgeklappt eine Liste (Flagge + Eigenname), Backdrop zum Schließen. */
.lang-dd { position: relative; display: inline-flex; }
.lang-dd-trigger {
  position: relative;
  z-index: 1001;      /* über dem Backdrop */
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 9px;
  border-radius: 19px;
  background: rgba(8, 5, 2, 0.85);
  border: 1px solid rgba(200, 146, 42, 0.35);
  color: var(--gold);
  cursor: pointer;
  transition: all .2s;
}
.lang-dd-trigger:hover {
  border-color: var(--gold);
  background: rgba(20, 12, 3, 0.95);
}
.lang-dd-flag {
  display: block;
  height: 15px;
  width: auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
/* In der aufgeklappten Liste eine feste Flaggen-SPALTENBREITE statt höhen-
   basierter Breite — sonst starten die Namen je nach Seitenverhältnis der Flagge
   (DE 5:3 vs. UK 2:1) an unterschiedlichen x-Positionen und stehen nicht bündig
   untereinander. Höhe bleibt automatisch (kein Verzerren). */
.lang-dd-opt .lang-dd-flag {
  width: 24px;
  height: auto;
}
.lang-dd-chev {
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
  transition: transform .2s;
}
.lang-dd.open .lang-dd-chev { transform: rotate(180deg); }

.lang-dd-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: rgba(8, 5, 2, 0.95);
  border: 1px solid rgba(200, 146, 42, 0.35);
  border-radius: 8px;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.lang-dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--old-paper);
  text-decoration: none;
  font-size: 13px;
}
.lang-dd-opt:hover { background: rgba(200, 146, 42, 0.1); color: var(--gold); }
.lang-dd-opt.active {
  background: rgba(200, 146, 42, 0.14);
  color: var(--gold-light);
}
.lang-dd-name { flex: 1; }
.lang-dd-check { color: var(--gold); font-size: 12px; }

/* Profil-Variante: links steht das 🌐-Label, das Dropdown öffnet darunter.
   Damit das Menü nicht über den rechten Kartenrand hinausläuft, bleibt es
   rechtsbündig zum Trigger (Default oben). */

/* ── Legal Pages (Datenschutz, Impressum) ───────────────────────────────── */
.legal-page {
  max-width: 760px;
  margin: 40px auto;
  padding: 30px;
  background: rgba(8, 5, 2, 0.6);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 4px;
  color: var(--old-paper);
  line-height: 1.6;
}
.legal-page h1 {
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 28px;
  margin-top: 0;
}
.legal-page h2 {
  font-family: 'Rye', cursive;
  color: var(--gold-light);
  font-size: 18px;
  margin-top: 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.15);
}
.legal-page h3 {
  font-family: 'Rye', cursive;
  color: var(--gold-light);
  font-size: 14px;
  margin-top: 18px;
}
.legal-page p { font-size: 14px; }
.legal-page ul { padding-left: 22px; font-size: 14px; }
.legal-page li { margin-bottom: 5px; }
.legal-page a {
  color: var(--gold);
  text-decoration: underline;
}
.legal-block {
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--gold);
  padding: 12px 16px;
  margin: 12px 0;
}
.legal-footer {
  margin-top: 30px;
  color: var(--smoke);
  font-size: 12px;
  text-align: right;
}
/* SS-0193: Vorrang-Hinweis auf der EN-Fassung der Rechtstexte. */
.legal-translation-notice {
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--smoke);
  padding: 10px 14px;
  margin: 12px 0 18px;
  color: var(--smoke);
  font-size: 13px;
}

/* ── Startseiten-Hinweis-Banner (SS-0135) ───────────────────────────────── */
.announce {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 5px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid;
}
.announce-icon { font-size: 18px; line-height: 1.3; flex-shrink: 0; }
.announce-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.announce.announce-info  { background: rgba(60,120,180,.12);  border-left-color: #5a9bd4; color: #cfe3f5; }
.announce.announce-warn  { background: rgba(212,160,30,.12);  border-left-color: var(--gold); color: #f0dca0; }
.announce.announce-error { background: rgba(139,26,26,.16);   border-left-color: #c0392a; color: #f0c0b8; }

/* ── Fehlerseite /Error (SS-0131) ───────────────────────────────────────── */
.error-page-text {
  color: var(--old-paper);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  margin: 8px 0;
}
.error-page-hint { color: var(--smoke); font-size: 13px; }
.error-page-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

/* ── Changelog / Neuigkeiten (SS-0008) ──────────────────────────────────── */
.changelog-page {
  max-width: 760px;
  margin: 40px auto;
  padding: 30px 34px;
  background: rgba(8, 5, 2, 0.6);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 4px;
}
.changelog-title {
  font-family: 'Rye', cursive;
  color: var(--gold-light);
  font-size: 28px;
  margin: 0 0 4px;
}
.changelog-sub {
  color: var(--smoke);
  font-size: 13px;
  margin-bottom: 26px;
}
.changelog-empty {
  color: var(--smoke);
  font-style: italic;
  padding: 12px 0;
}
.changelog-timeline {
  margin-top: 4px;
}
.cl-entry {
  position: relative;
  padding: 0 0 22px 22px;
  border-left: 2px solid rgba(200, 146, 42, 0.25);
  margin-left: 6px;
}
.cl-entry:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}
.cl-entry::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px #14100c;
}
.cl-entry.latest::before {
  background: var(--amber);
  box-shadow: 0 0 0 3px #14100c, 0 0 10px rgba(212, 98, 10, 0.6);
}
.cl-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.cl-version {
  font-family: 'Rye', cursive;
  color: var(--gold-light);
  font-size: 16px;
}
.cl-badge-new {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f0a060;
  border: 1px solid rgba(212, 98, 10, 0.5);
  background: rgba(212, 98, 10, 0.12);
  border-radius: 10px;
  padding: 1px 8px;
}
.cl-date {
  color: var(--smoke);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.cl-entry-title {
  color: var(--parchment);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.cl-body {
  color: var(--old-paper);
  font-size: 13.5px;
  line-height: 1.6;
}
.cl-body strong { color: var(--gold-light); font-weight: 600; }
.cl-body ul { margin: 4px 0 12px; padding-left: 20px; }
.cl-body li { margin: 3px 0; }
.cl-body p { margin: 6px 0; }
.cl-body a { color: var(--gold); text-decoration: underline; }
/* Überschriften gezähmt — ein Changelog-Eintrag hat schon einen eigenen Titel,
   eine Markdown-H1 soll nicht die Card sprengen. */
.cl-body h1, .cl-body h2, .cl-body h3, .cl-body h4 {
  font-family: 'Rye', cursive;
  color: var(--gold-light);
  margin: 10px 0 4px;
  line-height: 1.3;
}
.cl-body h1 { font-size: 16px; }
.cl-body h2 { font-size: 15px; }
.cl-body h3, .cl-body h4 { font-size: 13.5px; }
.cl-body h1:first-child, .cl-body h2:first-child, .cl-body h3:first-child { margin-top: 0; }
.cl-body code {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--gold-light);
  background: rgba(200, 146, 42, 0.08);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ── Profile: Gefahrenzone ─────────────────────────────────────────────── */
.profile-danger-title {
  color: var(--blood-red) !important;
}
.btn-flex1 { flex: 1; }

/* ── Player-Name klickbar ───────────────────────────────────────────────── */
.p-name-clickable {
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: underline;
  text-decoration-color: rgba(200, 146, 42, 0.25);
  text-underline-offset: 3px;
}
.p-name-clickable:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ── Player Profile Modal — Body-Klassen (Wrapper auf <Modal>-Komponente migriert) ──── */
.player-profile-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.player-profile-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.08);
}
.player-profile-row:last-child { border-bottom: none; }
.player-profile-label {
  color: var(--smoke);
}
.player-profile-value {
  color: var(--old-paper);
  text-align: right;
}
.player-profile-banned { color: var(--blood-red); }
.player-profile-banned small { color: rgba(200, 100, 100, 0.7); margin-left: 4px; }
.player-profile-role {
  display: inline-block;
  background: rgba(200, 146, 42, 0.12);
  border: 1px solid rgba(200, 146, 42, 0.3);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 4px;
  font-size: 11px;
  color: var(--gold-light);
}
.player-profile-divider {
  border: none;
  border-top: 1px solid rgba(200, 146, 42, 0.15);
  margin: 16px 0 12px;
}
.player-profile-mod {
  background: rgba(139, 26, 26, 0.08);
  border: 1px solid rgba(139, 26, 26, 0.25);
  border-radius: 4px;
  padding: 12px;
}
.player-profile-mod .lbl {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--smoke);
}
.player-profile-mod .inp { margin-bottom: 10px; }
.player-profile-mod-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* SS-0024: Basis von .btn-ghost-red/.btn-red wurde nach oben zu den führenden
   .btn-*-Definitionen computed-konservierend zusammengeführt — hier bleiben nur die
   Zustände, die es dort noch nicht doppelt gibt (disabled + Hover-Hintergrund). */
.btn-ghost-red:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-red:hover { background: linear-gradient(135deg, #a02020, #6a1010); }
.btn-red:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Letzte-Spiele-Verlauf im Profil (Karten in .lg-games, SS-0172) ──────── */
.history-card-compact {
  background: rgba(8, 5, 2, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-left-width: 4px;
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.history-card-compact.history-outcome-won { border-left-color: rgba(80, 180, 80, 0.7); }
.history-card-compact.history-outcome-lost { border-left-color: rgba(180, 60, 60, 0.7); }
.history-card-compact.history-outcome-draw { border-left-color: rgba(180, 160, 80, 0.55); }

.history-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.history-card-mode {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.history-card-outcome {
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 2px;
}
.history-outcome-won  .history-card-outcome { background: rgba(80,180,80,.12);  color: #88d088; }
.history-outcome-lost .history-card-outcome { background: rgba(180,60,60,.12);  color: #e88080; }
.history-outcome-draw .history-card-outcome { background: rgba(180,160,80,.12); color: #d8c878; }

.history-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--smoke);
  font-size: 12px;
}
.history-card-meta > span { white-space: nowrap; }
.history-role-impostor { color: #e88080; }
.history-role-crewmate { color: #88d088; }
.history-word-inline {
  font-family: 'Rye', cursive;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.history-card-coplayers {
  font-size: 12px;
  color: rgba(220, 200, 170, 0.65);
}
.history-card-label {
  color: var(--smoke);
  margin-right: 4px;
}

/* ── Lobby-Gruppierung im Profil-Verlauf (SS-0172) ──────────────────────────
   „Letzte Partien" gruppiert pro Lobby-Sitzung: zugeklappte Köpfe, Klick lädt
   die Partien (history-card-compact, oben definiert) lazy in .lg-games nach. */
.lobby-group-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.lobby-group {
  background: rgba(8, 5, 2, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 4px;
  overflow: hidden;
}
.lobby-group-header {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; cursor: pointer; transition: background .12s;
}
.lobby-group-header:hover { background: rgba(200, 146, 42, 0.06); }
.lg-chevron {
  color: var(--smoke); font-size: 16px; flex-shrink: 0;
  width: 14px; text-align: center; transition: transform .15s;
}
.lobby-group.open .lg-chevron { transform: rotate(90deg); color: var(--accent-light); }
.lg-icons { font-size: 16px; flex-shrink: 0; letter-spacing: -2px; }
.lg-main { flex: 1; min-width: 0; }
.lg-title {
  font-family: 'Rye', cursive; color: var(--accent-light);
  font-size: 14px; letter-spacing: .03em;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.lg-code { color: var(--smoke); font-size: 12px; letter-spacing: .04em; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--smoke); font-size: 12px; margin-top: 3px; }
.lg-meta .sep { opacity: .5; }
.lg-wins { color: #88d088; }
.lg-when { flex-shrink: 0; color: var(--smoke); font-size: 11.5px; white-space: nowrap; }
.lg-games {
  border-top: 1px dashed rgba(200, 146, 42, 0.15);
  padding: 10px 14px 12px 32px;
  display: flex; flex-direction: column; gap: 7px;
  background: rgba(0, 0, 0, 0.18);
}
.lg-loading { color: var(--smoke); font-size: 12px; font-style: italic; padding: 4px 0; }

/* ── Partie-Detail im Profil (SS-0001 klickbare Mitspieler + SS-0014 Track-Verlauf) ── */
/* Listen-Karten werden anklickbar (öffnen die Detail-Ansicht). */
.history-card-clickable {
  cursor: pointer;
  position: relative;
  padding-right: 30px;
  transition: border-color .15s, transform .05s;
}
.history-card-clickable:hover { border-color: rgba(200, 146, 42, 0.4); }
.history-card-clickable:active { transform: scale(.998); }
.history-card-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--smoke);
  font-size: 18px;
  opacity: .5;
}
.history-card-clickable:hover .history-card-chevron { opacity: 1; color: var(--accent-light); }

/* Detail-Ansicht (Variante B: Pane-Swap im selben Modal) */
.btn-back-history {
  background: none;
  border: none;
  color: var(--accent-light);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 2px 0;
  margin-bottom: 12px;
}
.btn-back-history:hover { color: var(--parchment); }

.partie-detail { display: flex; flex-direction: column; }
.partie-detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.partie-detail-hero .history-card-mode { font-size: 17px; }
.partie-detail-meta { margin-bottom: 4px; }
.partie-detail-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(200, 146, 42, 0.18);
}
.partie-detail-sub {
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.partie-detail-coplayers { font-size: 13px; line-height: 1.9; }
.coplayer-link {
  color: var(--gold-light);
  cursor: pointer;
  border-bottom: 1px dotted rgba(232, 184, 75, 0.45);
}
.coplayer-link:hover { color: var(--parchment); border-bottom-color: var(--parchment); }
.coplayer-guest { color: rgba(220, 200, 170, 0.55); }
.coplayer-guest-mark { font-size: 10px; opacity: .7; margin-left: 2px; }
.coplayer-sep { color: var(--smoke); }

.track-history-list { display: flex; flex-direction: column; gap: 3px; }
.track-history-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 9px;
  border-radius: 3px;
  background: rgba(8, 5, 2, 0.45);
  border: 1px solid rgba(200, 146, 42, 0.1);
  font-size: 12.5px;
}
.track-history-clickable { cursor: pointer; transition: border-color .15s, background .15s; }
.track-history-clickable:hover { border-color: rgba(200, 146, 42, 0.4); background: rgba(20, 12, 5, 0.6); }
.track-history-ord {
  color: var(--smoke);
  width: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.track-history-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-history-artist { color: var(--parchment); }
.track-history-title { color: var(--smoke); }
.track-history-genre {
  font-size: 11px;
  color: var(--smoke);
  background: rgba(200, 146, 42, 0.08);
  padding: 1px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex: none;
}
.track-history-res { width: 18px; text-align: center; font-size: 13px; flex: none; }
.track-history-res.res-ok { color: #88d088; }
.track-history-res.res-no { color: #e88080; }

/* Discord-Brand-Akzent für den OAuth-Button */
.btn-discord:hover {
  border-color: #5865f2;
  background: rgba(88, 101, 242, 0.12);
}
.btn-discord .oauth-icon { color: #5865f2; }

/* ── Verknüpfte Accounts im Profil ──────────────────────────────────────── */
.linked-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.linked-account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(8, 5, 2, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.15);
  border-radius: 3px;
}
.linked-account-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.linked-account-name {
  color: var(--old-paper);
  font-size: 14px;
}
.linked-account-status {
  font-size: 12px;
  color: #88d088;
}
.linked-account-status-off {
  color: var(--smoke);
}
/* Verknüpfen/Trennen-Button in der Linked-Account-Row: kompakter als der
   Standard-Saloon-Button. Default `.btn` hat width:100%, text-transform:uppercase,
   font-size:15px, letter-spacing:.12em — alles addiert sich zu einem breiten
   Button, der die Info-Spalte wrapped. Hier alles auf Content-Breite stutzen. */
.linked-account-row .btn-sm-action {
  flex: 0 0 auto;
  width: auto !important;
  display: inline-block;
  padding: 5px 12px !important;
  font-size: 11px !important;

  letter-spacing: .04em !important;
  text-transform: none !important;
}
.linked-account-username {
  color: rgba(220, 200, 170, 0.6);
  font-style: italic;
  margin-left: 4px;
  font-size: 12px;
}

/* Steam-Brand-Akzent für den OAuth-Button (Steam-Blau) */
.btn-steam:hover {
  border-color: #66c0f4;
  background: rgba(102, 192, 244, 0.12);
}
.btn-steam .oauth-icon { color: #66c0f4; }

/* ── E-Mail-Verifikation: Banner im Profil ─────────────────────────────── */
.verify-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.verify-banner-text { line-height: 1.5; }
.verify-banner code {
  background: rgba(0,0,0,.3);
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 0.9em;
}
.alert-warning {
  background: rgba(180, 140, 30, 0.12);
  border: 1px solid rgba(220, 180, 80, 0.4);
  color: #e8c878;
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-size: 13px;
}
.email-verified {
  color: #88d088;
  margin-left: 6px;
  font-weight: bold;
}
.email-unverified {
  color: var(--amber);
  margin-left: 6px;
  font-size: 12px;
}
.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 3px;
}

/* Genre-Chips (Lobby Musikquiz-Settings) */
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  max-height: 140px;
  overflow-y: auto;
}
.genre-chip {
  padding: 5px 11px;
  font-size: 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--bone, #ddd);
  cursor: pointer;
  transition: all 0.12s ease;
  font-family: inherit;
}
.genre-chip:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.32);
}
.genre-chip.selected {
  background: linear-gradient(135deg, #d4620a, #f0a020);
  border-color: #f0a020;
  color: #1a0e05;
  font-weight: 600;
}
.genre-chip-count {
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 400;
  background: rgba(0,0,0,0.25);
  border-radius: 999px;
  vertical-align: middle;
}
.genre-chip.selected .genre-chip-count {
  background: rgba(0,0,0,0.18);
}

/* ════════════════════════════════════════════════════════════════════
   MUSIKQUIZ – Spielbildschirm
   ════════════════════════════════════════════════════════════════════ */

.mq-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mq-question {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 14px;
}

/* Musikquiz-spezifischer Header-Override: Drei-Spalten-Grid statt Flex-Space-Between,
   damit die Frage in der Mitte echt mittig steht — auch wenn das Genre rechts lang ist
   (z.B. „Zeitgenössischer Blues"). Standard-Flex-Space-Between verteilt nur die Abstände
   gleich, nicht die Mittel-Position. Bei Hangman/Tabu bleibt der Header im Flex-Modus
   (Hangman hat 4 Items inkl. Report-Flag-Button — ein generischer Grid-Switch würde dort
   das Layout brechen). */
.mq-card .hangman-word-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
}
.mq-card .hangman-word-progress { justify-self: start; min-width: 0; }
.mq-card .mq-question { justify-self: center; text-align: center; min-width: 0; }
.mq-card .hangman-letter-count {
  justify-self: end;
  min-width: 0;
  /* Falls Genre extrem lang ist (>30 Zeichen), elegant mit Ellipsis kürzen statt
     die Mitte zu verschieben. Im Normalfall (Pop / Rock / Jazz / Blues) ohne Effekt. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mystery-Cover (großes Fragezeichen-Quadrat) */
.mq-cover-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.mq-mystery-cover {
  position: relative;
  width: 160px;
  height: 160px;
  background: linear-gradient(135deg, #2a1d0e 0%, #3a2614 50%, #2a1d0e 100%);
  border: 2px solid var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5),
              inset 0 0 30px rgba(0,0,0,0.4),
              0 0 32px color-mix(in srgb, var(--accent) 35%, transparent);
}

.mq-mystery-cover.playing {
  animation: mq-cover-pulse 2.4s ease-in-out infinite;
}

@keyframes mq-cover-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.4), 0 0 24px color-mix(in srgb, var(--accent) 30%, transparent); }
  50%      { box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.4), 0 0 40px 8px color-mix(in srgb, var(--accent-light) 45%, transparent); }
}

.mq-question-mark {
  font-size: 96px;
  font-weight: 900;
  color: var(--parchment);
  text-shadow:
    0 0 24px var(--accent-light),
    0 0 48px var(--accent),
    0 2px 12px rgba(0,0,0,0.7);
  font-family: Georgia, serif;
  user-select: none;
}

/* Equalizer-Bars: 5 vertikale Bars die hoch/runter pulsieren */
.mq-equalizer {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 22px;
}
.mq-equalizer span {
  display: block;
  width: 4px;
  background: linear-gradient(180deg, #f0a020 0%, #d4620a 100%);
  border-radius: 2px;
  animation: mq-eq 0.9s ease-in-out infinite;
}
.mq-equalizer span:nth-child(1) { animation-delay: 0.0s;  height: 8px; }
.mq-equalizer span:nth-child(2) { animation-delay: 0.15s; height: 14px; }
.mq-equalizer span:nth-child(3) { animation-delay: 0.3s;  height: 18px; }
.mq-equalizer span:nth-child(4) { animation-delay: 0.45s; height: 14px; }
.mq-equalizer span:nth-child(5) { animation-delay: 0.6s;  height: 8px; }

@keyframes mq-eq {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1.0); }
}

.mq-play-btn {
  font-size: 14px;
  padding: 10px 22px;
}
.mq-blocked-hint {
  font-size: 12px;
  color: var(--smoke);
  text-align: center;
}

/* 4 Antwort-Optionen im 2x2 Grid */
.mq-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.mq-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.35);
  border: 2px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: var(--bone, #ddd);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  transition: all 0.15s ease;
  min-height: 56px;
}
.mq-option:hover:not(:disabled) {
  background: rgba(212, 146, 42, 0.10);
  border-color: rgba(212, 146, 42, 0.4);
  transform: translateY(-1px);
}
.mq-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.mq-option.selected {
  background: linear-gradient(135deg, rgba(212, 98, 10, 0.25), rgba(240, 160, 32, 0.18));
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(212, 146, 42, 0.25);
}
.mq-option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(212, 146, 42, 0.25);
  border: 1px solid rgba(212, 146, 42, 0.5);
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.mq-option.selected .mq-option-letter {
  background: var(--gold);
  color: #1a0e05;
}
.mq-option-text {
  flex: 1;
  word-break: break-word;
  /* Max 3 Zeilen, danach Ellipsis. Schützt vor iTunes-Featuring-Listen
     mit 15+ Künstlern (kommt selten, aber dann ist der Block 12 Zeilen lang
     und zerreißt das Grid). */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mq-answered-msg {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(76, 175, 80, 0.12);
  border-left: 3px solid #4caf50;
  border-radius: 4px;
  color: #a8d8aa;
  font-size: 13px;
  text-align: center;
}

/* Mobile: Antwort-Optionen einspaltig stapeln */
@media (max-width: 540px) {
  .mq-options { grid-template-columns: 1fr; }
  .mq-mystery-cover { width: 130px; height: 130px; }
  .mq-question-mark { font-size: 62px; }
}

/* Musikquiz-Lautstärkeregler (in der Spieloberfläche) */
.mq-volume-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 4px;
}
.mq-volume-icon {
  font-size: 14px;
  user-select: none;
  width: 18px;
  text-align: center;
}
.mq-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.mq-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid rgba(8, 5, 2, 0.8);
  cursor: pointer;
}
.mq-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid rgba(8, 5, 2, 0.8);
  cursor: pointer;
  border: 0;
}
.mq-volume-value {
  font-size: 12px;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}

/* Apple-Music-Deep-Link im Musikquiz-Break + Podium */
.apple-music-link {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--smoke);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  transition: all 0.15s ease;
}
.apple-music-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(212,98,10,0.08);
}
.apple-music-link-inline {
  margin-left: 6px;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.12s ease;
}
.apple-music-link-inline:hover {
  opacity: 1;
}

/* Klickbare Settings-Werte (z.B. "13 Kategorien ›") */
.settings-value-link {
  color: var(--gold-light);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: right;
  text-decoration: underline dotted rgba(212,98,10,0.4);
  text-underline-offset: 3px;
  transition: color 0.12s ease;
}
.settings-value-link:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* Modal für Kategorie-Filter-Übersicht (kleines Popup) */
.category-filter-modal {
  max-width: 420px;
  width: 90%;
  margin: 0 auto;
  padding: 0;
}
.category-filter-modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 16px 18px 20px;
}

/* ── Ausklappbare Filter-Gruppen (details/summary) ───────────────────────── */
/* Wird im CreateModal (Home) und EditModal (LobbyPage) für Kategorie- und
   Sprach-Filter verwendet. Open-Zustand wird in Razor per `open="@..."` gesetzt:
   gibt es bereits Auswahl → aufgeklappt, sonst eingeklappt. */
.filter-collapsible {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  background: rgba(0,0,0,.12);
  padding: 0;
}
.filter-collapsible > .filter-collapsible-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  transition: background 0.15s ease;
  border-radius: 4px;
}
.filter-collapsible > .filter-collapsible-summary::-webkit-details-marker {
  display: none;  /* Default-Dreieck unterdrücken */
}
.filter-collapsible > .filter-collapsible-summary:hover {
  background: rgba(255,255,255,.03);
}
/* Eigenes Dreieck per Pseudoelement – rotiert im open-Zustand */
.filter-collapsible > .filter-collapsible-summary::before {
  content: '▸';
  font-size: 18px;
  font-weight: 700;
  color: var(--gold, #c8922a);
  transition: transform 0.2s ease;
  display: inline-block;
  margin-right: 8px;
}
.filter-collapsible[open] > .filter-collapsible-summary::before {
  transform: rotate(90deg);
}
.filter-collapsible-label {
  flex: 1;
  margin: 0;
}
.filter-collapsible-hint {
  font-size: 11px;
  color: var(--smoke, #a89784);
  font-style: italic;
  letter-spacing: .04em;
  white-space: nowrap;
}
/* Innenraum wenn aufgeklappt — etwas Abstand nach unten + Padding wie ein normales fgrp */
.filter-collapsible[open] > .genre-chips,
.filter-collapsible[open] > small {
  margin-left: 14px;
  margin-right: 14px;
}
.filter-collapsible[open] > small {
  display: block;
  margin-top: 6px;
  margin-bottom: 12px;
}
/* Dual-Range-Zeile im Jahres-Collapsible bekommt dasselbe seitliche Padding
   wie die genre-chips, damit Balken + Griffe nicht am Kasten-Rand kleben. */
.filter-collapsible[open] > .dual-range-row {
  margin: 4px 14px 12px;
}

/* ── Dual-Range-Slider (SS-0162) ─────────────────────────────────────────
   Jahres-Filter „von–bis" als ein Balken mit zwei Griffen statt zwei Zeilen.
   Technik: zwei deckungsgleiche <input type=range> übereinander, beide
   pointer-events:none — nur die Thumbs sind klickbar (pointer-events:auto).
   Die farbige Füllung (.dr-fill) zwischen den Griffen wird per Inline-Style
   aus den aktuellen Werten positioniert. */
.dual-range-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dual-range-row .dr-rowlabel {
  width: 60px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--parchment);
}
.dual-range-wrap { flex: 1; min-width: 0; }
.dual-range {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
}
.dual-range .dr-track {
  position: absolute;
  left: 0; right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.12);
}
.dual-range .dr-fill {
  position: absolute;
  height: 4px;
  border-radius: 2px;
  background: var(--gold);
}
.dual-range input[type="range"] {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  margin: 0;
  height: 22px;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  pointer-events: none;   /* Spur inert — nur die Thumbs greifen */
}
.dual-range input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  cursor: pointer;
  pointer-events: auto;
}
.dual-range input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--ink);
  cursor: pointer;
  pointer-events: auto;
}
.dual-range input[type="range"]::-moz-range-track { background: none; }
/* z-index-Schichtung: „bis" liegt standardmäßig über „von". Sitzt „von" in der
   oberen Hälfte (Griffe dicht beieinander am rechten Rand), kommt „von" nach oben,
   sonst bliebe er unerreichbar unter dem „bis"-Thumb. */
.dual-range .dr-from { z-index: 3; }
.dual-range .dr-to   { z-index: 4; }
.dual-range .dr-from.dr-from-top { z-index: 5; }
.dual-range-vals {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

/* ── Musikquiz: Abstimmungsverzögerung ───────────────────────────────────── */
/* Antwort-Buttons werden in den ersten N Sekunden disabled (siehe MusicQuizPlaying).
   Wir zeigen die gewohnte „disabled"-Optik plus einen subtilen Hinweis darunter. */
.mq-options-locked {
  position: relative;
}
.mq-options-locked .mq-option {
  filter: blur(0.3px);
}
.mq-lock-hint {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  color: var(--smoke, #a89784);
  letter-spacing: .04em;
  padding: 6px;
  background: rgba(0,0,0,.2);
  border-radius: 2px;
}
.mq-lock-hint strong {
  color: var(--gold, #d4920a);
}

/* ── Break-Screen Stage (geteilt: Musikquiz · Hangman · Tabu) ────────────────
   Hero-Stage-Card mit Mode-Glow + Score-Strip + Countdown-Badge oben rechts.
   Eingeführt SS-0115 für Musikquiz, generalisiert SS-0116 für Hangman + Tabu.
   Frei von den alten `.break-title/-subtitle/.card-break/.countdown-*`-Klassen
   (die bleiben für CountdownScreen/TooFewPlayersScreen). Mode-spezifische
   Inhalte (Cover, Wort, Erklärer-Pill) via `.mq-break-*` / `.break-stage-hero-*`. */
.break-stage {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  /* Top-Padding 48 px statt 28 px: schafft Platz für das absolute-positionierte
     Countdown-Badge oben rechts (top:14 + ~26 px Höhe = endet bei y:40),
     damit lange Hero-Inhalte (z.B. „STEUERBERATER" auf voller Breite) nicht
     unter dem Badge durchlaufen. */
  padding: 48px 32px 22px;
  background: linear-gradient(135deg, rgba(22,14,6,.96), rgba(14,9,3,.98));
  border: 1px solid rgba(200,146,42,.28);
  border-radius: 6px;
  box-shadow: 0 18px 55px rgba(0,0,0,.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.break-stage::before {
  content: '';
  position: absolute;
  inset: -14px;
  background: radial-gradient(ellipse at center 45%, var(--accent) 0%, transparent 60%);
  opacity: .22;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}
.break-stage > * { position: relative; z-index: 1; }

/* Countdown-Badge: kompakt oben rechts, statt einsame große Ziffer am Schirmboden */
.break-stage-countdown {
  position: absolute;
  top: 14px;
  right: 18px;
  color: var(--smoke);
  font-size: 13px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  z-index: 2;
}
.break-stage-countdown-num {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

/* Hero-Cover (220 px) — dominanter Fokus statt 130 px im alten Layout */
.mq-break-cover {
  width: 220px;
  height: 220px;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,.6);
  object-fit: cover;
  display: block;
}
.mq-break-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--accent-light);
  background: linear-gradient(135deg, #2a1d0e 0%, #3a2614 50%, #2a1d0e 100%);
  border: 1px solid rgba(200,146,42,.2);
}

.mq-break-info { text-align: center; }
.mq-break-artist {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.mq-break-title {
  font-size: 18px;
  color: var(--parchment);
  font-weight: 500;
  line-height: 1.3;
}
.mq-break-album {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-style: italic;
  font-size: 13px;
  color: var(--smoke);
}

/* Score-Strip: alle Spieler als horizontale Pills, oben optisch abgetrennt */
.break-stage-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(200,146,42,.15);
  width: 100%;
}
.break-stage-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(8,5,2,.5);
  border: 1px solid rgba(200,146,42,.2);
  border-radius: 22px;
  font-size: 13px;
  color: var(--parchment);
}
.break-stage-score.correct {
  border-color: rgba(45,122,74,.5);
  background: rgba(45,122,74,.1);
}
.break-stage-score.wrong { opacity: .65; }
.break-stage-score-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--smoke);
  flex-shrink: 0;
}
.break-stage-score.correct .break-stage-score-dot { background: var(--green-ok); }
.break-stage-score-name { font-weight: 500; }
.break-stage-score-pts {
  color: var(--gold-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.break-stage-score.wrong .break-stage-score-pts {
  color: var(--smoke);
  font-weight: 400;
}
.break-stage-empty {
  color: var(--smoke);
  font-style: italic;
  font-size: 14px;
  padding: 10px 0;
}

/* ── Schnellfeuer-Beat (SS-0095) ──────────────────────────────────────────
   Kurzer Übergang statt vollem Reveal: zentrierter Block mit „Gleich geht's
   weiter …" + kompaktem, geranktem Live-Punktestand (Leader hervorgehoben,
   Punkte-Deltas der Runde). */
.mq-beat {
  width: min(420px, 92vw);
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mq-beat-track {
  font-family: 'Rye', serif;
  color: var(--gold-light);
  font-size: 24px;
}
.mq-beat-sub {
  color: var(--smoke);
  font-size: 14px;
  margin-bottom: 14px;
}
.mq-beat-count {
  color: var(--gold-light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.mq-ls {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.mq-ls-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 15px;
  padding: 7px 12px;
  border-radius: 4px;
  background: rgba(8, 5, 2, .45);
  border: 1px solid transparent;
}
.mq-ls-row.leader {
  background: rgba(200, 146, 42, .14);
  border-color: rgba(200, 146, 42, .35);
}
.mq-ls-rank {
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.mq-ls-row.leader .mq-ls-rank { color: var(--gold-light); }
.mq-ls-name {
  color: var(--parchment);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mq-ls-pts {
  color: var(--gold-light);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mq-ls-delta {
  color: #5aaa7a;
  font-size: 12px;
  margin-left: 6px;
  animation: mqDeltaPop .9s ease-out;
}
@keyframes mqDeltaPop {
  0%   { opacity: 0; transform: translateY(4px); }
  30%  { opacity: 1; transform: translateY(0); }
}

/* ── SS-0139: Track-Ready-Anzeige (Vorbereitungs-Screen + Break-Gate) ──────── */
.mq-ready {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.mq-ready-title { font-size: 14px; color: var(--smoke); }
.mq-ready-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(320px, 80vw);
}
.mq-ready-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 4px;
  background: rgba(8, 5, 2, .45);
  border: 1px solid transparent;
}
.mq-ready-row.ready { border-color: rgba(45, 122, 74, .4); background: rgba(45, 122, 74, .10); }
.mq-ready-name {
  text-align: left;
  color: var(--parchment);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mq-ready-state { font-size: 12px; }
.mq-ready-state.ok { color: #5aaa7a; font-weight: 600; }
.mq-ready-state.wait { color: var(--smoke); }
/* Punkt: grün-✓ wenn bereit, drehender Ring wenn lädt */
.mq-ready-dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.mq-ready-dot.ok { background: var(--green-ok); position: relative; }
.mq-ready-dot.ok::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: bold;
}
.mq-ready-dot.wait {
  border: 2px solid rgba(200, 146, 42, .3);
  border-top-color: var(--gold-light);
  animation: spin .8s linear infinite;
}

/* Break-Gate-Streifen (erscheint erst wenn nach Ablauf des Breaks jemand fehlt) */
.mq-gate { border-top: 1px solid rgba(200, 146, 42, .18); padding-top: 12px; margin-top: 10px; }
.mq-gate-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(168, 151, 132, .85);
  margin-bottom: 8px;
}
.mq-gate-dots { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.mq-gate-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--smoke);
  background: rgba(8, 5, 2, .5);
  padding: 4px 9px;
  border-radius: 12px;
}
.mq-gate-dot .mq-ready-dot { width: 12px; height: 12px; }
.mq-gate-dot .mq-ready-dot.ok::after { font-size: 8px; }

/* ── RoleReveal-Indikator — dezente Lade-Punkte statt Countdown-Zahl ───────────
   Der Rollen-Screen hat keinen tickenden Timer mehr; er startet nach kurzer
   Anzeige automatisch (bzw. beim Musikquiz, sobald alle bereit sind). Diese drei
   pulsierenden Punkte signalisieren „gleich geht's los" ohne harte Zahl. */
.rr-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.rr-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-light);
  box-shadow: 0 0 8px var(--accent-light);
  animation: dotPulse 1.4s ease-in-out infinite;
}
.rr-dot:nth-child(2) { animation-delay: .2s; }
.rr-dot:nth-child(3) { animation-delay: .4s; }

/* ── Gemeinsamer Intro-Rahmen (Spielstart-3D-Intros) ───────────────────────────
   Geteilte „Bühne": gerahmtes Fenster, in dem die Saloon-Schwingtüren in 3D
   aufschwingen und die spielspezifische Szene (ChildContent) freigeben. Genutzt
   von <Spiel>Intro.razor via <GameIntroFrame>. Reines CSS-3D, kein 3D-Lib; im
   festen Rahmen (nicht über den ganzen Viewport), damit App-Header/Layout ruhig
   bleiben. Jede Szene dockt über die mode-*-Klasse an --accent/--accent-light an. */
.gintro-frame {
  position: relative;
  width: min(440px, 90vw);
  height: 300px;
  margin: 0 auto 6px;
  perspective: 1100px;
  border-radius: 10px;
  overflow: hidden;
  background: #140e07;
  border: 2px solid #3a2a14;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .85);
}
.gintro-scene {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
}
.gintro-title {
  font-family: 'Rye', cursive; font-size: 26px; letter-spacing: 1px;
  color: var(--accent-light); text-shadow: 0 0 20px currentColor;
  opacity: 0; animation: gintroTtl .5s ease-out 1.4s forwards;
}
@keyframes gintroTtl { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Geteilte Sanft-Einblendung (nur Opacity — kollidiert nicht mit Baseline-Transforms). */
@keyframes gintroFade { from { opacity: 0; } to { opacity: 1; } }
.gintro-door {
  position: absolute; top: 0; height: 100%; width: 50%; z-index: 4;
  background: #4a3018;
  background-image: repeating-linear-gradient(180deg, #4a3018 0, #4a3018 22px, #33210f 23px, #4a3018 24px);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .55);
}
.gintro-door::after {
  content: ""; position: absolute; top: 30%; left: 16%; right: 16%; height: 38%;
  border: 3px solid #251708; border-radius: 3px; opacity: .5;
}
.gintro-door-l {
  left: 0; transform-origin: 0% 50%; border-right: 2px solid #1c1208;
  animation: gintroDoorL 1.15s cubic-bezier(.5, 0, .25, 1) .25s forwards;
}
.gintro-door-r {
  right: 0; transform-origin: 100% 50%; border-left: 2px solid #1c1208;
  animation: gintroDoorR 1.15s cubic-bezier(.5, 0, .25, 1) .25s forwards;
}
@keyframes gintroDoorL { from { transform: rotateY(0); } to { transform: rotateY(-115deg); } }
@keyframes gintroDoorR { from { transform: rotateY(0); } to { transform: rotateY(115deg); } }
/* Reduced-Motion: Türen statisch OFFEN (sonst blieben sie geschlossen und
   verdeckten die Szene); Titel sichtbar. Szenen-Stopps je Spiel weiter unten. */
@media (prefers-reduced-motion: reduce) {
  .gintro-door-l { transform: rotateY(-115deg); animation: none; }
  .gintro-door-r { transform: rotateY(115deg); animation: none; }
  .gintro-title { opacity: 1; animation: none; }
}

/* ── Musikquiz-Szene — drehende Schallplatte + Noten ──────────────────────────── */
.mqi-disc-wrap {
  position: relative; width: 140px; height: 140px;
  opacity: 0; animation: mqiUp .6s ease-out .7s forwards;
}
@keyframes mqiUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.mqi-disc {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, #1a130b 0 30%, #241a0d 30% 100%);
  border: 3px solid #0c0a07;
  transform: rotateX(56deg);
  animation: mqiSpin 1.6s linear 1.3s infinite;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}
.mqi-disc-label {
  position: absolute; inset: 38%; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px #0c0a07, 0 0 14px var(--accent-light);
}
.mqi-disc-shine {
  position: absolute; inset: 0; border-radius: 50%;
  border-top: 2px solid rgba(232, 184, 75, .25);
}
@keyframes mqiSpin {
  from { transform: rotateX(56deg) rotateZ(0); }
  to   { transform: rotateX(56deg) rotateZ(360deg); }
}
.mqi-note {
  position: absolute; font-size: 22px; color: var(--accent-light); opacity: 0;
  text-shadow: 0 0 12px rgba(214, 92, 120, .6); pointer-events: none;
}
.mqi-note1 { left: 58%; top: 42%; animation: mqiNote 1.8s ease-out 1.6s infinite; }
.mqi-note2 { left: 62%; top: 50%; animation: mqiNote 1.8s ease-out 2.2s infinite; }
.mqi-note3 { left: 54%; top: 46%; animation: mqiNote 1.8s ease-out 2.8s infinite; }
@keyframes mqiNote {
  0%   { opacity: 0; transform: translate(0, 0) scale(.5); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(60px, -80px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .mqi-disc-wrap { opacity: 1; animation: none; }
  .mqi-disc { animation: none; }
  .mqi-note1, .mqi-note2, .mqi-note3 { opacity: 0; animation: none; }
}

/* ── Seeschlacht-Szene — Schiff auf gekipptem Wassergitter + Fadenkreuz ───────── */
.ssi-sky {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 38%, #16324d 0, #0c1420 70%);
}
.ssi-water {
  position: absolute; left: -30%; right: -30%; bottom: -20px; height: 150px;
  background:
    repeating-linear-gradient(90deg, transparent 0 32px, rgba(77, 126, 171, .45) 32px 33px),
    repeating-linear-gradient(0deg,  transparent 0 24px, rgba(77, 126, 171, .35) 24px 25px);
  transform: perspective(280px) rotateX(62deg); transform-origin: bottom center;
  opacity: 0; animation: ssiWater .8s ease-out .9s forwards;
}
@keyframes ssiWater { from { opacity: 0; } to { opacity: .85; } }
.ssi-ship {
  position: absolute; left: 50%; top: 42%; width: 120px; height: 64px; margin-left: -60px;
  color: #9cc3e8; filter: drop-shadow(0 0 14px rgba(77, 126, 171, .6));
  opacity: 0; transform-origin: 50% 80%;
  animation: ssiShipIn .5s ease-out 1.4s forwards, ssiRock 2.4s ease-in-out 1.9s infinite;
}
@keyframes ssiShipIn { from { opacity: 0; transform: translateY(16px) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes ssiRock { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-4px); } }
.ssi-cross {
  position: absolute; left: 60%; top: 26%; width: 58px; height: 58px;
  color: var(--gold-light);
  opacity: 0; animation: ssiCross .6s ease-out 1.7s forwards, ssiSweep 3.4s ease-in-out 2.3s infinite;
}
@keyframes ssiCross { from { opacity: 0; transform: scale(1.6) rotate(-40deg); } to { opacity: .9; transform: none; } }
@keyframes ssiSweep { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-90px, 30px); } }
.ssi-title-pos { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; }
@media (prefers-reduced-motion: reduce) {
  .ssi-water { opacity: .85; animation: none; }
  .ssi-ship { opacity: 1; animation: none; }
  .ssi-cross { opacity: .9; animation: none; }
}

/* ── Schattenspiel-Szene — Scheinwerfer + Rollen-Figur (Reveal integriert) ─────── */
.schi-spot {
  position: absolute; top: -40px; left: 50%; width: 210px; height: 300px; margin-left: -105px;
  background: radial-gradient(ellipse at top, rgba(154, 90, 138, .30), transparent 70%);
  opacity: 0; transform-origin: top center;
  animation: schiSpot 2.6s ease-in-out 1.1s forwards;
}
@keyframes schiSpot {
  0%   { opacity: 0; transform: rotate(-20deg); }
  35%  { opacity: .6; }
  100% { opacity: .45; transform: rotate(12deg); }
}
.schi-figwrap { transform: scale(.72); opacity: 0; animation: gintroFade .5s ease-out 1.4s forwards; }
.schi-title-imp { color: var(--red-light); }
.schi-cat { margin-top: 14px; }
@media (prefers-reduced-motion: reduce) {
  .schi-spot { opacity: .45; animation: none; }
  .schi-figwrap { opacity: 1; animation: none; }
}

/* ── Hangman-Szene — Galgen baut sich auf + Buchstaben-Slots ───────────────────── */
.hmi-gallows { position: relative; width: 150px; height: 140px; }
.hmi-plank { position: absolute; background: var(--accent-light); border-radius: 2px; }
.hmi-base { bottom: 0; left: 14px; width: 92px; height: 8px; transform-origin: left center; animation: hmiGrow .35s ease-out 1.3s backwards; }
.hmi-post { bottom: 0; left: 28px; width: 8px; height: 132px; transform-origin: bottom center; animation: hmiGrow .35s ease-out 1.65s backwards; }
.hmi-beam { top: 8px; left: 28px; width: 80px; height: 8px; transform-origin: left center; animation: hmiGrow .35s ease-out 2.0s backwards; }
.hmi-rope { top: 14px; left: 100px; width: 3px; height: 30px; background: #cdb98f; transform-origin: top center; animation: hmiGrow .35s ease-out 2.3s backwards; }
@keyframes hmiGrow { from { transform: scale(0); } to { transform: scale(1); } }
.hmi-slots { display: flex; gap: 7px; }
.hmi-slots span { width: 24px; height: 30px; border-bottom: 3px solid var(--accent-light); opacity: 0; animation: gintroFade .3s ease-out forwards; }
.hmi-slots span:nth-child(1) { animation-delay: 2.5s; }
.hmi-slots span:nth-child(2) { animation-delay: 2.62s; }
.hmi-slots span:nth-child(3) { animation-delay: 2.74s; }
.hmi-slots span:nth-child(4) { animation-delay: 2.86s; }
.hmi-slots span:nth-child(5) { animation-delay: 2.98s; }
@media (prefers-reduced-motion: reduce) {
  .hmi-plank { animation: none; }
  .hmi-slots span { opacity: 1; animation: none; }
}

/* ── Tabu-Szene — roter „TABU"-Stempel knallt auf ─────────────────────────────── */
.tbi-stamp {
  font-family: 'Rye', cursive; font-size: 46px; letter-spacing: 3px;
  color: var(--red-light); border: 4px solid var(--red-light); border-radius: 8px;
  padding: 10px 26px; box-shadow: 0 0 26px rgba(192, 53, 42, .35);
  opacity: 0; transform: rotate(-8deg) scale(2.4);
  animation: tbiStamp .45s cubic-bezier(.2, 1.5, .4, 1) 1.5s forwards;
}
@keyframes tbiStamp {
  from { opacity: 0; transform: rotate(-8deg) scale(2.4); }
  to   { opacity: 1; transform: rotate(-8deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .tbi-stamp { opacity: 1; transform: rotate(-8deg) scale(1); animation: none; }
}

/* ── Wissensquiz-Szene — rotierendes Fragezeichen ─────────────────────────────── */
.wqi-qmark {
  font-family: 'Rye', cursive; font-size: 104px; line-height: 1;
  color: var(--accent-light); filter: drop-shadow(0 0 10px currentColor);
  opacity: 0;
  animation: wqiSpin .9s cubic-bezier(.2, 1, .3, 1) 1.3s forwards, wqiGlow 1.8s ease-in-out 2.3s infinite;
}
@keyframes wqiSpin { from { opacity: 0; transform: rotateY(540deg) scale(.2); } to { opacity: 1; transform: rotateY(0) scale(1); } }
@keyframes wqiGlow { 0%, 100% { filter: drop-shadow(0 0 8px currentColor); } 50% { filter: drop-shadow(0 0 22px currentColor); } }
@media (prefers-reduced-motion: reduce) {
  .wqi-qmark { opacity: 1; transform: none; animation: none; }
}

/* ── Memory-Szene — Kartenraster klappt gestaffelt um ─────────────────────────── */
.mmi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; perspective: 700px; }
.mmi-card {
  width: 46px; height: 60px; border-radius: 6px; position: relative;
  background: var(--accent); border: 1px solid var(--accent-light);
  transform: rotateY(180deg); backface-visibility: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .4);
  animation: mmiFlip .5s ease-out forwards;
}
.mmi-card::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
  margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(255, 255, 255, .14);
}
.mmi-card:nth-child(1) { animation-delay: 1.4s; }
.mmi-card:nth-child(2) { animation-delay: 1.55s; }
.mmi-card:nth-child(3) { animation-delay: 1.7s; }
.mmi-card:nth-child(4) { animation-delay: 1.85s; }
.mmi-card:nth-child(5) { animation-delay: 2.0s; }
.mmi-card:nth-child(6) { animation-delay: 2.15s; }
@keyframes mmiFlip { from { transform: rotateY(180deg); } to { transform: rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .mmi-card { transform: rotateY(0); animation: none; } }

/* ── Durak-Szene — Kartendeck fächert auf ─────────────────────────────────────── */
.dki-fan { position: relative; width: 170px; height: 130px; }
.dki-card {
  position: absolute; bottom: 6px; left: 63px; width: 44px; height: 64px;
  border-radius: 6px; background: #f4eedd; border: 1px solid #b8a98a;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .5); transform-origin: bottom center;
  opacity: 0; animation: dkiFan .55s cubic-bezier(.2, 1.1, .4, 1) forwards;
}
.dki-card::after { content: "♠"; position: absolute; top: 4px; left: 6px; font-size: 13px; color: var(--accent); }
.dki-card:nth-child(1) { --r: -44deg; animation-delay: 1.4s; }
.dki-card:nth-child(2) { --r: -22deg; animation-delay: 1.55s; }
.dki-card:nth-child(3) { --r: 0deg;   animation-delay: 1.7s; }
.dki-card:nth-child(4) { --r: 22deg;  animation-delay: 1.85s; }
.dki-card:nth-child(5) { --r: 44deg;  animation-delay: 2.0s; }
@keyframes dkiFan {
  from { opacity: 0; transform: rotate(0) translateY(40px); }
  to   { opacity: 1; transform: rotate(var(--r)) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .dki-card { opacity: 1; animation: none; } }

/* Meta-Caption (shared, klein-smoke unter Hero-Element) */
.break-stage-meta {
  font-size: 13px;
  color: var(--smoke);
  margin-top: -4px;
}

/* ── Hangman-Break: großes Wort als Bühnen-Hero ────────────────────────── */
.break-stage-hero-word {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  font-size: 40px;
  letter-spacing: .12em;
  margin: 8px 0 0;
  line-height: 1.1;
  text-shadow: 0 0 24px color-mix(in srgb, var(--accent-light) 35%, transparent);
  word-break: break-word;
}

/* ── Tabu-Break: Erklärer-Pill + Words-Liste ───────────────────────────── */
.break-stage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(200,146,42,.12);
  border: 1px solid rgba(200,146,42,.4);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: 13px;
}
.break-stage-pill strong { font-weight: 600; }

.break-stage-words {
  width: 100%;
  background: rgba(8,5,2,.45);
  border: 1px solid rgba(200,146,42,.15);
  border-radius: 5px;
  padding: 10px 16px;
}
.break-stage-words-head {
  font-size: 12px;
  color: var(--smoke);
  margin-bottom: 6px;
  text-align: center;
}
.break-stage-words-head strong { color: var(--gold-light); font-weight: 600; }
.break-stage-word-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(200,146,42,.07);
  font-size: 14px;
}
.break-stage-word-row:last-child { border-bottom: none; }
.break-stage-word-row.skipped { opacity: .55; }
.break-stage-word-row.skipped .break-stage-word-text { color: var(--smoke); }
.break-stage-word-text {
  font-family: 'Rye', cursive;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.break-stage-word-arrow { color: var(--smoke); margin: 0 6px; }
.break-stage-word-guesser { color: var(--parchment); font-weight: 500; }
.break-stage-skip-tag {
  font-size: 11px;
  color: var(--smoke);
  background: rgba(168,151,132,.1);
  padding: 1px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Mobile-Hochformat: Cover/Hero kleiner, Padding kompakter, Countdown näher am Rand */
@media (max-width: 540px) {
  .break-stage { padding: 38px 18px 18px; max-width: 100%; }
  .mq-break-cover { width: 180px; height: 180px; }
  .mq-break-cover-fallback { font-size: 60px; }
  .mq-break-artist { font-size: 24px; }
  .mq-break-title { font-size: 16px; }
  .break-stage-countdown { top: 10px; right: 12px; font-size: 12px; }
  .break-stage-countdown-num { font-size: 18px; }
  .break-stage-hero-word { font-size: 32px; letter-spacing: .08em; }
  .break-stage-words { padding: 8px 12px; }
  .break-stage-word-row { font-size: 13px; }
}

/* ── Filter-Chips: Stale-Zustand für Cross-Filter-Counts ─────────────────── */
/* Wenn eine Kategorie/Sprache durch die andere Achse aktuell auf 0 Tracks
   geschrumpft ist (z.B. „Schlager" + „🇬🇧 Englisch"), bleibt der Chip
   sichtbar – grau und disabled, damit der User die Konstellation versteht
   statt verwirrt zu sein wo die Option hin ist. */
.genre-chip.stale {
  opacity: 0.4;
  color: var(--smoke, #a89784);
  border-color: rgba(168,151,132,.15);
  pointer-events: auto;  /* Klick erlaubt, damit man die Auswahl wieder aufheben kann */
}
.genre-chip.stale .genre-chip-count {
  color: rgba(168,151,132,.5);
}
/* Stale UND selected: durchgestrichener Text – der gewählte Filter trägt aktuell nichts bei */
.genre-chip.stale.selected {
  text-decoration: line-through;
  text-decoration-color: rgba(212,98,10,.5);
  text-decoration-thickness: 1px;
}

/* Gesamt-Total-Hinweis unter den Filter-Sektionen */
.filter-total-hint {
  margin: 12px 0 4px;
  padding: 8px 12px;
  font-size: 13px;
  text-align: center;
  letter-spacing: .04em;
  color: var(--smoke, #a89784);
  background: rgba(0,0,0,.15);
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,.04);
}
.filter-total-hint strong {
  color: var(--gold, #d4920a);
}
.filter-total-hint-empty {
  color: #d97a5a;
  background: rgba(217,122,90,.08);
  border-color: rgba(217,122,90,.25);
}

/* ── Read-only Ja/Nein-Symbole in der Lobby-Settings-Box ─────────────────── */
/* Vorher als Text "Ja"/"Nein" - bricht bei knappem Platz um. Jetzt kompakte
   Symbole, die in jede Zeile passen. */
.settings-value-icon-yes {
  color: #5c5;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
}
.settings-value-icon-no {
  color: #d97a5a;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
}

/* Filter-Total-Hinweis: dritte Stufe für "Filter ergibt > 0 Tracks, aber weniger
   als die WordCount-Setting verlangt". Orange als Warnung zwischen "alles ok"
   (smoke) und "0 Tracks" (rot). */
.filter-total-hint-warn {
  color: var(--amber, #e8a040);
  background: rgba(232,160,64,.08);
  border-color: rgba(232,160,64,.25);
}

/* Klickbarer Spielmodus-Text in der Read-only-Settings-Box: öffnet das
   Spielregeln-Modal mit GameRulesContent. Sieht wie ein normales settings-value
   aus, hat aber Button-Reset + dezentes ⓘ-Icon damit klar wird dass es klickbar ist. */
.settings-value-link-mode {
  color: var(--gold-light);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: right;
  transition: color 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.settings-value-link-mode:hover {
  color: var(--gold);
}
.settings-value-info-icon {
  font-size: 11px;
  color: var(--smoke, #a89784);
  opacity: 0.7;
  transition: opacity 0.12s ease;
}
.settings-value-link-mode:hover .settings-value-info-icon {
  opacity: 1;
  color: var(--gold);
}

/* Spielmodus-Pill im Spielverlauf-Session-Header */
.history-session-mode-pill {
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border: 1px solid var(--accent-light);
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Apple-Music-Link inline in der Track-Zeile (Spielverlauf, Musikquiz) */
.history-apple-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  font-size: 13px;
  text-decoration: none;
  color: var(--gold, #d4920a);
  background: rgba(200,146,42,.10);
  border: 1px solid rgba(200,146,42,.25);
  border-radius: 2px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  vertical-align: middle;
}
.history-apple-link:hover {
  background: rgba(200,146,42,.25);
  border-color: rgba(200,146,42,.55);
  color: var(--gold-light);
  text-decoration: none;
}

/* ── History: Session-Scoreboard (oberhalb der Track-/Wort-Liste) ────────── */
/* Wird im Verlaufs-Modal angezeigt wenn eine Session aufgeklappt ist – zeigt
   den Endstand wie am Spielende, kompakter und im Verlaufs-Stil. */
.history-scoreboard {
  margin: 8px 0 14px;
  padding: 10px 14px;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(200,146,42,.18);
  border-radius: 2px;
}
.history-scoreboard-label {
  font-family: 'Rye', cursive;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--gold, #d4920a);
  margin-bottom: 8px;
}
.history-scoreboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  border-bottom: 1px dotted rgba(200,146,42,.08);
}
.history-scoreboard-row:last-child {
  border-bottom: none;
}
.history-scoreboard-medal {
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  color: var(--smoke, #a89784);
}
.history-scoreboard-name {
  flex: 1;
  color: var(--old-paper, #d6c6a8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-scoreboard-pts {
  font-weight: bold;
  color: var(--gold, #d4920a);
  flex-shrink: 0;
}
.history-scoreboard-row.is-me {
  background: rgba(200,146,42,.06);
  margin: 0 -6px;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 2px;
}
.history-scoreboard-row.is-me .history-scoreboard-name {
  color: var(--gold-light, #f0a020);
}

/* ══ Inhalts-Meldungen (Mod-Sprint Schritt 1) ═════════════════════════════
   Styles für ReportContentModal (Shared/ReportContentModal.razor) und den
   🚩-Button in den Spielmodi. Wiederverwendete generische Modal-Klassen
   (modal-backdrop, modal-content, fgrp, lbl, inp). */

/* 🚩-Button im Spiel — nur Symbol, sehr klein und dezent.
   Bewusst kein Label, damit der Button in engen Kopfzeilen nicht umbricht.
   Hover zeigt einen leichten roten Schimmer, damit der Zweck klar wird. */
.report-flag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(168, 151, 132, 0.35);
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 3px;
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
  flex-shrink: 0;
}
.report-flag-btn:hover {
  border-color: rgba(192, 53, 42, 0.35);
  color: rgba(192, 53, 42, 0.7);
  background: rgba(139, 26, 26, 0.08);
}
.report-flag-btn.reported {
  color: var(--green-ok);
  border-color: transparent;
  cursor: default;
  background: transparent;
}
.report-flag-btn:disabled {
  cursor: default;
}

/* Ziel-Anzeige oben im Melde-Modal — kompakte Info-Box mit dem was gemeldet wird */
.report-target-box {
  background: rgba(8, 5, 2, 0.5);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.report-target-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  margin-bottom: 4px;
}
.report-target-name {
  font-family: 'Rye', cursive;
  font-size: 16px;
  color: var(--gold-light);
}
.report-target-meta {
  font-size: 12px;
  color: var(--smoke);
  margin-top: 3px;
}

/* Reason-Auswahl als Liste statt klassischer Radio-Buttons.
   Klick auf die ganze Zeile selektiert — größere Trefferfläche, besser auf Touch. */
.report-reason-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.report-reason-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(8, 5, 2, 0.4);
  border: 1px solid rgba(200, 146, 42, 0.18);
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  color: var(--old-paper);
  transition: all .12s;
}
.report-reason-row:hover {
  border-color: rgba(200, 146, 42, 0.4);
  background: rgba(200, 146, 42, 0.04);
}
.report-reason-row.checked {
  border-color: rgba(200, 146, 42, 0.55);
  background: rgba(200, 146, 42, 0.1);
  color: var(--gold-light);
}
.report-reason-row input[type="radio"] {
  accent-color: var(--gold);
  cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════
   MATCHMAKING — Startseiten-Aktions-Buttons + „Lobby beitreten"-Modal
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Matchmaking-Modal: Code-Feld im Header ─────────────────────────────── */
/* (Wrapper .matchmaking-modal auf <Modal>-Komponente migriert — Body-Klassen bleiben) */
.mm-header-code {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mm-header-code .inp-code {
  width: 108px;
  background: rgba(8, 5, 2, .9);
  border: 1px solid rgba(200, 146, 42, .4);
  color: var(--gold-light);
  font-family: 'Rye', cursive;
  letter-spacing: .18em;
  text-align: center;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}
.mm-header-code .inp-code::placeholder {
  color: var(--smoke);
  letter-spacing: .1em;
  font-size: 12px;
}
.mm-header-code .mm-code-go {
  font-family: 'Rye', cursive;
  font-size: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--shadow);
  border: none;
  padding: 7px 12px;
  border-radius: 3px;
}
.mm-header-code .mm-code-go:disabled { opacity: .4; cursor: not-allowed; }
/* Auf schmalen Screens bricht das Code-Feld unter den Titel um.
   - flex-basis: 100% zwingt es auf volle Breite (statt sich neben den Title zu quetschen)
   - order: 99 verschiebt es ans Ende des Header-Flex-Containers, sodass der Close-Button
     (✕) trotzdem in der ersten Zeile rechts neben dem Title bleibt
   - Greift zusammen mit flex-wrap: wrap auf .modal-v2-header */
@media (max-width: 520px) {
  .mm-header-code {
    flex-basis: 100%;
    order: 99;
  }
  .mm-header-code .inp-code { flex: 1; width: auto; }
}

.mm-subhead {
  font-size: 11px;
  color: var(--smoke);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* ── Lobby-Eintrag (flache Liste) ───────────────────────────────────────── */
.mm-lobby {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--mid-wood);
  border: 1px solid rgba(200, 146, 42, .16);
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.mm-lobby:last-child { margin-bottom: 0; }
.mm-lobby-icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.mm-lobby-main { flex: 1; min-width: 0; }
.mm-lobby-host { color: var(--parchment); font-size: 14px; }
.mm-lobby-host .mm-host-name { color: var(--gold-light); }
.mm-lobby-meta {
  font-size: 11px;
  color: var(--smoke);
  margin-top: 2px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mm-mode-tag { color: var(--gold-light); letter-spacing: .04em; }
.mm-players { color: var(--old-paper); }
.mm-join-btn {
  font-family: 'Rye', cursive;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--shadow);
  border: none;
  padding: 8px 16px;
  border-radius: 3px;
}
.mm-join-btn:hover { transform: translateY(-1px); }

/* ── Leerzustand ────────────────────────────────────────────────────────── */
.mm-empty {
  text-align: center;
  color: var(--smoke);
  font-size: 13px;
  padding: 34px 12px;
  line-height: 1.6;
}
.mm-empty .mm-empty-icon {
  font-size: 34px;
  display: block;
  margin-bottom: 8px;
  opacity: .6;
}

/* ── Paging ─────────────────────────────────────────────────────────────── */
.mm-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(200, 146, 42, .14);
}
.mm-page-btn {
  font-size: 13px;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid rgba(200, 146, 42, .32);
  background: rgba(8, 5, 2, .5);
  color: var(--old-paper);
}
.mm-page-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-light); }
.mm-page-btn:disabled { opacity: .3; cursor: not-allowed; }
.mm-page-info { font-size: 12px; color: var(--smoke); }

/* ══════════════════════════════════════════════════════════════════════════
   MODUS-PILL MIT DROPDOWN — im Header von MatchmakingDialog und Create-Modal
   ══════════════════════════════════════════════════════════════════════════ */
.mode-pill-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(200, 146, 42, .15);
  border: 1px solid rgba(200, 146, 42, .4);
  border-radius: 14px;
  font-size: 13px;
  color: var(--gold-light);
  position: relative;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  user-select: none;
  margin-left: 8px;
}
.mode-pill-header:hover {
  background: rgba(200, 146, 42, .25);
  border-color: var(--gold);
}
.mode-pill-header.open {
  background: rgba(200, 146, 42, .3);
  border-color: var(--gold);
}
.mode-pill-header .caret {
  color: var(--smoke);
  font-size: 10px;
  margin-left: 2px;
}
.mode-switch-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--mid-wood);
  border: 1px solid rgba(200, 146, 42, .5);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
  z-index: 100;
  min-width: 180px;
  text-transform: none;
  letter-spacing: 0;
}
.mode-switch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--parchment);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}
.mode-switch-item:hover {
  background: rgba(200, 146, 42, .15);
  color: var(--gold-light);
}
.mode-switch-item.cur { background: rgba(200, 146, 42, .14); color: var(--gold-light); font-weight: 600; }
.mode-switch-icon { font-size: 18px; line-height: 1; width: 22px; text-align: center; flex-shrink: 0; }
/* SS-0174: Spiel im Wechsel-Dropdown gesperrt, weil zu viele Spieler verbunden sind. */
.mode-switch-item.disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}
.mode-switch-off.cap {
  color: var(--amber, #e8a060);
  border-color: rgba(232, 160, 96, .5);
}

/* ══════════════════════════════════════════════════════════════════════════
   MATCHMAKING — ACTION-CARDS (Schnellstart + Neue Lobby) und Live-Liste
   ══════════════════════════════════════════════════════════════════════════ */
.mm-action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.mm-action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(200, 146, 42, .3);
  border-radius: 5px;
  cursor: pointer;
  text-align: left;
  color: var(--parchment);
  transition: all .15s;
}
.mm-action-card:not(:disabled):hover {
  border-color: var(--gold);
  background: rgba(200, 146, 42, .08);
  transform: translateY(-1px);
}
.mm-action-card:disabled { opacity: .5; cursor: not-allowed; }
.mm-action-quickstart {
  background: linear-gradient(135deg, rgba(212, 98, 10, .22), rgba(212, 98, 10, .05));
  border-color: rgba(212, 98, 10, .55);
}
.mm-action-quickstart:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(212, 98, 10, .32), rgba(212, 98, 10, .1));
  border-color: var(--amber);
}
.mm-action-create {
  background: linear-gradient(135deg, rgba(200, 146, 42, .18), rgba(200, 146, 42, .05));
  border-color: rgba(200, 146, 42, .5);
}
.mm-action-create:not(:disabled):hover {
  background: linear-gradient(135deg, rgba(200, 146, 42, .28), rgba(200, 146, 42, .1));
  border-color: var(--gold);
}
.mm-action-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }
.mm-action-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mm-action-title {
  color: var(--gold-light);
  font-family: 'Rye', cursive;
  font-size: 15px;
}
.mm-action-sub { color: var(--smoke); font-size: 12px; }
@media (max-width: 540px) {
  .mm-action-cards { grid-template-columns: 1fr; }
}

.mm-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mm-subhead {
  font-family: 'Rye', cursive;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0;
}
.mm-live-hint {
  font-size: 11px;
  color: var(--smoke);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════════════════
   HEADER — Code-Direktbeitritt im Slot rechts vom Brand
   (sichtbar wenn nicht in Lobby + nicht im Spiel; sonst steht dort die
   .nav-lobby-pill bzw. nichts). Visuell als kompakte Pill gestaltet —
   gleiche Höhe und Stil-Sprache wie .nav-lobby-pill, damit der Slot
   konsistent wirkt egal welcher Inhalt drin steht.
   ══════════════════════════════════════════════════════════════════════════ */
.header-code-form {
  display: inline-flex;
  align-items: stretch;            /* Icon/Input/Button alle gleich hoch */
  gap: 0;
  margin-left: 14px;               /* analog .nav-lobby-pill */
  margin-right: auto;              /* drückt .app-header-actions ans rechte Ende */
  background: rgba(8, 5, 2, .55);
  border: 1px solid rgba(200, 146, 42, .35);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.header-code-form:hover { border-color: rgba(200, 146, 42, .55); }
.header-code-form:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200, 146, 42, .18);
  background: rgba(8, 5, 2, .75);
}
.header-code-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px 0 10px;
  font-size: 14px;
  line-height: 1;
  color: var(--smoke);
  user-select: none;
}
.header-code-input {
  background: transparent;
  border: none;
  color: var(--parchment);
  padding: 6px 10px 6px 4px;
  width: 92px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  line-height: 1;
}
.header-code-input::placeholder {
  color: rgba(168, 151, 132, .55);
  letter-spacing: 1px;
  text-transform: none;
}
.header-code-input:focus { outline: none; }
.header-code-go {
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: var(--ink);
  border: none;
  padding: 0 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  transition: filter .15s;
}
.header-code-go:hover:not(:disabled) { filter: brightness(1.12); }
.header-code-go:disabled {
  background: rgba(200, 146, 42, .12);
  color: rgba(168, 151, 132, .5);
  cursor: not-allowed;
}

/* Mobile: Icon-Padding kompakter, Input schmaler. Brand-Titel ist über
   .app-header-title Media-Query bereits ausgeblendet. */
@media (max-width: 540px) {
  .header-code-form { margin-left: 10px; }
  .header-code-icon { padding: 0 4px 0 8px; font-size: 13px; }
  .header-code-input { width: 78px; padding: 6px 8px 6px 4px; }
  .header-code-go { padding: 0 10px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   KONFIG-MODAL KOMPAKT — einzeilige Slider-Zeilen
   ══════════════════════════════════════════════════════════════════════════ */

/* Ersetzt die zweizeilige .fgrp für Slider-Einstellungen: Label fix links,
   Slider füllt die Mitte, aktueller Wert rechts — alles in einer Zeile. */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
}
.slider-row .sr-label {
  flex: 0 0 128px;
  color: var(--smoke);
  font-size: 13px;
  /* gleiche Typografie wie .lbl in den übrigen Konfig-Zeilen */
  letter-spacing: .16em;
  text-transform: uppercase;
}
.slider-row .slider { flex: 1; }
.slider-row .sr-value {
  flex: 0 0 auto;
  min-width: 48px;
  text-align: right;
  color: var(--gold);
  font-size: 14px;
  font-weight: bold;
}
/* SS-0174: Hinweis unter dem Max-Spieler-Slider, wenn der Account-Cap (unbestätigte
   E-Mail) den Slider unter das Konto-Maximum deckelt. */
.slider-cap-note {
  margin: -2px 0 6px;
  padding-left: 140px;
  color: var(--smoke);
  font-size: 11.5px;
}
/* SS-0024: zwei benachbarte 420px-Blöcke zusammengefasst.
   Auf sehr schmalen Screens bricht die Slider-Zeile um: Label oben, Slider+Wert darunter. */
@media (max-width: 420px) {
  .slider-cap-note { padding-left: 0; }
  .slider-row {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .slider-row .sr-label { flex-basis: 100%; }
  .slider-row .sr-value { min-width: 40px; }
}

/* ── Hilfe-Modal (Lobby-Sichtbarkeit) — Wrapper auf <Modal>-Komponente migriert ── */
/* Body-Styles entfallen, da der <Modal>-BodyContent direkt mit <p>-Tags + globalen
   Typografie-Regeln auskommt. Help-Modal-Inhalte sind kurz genug, dass kein
   eigener Body-Wrapper nötig ist. */

/* Variante für eine Toggle-Zeile: Label + Help-Icon nebeneinander, ohne den
   margin-bottom der Block-Variante .lbl-with-help. */
.lbl-with-help-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
/* line-height:1 sorgt dafür, dass das „?"-Glyph in seiner eigenen Box mittig
   sitzt; align-items:center des Containers zentriert die Box zur Textzeile.
   Kein padding-Hack nötig, sobald das Label korrekt normalisiert ist. */
.lbl-with-help-inline .help-icon-btn {
  line-height: 1;
}

/* ── Sichtbarkeits-Badge in der Lobby-Kopfzeile ─────────────────────────── */
.visibility-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(200, 146, 42, .3);
  background: rgba(8, 5, 2, .5);
  color: var(--smoke);
  cursor: default;
  flex-shrink: 0;
}
.visibility-badge.is-public {
  color: var(--green-ok);
  border-color: rgba(45, 122, 74, .45);
}

/* ── Sichtbarkeits-Icon in der Nav-Lobby-Pill ───────────────────────────── */
.nav-lobby-pill-vis {
  font-size: 12px;
  opacity: .85;
  flex-shrink: 0;
}

/* ── Einstellungs-Zeile mit Pill-Gruppe (Label links, Pills rechts) ──────────
   Analog zu .settings-toggle-row, aber statt eines einzelnen Toggle-Buttons
   steht rechts eine Pill-Gruppe (z.B. Antwortverzögerung: Aus / 2 s / 3 s).
   Auf schmalen Screens bricht die Pill-Gruppe unter das Label um. */
.settings-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
}
.settings-pills-row > .lbl {
  flex: 1;
  min-width: 0;
  /* .lbl bringt display:block + margin-bottom:7px mit — beides würde das
     Label in der Flex-Zeile aus der vertikalen Mitte schieben. Hier
     zurücksetzen und auf die kompakte 13px-Größe der Slider-Zeilen angleichen. */
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 13px;
}
.settings-pills-row .quiz-mode-pills {
  flex-shrink: 0;
  margin: 0;
  /* Pills bleiben einzeilig — der Umbruch auf schmalen Screens passiert
     auf Zeilenebene (.settings-pills-row), nicht innerhalb der Pill-Gruppe. */
  flex-wrap: nowrap;
}
@media (max-width: 460px) {
  .settings-pills-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .settings-pills-row > .lbl { flex-basis: 100%; }
}

/* ── TrackDetailModal (Shared, readonly) — Body-Klassen ─────────────────────
   Wrapper/Header (.tdm-modal/-head/-close/-body) auf <Modal>-Komponente migriert.
   Die Body-Layout-Klassen unten bleiben — der <Modal>-BodyContent rendert sie
   direkt. Eigene tdm-*-Inhalts-Klassen statt der track-detail-* aus admin.css,
   weil admin.css außerhalb des Admin-Bereichs (Game/Lobby/Profil) nicht geladen wird. */
.tdm-hero {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(200, 146, 42, .15);
}
.tdm-cover {
  width: 104px; height: 104px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(200, 146, 42, .25);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .5);
}
.tdm-cover-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: radial-gradient(circle at 35% 30%, var(--warm-wood), var(--ink));
}
.tdm-hero-text { flex: 1; min-width: 0; }
.tdm-artist {
  font-size: 18px; color: var(--gold-light);
  overflow-wrap: anywhere;
}
.tdm-title {
  font-size: 15px; color: var(--parchment);
  margin-top: 2px; overflow-wrap: anywhere;
}
.tdm-album {
  font-size: 12px; color: var(--smoke); font-style: italic;
  margin-top: 6px; overflow-wrap: anywhere;
}
.tdm-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 13px;
}
.tdm-label {
  color: var(--smoke);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  align-self: center;
}
.tdm-value { color: var(--parchment); }
.tdm-pill {
  display: inline-block;
  background: var(--mid-wood);
  border: 1px solid rgba(200, 146, 42, .3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--gold-light);
}
.tdm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tdm-btn {
  flex: 1;
  min-width: 150px;
  text-align: center;
  text-decoration: none;
}
.tdm-btn-star-on {
  background: rgba(200, 146, 42, .16);
  border-color: var(--gold);
  color: var(--gold-light);
}
.tdm-btn-flag { border-color: rgba(192, 53, 42, .5); color: #e0998f; }

/* „Bereits gemeldet"-Zustand — gilt für Track- und Spieler-Melde-Buttons.
   Der Button ist ohnehin disabled (.btn:disabled dimmt bereits); diese Klasse
   gibt ihm zusätzlich einen ruhigen grünen Erledigt-Akzent, damit er nach
   „bestätigt erledigt" aussieht statt nach „kaputt/deaktiviert".
   !important, weil .btn:disabled-Dimmung sonst die Randfarbe schluckt. */
.tdm-btn-reported,
.btn-reported {
  border-color: rgba(45, 122, 74, .55) !important;
  color: var(--green-ok) !important;
}

/* Klickbare Track-Zeilen (Podium, Lobby-Verlauf, Profil) — öffnen das TrackDetailModal. */
.track-clickable { cursor: pointer; }
.track-clickable:hover { color: var(--gold-light); }

/* ── Profil: Favoriten-Section ───────────────────────────────────────────── */
.profile-fav-count { font-size: 12px; color: var(--smoke); font-weight: normal; }
.profile-fav-list { display: flex; flex-direction: column; }
.profile-fav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(200, 146, 42, .12);
}
.profile-fav-row:last-child { border-bottom: none; }
.profile-fav-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.profile-fav-cover {
  width: 38px; height: 38px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.profile-fav-cover-empty {
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: radial-gradient(circle at 35% 30%, var(--warm-wood), var(--ink));
}
.profile-fav-text { flex: 1; min-width: 0; }
.profile-fav-artist {
  font-size: 13px; color: var(--gold-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-fav-title {
  font-size: 12px; color: var(--smoke);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* SS-0171: Aktions-Spalte je Favoriten-Zeile (▶ Vorschau · ✕/Inline-Confirm). */
.profile-fav-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
/* Beide Aktions-Buttons kompakt + einheitlich. Überschreibt die .btn-Base
   (voll-breit, Rye, Uppercase) UND gibt dem ▶ einen expliziten Hintergrund —
   sonst zeigt der <button> das Browser-Default-Chrome. */
.profile-fav-acts .btn {
  width: auto; min-width: 32px; height: 30px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-size: 13px; letter-spacing: 0; text-transform: none;
  border-radius: 4px; line-height: 1;
}
.profile-fav-play {
  background: transparent;
  border: 1px solid rgba(200, 146, 42, .4);
  color: var(--gold-light);
}
.profile-fav-play:hover { background: rgba(200, 146, 42, .15); border-color: var(--gold); }

/* SS-0171: AdminPager-Styles auch außerhalb des Admin verfügbar machen — der Pager
   wird jetzt in saloon-Seiten genutzt (Profil-Verlauf/Favoriten, Teams-Übersicht),
   die nur saloon.css laden. Die Button-/Container-Styles leben sonst nur in admin.css.
   Auf Admin-/Mod-Seiten wird admin.css NACH saloon.css geladen und überschreibt diese
   Regeln → dort bleibt das Tabellen-Shell-Layout des Pagers unverändert. */
.admin-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap; padding: 14px 0 2px;
}
.admin-pager-info { font-size: 12px; color: var(--smoke); margin-left: 6px; }
.lot-page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  background: rgba(8, 5, 2, .6); border: 1px solid rgba(200, 146, 42, .2);
  color: var(--smoke); font-size: 13px; border-radius: 3px;
  cursor: pointer; transition: all .2s;
}
.lot-page-btn:hover:not(:disabled) { color: var(--gold); border-color: rgba(200, 146, 42, .5); }
.lot-page-btn:disabled { opacity: .3; cursor: default; }
.lot-page-btn.lot-page-active {
  background: rgba(200, 146, 42, .15); border-color: var(--gold); color: var(--gold-light);
}

.profile-fav-remove {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1px solid rgba(192, 53, 42, .4);
  background: var(--mid-wood);
  color: var(--parchment);
  cursor: pointer;
  font-size: 13px;
}
.profile-fav-paging {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(200, 146, 42, .12);
}
.profile-fav-page-info { font-size: 12px; color: var(--smoke); letter-spacing: .04em; }

/* ── Profil: „Letzte Spiele"-Button (öffnet das History-Modal) ───────────── */
.profile-history-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.profile-history-btn-count { font-size: 12px; color: var(--smoke); }

/* ════════════════════════════════════════════════════════════════════
   SS-0168 — Freunde-Funktion
   ════════════════════════════════════════════════════════════════════ */

/* Zähler-Badge (offene eingehende Anfragen) — am Abschnitts-Titel + im Dropdown. */
.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: bold;
  color: #1a0f06;
  background: var(--gold-light);
  border-radius: 9px;
  vertical-align: middle;
}
.profile-section-subtle {
  font-size: 12px;
  color: var(--smoke);
  font-weight: normal;
  margin-left: 4px;
}

/* Nav-Badge: kleiner Punkt-Zähler oben rechts am Profil-Avatar-Button. */
.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 10.5px;
  font-weight: bold;
  color: #1a0f06;
  background: var(--gold-light);
  border: 1px solid rgba(13, 10, 7, 0.7);
  border-radius: 9px;
  pointer-events: none;
}
.profile-btn { position: relative; }
.nav-badge-inline { margin-left: auto; }

/* Gruppen-Überschrift innerhalb des Freunde-Abschnitts (eingehend/ausgehend/Liste). */
.friend-group-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 16px 0 4px;
}
.friend-group-label:first-of-type { margin-top: 6px; }

.friend-list { display: flex; flex-direction: column; }
/* Zeile bricht um: Avatar + Name/Meta auf Zeile 1, Aktions-Buttons rutschen bei
   Platzmangel (schmale Profil-Spalte) rechtsbündig auf eine zweite Zeile, statt
   den Text zu quetschen. */
.friend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 11px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(200, 146, 42, 0.08);
}
.friend-row:last-child { border-bottom: none; }
/* min-width erzwingt den Umbruch: kann die Text-Spalte nicht unter 60% schrumpfen,
   müssen die Buttons auf die nächste Zeile (statt den Text zu quetschen). */
.friend-row-main { flex: 1 1 auto; min-width: 60%; }
.friend-row-name {
  font-size: 13.5px;
  color: var(--parchment);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.friend-row-meta { color: var(--smoke); font-size: 11px; margin-top: 2px; line-height: 1.35; }
.friend-row-acts {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.friend-inline-q { color: var(--smoke); font-size: 12px; }

/* Kompakter Button für die Listen-Aktionen (Annehmen/Ablehnen/Entfernen …). */
.btn-xs {
  display: inline-block;
  width: auto;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 3px;
  white-space: nowrap;
  cursor: pointer;
}

/* Freundschafts-Block im PlayerProfileModal. */
.player-profile-friend { margin-top: 4px; }
.player-profile-friend .alert-error { margin-bottom: 8px; }
.player-profile-friend-state {
  color: var(--green, #88d088);
  font-size: 13px;
  margin-bottom: 8px;
}
.player-profile-friend-q {
  color: var(--smoke);
  font-size: 12.5px;
  align-self: center;
  margin-right: 2px;
}
.player-profile-team-link {
  color: var(--gold-light);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.player-profile-team-link:hover { color: var(--gold); }

/* SS-0152: visuell ausgeblendet, aber für Screenreader + Suchmaschinen vorhanden
   (z.B. die H1 der Landing-Page, deren Markentitel sonst nur in der Kopfleiste steht). */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════════════════════════════
   SS-0171 — Profilseite mit Tabs
   ════════════════════════════════════════════════════════════════════ */

/* Identitäts-Leiste: bleibt über allen Tabs sichtbar (Porträt + Name + Team/Partien). */
.profile-id-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(8, 5, 2, .6);
  border: 1px solid rgba(200, 146, 42, .18);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.profile-id-avatar { flex-shrink: 0; }
.profile-id-main { min-width: 0; }
.profile-id-name { font-family: 'Rye', cursive; color: var(--gold-light); font-size: 20px; line-height: 1.1; display: flex; align-items: center; gap: 6px; }
.profile-id-meta { color: var(--smoke); font-size: 12.5px; margin-top: 5px; }
.profile-id-team { color: var(--gold-light); text-decoration: underline dotted; text-underline-offset: 2px; }
.profile-id-team:hover { color: var(--gold); }

/* Tab-Leiste */
.profile-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(200, 146, 42, .25);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.profile-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  cursor: pointer;
  background: transparent;
  color: var(--smoke);
  font-family: inherit;
  font-size: 14px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  position: relative;
  top: 1px;
}
.profile-tab:hover { color: var(--parchment); }
.profile-tab.active {
  color: var(--gold-light);
  background: rgba(8, 5, 2, .6);
  border-color: rgba(200, 146, 42, .25);
  font-weight: bold;
}
.profile-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--gold-light);
}

/* Tab-Inhalt: Flex-Raster. Standard = volle Breite; .col-half = zwei nebeneinander
   (auf schmalen Schirmen brechen sie über min-width wieder auf eine Spalte um). */
.profile-tab-body {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
/* SS-0171: Tab-Inhalte sind IMMER im DOM (eine .tab-region je Tab) und werden nur per
   CSS ein-/ausgeblendet — der Tab-Wechsel ist so ein reiner Sichtbarkeits-Toggle ohne
   Re-Render/Remount. Jede Region ist selbst der Flex-Container ihrer Sections/Pairs;
   nur die aktive ist sichtbar. */
.profile-tab-body > .tab-region { flex: 1 1 100%; }
.tab-region {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.tab-region.tab-hidden { display: none; }
.tab-region > section { flex: 1 1 100%; margin: 0; }
/* explizite 50/50-Paar-Reihe — hält Daten+Gefahrenzone bzw. Konto+Verknüpfte robust
   nebeneinander, egal ob eine Karte fehlt (z.B. „Verknüpfte Accounts" ohne OAuth).
   Ein einzelnes col-half wächst über flex-grow auf volle Breite. */
.tab-region > .profile-pair {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
.profile-pair > .col-half { flex: 1 1 calc(50% - 9px); min-width: 280px; margin: 0; }
/* Favoriten rendert (DOM-bedingt) vor den Statistiken — per order ans Ende des Tabs. */
.profile-tab-body > .profile-fav-last { order: 5; }

/* ════════════════════════════════════════════════════════════
   SS-0182 Wissensquiz — Frage/Timer/Break (nutzt --accent der .mode-wissensquiz)
   Layout lehnt sich bewusst an die Musikquiz-Klassen an (.mq-*, .break-stage-*).
   ════════════════════════════════════════════════════════════ */
.wq-card { /* erbt von .mq-card; Platzhalter für künftige Quiz-spezifische Tweaks */ }

/* Frage prominent über den Antwort-Buttons */
.wq-question {
  font-family: 'Rye', cursive;
  font-size: 21px;
  line-height: 1.4;
  color: var(--parchment);
  text-align: center;
  margin: 8px 4px 16px;
}

/* Hinweis solange der Timer (= Antwort-Fenster) noch nicht läuft */
.wq-timer-idle {
  flex: 1;
  font-size: 13px;
  color: var(--smoke);
  font-style: italic;
}

/* Schwierigkeits-Badge in der Kopfzeile */
.wq-difficulty {
  padding: 2px 9px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 26%, transparent);
}
.wq-diff-leicht { --accent: #4f7a3a; --accent-light: #8bbf6a; }   /* grün = leicht  */
.wq-diff-mittel { --accent: #b88a2a; --accent-light: #e3b85a; }   /* gold = mittel  */
.wq-diff-schwer { --accent: #a3324a; --accent-light: #d65c78; }   /* karmin = schwer */

/* ── Break-Screen ───────────────────────────────────────────── */
.wq-break-question {
  font-family: 'Rye', cursive;
  font-size: 18px;
  line-height: 1.35;
  color: var(--parchment);
  text-align: center;
  margin: 4px 8px 14px;
  opacity: .9;
}
.wq-break-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 12px;
}
.wq-break-answer-label {
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--smoke);
}
.wq-break-answer-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-light);
  text-align: center;
}
.wq-break-explanation {
  max-width: 520px;
  margin: 0 auto 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--parchment);
  background: rgba(8, 5, 2, .5);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}

/* ══════════════════════════════════════════════════════════════════════════
   SS-0187 MEMORY — Brett, Karten, Zustände, Animationen
   Eigene .mem-card-Klassen (KEIN globales .card überschreiben). Akzentfarbe via
   .mode-memory am Screen-Wurzel. Mockup: docs/mockups/ss0187-memory-spiel.html
   ══════════════════════════════════════════════════════════════════════════ */
.memory-board-card { display: flex; flex-direction: column; gap: 14px; }

.memory-turn {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, #160f08), #160f08);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}
.memory-turn .mt-dot {
  width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; background: var(--accent-light);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-light) 35%, transparent);
}
.memory-turn .mt-who  { font-family: 'Rye', serif; font-size: 16px; color: var(--parchment); }
.memory-turn .mt-hint { font-size: 12.5px; color: var(--smoke); margin-left: auto; }

.memory-board { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
@media (max-width: 760px) { .memory-board { grid-template-columns: repeat(4, 1fr); } }

.mem-card {
  position: relative; height: 84px; border-radius: 10px; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
  transition: transform .25s ease, box-shadow .2s ease, opacity .3s ease;
}
.mem-card .ic { width: 38px; height: 38px; }
.mem-card.back {
  background: radial-gradient(120% 120% at 50% 34%, #3a2812 0%, #1b1106 72%);
  border: 1px solid var(--gold); color: var(--gold-light);
}
.mem-card.back::before {
  content: ""; position: absolute; inset: 6px; border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.mem-card.back::after {
  content: ""; position: absolute; width: 30px; height: 30px; transform: rotate(45deg);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
}
.mem-card.back .emblem { position: relative; width: 24px; height: 24px; color: var(--gold-light); }
.mem-card.is-clickable { cursor: pointer; }
.mem-card.is-clickable:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(0, 0, 0, .5); }
.mem-card.face {
  background: linear-gradient(160deg, #efdcb4, #d6bd92); border: 1px solid #b89a63; color: #2e1f0e;
  animation: memFlip .28s ease;
}
.mem-card.sel {
  box-shadow: 0 0 0 3px var(--accent-light), 0 6px 18px rgba(0, 0, 0, .55); transform: translateY(-2px);
}
.mem-card.match {
  opacity: .55; box-shadow: 0 0 0 2px var(--gold), 0 0 16px color-mix(in srgb, var(--gold) 45%, transparent);
  animation: memMatch .5s ease;
}
.mem-card.miss { box-shadow: 0 0 0 3px var(--red-light); animation: memMiss .4s ease; }
.mem-card .owner {
  position: absolute; bottom: 6px; right: 6px; width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .45);
}

.memory-progress { margin: 0; font-size: 11.5px; color: var(--smoke); }

@keyframes memFlip  { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@keyframes memMatch { 0% { box-shadow: 0 0 0 3px var(--gold), 0 0 26px var(--gold); opacity: 1; } 100% { opacity: .55; } }
@keyframes memMiss  { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ══════════════════════════════════════════════════════════════════════════
   SS-0188 DURAK — Spielkarten, Tisch, Hand. Eigene .durak-* / .durak-card-
   Klassen (KEIN globales .card überschreiben). Akzent via .mode-durak.
   Karten-Look portiert aus docs/mockups/ss0188-durak-spiel.html
   ══════════════════════════════════════════════════════════════════════════ */
.durak-board { --card-w: 60px; --card-h: 84px; display: flex; flex-direction: column; gap: 14px; }
.durak-topbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.durak-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--old-paper);
}
.durak-chip.phase { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #000), var(--accent)); border-color: var(--accent-light); color: var(--parchment); font-weight: 600; }
.durak-chip b { color: var(--gold-light); }

/* ── Karte ── */
.durak-card {
  position: relative; width: var(--card-w, 60px); height: var(--card-h, 84px); flex: 0 0 auto; border-radius: 7px;
  color: #3a2a1a; font-family: 'Rye', serif; line-height: 1;
  background:
    radial-gradient(ellipse at 24% 16%, rgba(120, 80, 35, .13) 0 22%, transparent 47%),
    radial-gradient(ellipse at 82% 86%, rgba(120, 80, 35, .14) 0 20%, transparent 45%),
    linear-gradient(155deg, #f6ead0 0%, #ecd9af 55%, #dec79c 100%);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .5), inset 0 0 16px rgba(90, 58, 22, .30), inset 0 0 0 1px rgba(255, 250, 235, .5);
  transition: transform .12s ease, box-shadow .12s ease;
}
.durak-card::before {
  content: ""; position: absolute; inset: 3px; border-radius: 5px; pointer-events: none;
  border: 1px solid color-mix(in srgb, #3a2a1a 42%, transparent);
  box-shadow: inset 0 0 0 1.5px rgba(246, 238, 214, .55), inset 0 0 0 2.5px color-mix(in srgb, #3a2a1a 16%, transparent);
}
.durak-card.red { color: #9a2b2b; }
.durak-card .corner { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 1px; z-index: 1; }
.durak-card .corner.tl { top: 5px; left: 6px; }
.durak-card .corner.br { bottom: 5px; right: 6px; transform: rotate(180deg); }
.durak-card .corner .r { font-size: 15px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(255, 250, 235, .4); }
.durak-card .corner .s { font-size: 10px; font-family: var(--font-body); }
.durak-card .pip { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-family: var(--font-body); z-index: 1; }
.durak-card .pip::before {
  content: ""; position: absolute; width: 40px; height: 40px; transform: rotate(45deg); border-radius: 7px; opacity: .5;
  border: 1px solid color-mix(in srgb, #3a2a1a 32%, transparent); box-shadow: inset 0 0 0 3px rgba(246, 238, 214, .35);
}
.durak-card.court .pip { font-size: 24px; font-family: 'Rye', serif; }

/* Rückseite */
.durak-card.back {
  color: var(--gold-light); font-family: var(--font-body);
  background:
    repeating-linear-gradient(45deg, rgba(0, 0, 0, .15) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .15) 0 5px, transparent 5px 10px),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent-light) 42%, transparent) 0 30%, transparent 60%),
    linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 46%, #000));
  box-shadow: 0 3px 7px rgba(0, 0, 0, .55), inset 0 0 0 2px var(--gold), inset 0 0 0 4px #f1e4c4, inset 0 0 0 6px var(--gold);
}
.durak-card.back::before { content: none; }
.durak-card.back::after { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; color: var(--gold-light); text-shadow: 0 0 8px rgba(0, 0, 0, .5); }

.durak-card.trump { box-shadow: 0 0 0 2px var(--gold-light), 0 4px 14px color-mix(in srgb, var(--gold-light) 55%, transparent), inset 0 0 16px rgba(90, 58, 22, .30), inset 0 0 0 1px rgba(255, 250, 235, .5); }
.durak-card.playable { cursor: pointer; box-shadow: 0 0 0 2px var(--accent-light), 0 5px 14px rgba(0, 0, 0, .5), inset 0 0 16px rgba(90, 58, 22, .28), inset 0 0 0 1px rgba(255, 250, 235, .5); }
.durak-card.playable:hover { transform: translateY(-14px); }
.durak-card.sel { transform: translateY(-18px); box-shadow: 0 0 0 3px var(--gold-light), 0 10px 18px rgba(0, 0, 0, .55), inset 0 0 16px rgba(90, 58, 22, .28); }
.durak-card.dim { filter: grayscale(.5) brightness(.7) sepia(.2); opacity: .82; }

/* Mini (Gegnerfächer / Deck) */
.durak-card.mini { --card-w: 34px; --card-h: 48px; border-radius: 5px; }
.durak-card.mini::before { inset: 2px; border-radius: 3px; box-shadow: none; }
.durak-card.mini .pip::before { display: none; }
.durak-card.mini.back::after { font-size: 15px; }
.durak-card.mini .corner .r { font-size: 9px; } .durak-card.mini .corner .s { font-size: 7px; } .durak-card.mini .pip { font-size: 16px; }
.durak-card.mini .corner.tl { top: 3px; left: 4px; } .durak-card.mini .corner.br { bottom: 3px; right: 4px; }

/* ── Gegner-Sitze ── */
.durak-seats { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.durak-seat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); min-width: 116px; }
.durak-seat.turn { border-color: var(--accent-light); background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 35%, transparent); }
.durak-seat.out { opacity: .5; }
.durak-seat .who { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--parchment); font-weight: 600; }
.durak-seat .fan { display: flex; }
.durak-seat .fan .durak-card { margin-left: -22px; } .durak-seat .fan .durak-card:first-child { margin-left: 0; }
.durak-seat .cnt { font-size: 11px; color: var(--smoke); }
.durak-role { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; letter-spacing: .3px; }
.durak-role.att { background: rgba(192, 53, 42, .18); color: var(--red-light); border: 1px solid color-mix(in srgb, var(--blood-red) 60%, transparent); }
.durak-role.def { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent-light); border: 1px solid var(--accent-light); }

/* ── Tisch ── */
.durak-table { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; padding: 20px; border-radius: 18px;
  background: radial-gradient(420px 200px at 50% 40%, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 70%), rgba(0, 0, 0, .22); border: 1px solid var(--border); }
.durak-deck { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.durak-deck-stack { position: relative; width: calc(var(--card-h) + 8px); height: calc(var(--card-h) + 6px); }
.durak-deck-stack .laid { position: absolute; left: 0; top: 19px; transform: rotate(90deg); transform-origin: center; }
.durak-deck-stack .pile { position: absolute; right: 0; top: 0; width: var(--card-w); height: var(--card-h); }
/* Rechts verankern, damit der Backs-Stapel innerhalb der Deck-Box bleibt und nicht in den
   Battle-Bereich (Hinweistext „Noch keine Karte im Spiel.") hineinragt. Offsets fächern nach links. */
.durak-deck-stack .pile .durak-card { position: absolute; top: 0; right: 0; }
.durak-deck-stack .pile .durak-card:nth-child(2) { right: 3px; top: 2px; }
.durak-deck-stack .pile .durak-card:nth-child(3) { right: 6px; top: 4px; }
.durak-deck-info { font-size: 12px; color: var(--old-paper); text-align: center; }
.durak-deck-info b { color: var(--parchment); font-variant-numeric: tabular-nums; }
.durak-battle { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; min-height: 110px; align-items: flex-start; }
.durak-pair { position: relative; width: var(--card-w); height: calc(var(--card-h) + 26px); }
.durak-pair .att { position: absolute; top: 0; left: 0; }
.durak-pair .def { position: absolute; top: 24px; left: 18px; transform: rotate(8deg); z-index: 2; }
.durak-pair.open.sel-target { cursor: pointer; }

/* ── Eigene Hand ── */
.durak-hand-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.durak-hand-head .grow { flex: 1; }
.durak-hand { display: flex; padding-top: 18px; justify-content: center; flex-wrap: wrap; }
.durak-hand .durak-card { margin-left: -20px; } .durak-hand .durak-card:first-child { margin-left: 0; }
.durak-hint { font-size: 12px; color: var(--smoke); }

/* ── Spielende (Durak-Reveal) ── */
.durak-spotlight { text-align: center; padding: 22px; border-radius: 16px; margin-bottom: 16px;
  background: radial-gradient(520px 240px at 50% 30%, color-mix(in srgb, var(--blood-red) 28%, transparent) 0%, transparent 70%), rgba(0, 0, 0, .28); border: 1px solid var(--border); }
.durak-stamp { font-family: 'Rye', serif; font-size: 46px; color: var(--red-light); border: 5px double var(--red-light); border-radius: 12px; padding: 4px 26px; transform: rotate(-7deg); display: inline-block; margin: 6px 0 16px; letter-spacing: 6px; text-shadow: 0 2px 7px rgba(0, 0, 0, .5); }
.durak-stamp.shared { color: var(--gold-light); border-color: var(--gold-light); }
.durak-who { font-family: 'Rye', serif; font-size: 20px; color: var(--parchment); margin-bottom: 4px; }
.durak-sub { font-size: 13px; color: var(--smoke); margin-bottom: 14px; }
.durak-reveal-hand { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.durak-ranks { display: flex; flex-direction: column; gap: 9px; }
.durak-rank { display: flex; align-items: center; gap: 13px; padding: 11px 15px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid var(--border); }
.durak-rank .medal { font-size: 21px; flex: 0 0 28px; text-align: center; }
.durak-rank .nm { font-size: 15px; color: var(--parchment); font-weight: 600; }
.durak-rank .stat { flex: 1; text-align: right; font-size: 12px; color: var(--smoke); }
.durak-rank.win { border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: rgba(200, 146, 42, .08); }
.durak-rank.durak { border-color: color-mix(in srgb, var(--blood-red) 60%, transparent); background: rgba(139, 26, 26, .14); }
.durak-rank.durak .nm { color: var(--red-light); }

/* ══════════════════════════════════════════════════════════════════════════
   SS-0183 SEESCHLACHT — Raster, Zell-Zustände, Werft, Stände. Eigene .see-*-Klassen.
   Akzent via .mode-seeschlacht. Mockup: docs/mockups/ss0183-seeschlacht-*.html
   ══════════════════════════════════════════════════════════════════════════ */
.see-wrap { max-width: 1080px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.see-topbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* SS-0024: .see-chip ist deckungsgleich mit .durak-chip — BEWUSST NICHT gemergt.
   Beide gehören zu den vier neuen, absichtlich namespaced/isolierten Spielmodulen
   (Seeschlacht/Durak); eine gemeinsame Klasse würde zwei unabhängige Module koppeln. */
.see-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--border); color: var(--old-paper); }
.see-chip.phase { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #000), var(--accent)); border-color: var(--accent-light); color: var(--parchment); font-weight: 600; }

/* Gemeinsame „Bühne": Brett + Werft/Flotten-Leiste sitzen in EINER umrandeten Box, die auf
   Inhaltsbreite schrumpft (als Gruppe mit der Topbar horizontal zentriert) — kein freies Auseinander-
   driften mehr. Gilt für Setzphase, Geteilte See und Flottenduell (alle nutzen .see-main). */
.see-main {
    display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
    align-self: center;
    padding: 16px; border-radius: 16px;
    background: rgba(0, 0, 0, .24); border: 1px solid var(--border);
}
/* Werft/Flotten-Leiste blendet sich in die Bühne ein: kein eigener Kasten, nur ein feiner Trenner. */
.see-main > .see-panel { flex: 0 0 230px; background: transparent; border: none; border-radius: 0; padding: 0 0 0 16px; border-left: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 760px) {
    .see-main { align-self: stretch; }
    .see-main > .see-panel { flex: 1 1 100%; border-left: none; border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0 0; }
}

/* ── Board ── */
/* Dezenter Marine-Rahmen, damit das Brett „verankert" wirkt statt rahmenlos zu schweben. */
.see-board-wrap { display: inline-grid; gap: 4px; padding: 9px; border-radius: 12px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.see-board-wrap .corner { width: 18px; }
.see-collabels, .see-rowlabel { color: var(--smoke); font-size: 10px; text-align: center; }
.see-board { display: grid; gap: 2px; }
.see-cell {
  aspect-ratio: 1; min-width: 16px; border-radius: 3px; border: none; padding: 0; cursor: default;
  display: grid; place-items: center; font-size: 11px; line-height: 1; color: #fff;
  background: repeating-linear-gradient(45deg, rgba(43, 79, 116, .10) 0 6px, rgba(43, 79, 116, .04) 6px 12px), #142a40;
}
.see-cell.fog { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 6px, transparent 6px 12px), #0f2235; }
.see-cell.ship { background: linear-gradient(135deg, var(--accent-light), var(--accent)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.see-cell.shiphit { background: linear-gradient(135deg, var(--accent), #2a1620); box-shadow: inset 0 0 0 2px var(--red-light); color: #fff; }
.see-cell.shiphit::after { content: "✕"; color: var(--red-light); font-weight: 700; }
.see-cell.miss { background: #112335; }
.see-cell.miss::after { content: "•"; color: var(--smoke); font-size: 14px; }
.see-cell.unk { background: radial-gradient(circle, #b5602a, #7a3a12); }
.see-cell.unk::after { content: "?"; font-weight: 700; }
.see-cell.sunk { background: repeating-linear-gradient(45deg, #2b4f74 0 4px, #10243a 4px 8px); color: var(--parchment); }
.see-cell.sunk::after { content: "☠"; font-size: 12px; }
.see-cell.hit { background: radial-gradient(circle, #c0352a, #8b1a1a); }
.see-cell.hit::after { content: "✕"; color: #fff; font-weight: 700; }
.see-cell.pending { background: rgba(232, 184, 75, .16); box-shadow: inset 0 0 0 1px var(--gold-light); }
.see-cell.pending::after { content: "✛"; color: var(--gold-light); font-weight: 700; }
.see-cell.pok { background: rgba(45, 122, 74, .30); box-shadow: inset 0 0 0 1px #5fcf8a; }
.see-cell.pbad { background: rgba(192, 53, 42, .28); box-shadow: inset 0 0 0 1px var(--red-light); }
.see-cell.clickable { cursor: pointer; }
.see-cell.clickable:hover { outline: 2px solid var(--accent-light); outline-offset: -2px; }
.see-cell.ownx { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent-light) 60%, transparent); } /* fremdes Schiff (Zuschauer) */

/* ── Werft (Setzphase) ── */
.see-werft { display: flex; flex-direction: column; gap: 7px; }
.see-ship-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.see-ship-item.sel { border-color: var(--accent-light); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.see-ship-item.done { opacity: .5; }
.see-ship-item .ship-vis { display: flex; gap: 2px; }
.see-ship-item .ship-vis i { width: 12px; height: 12px; border-radius: 2px; background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.see-ship-item .nm { font-size: 13px; color: var(--parchment); }
.see-ship-item .sz { margin-left: auto; font-size: 11px; color: var(--smoke); }

/* ── Stände (Sidebar) ── */
.see-panel { background: rgba(0, 0, 0, .24); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.see-panel h3 { font-size: 13px; color: var(--gold); margin: 0 0 12px; letter-spacing: .4px; }
.see-stand { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 9px; margin-bottom: 5px; background: rgba(255, 255, 255, .02); }
.see-stand.turn { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
.see-stand.out { opacity: .5; }
.see-stand .pname { font-size: 13px; color: var(--parchment); font-weight: 600; }
.see-stand .pships { margin-left: auto; font-size: 12px; color: var(--old-paper); font-variant-numeric: tabular-nums; }
.see-stand .pships.gone { color: var(--red-light); }

.see-banner { align-self: flex-start; max-width: 100%; padding: 10px 14px; border-radius: 10px; background: rgba(139, 26, 26, .14); border: 1px solid color-mix(in srgb, var(--blood-red) 50%, transparent); color: var(--parchment); font-size: 13px; }
.see-status { font-size: 12.5px; color: var(--smoke); }
.see-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ── Flottenduell (Variante A): Brett-Überschrift + Gegner-Tabs überm Zielbrett ── */
.see-board-h { font-size: 13px; color: var(--gold); margin: 0 0 8px; letter-spacing: .3px; }
.see-targets { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.see-target-tab { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, .03); color: var(--old-paper); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.see-target-tab:hover:not(.out) { border-color: var(--accent-light); color: var(--parchment); }
.see-target-tab.active { background: color-mix(in srgb, var(--accent) 24%, transparent); border-color: var(--accent-light); color: var(--parchment); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.see-target-tab.out { opacity: .45; cursor: default; text-decoration: line-through; }
.see-target-tab .t-ships { font-size: 11px; color: var(--smoke); font-variant-numeric: tabular-nums; }
.see-target-tab.active .t-ships { color: var(--gold-light); }

/* ── Animationen (nautisch). Spielen einmal beim Klassenwechsel (fog/ship → hit/sunk/miss). ── */
.see-cell.hit, .see-cell.shiphit { animation: seeHit .5s ease-out; }
.see-cell.unk { animation: seeHit .5s ease-out; }
.see-cell.miss { animation: seeSplash .6s ease-out; }
.see-cell.sunk { animation: seeSink .9s ease-in; }

@keyframes seeHit {
  0%   { transform: scale(.35); filter: brightness(2.6); box-shadow: 0 0 0 0 rgba(232, 184, 75, .8); }
  45%  { transform: scale(1.18); filter: brightness(1.6); box-shadow: 0 0 10px 4px rgba(192, 53, 42, .65); }
  100% { transform: scale(1);    filter: brightness(1);   box-shadow: 0 0 0 0 rgba(192, 53, 42, 0); }
}
@keyframes seeSplash {
  0%   { box-shadow: 0 0 0 0 rgba(122, 162, 200, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(122, 162, 200, .12); }
  100% { box-shadow: 0 0 0 9px rgba(122, 162, 200, 0); }
}
@keyframes seeSink {
  0%   { transform: translateY(-3px) scale(1.15) rotate(-6deg); filter: brightness(1.8); }
  35%  { transform: translateY(1px)  scale(1.05) rotate(5deg);  filter: brightness(1.3); }
  70%  { transform: translateY(3px)  scale(.96)  rotate(-3deg); filter: brightness(.95); }
  100% { transform: translateY(0)    scale(1)    rotate(0);     filter: brightness(.78); }
}

/* ════════════════════════════════════════════════════════════
   LOBBY-REDESIGN (modusabhängig) — „Am Tisch" / „Die Bühne"
   Akzent kommt aus .mode-* (--accent / --accent-light), greift
   schon am .screen-lobby-Wurzel. Hier wird er konsequent genutzt.
════════════════════════════════════════════════════════════ */
.lobby-redesign .lobby-title,
.lobby-redesign .lobby-section-title { color: var(--accent-light); }
.lobby-arena { padding: 18px 20px; }

/* ── Am Tisch: elliptische Filz-Tafel mit Sitzen ringsum ── */
.lobby-table .felt {
  position: relative;
  height: 360px;
  margin-top: 12px;
  border-radius: 50% / 44%;
  border: 10px solid #3a2410;
  background:
    radial-gradient(ellipse at 50% 42%,
      color-mix(in srgb, var(--accent) 14%, #1d3b2a) 0%,
      color-mix(in srgb, var(--accent) 26%, #122418) 60%,
      color-mix(in srgb, var(--accent) 32%, #0b160e) 100%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent),
              inset 0 0 60px rgba(0,0,0,.6), 0 14px 34px rgba(0,0,0,.45);
}
.lobby-table .seat {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 104px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  text-align: center;
}
.seat-filled {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--parchment); font: inherit;
  transition: transform .12s;
}
.seat-filled:hover { transform: translate(-50%, -50%) scale(1.06); }
.seat-name {
  font-size: 14px; color: var(--parchment);
  max-width: 108px; overflow: hidden; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.seat-filled.is-host .seat-name { color: var(--accent-light); }
.seat-filled.is-away { opacity: .55; }
.seat-badge.badge-host { color: var(--accent-light); }
.seat-you {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-light);
}
.seat-ghost .seat-avatar-empty {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto; font-size: 18px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, rgba(200,146,42,.3));
  display: flex; align-items: center; justify-content: center; color: var(--smoke);
  background: rgba(8,5,2,.35);
}
.seat-ghost .seat-name { color: var(--smoke); opacity: .55; }

/* ── Die Bühne: Publikum (komfortabel ≤10, sonst dichte Menge) ── */
.aud-cluster {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
  max-height: 160px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: rgba(200,146,42,.2) transparent;
}
.aud-dot {
  position: relative; width: 32px; height: 32px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid color-mix(in srgb, var(--accent) 35%, rgba(200,146,42,.25));
  background: rgba(8,5,2,.4); cursor: pointer; overflow: visible;
}
.aud-dot.is-host { border-color: var(--accent-light); box-shadow: 0 0 8px color-mix(in srgb, var(--accent-light) 45%, transparent); }
.aud-dot.is-me { border-color: var(--accent-light); border-width: 2px; }
.aud-dot .dot-star { position: absolute; top: -6px; right: -4px; font-size: 11px; color: var(--accent-light); }
.aud-more {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px dashed var(--accent); background: rgba(8,5,2,.4);
  color: var(--accent-light); font-size: 11px; cursor: pointer;
}
.aud-more:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

/* Alle-Spieler-Modal */
.all-players-grid { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.all-player-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(8,5,2,.3); border: 1px solid rgba(200,146,42,.14);
  border-radius: 4px; padding: 6px 10px; cursor: pointer; color: var(--parchment); font: inherit;
}
.all-player-row:hover { border-color: var(--accent); }
.all-player-name { font-size: 14px; }

/* ── Chat: ausklappbar + Privat-Schleier ── */
.chat-title-row { display: flex; align-items: center; justify-content: space-between; }
.chat-collapse-btn, .chat-reopen {
  background: rgba(8,5,2,.4); border: 1px solid rgba(200,146,42,.24);
  color: var(--smoke); cursor: pointer; transition: all .15s; font-family: var(--font-body);
}
.chat-collapse-btn { border-radius: 3px; padding: 3px 9px; font-size: 13px; }
.chat-collapse-btn:hover, .chat-reopen:hover { border-color: var(--accent); color: var(--accent-light); }
.chat-reopen { width: 100%; text-align: center; padding: 12px; border-style: dashed; border-radius: 4px; font-size: 14px; }
.chat-messages-wrap { position: relative; }
.chat-private .chat-messages { filter: blur(7px); pointer-events: none; user-select: none; }
.chat-private-veil {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--smoke); font-size: 13px; text-align: center; background: rgba(8,5,2,.25);
}

/* ── Lobby-Kopf als Hero/Schild: Code prominent, Rampenlicht, Akzent ── */
.lobby-redesign .lobby-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, #160f08) 0%, #120c07 100%);
  border: 1px solid var(--accent);
}
.lobby-redesign .lobby-hero::before {
  content: ""; position: absolute; top: -60%; left: 50%; transform: translateX(-50%);
  width: 55%; height: 180%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent-light) 22%, transparent) 0%, transparent 60%);
}
.lobby-redesign .lobby-hero .lobby-title,
.lobby-redesign .lobby-hero .lobby-header-row { position: relative; z-index: 1; }
.lobby-redesign .lobby-hero .lobby-code {
  border-color: var(--accent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 34%, transparent), inset 0 0 16px rgba(0,0,0,.6);
}
.lobby-redesign .lobby-hero .streamer-toggle.is-on { border-color: var(--accent); color: var(--accent-light); }
.lobby-redesign .lobby-hero .btn-copy:hover { border-color: var(--accent); color: var(--accent-light); }
/* Bühnen-Hero: Requisit + „Heute auf der Bühne" + Spielname als Marquee */
.lobby-redesign .lobby-hero { padding: 12px 22px; }
.lobby-redesign .lobby-hero .buhne-eyebrow { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--smoke); position: relative; z-index: 1; }
.lobby-redesign .lobby-hero .buhne-game { display: flex; align-items: center; justify-content: center; gap: 7px; font-family: 'Rye', cursive; font-size: 28px; color: var(--accent-light); position: relative; z-index: 1; margin: 2px 0 10px; }
.lobby-redesign .lobby-hero .buhne-prop { font-size: 24px; line-height: 1; filter: drop-shadow(0 2px 4px #000); }

/* ── Einheitliche Code-Box: Code mittig, Sichtbarkeit links + Auge rechts integriert, Copy darunter ── */
.code-box-wrap { display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; z-index: 1; }
.code-box {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: rgba(8,5,2,.9); border: 1px solid var(--accent); border-radius: 3px; padding: 6px 44px;
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 0 14px rgba(0,0,0,.6);
}
.code-box-text { font-family: 'Rye', cursive; letter-spacing: .2em; color: var(--gold-light); font-size: 23px; }
.code-box-vis { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 1; opacity: .85; }
.code-box-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  color: var(--smoke); font-size: 15px; line-height: 1; padding: 4px;
}
.code-box-eye:hover, .code-box-eye.is-on { color: var(--accent-light); }
.code-box-wrap .btn-copy { color: var(--accent-light); border-color: var(--accent); }
.lobby-hero .code-box-text { font-size: 25px; }
.lobby-hero .code-box { padding: 6px 46px; }

/* ── Mobil (≤700px): Filz-Ellipse → kompakte Filz-Karte, Sitze brechen um, Boxen straffer ── */
@media (max-width: 700px) {
  .screen-lobby.lobby-redesign { padding: 16px 10px 34px; }
  .lobby-arena { padding: 14px 12px; }
  .lobby-table .felt {
    height: auto; border-radius: 12px; border-width: 5px;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
    gap: 14px 8px; padding: 16px 10px 18px;
  }
  .lobby-table .radar { display: none; }
  .lobby-table .felt-center { position: static; transform: none; width: 100%; flex-basis: 100%; margin-bottom: 2px; }
  .lobby-table .seat { position: static; transform: none; width: 72px; }
  .lobby-table .seat-filled:hover { transform: scale(1.04); }
  .code-box { padding: 6px 36px; }
  .code-box-text, .lobby-hero .code-box-text { font-size: 21px; }
  .lobby-hero .code-box { padding: 6px 38px; }
  .lobby-redesign .lobby-hero .buhne-game { font-size: 24px; }
  .lobby-redesign .lobby-hero .buhne-prop { font-size: 21px; }
  .aud-cluster { max-height: 132px; }
}

/* ── Code-Untersetzer im Filz-Zentrum (Tisch) + schlanker Tisch-Kopf ── */
.lobby-table .felt-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; z-index: 1;
}
.lobby-table .felt-code {
  font-size: 22px; letter-spacing: .28em; padding: 6px 18px; border-color: var(--accent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 30%, transparent), inset 0 0 14px rgba(0,0,0,.6);
}
.felt-code-actions { display: flex; align-items: center; gap: 8px; }
.lobby-redesign .lobby-head-slim { padding: 9px 22px; background: rgba(8,5,2,.45); }
.lobby-redesign .lobby-head-slim .lobby-title { font-size: 18px; }

/* ── SS: Vereinheitlichter Lobby-Kopf (3 Zonen) — links Spiel-Pille, Code mittig,
   rechts Plätze/Kopieren/Chat-Bubble/Einstellungen. Ersetzt lobby-head-slim & lobby-hero. ── */
.lobby-redesign .lobby-uh {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, rgba(8,5,2,.55)), rgba(8,5,2,.55));
  border: 1px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  border-radius: 4px;
  text-align: left;
}
.lobby-uh .uh-left   { display: flex; align-items: center; gap: 9px; min-width: 0; }
.lobby-uh .uh-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.lobby-uh .uh-right  { display: flex; align-items: center; gap: 8px; }
.lobby-uh .uh-pill   { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.lobby-uh .uh-ico {
  width: 30px; height: 30px; flex: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  color: var(--accent-light); border: 1px solid var(--accent);
}
.lobby-uh .uh-name {
  font-family: 'Rye', cursive; font-size: 18px; color: var(--accent-light);
  line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px;
}
/* Kopier-Symbol dockt rechts an die zentrierte Code-Box an, ohne sie aus der Mitte zu schieben. */
.lobby-uh .uh-center .uh-copy { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 8px; }
.lobby-uh .uh-icon-btn {
  position: relative; background: transparent; border: 1px solid var(--accent); border-radius: 4px;
  cursor: pointer; color: var(--accent-light); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; transition: background .15s;
}
.lobby-uh .uh-icon-btn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.lobby-uh .uh-copy.copied { border-color: var(--green-ok); color: var(--green-ok); }
.lobby-uh .uh-bubble.unread { border-color: var(--accent-light); animation: uhBubblePulse 1.4s ease-in-out infinite; }
.lobby-uh .uh-unread-dot {
  position: absolute; top: -4px; right: -4px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--blood-red); border: 2px solid #140d07;
}
@keyframes uhBubblePulse {
  0%, 100% { box-shadow: 0 0 7px color-mix(in srgb, var(--accent-light) 45%, transparent); }
  50%      { box-shadow: 0 0 16px color-mix(in srgb, var(--accent-light) 85%, transparent); }
}
.lobby-uh .uh-gear {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-size: 13px;
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid var(--accent);
  border-radius: 4px; color: var(--accent-light); cursor: pointer; padding: 7px 11px; white-space: nowrap; transition: background .15s;
}
.lobby-uh .uh-gear:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
/* Verlassen/Beenden als rotes Icon im Header (rechts von Einstellungen). */
.lobby-uh .uh-leave { border-color: color-mix(in srgb, var(--blood-red) 55%, transparent); color: var(--red-light); }
.lobby-uh .uh-leave:hover { background: rgba(139, 26, 26, .14); border-color: var(--blood-red); }

/* Aktionszeile unter dem Spielerbereich (statt Chat-Spalte + Sidebar) */
.lobby-actions { display: flex; flex-direction: column; gap: 10px; }
.lobby-actions-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
/* Start-Button (bzw. Warte-Banner) rechts: gleiche Höhe wie Verlauf/Verlassen
   (btn-sm-action = 6px/12px). Horizontal etwas breiter für die Prominenz. */
.lobby-actions-row .lobby-actions-start { margin-left: auto; margin-top: 0; margin-bottom: 0; width: auto; padding: 6px 18px; font-size: 12px; }
/* Verlauf/Verlassen: textbreit & linksbündig statt gestreckt (btn-sm-action ist flex:1 aus dem alten Sidebar-Kontext). */
.lobby-actions-row .btn-sm-action { flex: 0 0 auto; width: auto; }

/* SS: Lobby-Kopf, Spieler-Box und Aktionszeile als EIN durchgehendes Panel —
   bündig gestapelt (kein Spalt), oben+unten 4px gerundet, Berührungskanten eckig
   (je eine saubere Trennlinie). Die Button-Leiste dockt unten an, statt frei zu
   schweben. Mockup: docs/mockups/lobby-head-flush.html */
.lobby-redesign .lobby-header { margin-bottom: 0; }
.lobby-redesign .lobby-header-card { border-bottom: none; border-radius: 4px 4px 0 0; border-color: rgba(200,146,42,.28); }
.lobby-redesign .lobby-layout { gap: 0; }
.lobby-redesign .lobby-layout > .card:first-child { border-radius: 0; }
.lobby-redesign .lobby-actions {
  border: 1px solid rgba(200,146,42,.28); border-top: none; border-radius: 0 0 4px 4px;
  background: rgba(8,5,2,.5); padding: 12px 16px;
}

/* Chat als einfahrende Sidebar (Overlay), getriggert über die Header-Bubble */
.chat-drawer-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 900;
}
.chat-drawer-back.open { opacity: 1; pointer-events: auto; }
/* „Telegrammbrett": helles Pergament statt schwarzem Verlauf. Alles unter .chat-drawer
   gescopt, damit die globalen .chat-*-Regeln (z. B. Report-Snapshot im Admin) unberührt bleiben. */
.chat-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 86vw; z-index: 901;
  --tg-ink: #3a2c16; --tg-sub: #8a7350; --tg-slip: #fbf3e0; --tg-slip-own: #efe7cf;
  --tg-line: #c2a86f; --tg-wood: #6b4a23;
  background: radial-gradient(140% 120% at 50% -10%, #f3e9d2, #e3d4b4 70%, #d8c6a0);
  border-left: 3px solid var(--tg-wood); box-shadow: -12px 0 30px rgba(0,0,0,.5);
  transform: translateX(100%); transition: transform .24s ease;
  display: flex; flex-direction: column;
}
.chat-drawer.open { transform: translateX(0); }

/* Kopf: dunkle Holzleiste mit Pergament-Titel */
.chat-drawer-head { display: flex; align-items: center; gap: 8px; padding: 12px 15px;
  background: linear-gradient(180deg, #3a2913, #2c1e10); border-bottom: 2px solid var(--tg-wood); }
.chat-drawer-head .chat-title { flex: 1; color: var(--gold-light); }
.chat-drawer-close { background: transparent; border: none; color: #d9c39a; cursor: pointer; font-size: 16px; line-height: 1; padding: 4px; }
.chat-drawer-close:hover { color: #fff; }

.chat-drawer .chat-messages-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-drawer .chat-messages { flex: 1; height: auto; min-height: 0; padding: 12px; gap: 6px;
  scrollbar-color: rgba(107,74,35,.4) transparent; }
.chat-drawer .chat-messages::-webkit-scrollbar-thumb { background: rgba(107,74,35,.4); }

/* Statuszeile mittig, gedämpft */
.chat-drawer .chat-status { justify-content: center; }
.chat-drawer .chat-status-text { color: var(--tg-sub); }
.chat-drawer .chat-status .chat-time { color: var(--tg-sub); opacity: .8; }

/* Nachricht als Telegramm-Zettel */
.chat-drawer .chat-msg { background: var(--tg-slip); border: 1px solid #cdb98c; border-radius: 6px;
  padding: 5px 9px; box-shadow: 0 1px 2px rgba(80,55,20,.12); }
.chat-drawer .chat-msg-own { background: var(--tg-slip-own); border-color: var(--tg-line); }
.chat-drawer .chat-msg .chat-time { color: #9a865f; }
.chat-drawer .chat-msg .chat-sender { color: #7a4a16; }
.chat-drawer .chat-msg-own .chat-sender { color: #8a5a10; }
.chat-drawer .chat-msg .chat-text { color: var(--tg-ink); }

/* Eingabe + Senden auf Pergament */
.chat-drawer .chat-input-row { padding: 11px 12px; border-top: 1px solid var(--tg-line); background: #e7d7b6; }
.chat-drawer .chat-inp { background: var(--tg-slip); border: 1px solid var(--tg-line); color: var(--tg-ink); }
.chat-drawer .chat-inp::placeholder { color: #9a865f; }
.chat-drawer .chat-inp:focus { border-color: #8a5a10; box-shadow: 0 0 10px rgba(138,90,16,.18); }
.chat-drawer .chat-send-btn { background: var(--tg-wood); border: 1px solid #4f3415; color: #f3e2bf; border-radius: 5px; }
.chat-drawer .chat-send-btn:hover:not(:disabled) { background: #7d5828; border-color: #4f3415; }

/* Leerzustand statt schwarzer Leere */
.chat-drawer .chat-empty { margin: auto; text-align: center; padding: 20px;
  display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-drawer .chat-empty-glyph { font-size: 34px; line-height: 1; opacity: .85; }
.chat-drawer .chat-empty-title { font-size: 14px; font-style: italic; color: #5a4321; }
.chat-drawer .chat-empty-hint { font-size: 12px; color: var(--tg-sub); }

/* Privat-Schleier pergamenttauglich tönen */
.chat-drawer.chat-private .chat-private-veil { color: #5a4321; background: rgba(231,215,182,.55); }

/* ── „Die Bühne" als Theater: Mindesthöhe + Vorhang, Spotlight, Rampenlicht, Bühnenboden;
   Spieler stehen als Performer auf dem Boden (≤10) bzw. dichtes Ensemble (>10). ── */
.lobby-redesign .lobby-stage-theatre {
  position: relative; min-height: 300px; overflow: hidden; border-radius: 8px; margin-top: 4px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 95% at 50% 130%, color-mix(in srgb, var(--accent) 18%, #16100a), #0e0905 72%);
  border: 1px solid rgba(0,0,0,.4);
}
.stage-valance { position: absolute; top: 0; left: 0; right: 0; height: 28px; z-index: 4; background: linear-gradient(180deg, #6e2326, #4a1416); box-shadow: 0 3px 8px rgba(0,0,0,.5); }
.stage-valance::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: repeating-linear-gradient(90deg, #7a2a2d 0 7px, #5a1c1f 7px 14px); clip-path: polygon(0 0,5% 100%,10% 0,15% 100%,20% 0,25% 100%,30% 0,35% 100%,40% 0,45% 100%,50% 0,55% 100%,60% 0,65% 100%,70% 0,75% 100%,80% 0,85% 100%,90% 0,95% 100%,100% 0); }
.stage-drape { position: absolute; top: 0; bottom: 0; width: 46px; z-index: 3; background: repeating-linear-gradient(90deg, #5a1a1c, #6e2326 9px, #491315 18px); box-shadow: inset -12px 0 18px rgba(0,0,0,.5); }
.stage-drape-l { left: 0; }
.stage-drape-r { right: 0; transform: scaleX(-1); }
.stage-spot { position: absolute; top: -6%; left: 50%; transform: translateX(-50%); width: 58%; height: 118%; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent-light) 24%, transparent) 0%, transparent 62%); }
.stage-hint { position: absolute; top: 44px; left: 0; right: 0; text-align: center; z-index: 2; font-family: 'Rye', cursive; font-size: 13px; letter-spacing: .08em; color: color-mix(in srgb, var(--accent-light) 70%, var(--smoke)); opacity: .8; }
.stage-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 76px; z-index: 1; border-top: 3px solid var(--accent); background: repeating-linear-gradient(90deg, #3a2412 0 28px, #311d0d 28px 56px); box-shadow: inset 0 10px 20px rgba(0,0,0,.55); }
.stage-footlights { position: absolute; left: 46px; right: 46px; bottom: 72px; display: flex; justify-content: center; gap: 16px; z-index: 5; pointer-events: none; }
.stage-footlights span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 8px var(--accent-light), 0 0 18px color-mix(in srgb, var(--accent-light) 60%, transparent); }
.stage-troupe { position: relative; z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px 18px; padding: 0 58px 24px; }
.stage-perf { background: transparent; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; width: 72px; transition: transform .12s; }
.stage-perf:hover { transform: translateY(-3px); }
.stage-perf-av { position: relative; display: inline-flex; border-radius: 50%; }
.stage-perf.is-host .stage-perf-av { box-shadow: 0 0 12px color-mix(in srgb, var(--accent-light) 55%, transparent); }
.stage-perf.is-me .stage-perf-av { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.stage-perf.is-away { opacity: .5; }
.stage-perf-star { position: absolute; top: -7px; right: -5px; font-size: 13px; color: var(--accent-light); text-shadow: 0 1px 2px #000; }
.stage-perf-nm { font-size: 12px; color: var(--parchment); white-space: nowrap; max-width: 108px; overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.stage-perf-you { color: var(--gold-light); }
.stage-perf-free { align-self: flex-end; margin-bottom: 8px; font-size: 12px; color: var(--smoke); font-style: italic; border: 1px dashed rgba(200,146,42,.25); border-radius: 20px; padding: 6px 12px; }
.stage-aud { position: relative; z-index: 6; margin: 0; padding: 14px 54px 24px; justify-content: center; }

/* ════════════════════════════════════════════════════════════════════════════
   SS — Projektweiter Button-Standard: einheitlicher Eckenradius (Weich, --btn-radius).
   EINE Stelle für ALLE echten Aktions-Buttons. .btn deckt alle .btn-Kompositionen ab
   (btn-gold/-ghost/-amber/-green/-oauth/-sm/-xs/-edit/-sm-action/-start-sidebar/-vote/
   -block/podium-btn/tdm-btn/mq-play-btn/tabu-skip-btn/profile-history-btn …); die übrigen
   Selektoren sind eigenständige Buttons ohne .btn-Basis.
   BEWUSST AUSGENOMMEN (bleiben wie sie sind): runde Icon-/Avatar-Buttons
   (.mute-btn/.header-help-btn/.profile-btn/.help-icon-btn = 50%), Schalter
   (.settings-toggle-btn), rahmenlose Textlinks (.btn-back-history) und Chips/Tags/Pillen.
   ════════════════════════════════════════════════════════════════════════════ */
.btn,
.btn-red, .btn-ghost-red, .abort-btn, .btn-copy, .chat-send-btn, .chat-collapse-btn,
.report-flag-btn, .auth-btn, .edit-btn, .mm-join-btn, .mm-page-btn, .lot-page-btn,
.lobby-uh .uh-icon-btn, .lobby-uh .uh-gear {
  border-radius: var(--btn-radius);
}

/* Mobil: Kopf gestapelt, Code nicht mehr absolut zentriert */
@media (max-width: 700px) {
  .lobby-redesign .lobby-uh { flex-direction: column; gap: 9px; }
  .lobby-uh .uh-center { position: static; transform: none; display: inline-flex; align-items: center; gap: 8px; }
  .lobby-uh .uh-center .uh-copy { position: static; transform: none; margin-left: 0; }
  .lobby-uh .uh-right { flex-wrap: wrap; justify-content: center; }
}

/* ── Schub 2: Signatur-Requisit im Filz-Zentrum je Tisch-Spiel ── */
.lobby-table .tprop {
  display: flex; align-items: flex-end; justify-content: center; gap: 6px;
  min-height: 44px; margin-bottom: 2px; position: relative; z-index: 1;
}
.tprop-ship { width: 58px; height: 30px; filter: drop-shadow(0 2px 4px #000); }
.tprop-cross { width: 28px; height: 28px; }
.tprop-card {
  width: 28px; height: 40px; border-radius: 3px;
  background: linear-gradient(160deg, #f4ecd8, #dcc9a0); border: 1px solid #8a6a3a;
  color: #7a1f1f; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 7px rgba(0,0,0,.5);
}
.tprop-card.l { transform: rotate(-9deg) translateY(-3px); }
.tprop-card.r { transform: rotate(9deg) translateY(-3px); }
.tprop-back {
  width: 28px; height: 40px; border-radius: 3px; border: 1px solid var(--accent-light);
  background: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--accent) 70%, #1a1208) 0 5px,
    color-mix(in srgb, var(--accent) 45%, #1a1208) 5px 10px);
}
.tprop-mask { font-size: 32px; filter: drop-shadow(0 2px 4px #000); line-height: 1; }

/* Seeschlacht-Kriegsrat: Sonar-Ringe + langsamer Radar-Sweep übers Filz */
.lobby-table .radar {
  position: absolute; inset: 6%; border-radius: 50% / 44%; overflow: hidden;
  pointer-events: none; opacity: .5; z-index: 0;
  background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0 28px, color-mix(in srgb, var(--accent-light) 16%, transparent) 28px 29px);
}
.lobby-table .radar::after {
  content: ""; position: absolute; inset: -20%; transform-origin: 50% 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--accent-light) 24%, transparent) 0deg, transparent 55deg);
  animation: lobbyRadarSweep 6s linear infinite;
}
@keyframes lobbyRadarSweep { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════
   „Runde beendet"-Signal — Overlay über dem eingefrorenen Brett im
   RoundBreak-State (Memory / Durak / Seeschlacht; rollout-fähig).
   position:fixed über dem Spiel, pointer-events:none (blockiert nichts),
   z-index unter Header/Toast/Modal. Komponente: Components/Shared/
   RoundOverCue.razor · Mockup: docs/mockups/round-over-signal.html
   ════════════════════════════════════════════════════════════ */
.round-over {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.32) 30%, rgba(0,0,0,.62) 100%);
  animation: roDim .45s ease-out both;
}
@keyframes roDim { from { opacity: 0; } to { opacity: 1; } }

/* Wachs-/Wanted-Stempel: knallt rein mit leichter Rotation */
.round-over-stamp {
  font-family: 'Rye', cursive; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent-light); text-align: center;
  padding: 14px 34px; border: 4px double var(--accent-light); border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 18%, rgba(13,10,7,.72));
  transform: rotate(-7deg);
  text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 22px color-mix(in srgb, var(--accent-light) 45%, transparent);
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 14px 40px rgba(0,0,0,.55);
  animation: roStamp .5s cubic-bezier(.2,1.4,.35,1) both;
}
.round-over-stamp .ro-title { display: block; font-size: clamp(30px, 6vw, 52px); }
.round-over-stamp .ro-sub {
  display: block; font-family: var(--font-body); font-weight: 700; letter-spacing: .18em;
  font-size: 13px; color: var(--gold-light); margin-top: 6px; opacity: .85;
}
@keyframes roStamp {
  0%   { opacity: 0; transform: rotate(-7deg) scale(2.6); }
  60%  { opacity: 1; transform: rotate(-7deg) scale(.92); }
  80%  { transform: rotate(-7deg) scale(1.04); }
  100% { transform: rotate(-7deg) scale(1); }
}

/* Statischer „Ergebnis folgt …"-Hinweis (zählt bewusst NICHT sichtbar mit) */
.round-over-badge {
  font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--parchment);
  background: rgba(0,0,0,.5); border: 1px solid var(--accent-light); border-radius: 999px;
  padding: 7px 18px; opacity: 0; animation: roBadge .4s ease-out .35s forwards;
}
@keyframes roBadge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Situative Flourishes ── */
.ro-flourish { position: absolute; inset: 0; pointer-events: none; }

/* Memory: aufsteigende Funken (Paare setzen sich) */
.ro-sparks span {
  position: absolute; bottom: 38%; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-light); box-shadow: 0 0 12px var(--accent-light);
  opacity: 0; animation: roRise 1.2s ease-out forwards;
}
@keyframes roRise {
  0%   { opacity: 0; transform: translateY(40px) scale(.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}

/* Durak: Spott-Banner für den Verlierer */
.ro-durak {
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14%;
  font-family: 'Rye', cursive; color: var(--red-light); font-size: 26px; letter-spacing: .3em;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  opacity: 0; animation: roBadge .45s ease-out .6s forwards;
}

/* Seeschlacht: aufsteigender Rauch über der getroffenen Flotte */
.ro-smoke span {
  position: absolute; bottom: 30%; width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180,170,160,.5), transparent 70%);
  opacity: 0; animation: roSmoke 1.8s ease-out forwards;
}
@keyframes roSmoke {
  0%   { opacity: 0; transform: translateY(0) scale(.3); }
  30%  { opacity: .7; }
  100% { opacity: 0; transform: translateY(-90px) scale(2.2); }
}

@media (prefers-reduced-motion: reduce) {
  .round-over, .round-over-stamp, .round-over-badge,
  .ro-sparks span, .ro-durak, .ro-smoke span { animation-duration: .01ms; }
}

/* ── IconSelect: eigenes Dropdown mit fester Icon-Spalte + rechtsbündigem Zähler ──
   GLOBAL (war früher nur in admin.css → in der Lobby/im Spiel ungestylt = weiße Box).
   Hierher verschoben, damit das Control überall im selben Saloon-Look erscheint; nutzt
   die globalen :root-Vars (--border/--old-paper/--amber/--smoke). Offene Liste wird per
   ssIconSelect (helpers.js, global) positioniert. */
.icon-select { position: relative; display: inline-block; min-width: 150px; }
.icon-select.block { display: block; width: 100%; }
.icon-select:focus { outline: none; }
.icon-select:focus-visible .icon-select-btn { border-color: var(--amber); }
.icon-select-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1.7em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  background: rgba(8,5,2,.6);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--old-paper);
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.icon-select.open .icon-select-btn,
.icon-select-btn:hover { border-color: var(--amber); }
.icon-select-btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-select-ico  { display: inline-flex; justify-content: center; width: 1.7em; }
.icon-select-lbl  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-select-lbl.ph { color: var(--smoke); }
.icon-select-chev { color: var(--smoke); font-size: 11px; }
.icon-select-backdrop { position: fixed; inset: 0; z-index: 40; }
.icon-select-list {
  position: fixed; z-index: 41; left: 0; top: 0;
  width: max-content; max-width: min(360px, 90vw);
  max-height: 320px; overflow-y: auto;
  background: #140d05;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 14px 36px rgba(0,0,0,.6);
}
.icon-select-opt {
  display: grid;
  grid-template-columns: 1.7em 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--old-paper);
  border-bottom: 1px solid rgba(200,146,42,.08);
  font-size: 12px;
}
.icon-select-opt:last-child { border-bottom: none; }
.icon-select-opt:hover,
.icon-select-opt.hl  { background: rgba(200,146,42,.12); }
.icon-select-opt.sel { background: rgba(200,146,42,.20); }
.icon-select-opt.all { font-weight: 600; }
.icon-select-name  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-select-count { color: var(--smoke); font-size: 11px; font-variant-numeric: tabular-nums; }
