/* verwandte Figuren */
.fd-related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fd-rel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(7, 8, 11, .45);
  border: 1px solid var(--accent-line);
  cursor: pointer;
  color: var(--mp-bone);
  transition: border-color .14s ease, background .14s ease, transform .12s ease;
}
.fd-rel:hover { border-color: var(--accent, var(--mp-teal-1)); background: var(--accent-soft); transform: translateY(-1px); }
.fd-rel-lbl { font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mp-ink-dim); }
.fd-rel-name { font-size: 13px; font-weight: 700; }
.fd-rel-arr { color: var(--accent, var(--mp-teal-1)); font-size: 15px; line-height: 1; }

/* ── Rechte Spalte — Kosten ───────────────────────────────────────────────── */
.fd-cost {
  padding: 18px 20px;
  background: rgba(7, 8, 11, .5);
  border: 1px solid rgba(216, 177, 90, .16);
}
.fd-cost-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fd-cost-orb {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--effect);
  border: 1px solid color-mix(in srgb, var(--effect) 45%, transparent);
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--effect) 22%, transparent), transparent 70%), rgba(7, 8, 11, .6);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.fd-cost-orb svg { transform: rotate(-45deg); }
.fd-cost-num { display: flex; align-items: baseline; gap: 8px; }
.fd-cost-num .n { font-family: var(--mp-serif); font-size: 40px; line-height: 1; font-weight: 700; color: var(--mp-bone); }
.fd-cost-num .free { font-family: var(--mp-serif); font-size: 30px; font-weight: 600; color: var(--mp-gold-1); letter-spacing: 1px; }
.fd-cost-num .u { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--mp-ink-dim); font-weight: 700; }
.fd-mana-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.fd-mana-pip { flex: 1; height: 6px; background: rgba(216, 177, 90, .1); border: 1px solid color-mix(in srgb, var(--effect) 16%, transparent); }
.fd-mana-pip.full {
  background: linear-gradient(180deg, color-mix(in srgb, var(--effect) 90%, white 10%), color-mix(in srgb, var(--effect) 55%, black));
  border-color: color-mix(in srgb, var(--effect) 60%, transparent);
  box-shadow: 0 0 7px -1px var(--effect);
}
.fd-cost-note { font-size: 11.5px; line-height: 1.45; color: var(--mp-ink-dim); }
.fd-cost-note b { color: var(--mp-ink); font-weight: 600; }

/* ── Zugbild — Rahmen aus der Vorlage, BRETT bleibt unser .pcx-board ───────── */
.fd-zug .pcx-pane,
.fd-zug .pcx-boardwrap { display: flex; flex-direction: column; align-items: center; width: 100%; }
.pcx-board-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
  padding: 5px;
  background: rgba(7, 8, 11, .55);
  border: 1px solid rgba(216, 177, 90, .14);
  margin-bottom: 16px;
}
.pcx-tab {
  padding: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.pcx-tab:hover { color: var(--mp-ink); }
.pcx-tab.on {
  color: #07080b;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--mp-teal-1)) 95%, white), color-mix(in srgb, var(--accent, var(--mp-teal-1)) 70%, black));
  box-shadow: 0 0 18px -6px var(--accent, var(--mp-teal-1));
}
.pcx-pane { width: 100%; }
.pcx-pane[hidden] { display: none; }

/* ── Unser Brett (unveraendert) + Marker-Farben ──────────────────────────────
   ziehen=gold · schlagen=roter Ring · beides=gold+roter Ring · Effekt=blau. */
/* Brett im Look des echten Spielbretts (#board): Goldrahmen + texturierte Felder. */
.pcx-board {
  position: relative;
  width: min(300px, 92%);
  aspect-ratio: 1;
  margin: 2px auto;
  padding: 4px; overflow: hidden;
  border: 2px solid var(--rift-gold); border-radius: 7px;
  background: var(--mp-board-frame);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.86),
    0 0 18px rgba(10,200,185,.18),
    inset 0 0 0 1px rgba(240,210,131,.22),
    inset 0 0 24px rgba(0,0,0,.7);
}
.pcx-board::before {
  content: ""; position: absolute; inset: 4px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(240,210,131,.22);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.42), inset 0 0 28px rgba(0,0,0,.46);
}
.pcx-grid {
  position: absolute;
  inset: 4px;
  display: grid;
  grid-template-columns: repeat(var(--n, 7), 1fr);
  gap: 1px;
  background: transparent;
}
.pcx-sq {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; isolation: isolate;
  background: var(--mp-sq-light);
}
.pcx-sq.dark { background: var(--mp-sq-dark); }
.pcx-sq[data-cx-target] { cursor: pointer; }
.pcx-dot { width: 30%; height: 30%; border-radius: 50%; transition: transform .12s ease; }
.pcx-sq.move .pcx-dot { background: radial-gradient(circle, var(--mp-mark-move), var(--mp-mark-move-2)); box-shadow: 0 0 8px rgba(240, 210, 131, .55); }
.pcx-sq.cap .pcx-dot {
  width: 52%;
  height: 52%;
  border-radius: 50%;
  background: transparent;
  border: 3px solid var(--mp-mark-cap);
  box-shadow: 0 0 9px rgba(210, 76, 76, .5);
}
.pcx-sq.both .pcx-dot {
  width: 50%;
  height: 50%;
  box-sizing: border-box;
  background: radial-gradient(circle, var(--mp-mark-move), var(--mp-mark-move-2));
  border: 3px solid var(--mp-mark-cap);
  box-shadow: 0 0 9px rgba(210, 76, 76, .4);
}
.pcx-sq.effect .pcx-dot { background: radial-gradient(circle, var(--mp-mark-effect), var(--mp-mark-effect-2)); box-shadow: 0 0 9px rgba(90, 154, 214, .6); }
.pcx-sq[data-cx-target]:hover .pcx-dot { transform: scale(1.25); }
.pcx-sq.flash { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--mp-gold-1)) 60%, transparent), inset 0 0 18px -3px var(--accent, var(--mp-gold-1)) !important; }

.pcx-piece {
  position: absolute;
  left: calc(100% / var(--n, 7) * 3);
  top: calc(100% / var(--n, 7) * 3);
  width: calc(100% / var(--n, 7));
  height: calc(100% / var(--n, 7));
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(0, 0);
  transition: transform .5s cubic-bezier(.45, .05, .25, 1);
  z-index: 3;
  pointer-events: none;
}
.pcx-piece.moving { z-index: 5; }
.pcx-piece img { width: 112%; height: 112%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .7)); }
.pcx-piece-glyph { font-size: 26px; filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .6)); }

/* ── Demo-Animation: Akteure (Opfer/Helfer), Effekt-Pulse, Projektile ──────── */
.pcx-actor {
  position: absolute;
  left: calc(100% / var(--n, 7) * 3);
  top: calc(100% / var(--n, 7) * 3);
  width: calc(100% / var(--n, 7));
  height: calc(100% / var(--n, 7));
  transform: translate(0, 0);
  transition: transform .5s cubic-bezier(.45, .05, .25, 1);
  z-index: 4;
  pointer-events: none;
}
.pcx-actor-body {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  opacity: 0; transform: scale(.55);
  transition: opacity .26s ease, transform .32s cubic-bezier(.2, .9, .3, 1.35);
}
.pcx-actor.in .pcx-actor-body { opacity: 1; transform: scale(1); }
.pcx-actor.gone .pcx-actor-body { opacity: 0; transform: scale(.45); }
.pcx-actor-body img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .7)); }
.pcx-actor-glyph { font-size: 24px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }

/* Effekt-/Schlag-Puls auf einem Feld (Effekt=Blau, Schlag/Gefahr=Rot). */
.pcx-fxmark {
  position: absolute;
  left: calc(100% / var(--n, 7) * 3);
  top: calc(100% / var(--n, 7) * 3);
  width: calc(100% / var(--n, 7));
  height: calc(100% / var(--n, 7));
  z-index: 2; pointer-events: none; opacity: 0;
  transition: opacity .25s ease;
  --fxc: var(--mp-mark-effect);
}
.pcx-fxmark::after {
  content: ""; position: absolute; inset: 16%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--fxc), color-mix(in srgb, var(--fxc) 30%, transparent) 70%, transparent);
  box-shadow: 0 0 14px -2px var(--fxc);
}
.pcx-fxmark.in { opacity: .92; }
.pcx-fxmark.out { opacity: 0; }
.pcx-fxmark.tone-support, .pcx-fxmark.tone-control, .pcx-fxmark.tone-effect { --fxc: var(--mp-mark-effect); }
.pcx-fxmark.tone-attack, .pcx-fxmark.tone-danger, .pcx-fxmark.tone-cap { --fxc: var(--mp-mark-cap); }
.pcx-fxmark.linger { animation: pcxLinger 1.1s ease-in-out infinite; }
@keyframes pcxLinger { 0%, 100% { opacity: .9; } 50% { opacity: .4; } }

/* Projektil (Kanonenkugel): kleiner Goldball, fliegt entlang transform. */
.pcx-proj {
  position: absolute;
  left: calc(100% / var(--n, 7) * 3);
  top: calc(100% / var(--n, 7) * 3);
  width: calc(100% / var(--n, 7));
  height: calc(100% / var(--n, 7));
  z-index: 6; pointer-events: none;
}
.pcx-proj::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22%; height: 22%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffe9b0, #c89a3e 70%, #6a4f1a);
  box-shadow: 0 0 10px -1px var(--mp-gold-glow);
}

/* Zentrale Figur: aktiviert (Glow-Puls), faellt (Tod) und kehrt zurueck. */
.pcx-piece.pcx-activate { animation: pcxActivate 1s ease-in-out infinite; }
@keyframes pcxActivate {
  0%, 100% { filter: drop-shadow(0 6px 6px rgba(0,0,0,.7)); }
  50% { filter: drop-shadow(0 0 12px var(--accent, var(--mp-mark-effect))) drop-shadow(0 6px 6px rgba(0,0,0,.7)); }
}
.pcx-piece.pcx-fall { transition: opacity .4s ease, transform .4s ease; opacity: 0; transform: translate(0, 6px) scale(.5) rotate(-12deg); }
.pcx-piece.pcx-rise { animation: pcxRise .6s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pcxRise { from { opacity: 0; transform: translate(0, 8px) scale(.5); } to { opacity: 1; transform: translate(0,0) scale(1); } }

/* ── Realistische Bewegung: Figur wird "aufgehoben" (Lift) und "abgesetzt" ────
   Der aeussere .pcx-piece traegt die Feld-Position (translate). Der Lift laeuft
   auf dem inneren Sprite, damit beides unabhaengig bleibt — wie eine Hand, die
   die Figur anhebt, ueber das Brett traegt und wieder hinstellt. */
.pcx-piece img, .pcx-piece-glyph { transition: transform .2s cubic-bezier(.3, .7, .3, 1), filter .2s ease; will-change: transform; }
.pcx-piece.lifting img { transform: translateY(-15%) scale(1.08); filter: drop-shadow(0 16px 12px rgba(0, 0, 0, .6)); }
.pcx-piece.lifting .pcx-piece-glyph { transform: translateY(-15%) scale(1.08); }
/* Aufprall beim Absetzen (Stauchen → zurueck), gibt dem Stein Gewicht. */
.pcx-piece.settling img, .pcx-piece.settling .pcx-piece-glyph { animation: pcxSettle .34s cubic-bezier(.3, 1.4, .5, 1) 1; }
@keyframes pcxSettle {
  0% { transform: translateY(-15%) scale(1.08); }
  45% { transform: translateY(2%) scale(1.04, .94); }
  100% { transform: translateY(0) scale(1); }
}

/* ── Lande-/Schlag-/Effekt-Ring — exakt die Play-Brett-Sprache ────────────────
   Zug = goldener Atem-Ring (lastMoveBreath), Schlag = roter Schlag-Ring
   (lastCaptureStrike), Effekt = tuerkiser Fokus-Ring (lastEffectFocus). Dieselben
   Keyframes wie auf dem echten Brett, damit das Dossier 1:1 wie im Spiel liest. */
.pcx-land {
  position: absolute;
  left: calc(100% / var(--n, 7) * 3);
  top: calc(100% / var(--n, 7) * 3);
  width: calc(100% / var(--n, 7));
  height: calc(100% / var(--n, 7));
  z-index: 2; pointer-events: none;
}
/* Ring liegt HINTER der Figur (z-index 2) und ist groesser als der Sprite (112%),
   damit er ihn als Schockwelle rahmt statt verdeckt zu werden. */
.pcx-land::before {
  content: ""; position: absolute; inset: -12%;
  border: 3px solid rgba(216, 177, 90, .95);
  border-radius: 3px;
  box-shadow: 0 0 16px -2px rgba(216, 177, 90, .6), inset 0 0 12px -3px rgba(216, 177, 90, .5);
  opacity: 0; transform: scale(.82);
}
.pcx-land.move::before { animation: lastMoveBreath 1.4s ease-out 1; }
.pcx-land.cap::before {
  border-color: rgba(226, 106, 106, .98);
  box-shadow: 0 0 18px -1px rgba(226, 106, 106, .7), inset 0 0 12px -3px rgba(226, 106, 106, .5);
  animation: lastCaptureStrike 1.3s ease-out 1;
}
.pcx-land.effect::before {
  border-color: rgba(77, 208, 196, .98);
  box-shadow: 0 0 20px -1px rgba(77, 208, 196, .7), inset 0 0 12px -3px rgba(77, 208, 196, .5);
  animation: lastEffectFocus 1.6s ease-out 1;
}

/* Giftfeld — exakt die Brett-Optik (.sq.poisoned / poisonBreathe): gruener
   atmender Innenschein, KEIN roter Blob. Liegt im Feld (z-index 1, unter Figuren). */
.pcx-poison {
  position: absolute;
  left: calc(100% / var(--n, 7) * 3);
  top: calc(100% / var(--n, 7) * 3);
  width: calc(100% / var(--n, 7));
  height: calc(100% / var(--n, 7));
  z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 14px rgba(90, 192, 140, .4);
  animation: poisonBreathe 2.8s ease-in-out infinite;
  opacity: 0; transition: opacity .3s ease;
}
.pcx-poison.in { opacity: 1; }
.pcx-poison.out { opacity: 0; }

/* ── In-Game-Brett-Effekte (board-fx.js): Kanonenschuss + Tausch ───────────────
   Overlay ueber dem echten #board; fixiert im Viewport, ohne Maus-Fang. */
#boardFxLayer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.boardFx-proj {
  position: fixed; border-radius: 50%; will-change: transform;
  background: radial-gradient(circle at 38% 32%, #ffe9b0, #c89a3e 70%, #6a4f1a);
  box-shadow: 0 0 12px -1px var(--mp-gold-glow, #ffd770);
}
.boardFx-ghost { pointer-events: none; will-change: transform; }
.boardFx-strike { position: fixed; }
.boardFx-strike::before {
  content: ""; position: absolute; inset: 9%;
  border: 3px solid rgba(226, 106, 106, .96); border-radius: 4px;
  box-shadow: 0 0 16px -2px rgba(226, 106, 106, .7);
  opacity: 0; transform: scale(1.2);
  animation: lastCaptureStrike 1.3s ease-out 1;
}

/* Beschwoerung (Knochenwall): die Figur waechst hinter der Bodenlinie aus dem Feld
   herauf. Der Wrapper wird an der Standlinie abgeschnitten; darunter leuchtet die
   Beschwoerungslinie (Teal = Effekt-Farbsprache) auf und klingt aus. */
.boardFx-riseClip { position: fixed; overflow: hidden; pointer-events: none; }
.boardFx-summonLine {
  position: fixed; height: 3px; margin-top: -1.5px; pointer-events: none;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--mp-teal-1, #6ee7d8) 22%, #eafffb 50%, var(--mp-teal-1, #6ee7d8) 78%, transparent);
  box-shadow: 0 0 10px 1px var(--mp-teal-glow, rgba(77, 208, 196, .6)),
              0 0 22px 3px var(--mp-teal-glow, rgba(77, 208, 196, .35));
  transform-origin: 50% 50%;
  animation: boardFxSummonLine 1.05s ease-out 1 forwards;
}
@keyframes boardFxSummonLine {
  0%   { opacity: 0;  transform: translateX(-50%) scaleX(.05); }
  20%  { opacity: 1;  transform: translateX(-50%) scaleX(1); }
  70%  { opacity: .8; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0;  transform: translateX(-50%) scaleX(1.08); }
}

/* Magiestaub-Partikel (board-fx.js): leuchtender weisser Kern + Glow in der
   Deckfarbe der Figur; steigt/driftet und blendet ein/aus. Bewegung per
   Custom-Properties (--fx-dx/--fx-dy/--fx-dust-delay/--fx-dust-life) aus JS. */
.boardFx-dust {
  position: fixed; border-radius: 50%; pointer-events: none;
  will-change: transform, opacity; opacity: 0;
  background: radial-gradient(circle at 50% 45%, #fff, var(--fx-dust-color, #4dd0c4) 58%, transparent 78%);
  box-shadow: 0 0 6px 1px var(--fx-dust-color, #4dd0c4), 0 0 12px 2px var(--fx-dust-color, #4dd0c4);
  transform: translate(0, 0) scale(.4);
  animation: boardFxDust var(--fx-dust-life, 900ms) ease-out var(--fx-dust-delay, 0ms) 1 both;
}
@keyframes boardFxDust {
  0%   { opacity: 0; transform: translate(0, 0) scale(.35); }
  22%  { opacity: 1; transform: translate(calc(var(--fx-dx, 0px) * .28), calc(var(--fx-dy, -14px) * .28)) scale(1); }
  100% { opacity: 0; transform: translate(var(--fx-dx, 0px), var(--fx-dy, -14px)) scale(.65); }
}
/* Gift-Tod: die versinkende Figur bekommt einen kraenklich-gruenen Schimmer, waehrend
   sie in den Giftsee eintaucht (board-fx.js poisonSinkFx). */
.boardFx-sinkGhost {
  filter: saturate(.55) brightness(.82) drop-shadow(0 0 7px rgba(0, 230, 168, .75));
}

/* Standard-Schlag (board-fx.js captureStrikeFx): das getroffene Opfer blitzt beim
   Wegschleudern rot auf (Farbsprache: schlagen = rot). */
.boardFx-knockGhost {
  filter: brightness(1.45) saturate(.85) drop-shadow(0 0 8px rgba(226, 106, 106, .85));
}

/* Verwandlungs-Blitz (Matrose -> Pluenderer): heller Ring platzt aus dem Feld,
   Farbe = Deckfarbe (board-fx.js promoteFx/flashRing). */
.boardFx-flash {
  position: fixed; border-radius: 12%; pointer-events: none;
  border: 3px solid var(--fx-flash-color, #20D7E6);
  box-shadow: 0 0 18px 2px var(--fx-flash-color, #20D7E6),
              inset 0 0 14px 0 var(--fx-flash-color, #20D7E6);
  opacity: 0; transform: scale(.5);
  animation: boardFxFlash .62s cubic-bezier(.2, .7, .3, 1) 1 forwards;
}
@keyframes boardFxFlash {
  0%   { opacity: 0;   transform: scale(.5); }
  25%  { opacity: .95; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.42); }
}

@media (prefers-reduced-motion: reduce) {
  .boardFx-proj { transition: none !important; }
  .boardFx-ghost { transition: none !important; }
  .boardFx-riseGhost { transition: none !important; }
  .boardFx-sinkGhost { transition: none !important; }
  .boardFx-suckGhost { transition: none !important; }
  .boardFx-lungeGhost { transition: none !important; }
  .boardFx-knockGhost { transition: none !important; }
  .boardFx-strike::before { animation: none !important; }
  .boardFx-summonLine { animation: none !important; }
  .boardFx-dust { display: none !important; }
  .boardFx-flash { animation: none !important; }
}

.pcx-board-note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--mp-ink);
  background: rgba(7, 8, 11, .45);
  border: 1px dashed rgba(216, 177, 90, .2);
  padding: 16px;
  text-align: center;
  width: 100%;
}
.pcx-effect-custom { display: flex; flex-direction: column; gap: 6px; }
.pcx-effect-custom strong { color: #7ab6ec; font-size: 14px; letter-spacing: .04em; }
.pcx-effect-note {
  margin: 12px 0 0;
  font-family: var(--mp-serif-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--mp-ink);
  text-align: center;
  max-width: 300px;
}

/* Legende — Marker-Sprache (gold/rot/blau) bleibt */
.pcx-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--mp-ink);
}
.pcx-legend span { display: inline-flex; align-items: center; gap: 7px; }
.pcx-legend .lg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; box-sizing: border-box; flex-shrink: 0; }
.pcx-legend .lg.move { background: radial-gradient(circle at 40% 35%, var(--mp-mark-move), var(--mp-mark-move-2)); }
.pcx-legend .lg.cap { background: transparent; border: 2px solid var(--mp-mark-cap); }
.pcx-legend .lg.both { background: radial-gradient(circle at 40% 35%, var(--mp-mark-move), var(--mp-mark-move-2)); border: 2px solid var(--mp-mark-cap); }
.pcx-legend .lg.effect { background: radial-gradient(circle at 40% 35%, var(--mp-mark-effect), var(--mp-mark-effect-2)); }

/* "Zug abspielen" — Gold-CTA aus der Vorlage */
.pcx-demo-btn {
  margin-top: 16px;
  width: 100%;
  padding: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mp-sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #07080b;
  background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 45%, #b08530 100%);
  border: 1px solid #f0d27a;
  box-shadow: 0 0 24px -8px var(--mp-gold-glow), inset 0 1px 0 rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.pcx-demo-btn svg { width: 13px; height: 13px; }
.pcx-demo-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 30px -8px var(--mp-gold-glow), inset 0 1px 0 rgba(255, 255, 255, .5); }
.pcx-demo-btn:active { transform: translateY(0); }

.piece-codex-btn { cursor: pointer; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .fd-frame { flex-direction: column; }
  .fd-arrow.left { order: 2; }
  .fd-arrow.right { order: 3; }
  .fd-modal { order: 1; width: 100%; }
  .fd-body { grid-template-columns: 1fr; }
  .fd-col.left { border-right: none; border-bottom: 1px solid rgba(216, 177, 90, .12); }
  .fd-hero { height: 210px; }
  .fd-name { font-size: clamp(30px, 8vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .fd-frame, .pcx-backdrop, .pcx-piece, .pcx-demo-btn, .pcx-dot { transition: none !important; }
  .pcx-actor, .pcx-actor-body, .pcx-fxmark, .pcx-proj { transition: none !important; }
  .pcx-piece img, .pcx-piece-glyph { transition: none !important; }
  .pcx-piece.pcx-activate, .pcx-piece.pcx-rise, .pcx-fxmark.linger,
  .pcx-piece.settling img, .pcx-piece.settling .pcx-piece-glyph,
  .pcx-poison,
  .pcx-land::before { animation: none !important; }
}

/* ===========================================================================
   ADMIN-DASHBOARD (mode-admin, teilt sich #infoPage mit Codex/Support).
   Designsprache: scharfe Ecken + Eckklammern, Gold/Teal-Akzente, Serif-Header
   (von .duell-head). Kein Block-Glow (Ambient von der mode-info-Vignette).
   =========================================================================== */
  .adm { max-width: 1180px; margin: 0 auto; width: 100%; }
  .adm .duell-head { margin-bottom: 22px; }

  .adm-tabs {
    display: flex; flex-wrap: wrap; gap: 6px;
    border-bottom: 1px solid var(--mp-ink-faint);
    margin-bottom: 22px;
  }
  .adm-tab {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: none; border: none; cursor: pointer;
    color: var(--mp-ink); font-family: var(--mp-sans); font-weight: 600;
    font-size: 13.5px; letter-spacing: .02em;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
  }
  .adm-tab svg { opacity: .7; }
  .adm-tab:hover { color: var(--mp-bone); }
  .adm-tab.on { color: var(--mp-teal-1); border-bottom-color: var(--mp-teal-1); }
  .adm-tab.on svg { opacity: 1; }

  .adm-loading, .adm-empty, .adm-chart-empty {
    padding: 40px 20px; text-align: center; color: var(--mp-ink-dim);
    font-family: var(--mp-sans); font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .adm-loading svg { animation: admSpin 1s linear infinite; }
  @keyframes admSpin { to { transform: rotate(360deg); } }

  .adm-live {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
    padding: 11px 16px; margin-bottom: 18px;
    background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint);
    font-family: var(--mp-sans); font-size: 12.5px; color: var(--mp-ink);
  }
  .adm-live b { color: var(--mp-bone); letter-spacing: .08em; text-transform: uppercase; font-size: 11px; }
  .adm-live span { display: inline-flex; gap: 6px; align-items: baseline; }
  .adm-live em { font-style: normal; color: var(--mp-teal-1); font-weight: 700; }
  .adm-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mp-teal-1);
    box-shadow: 0 0 8px var(--mp-teal-glow); animation: admPulse 2s ease-in-out infinite; }
  @keyframes admPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

  .adm-kpis {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px; margin-bottom: 22px;
  }
  .adm-kpi {
    position: relative; padding: 18px 16px 15px;
    background: var(--mp-panel); border: 1px solid var(--mp-ink-faint);
    overflow: hidden;
  }
  .adm-kpi::before, .adm-kpi::after {
    content: ""; position: absolute; width: 12px; height: 12px;
    border: 1px solid var(--mp-gold-3); pointer-events: none;
  }
  .adm-kpi::before { top: 6px; left: 6px; border-right: none; border-bottom: none; }
  .adm-kpi::after { bottom: 6px; right: 6px; border-left: none; border-top: none; }
  .adm-kpi-val { font-family: var(--mp-serif); font-size: 30px; font-weight: 700; color: var(--mp-bone); line-height: 1; }
  .adm-kpi-label { margin-top: 7px; font-family: var(--mp-sans); font-size: 12px; font-weight: 600;
    letter-spacing: .06em; text-transform: uppercase; color: var(--mp-ink); }
  .adm-kpi-sub { margin-top: 4px; font-family: var(--mp-sans); font-size: 11.5px; color: var(--mp-ink-dim); }
  .adm-kpi--gold .adm-kpi-val { color: var(--mp-gold-1); }
  .adm-kpi--gold::before, .adm-kpi--gold::after { border-color: var(--mp-gold-2); }
  .adm-kpi--teal .adm-kpi-val { color: var(--mp-teal-1); }
  .adm-kpi--teal::before, .adm-kpi--teal::after { border-color: var(--mp-teal-3); }

  .adm-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .adm-chart { padding: 16px; background: var(--mp-panel); border: 1px solid var(--mp-ink-faint); }
  .adm-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px;
    font-family: var(--mp-sans); font-weight: 600; font-size: 13px; color: var(--mp-bone); }
  .adm-chart-head small { color: var(--mp-ink-dim); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px; }
  .adm-bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; }
  .adm-bar { flex: 1; min-width: 5px; height: var(--h); position: relative;
    background: linear-gradient(180deg, var(--mp-teal-1), var(--mp-teal-3));
    border-radius: 2px 2px 0 0; transition: filter .15s ease; }
  .adm-bar:hover { filter: brightness(1.2); }
  .adm-bar-n { position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    font-family: var(--mp-mono); font-size: 9.5px; color: var(--mp-ink-dim); }

  .adm-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
  .adm-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px;
    background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint); color: var(--mp-ink-dim); }
  .adm-search input { flex: 1; background: none; border: none; outline: none; padding: 11px 0;
    color: var(--mp-bone); font-family: var(--mp-sans); font-size: 14px; }
  .adm-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint); color: var(--mp-ink); cursor: pointer;
    transition: color .15s ease, border-color .15s ease; }
  .adm-iconbtn:hover { color: var(--mp-teal-1); border-color: var(--mp-teal-3); }

  .adm-table-wrap { border: 1px solid var(--mp-ink-faint); overflow-x: auto; }
  .adm-table { width: 100%; border-collapse: collapse; font-family: var(--mp-sans); font-size: 13.5px; }
  .adm-table thead th { text-align: left; padding: 11px 14px; background: var(--mp-panel-2);
    color: var(--mp-ink); font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
    border-bottom: 1px solid var(--mp-ink-faint); white-space: nowrap; }
  .adm-table tbody td { padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--mp-ink-faint) 55%, transparent);
    color: var(--mp-bone); vertical-align: middle; }
  .adm-table tbody tr:last-child td { border-bottom: none; }
  .adm-table tbody tr:hover td { background: color-mix(in srgb, var(--mp-teal-glow) 8%, transparent); }
  .adm-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .adm-right { text-align: right; }
  .adm-dim { color: var(--mp-ink-dim); }
  .adm-w { color: #78daa2; font-weight: 600; }
  .adm-l { color: var(--mp-danger); }
  .adm-d { color: var(--mp-ink); }
  .adm-shards { color: var(--mp-teal-1); font-weight: 600; }
  .adm-gold { color: var(--mp-gold-1); }
  .adm-count { margin-top: 10px; font-family: var(--mp-sans); font-size: 12px; color: var(--mp-ink-dim); text-align: right; }

  .adm-cell-user { display: flex; align-items: center; gap: 11px; }
  .adm-av { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden;
    border: 1px solid var(--mp-gold-3); display: grid; place-items: center; background: var(--mp-bg-3); }
  .adm-av img { width: 100%; height: 100%; object-fit: cover; }
  .adm-av--text { font-family: var(--mp-serif); font-weight: 700; font-size: 13px; color: var(--mp-gold-1); }
  .adm-user-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .adm-user-name { font-weight: 600; color: var(--mp-bone); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
  .adm-user-sub { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }

  .adm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 2px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
  .adm-badge--admin { background: color-mix(in srgb, var(--mp-teal-3) 28%, transparent); color: var(--mp-teal-1);
    border: 1px solid var(--mp-teal-3); }
  .adm-badge--supporter { background: color-mix(in srgb, var(--mp-gold-3) 25%, transparent); color: var(--mp-gold-1);
    border: 1px solid var(--mp-gold-3); }
  .adm-badge--patron { background: linear-gradient(180deg, color-mix(in srgb, var(--mp-gold-1) 30%, transparent), transparent);
    color: var(--mp-gold-1); border: 1px solid var(--mp-gold-2); }
  .adm-badge--banned { background: color-mix(in srgb, var(--mp-danger) 22%, transparent); color: var(--mp-danger);
    border: 1px solid var(--mp-danger); }
  .adm-badge--muted { background: color-mix(in srgb, var(--mp-gold-3) 20%, transparent); color: var(--mp-gold-1);
    border: 1px solid var(--mp-gold-3); }
  .adm-act { font-weight: 600; color: var(--mp-bone); }

  /* Pagination / Übersicht-Kopf / Top-Spieler / Mini-Matches / Filter */
  .adm-players-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
  .adm-players-foot .adm-count { margin-top: 0; }
  .adm-over-head { display: flex; align-items: flex-start; gap: 10px; }
  .adm-over-head .adm-live { flex: 1; margin-bottom: 18px; }
  .adm-top .adm-table tbody td { border-bottom: 1px solid color-mix(in srgb, var(--mp-ink-faint) 45%, transparent); }
  .adm-rank { color: var(--mp-gold-1); font-family: var(--mp-serif); font-weight: 700; width: 48px; }
  .adm-mini-matches { display: flex; flex-direction: column; gap: 4px; }
  .adm-mini-match { display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
    padding: 7px 10px; background: var(--mp-bg-1); border: 1px solid var(--mp-ink-faint); color: var(--mp-bone);
    font-family: var(--mp-sans); font-size: 12.5px; cursor: pointer; transition: border-color .15s ease; }
  .adm-mini-match:hover { border-color: var(--mp-teal-3); }
  .adm-mini-when { margin-left: auto; }
  .adm-seg--wrap { flex-wrap: wrap; border: none; gap: 5px; }
  .adm-seg--wrap button { border: 1px solid var(--mp-ink-faint); padding: 6px 12px; font-size: 12px; }

  .adm-manage { padding: 6px 13px; background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint);
    color: var(--mp-bone); font-family: var(--mp-sans); font-weight: 600; font-size: 12.5px; cursor: pointer;
    transition: border-color .15s ease, color .15s ease; white-space: nowrap; }
  .adm-manage:hover { border-color: var(--mp-teal-3); color: var(--mp-teal-1); }

  .adm-modal-ov { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px;
    background: rgba(4,5,8,.72); backdrop-filter: blur(3px); animation: admFade .15s ease; }
  @keyframes admFade { from { opacity: 0; } }
  .adm-modal { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto;
    background: var(--mp-bg-2); border: 1px solid var(--mp-gold-3); padding: 24px; }
  .adm-modal-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; display: grid; place-items: center;
    background: none; border: 1px solid var(--mp-ink-faint); color: var(--mp-ink); cursor: pointer; }
  .adm-modal-x:hover { color: var(--mp-bone); border-color: var(--mp-ink); }
  .adm-modal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 34px; margin-bottom: 16px; }
  .adm-modal-head .adm-av { width: 48px; height: 48px; }
  .adm-modal-name { font-family: var(--mp-serif); font-size: 21px; font-weight: 700; color: var(--mp-bone); }
  .adm-modal-id { font-family: var(--mp-mono); font-size: 11.5px; color: var(--mp-ink-dim); }
  .adm-modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px 14px; padding: 14px;
    background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint); margin-bottom: 18px;
    font-family: var(--mp-sans); font-size: 12px; color: var(--mp-ink); }
  .adm-modal-stats b { display: block; color: var(--mp-bone); font-size: 15px; font-weight: 700; margin-top: 2px; }
  .adm-modal-sec { padding: 15px 0; border-top: 1px solid var(--mp-ink-faint); }
  .adm-modal-sec-title { display: flex; align-items: center; gap: 7px; font-family: var(--mp-sans); font-weight: 700;
    font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--mp-gold-1); margin-bottom: 12px; }
  .adm-modal-sec-title svg { color: var(--mp-gold-2); }
  .adm-grant-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .adm-grant-grid label { display: flex; flex-direction: column; gap: 5px; font-family: var(--mp-sans);
    font-size: 11.5px; color: var(--mp-ink); }
  .adm-grant-grid input { background: var(--mp-bg-1); border: 1px solid var(--mp-ink-faint); padding: 9px 11px;
    color: var(--mp-bone); font-family: var(--mp-mono); font-size: 14px; outline: none; }
  .adm-grant-grid input:focus { border-color: var(--mp-teal-3); }
  .adm-hint { font-family: var(--mp-sans); font-size: 11.5px; color: var(--mp-ink-dim); margin: 8px 0 0; }

  .adm-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 1px solid var(--mp-ink-faint);
    background: var(--mp-panel-2); color: var(--mp-bone); font-family: var(--mp-sans); font-weight: 700; font-size: 13px;
    cursor: pointer; transition: filter .15s ease, border-color .15s ease, transform .1s ease; }
  .adm-btn:hover { filter: brightness(1.1); }
  .adm-btn:active { transform: translateY(1px); }
  .adm-btn:disabled { opacity: .5; cursor: default; }
  .adm-btn--teal { border-color: var(--mp-teal-3); color: var(--mp-teal-1);
    background: color-mix(in srgb, var(--mp-teal-3) 16%, var(--mp-panel-2)); }
  .adm-btn--danger { border-color: var(--mp-danger); color: var(--mp-danger);
    background: color-mix(in srgb, var(--mp-danger) 12%, transparent); }
  .adm-btn--danger:hover { background: color-mix(in srgb, var(--mp-danger) 22%, transparent); }

  .adm-seg { display: inline-flex; border: 1px solid var(--mp-ink-faint); }
  .adm-seg button { padding: 9px 18px; background: var(--mp-bg-1); border: none; border-right: 1px solid var(--mp-ink-faint);
    color: var(--mp-ink); font-family: var(--mp-sans); font-weight: 600; font-size: 13px; cursor: pointer;
    transition: background .15s ease, color .15s ease; }
  .adm-seg button:last-child { border-right: none; }
  .adm-seg button.on { background: color-mix(in srgb, var(--mp-gold-3) 30%, transparent); color: var(--mp-gold-1); }
  .adm-seg button:hover:not(.on) { color: var(--mp-bone); }

  .adm-modal-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .adm-modal-row .adm-modal-sec-title { margin-bottom: 4px; }
  .adm-modal-row .adm-hint { margin: 0; }
  .adm-toggle { flex: none; width: 50px; height: 28px; border-radius: 14px; border: 1px solid var(--mp-ink-faint);
    background: var(--mp-bg-1); cursor: pointer; position: relative; transition: background .15s ease, border-color .15s ease; }
  .adm-toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--mp-ink); transition: transform .18s ease, background .18s ease; }
  .adm-toggle.on { background: color-mix(in srgb, var(--mp-teal-3) 40%, transparent); border-color: var(--mp-teal-3); }
  .adm-toggle.on span { transform: translateX(22px); background: var(--mp-teal-1); }

  .adm-modal-danger { padding-top: 16px; border-top: 1px solid var(--mp-ink-faint); margin-top: 4px; }

  .adm-mod-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px;
    font-family: var(--mp-sans); font-size: 12.5px; color: var(--mp-ink); }
  .adm-msgs { border: 1px solid var(--mp-ink-faint); }
  .adm-msg { display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    border-bottom: 1px solid color-mix(in srgb, var(--mp-ink-faint) 55%, transparent); }
  .adm-msg:last-child { border-bottom: none; }
  .adm-msg:hover { background: color-mix(in srgb, var(--mp-teal-glow) 7%, transparent); }
  .adm-msg-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
    font-family: var(--mp-sans); font-size: 13.5px; }
  .adm-msg-author { color: var(--mp-gold-1); font-weight: 700; }
  .adm-msg-body { color: var(--mp-bone); word-break: break-word; }
  .adm-msg-time { flex: none; font-family: var(--mp-sans); font-size: 11px; }
  .adm-msg-del { flex: none; width: 30px; height: 30px; display: grid; place-items: center; background: none;
    border: 1px solid transparent; color: var(--mp-ink-dim); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
  .adm-msg-del:hover { color: var(--mp-danger); border-color: var(--mp-danger); }

  /* Admin-Nav-Eintrag (Staff-Abzeichen) */
  .navBadgeAdmin { background: color-mix(in srgb, var(--mp-teal-3) 30%, transparent) !important;
    color: var(--mp-teal-1) !important; border: 1px solid var(--mp-teal-3) !important; }

  /* Ansagen-Tab: Eingabe + Liste */
  .adm-announce-new { padding: 16px; background: var(--mp-panel); border: 1px solid var(--mp-ink-faint); margin-bottom: 16px; }
  .adm-textarea { width: 100%; background: var(--mp-bg-1); border: 1px solid var(--mp-ink-faint); color: var(--mp-bone);
    font-family: var(--mp-sans); font-size: 14px; padding: 10px 12px; outline: none; resize: vertical; box-sizing: border-box; }
  .adm-textarea:focus { border-color: var(--mp-teal-3); }
  .adm-announce-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
  .adm-grant-grid select { background: var(--mp-bg-1); border: 1px solid var(--mp-ink-faint); padding: 9px 11px;
    color: var(--mp-bone); font-family: var(--mp-sans); font-size: 14px; outline: none; }
  .adm-grant-grid select:focus { border-color: var(--mp-teal-3); }
  .adm-row-muted td { opacity: .5; }

  /* System-Ankündigungs-Banner (Broadcast, oben in der App) */
  .announceBar { position: relative; z-index: 60; display: flex; flex-direction: column; gap: 1px; }
  .announce { display: flex; align-items: center; gap: 10px; padding: 9px 16px;
    font-family: var(--mp-sans); font-size: 13.5px; color: var(--mp-bone);
    background: color-mix(in srgb, var(--mp-teal-3) 18%, var(--mp-bg-1));
    border-bottom: 1px solid color-mix(in srgb, var(--mp-teal-3) 40%, transparent); }
  .announce--warn { background: color-mix(in srgb, var(--mp-danger) 18%, var(--mp-bg-1));
    border-bottom-color: color-mix(in srgb, var(--mp-danger) 45%, transparent); }
  .announce--maint { background: color-mix(in srgb, var(--mp-gold-3) 22%, var(--mp-bg-1));
    border-bottom-color: color-mix(in srgb, var(--mp-gold-2) 45%, transparent); }
  .announce-ic { display: inline-flex; flex: none; color: var(--mp-teal-1); }
  .announce--warn .announce-ic { color: var(--mp-danger); }
  .announce--maint .announce-ic { color: var(--mp-gold-1); }
  .announce--maint .announce-body strong { color: var(--mp-gold-1); }
  .announce-body { flex: 1; min-width: 0; }
  .announce-x { flex: none; width: 26px; height: 26px; display: grid; place-items: center; background: none;
    border: 1px solid transparent; color: var(--mp-ink); cursor: pointer; border-radius: 3px;
    transition: color .15s ease, border-color .15s ease; }
  .announce-x:hover { color: var(--mp-bone); border-color: var(--mp-ink-faint); }

  /* In-Game Brett-FAB rechts unten (nur in Brett-Modi, wenn Online verbunden):
     Ein Menue-Anker (Kebab) signalisiert Unterpunkte; beim Hover/Tap fahren
     Feedback (Flagge) + Einstellungen (Zahnrad) darueber aus. Der Wrapper waechst
     nur im offenen Zustand nach oben — im Ruhezustand deckt er nur den Anker ab
     und blockiert so keine Brettecke. */
  .gameFab { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 70;
    flex-direction: column; align-items: flex-end; }
  body.has-reporting.mode-demo .gameFab,
  body.has-reporting.mode-puzzle .gameFab,
  body.has-reporting.mode-lessons .gameFab { display: flex; }

  /* Gemeinsamer Rund-Knopf-Look */
  .gameFabBtn { box-sizing: border-box; width: 42px; height: 42px; display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint); color: var(--mp-ink);
    cursor: pointer; box-shadow: 0 6px 18px -8px rgba(0,0,0,.6); }

  /* Menue-Anker (immer sichtbar) */
  .gameFabMenu { transition: color .15s ease, border-color .15s ease; }
  .gameFabMenu:hover,
  .gameFab:hover .gameFabMenu,
  .gameFab.is-open .gameFabMenu { color: var(--mp-bone); border-color: var(--mp-ink); }

  /* Ausfahrende Unterpunkte: im Ruhezustand Hoehe 0, beim Oeffnen animiert nach oben. */
  .gameFabItem { height: 0; margin-bottom: 0; overflow: hidden; border-color: transparent;
    opacity: 0; transform: translateY(10px) scale(.6); pointer-events: none;
    transition: height .26s cubic-bezier(.2,.8,.3,1), margin-bottom .26s ease,
      opacity .2s ease, transform .28s cubic-bezier(.2,.8,.3,1), color .15s ease, border-color .15s ease; }
  .gameFab:hover .gameFabItem,
  .gameFab:focus-within .gameFabItem,
  .gameFab.is-open .gameFabItem {
    height: 42px; margin-bottom: 10px; opacity: 1; transform: translateY(0) scale(1);
    pointer-events: auto; border-color: var(--mp-ink-faint); }
  /* leichte Staffelung: das Zahnrad (oben) faehrt minimal spaeter aus */
  .gameFab:hover .gameFabSettings,
  .gameFab:focus-within .gameFabSettings,
  .gameFab.is-open .gameFabSettings { transition-delay: .04s; }

  /* Akzentfarben pro Unterpunkt */
  .gameFab .reportFlag:hover { color: var(--mp-danger); border-color: var(--mp-danger); }
  .gameFab .gameFabSettings:hover { color: var(--mp-gold-2); border-color: var(--mp-gold-2); }

  /* In-Game Anzeige-Einstellungen (Modal hinter dem Zahnrad) */
  .gset-ov { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 24px;
    background: rgba(7,8,11,.82); backdrop-filter: blur(10px); animation: fbOverlayIn 200ms ease; }
  .gset { position: relative; width: 380px; max-width: 100%; box-sizing: border-box; padding: 22px 22px 20px;
    background: linear-gradient(180deg, rgba(20,23,31,.97), rgba(9,11,15,.98));
    border: 1px solid rgba(216,177,90,.3);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,.85), inset 0 0 0 1px rgba(216,177,90,.08);
    animation: fbIn 300ms cubic-bezier(.2,.8,.3,1); }
  .gset::before, .gset::after { content: ""; position: absolute; width: 16px; height: 16px;
    border: 1px solid var(--mp-gold-2); pointer-events: none; }
  .gset::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
  .gset::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
  .gset-head { position: relative; margin-bottom: 16px; }
  .gset-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--mp-teal-2); }
  .gset-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mp-teal-2);
    box-shadow: 0 0 8px var(--mp-teal-glow); }
  .gset-title { margin: 6px 0 0; font-size: 20px; font-weight: 600; color: var(--mp-bone); }
  /* Look/Animation kommen aus .mp-close (unten); hier nur Position/Größe. */
  .gset-close { position: absolute; top: -2px; right: -2px; width: 28px; height: 28px; }
  .gset-section-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink); }
  .gset-section-gap { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
  .gset-hint { margin: 4px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--mp-ink); }
  .gset-rows { display: flex; flex-direction: column; }
  .gset-row { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 11px 2px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05); }
  .gset-row:last-child { border-bottom: 0; }
  .gset-row-name { font-size: 14px; color: var(--mp-bone); }
  .gset-switch { position: relative; flex: none; }
  .gset-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  .gset-track { display: block; position: relative; width: 40px; height: 22px; border-radius: 22px;
    background: rgba(255,255,255,.08); border: 1px solid var(--mp-ink-faint);
    transition: background .18s ease, border-color .18s ease; }
  .gset-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--mp-ink); transition: transform .2s cubic-bezier(.2,.8,.3,1), background .18s ease; }
  .gset-switch input:checked ~ .gset-track { background: rgba(77,208,196,.22); border-color: var(--mp-teal-2); }
  .gset-switch input:checked ~ .gset-track .gset-thumb { transform: translateX(18px); background: var(--mp-teal-2); }
  .gset-switch input:focus-visible ~ .gset-track { outline: 2px solid var(--mp-teal-2); outline-offset: 2px; }

  /* ===== Feedback-/Melde-Popup (Claude-Design „Feedback Modal", .fb-*) ===== */
  .fb-ov { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 24px;
    /* Panel kann hoeher als der Viewport sein (Phone: gestapelte Kategorien +
       Tastatur) -> Overlay scrollt; Grid-place-items clippt dabei nicht (Flex wuerde). */
    overflow-y: auto;
    background: rgba(7, 8, 11, 0.88); backdrop-filter: blur(14px); animation: fbOverlayIn 240ms ease; }
  @keyframes fbOverlayIn { from { opacity: 0; } to { opacity: 1; } }
  .fb { position: relative; width: 520px; max-width: 100%;
    background:
      radial-gradient(ellipse 90% 55% at 50% 0%, rgba(77, 208, 196, 0.06), transparent 60%),
      linear-gradient(180deg, rgba(20, 23, 31, 0.97) 0%, rgba(9, 11, 15, 0.98) 100%);
    border: 1px solid rgba(216, 177, 90, 0.3);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.6),
      inset 0 0 0 1px rgba(216, 177, 90, 0.08), inset 0 0 70px rgba(0,0,0,0.4);
    animation: fbIn 320ms cubic-bezier(.2,.8,.3,1); }
  @keyframes fbIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
  .fb::before, .fb::after { content: ""; position: absolute; width: 18px; height: 18px;
    border: 1px solid var(--mp-gold-2); pointer-events: none; }
  .fb::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
  .fb::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
  .fb-rule { position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--mp-teal-2) 30%, var(--mp-gold-1) 70%, transparent); opacity: 0.55; }

  .fb-head { padding: 26px 28px 18px; position: relative; }
  .fb-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 700; color: var(--mp-teal-1); margin-bottom: 12px; }
  .fb-eyebrow .dot { width: 6px; height: 6px; background: var(--mp-teal-1); border-radius: 50%;
    box-shadow: 0 0 8px var(--mp-teal-1); animation: fbPulse 1.9s ease-in-out infinite; }
  .fb-eyebrow .sep { color: var(--mp-gold-3); margin: 0 1px; }
  @keyframes fbPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  .fb-title { font-family: var(--mp-serif); font-weight: 700; font-size: 27px; letter-spacing: 1.5px;
    color: var(--mp-bone); margin: 0; line-height: 1.05; }
  .fb-flourish { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--mp-gold-3); }
  .fb-flourish .line { height: 1px; flex: 1; background: linear-gradient(90deg, var(--mp-gold-3), transparent); }
  .fb-flourish .diamond { width: 5px; height: 5px; background: var(--mp-gold-1); transform: rotate(45deg); box-shadow: 0 0 6px var(--mp-gold-glow); }
  /* Look/Animation kommen aus .mp-close (unten); hier nur Position/Größe. */
  .fb-close { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; }

  .fb-body { padding: 4px 28px 0; }
  .fb-label { font-size: 9.5px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--mp-ink-dim);
    font-weight: 700; margin-bottom: 11px; display: flex; align-items: center; gap: 9px; }
  .fb-label .num { font-family: var(--mp-mono); color: var(--mp-gold-2); }

  .fb-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 24px; }
  .fb-cat { position: relative; display: flex; align-items: center; gap: 11px; padding: 13px 14px; text-align: left;
    background: rgba(11, 13, 18, 0.6); border: 1px solid rgba(216, 177, 90, 0.14); cursor: pointer; transition: all 170ms ease; }
  .fb-cat .ico { width: 22px; height: 22px; flex-shrink: 0; display: grid; place-items: center; color: var(--mp-gold-2); transition: color 170ms ease; }
  .fb-cat .ct { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .fb-cat .cn { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--mp-bone); text-transform: uppercase; }
  .fb-cat .cd { font-size: 10.5px; color: var(--mp-ink-dim); letter-spacing: 0.3px; }
  .fb-cat:hover { border-color: rgba(77, 208, 196, 0.3); background: rgba(15, 28, 30, 0.45); }
  .fb-cat:hover .ico { color: var(--mp-teal-1); }
  .fb-cat.active { border-color: var(--mp-teal-2);
    background: linear-gradient(180deg, rgba(35, 155, 149, 0.14), rgba(15, 28, 30, 0.4));
    box-shadow: 0 0 0 1px rgba(77, 208, 196, 0.18), 0 0 22px rgba(77, 208, 196, 0.1); }
  .fb-cat.active .ico { color: var(--mp-teal-1); }
  .fb-cat.active .cn { color: #fff; }
  .fb-cat .tick { position: absolute; top: 9px; right: 10px; width: 14px; height: 14px; color: var(--mp-teal-1);
    opacity: 0; transform: scale(0.6); transition: all 170ms ease; }
  .fb-cat.active .tick { opacity: 1; transform: scale(1); }

  .fb-field { position: relative; margin-bottom: 12px; }
  .fb-text { width: 100%; min-height: 132px; resize: vertical; padding: 15px 16px; box-sizing: border-box;
    font-family: var(--mp-sans); font-size: 14px; line-height: 1.55; color: var(--mp-parchment);
    background: rgba(7, 8, 11, 0.55); border: 1px solid rgba(216, 177, 90, 0.2); outline: none; transition: all 180ms ease; }
  .fb-text::placeholder { color: var(--mp-ink-faint); }
  .fb-text:focus { border-color: var(--mp-teal-2); background: rgba(7, 10, 12, 0.7);
    box-shadow: 0 0 0 1px rgba(77, 208, 196, 0.18), inset 0 0 24px rgba(77, 208, 196, 0.05); }
  .fb-count { position: absolute; bottom: 10px; right: 12px; font-family: var(--mp-mono); font-size: 10px;
    color: var(--mp-ink-faint); pointer-events: none; letter-spacing: 0.5px; }

  .fb-note { display: flex; align-items: center; gap: 8px; font-family: var(--mp-serif-body); font-style: italic;
    font-size: 14px; color: var(--mp-ink-dim); margin-bottom: 4px; }
  .fb-note .pin { color: var(--mp-gold-3); display: inline-flex; flex: none; }
  .fb-note b { color: var(--mp-ink); font-weight: 600; }

  .fb-foot { padding: 20px 28px 26px; display: flex; gap: 12px; }
  .fb-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--mp-sans); font-weight: 700; font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase;
    padding: 15px 22px; border: 1px solid transparent; background: none; cursor: pointer; transition: all 200ms ease; }
  .fb-btn:disabled { opacity: .6; cursor: default; }
  .fb-btn-ghost { color: var(--mp-ink); background: transparent; border-color: rgba(216, 177, 90, 0.22); }
  .fb-btn-ghost:hover { color: var(--mp-bone); border-color: rgba(216, 177, 90, 0.5); }
  .fb-btn-primary { flex: 1; color: #0c0e13; background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 40%, #b08530 100%);
    border-color: #f0d27a; box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.25), 0 0 28px rgba(216, 177, 90, 0.22), inset 0 1px 0 rgba(255,255,255,0.4); }
  .fb-btn-primary:hover:not(:disabled) { transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.4), 0 6px 38px rgba(216, 177, 90, 0.42), inset 0 1px 0 rgba(255,255,255,0.5); }
  .fb-btn-primary .corner { position: absolute; width: 5px; height: 5px; border: 1px solid #6a4f1a; }
  .fb-btn-primary .corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
  .fb-btn-primary .corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
  .fb-btn-primary .corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
  .fb-btn-primary .corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; }

  .fb.sent .fb-body, .fb.sent .fb-foot { display: none; }
  .fb-done { display: none; flex-direction: column; align-items: center; text-align: center; padding: 14px 36px 40px; }
  .fb.sent .fb-done { display: flex; }
  .fb-done .seal { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--mp-gold-3);
    transform: rotate(45deg); margin-bottom: 22px; box-shadow: 0 0 0 1px rgba(216,177,90,0.12) inset, 0 0 26px rgba(77,208,196,0.14); }
  .fb-done .seal svg { transform: rotate(-45deg); color: var(--mp-teal-1); }
  /* Magister Schnurr bedankt sich fuers Feedback (ersetzt das Siegel) */
  .fb-doneCat { margin-bottom: 14px; color: var(--mp-gold-1); }
  .fb-doneCat .coachCat { width: 88px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)) drop-shadow(0 0 12px rgba(216,177,90,.22)); }
  .fb-done h3 { font-family: var(--mp-serif); font-size: 22px; letter-spacing: 1.5px; color: var(--mp-bone); margin: 0 0 8px; font-weight: 700; }
  .fb-done p { font-family: var(--mp-serif-body); font-size: 16px; color: var(--mp-ink); margin: 0; max-width: 320px; line-height: 1.5; }

  @media (max-width: 540px) { .fb-cats { grid-template-columns: 1fr; } .fb-foot { flex-direction: column-reverse; } }

  /* ===== Erstbesuch-Willkommen (Claude-Design „Welcome Modal", .wm-*) ===== */
  .wm-ov { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 24px;
    background: rgba(7, 8, 11, 0.88); backdrop-filter: blur(14px); animation: wmOverlayIn 240ms ease; }
  @keyframes wmOverlayIn { from { opacity: 0; } to { opacity: 1; } }
  .wm { position: relative; width: 580px; max-width: 100%;
    background:
      radial-gradient(ellipse 90% 55% at 50% 0%, rgba(77, 208, 196, 0.06), transparent 60%),
      linear-gradient(180deg, rgba(20, 23, 31, 0.97) 0%, rgba(9, 11, 15, 0.98) 100%);
    border: 1px solid rgba(216, 177, 90, 0.3);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,0.85), 0 0 0 1px rgba(0,0,0,0.6),
      inset 0 0 0 1px rgba(216, 177, 90, 0.08), inset 0 0 70px rgba(0,0,0,0.4);
    animation: wmIn 320ms cubic-bezier(.2,.8,.3,1) both; }
  @keyframes wmIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
  .wm::before, .wm::after { content: ""; position: absolute; width: 18px; height: 18px;
    border: 1px solid var(--mp-gold-2); pointer-events: none; }
  .wm::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
  .wm::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
  .wm-rule { position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--mp-teal-2) 30%, var(--mp-gold-1) 70%, transparent); opacity: 0.55; }

  .wm-head { padding: 28px 30px 4px; position: relative; }
  .wm-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 3px;
    text-transform: uppercase; font-weight: 700; color: var(--mp-teal-1); margin-bottom: 14px; }
  .wm-eyebrow .dot { width: 6px; height: 6px; background: var(--mp-teal-1); border-radius: 50%;
    box-shadow: 0 0 8px var(--mp-teal-1); animation: wmPulse 1.9s ease-in-out infinite; }
  .wm-eyebrow .diamond { width: 5px; height: 5px; background: var(--mp-gold-1); transform: rotate(45deg); box-shadow: 0 0 6px var(--mp-gold-glow); }
  .wm-eyebrow .beta { color: var(--mp-gold-1); }
  @keyframes wmPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  .wm-title { font-family: var(--mp-serif); font-weight: 700; font-size: 38px; letter-spacing: 2px; color: var(--mp-bone);
    margin: 0; line-height: 1; background: linear-gradient(180deg, #f5ebcf 0%, #e8c879 55%, #b88a2f 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
  .wm-sub { font-family: var(--mp-serif-body); font-size: 19px; line-height: 1.45; color: var(--mp-ink); margin: 16px 0 0; max-width: 480px; }
  .wm-sub strong { color: var(--mp-bone); font-weight: 600; }
  /* Magister Schnurr (render/mascot.js) stellt das Spiel vor — rechts im Kopf,
     unterm Schliessen-Knopf. Idle-Animationen kommen aus main-10 (.coachCat). */
  .wm-cat { position: absolute; right: 26px; bottom: -4px; color: var(--mp-gold-1); pointer-events: none; }
  .wm-cat .coachCat { width: 84px; filter: drop-shadow(0 3px 8px rgba(0,0,0,.55)) drop-shadow(0 0 10px rgba(216,177,90,.22)); }
  /* Untertitel macht der Katze Platz (nur solange sie sichtbar ist) */
  @media (min-width: 541px) { .wm-sub { max-width: 390px; } }
  @media (max-width: 540px) { .wm-cat { display: none; } }
  .wm-close { position: absolute; top: 24px; right: 24px; width: 34px; height: 34px; display: grid; place-items: center;
    background: none; border: 1px solid rgba(216, 177, 90, 0.22); color: var(--mp-ink-dim); cursor: pointer; transition: all 160ms ease; }
  .wm-close:hover { color: var(--mp-bone); border-color: var(--mp-gold-1); background: rgba(28, 22, 12, 0.6); box-shadow: 0 0 16px rgba(216, 177, 90, 0.18); }

  .wm-list { padding: 26px 30px 6px; display: flex; flex-direction: column; gap: 2px; }
  .wm-row { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px dashed rgba(216, 177, 90, 0.12); }
  .wm-row:last-child { border-bottom: none; }
  .wm-ico { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; color: var(--mp-gold-1);
    background: linear-gradient(135deg, #1a1f2a, #0d1015); border: 1px solid var(--mp-gold-3); position: relative; filter: drop-shadow(0 0 6px rgba(216,177,90,0.12)); }
  .wm-ico::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(216, 177, 90, 0.16); pointer-events: none; }
  .wm-rt { min-width: 0; }
  .wm-rt .rn { font-family: var(--mp-serif); font-size: 16px; letter-spacing: 0.6px; color: var(--mp-bone); font-weight: 600; margin-bottom: 4px; }
  .wm-rt .rn .opt { font-family: var(--mp-sans); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--mp-ink-dim); font-weight: 700; margin-left: 8px; vertical-align: middle; }
  .wm-rt .rd { font-size: 13px; line-height: 1.5; color: var(--mp-ink-dim); }

  .wm-note { margin: 18px 30px 0; padding: 14px 16px; position: relative; background: rgba(35, 155, 149, 0.05);
    border: 1px solid rgba(77, 208, 196, 0.18); font-family: var(--mp-serif-body); font-size: 15.5px; line-height: 1.45; color: var(--mp-ink); }
  .wm-note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
    background: linear-gradient(180deg, transparent, var(--mp-teal-2), transparent); }
  .wm-note strong { color: var(--mp-teal-1); font-weight: 600; font-style: normal; }

  .wm-foot { padding: 22px 30px 28px; display: flex; gap: 12px; }
  .wm-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--mp-sans); font-weight: 700; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
    padding: 16px 24px; border: 1px solid transparent; background: none; cursor: pointer; transition: all 200ms ease; }
  .wm-btn .arrow { display: inline-block; transition: transform 160ms; }
  .wm-btn:hover .arrow { transform: translateX(3px); }
  .wm-btn-primary { flex: 1.4; color: #0c0e13; background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 40%, #b08530 100%);
    border-color: #f0d27a; box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.25), 0 0 28px rgba(216, 177, 90, 0.22), inset 0 1px 0 rgba(255,255,255,0.4); }
  .wm-btn-primary:hover { transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(216, 177, 90, 0.4), 0 6px 38px rgba(216, 177, 90, 0.42), inset 0 1px 0 rgba(255,255,255,0.5); }
  .wm-btn-primary .corner { position: absolute; width: 5px; height: 5px; border: 1px solid #6a4f1a; }
  .wm-btn-primary .corner.tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
  .wm-btn-primary .corner.tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
  .wm-btn-primary .corner.bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
  .wm-btn-primary .corner.br { bottom: 4px; right: 4px; border-left: none; border-top: none; }
  .wm-btn-secondary { flex: 1; color: var(--mp-bone); background: rgba(18, 21, 28, 0.7); border-color: rgba(216, 177, 90, 0.4); }
  .wm-btn-secondary:hover { border-color: var(--mp-gold-1); color: var(--mp-gold-1); background: rgba(28, 22, 12, 0.7); box-shadow: 0 0 20px rgba(216, 177, 90, 0.18); }

  @media (max-width: 560px) { .wm-foot { flex-direction: column; } .wm-title { font-size: 32px; } }

  /* Admin: Meldungs-Karten */
  .adm-reports { display: flex; flex-direction: column; gap: 10px; }
  .adm-report { padding: 14px 16px; background: var(--mp-panel); border: 1px solid var(--mp-ink-faint); }
  .adm-report--done { opacity: .62; }
  .adm-report-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
  .adm-report-by { font-family: var(--mp-sans); font-weight: 600; font-size: 13px; color: var(--mp-bone); }
  .adm-report-when { margin-left: auto; font-family: var(--mp-sans); font-size: 11.5px; }
  .adm-report-body { font-family: var(--mp-sans); font-size: 13.5px; color: var(--mp-bone); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
  .adm-report-ctx { font-family: var(--mp-mono); font-size: 11px; margin-top: 8px; }
  .adm-report-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
  .adm-report-foot .adm-btn { padding: 7px 12px; font-size: 12.5px; }

  /* Wartungsmodus-Karte (Übersicht) */
  .adm-maint-wrap { margin-bottom: 18px; }
  .adm-maint-wrap:empty { display: none; margin: 0; }
  .adm-maint { display: flex; gap: 18px; align-items: flex-start; padding: 16px 18px;
    background: var(--mp-panel); border: 1px solid var(--mp-ink-faint); border-left: 3px solid var(--mp-gold-3); }
  .adm-maint.is-active { border-left-color: var(--mp-danger);
    background: color-mix(in srgb, var(--mp-danger) 9%, var(--mp-panel)); }
  .adm-maint-main { flex: 1; min-width: 0; }
  .adm-maint-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-family: var(--mp-sans);
    font-weight: 700; font-size: 14px; color: var(--mp-bone); }
  .adm-maint-title svg { color: var(--mp-gold-1); }
  .adm-maint.is-active .adm-maint-title svg { color: var(--mp-danger); }
  .adm-maint-state { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 2px 8px; border-radius: 2px; color: var(--mp-ink-dim); border: 1px solid var(--mp-ink-faint); }
  .adm-maint.is-active .adm-maint-state { color: var(--mp-danger); border-color: var(--mp-danger);
    background: color-mix(in srgb, var(--mp-danger) 14%, transparent); }
  .adm-maint .adm-textarea { margin-top: 10px; }
  .adm-maint-side { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; padding-top: 2px; }
  .adm-maint-save { padding: 8px 12px; font-size: 12px; white-space: nowrap; }

  /* Endbildschirm-Test (Übersicht) */
  .adm-field { appearance: none; background: var(--mp-bg-2); color: var(--mp-bone);
    border: 1px solid var(--mp-ink-faint); border-radius: 3px; padding: 9px 12px; font: inherit; font-size: 12.5px;
    cursor: pointer; min-width: 200px; }
  .adm-field:focus { outline: none; border-color: var(--mp-gold-3); }
  .adm-endtest-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .adm-endtest-btn { font-size: 12.5px; }
  .adm-endtest-btn[data-end-tone="win"]    { border-color: var(--mp-gold-3); color: var(--mp-gold-1); }
  .adm-endtest-btn[data-end-tone="win"]:hover    { background: color-mix(in srgb, var(--mp-gold-1) 16%, transparent); }
  .adm-endtest-btn[data-end-tone="loss"]   { border-color: var(--mp-danger); color: #e0796d; }
  .adm-endtest-btn[data-end-tone="loss"]:hover   { background: color-mix(in srgb, var(--mp-danger) 18%, transparent); }
  .adm-endtest-btn[data-end-tone="resign"] { border-color: #8b8578; color: #b6b0a2; }
  .adm-endtest-btn[data-end-tone="resign"]:hover { background: color-mix(in srgb, #b6b0a2 16%, transparent); }
  .adm-endtest-btn[data-end-tone="draw"]   { border-color: var(--mp-teal-3); color: var(--mp-teal-1); }
  .adm-endtest-btn[data-end-tone="draw"]:hover   { background: color-mix(in srgb, var(--mp-teal-1) 16%, transparent); }

  /* Live-Auto-Refresh-Schalter (Übersicht-Kopf) */
  .adm-over-actions { display: flex; gap: 8px; align-items: stretch; flex: none; }
  .adm-auto { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 40px;
    background: var(--mp-panel-2); border: 1px solid var(--mp-ink-faint); color: var(--mp-ink);
    font-family: var(--mp-sans); font-weight: 600; font-size: 12.5px; cursor: pointer;
    transition: color .15s ease, border-color .15s ease; }
  .adm-auto:hover { color: var(--mp-bone); border-color: var(--mp-ink); }
  .adm-auto.on { color: var(--mp-teal-1); border-color: var(--mp-teal-3);
    background: color-mix(in srgb, var(--mp-teal-3) 16%, var(--mp-panel-2)); }
  .adm-auto.on svg { animation: admSpin 4s linear infinite; }

  /* Match-Detail (volle Zugliste) */
  .adm-matches tbody tr { cursor: pointer; }
  .adm-eyebrow-sm { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mp-sans);
    font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mp-gold-1); margin-bottom: 6px; }
  .adm-eyebrow-sm svg { color: var(--mp-gold-2); }
  .adm-match-line { font-size: 17px; line-height: 1.35; }
  .adm-match-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-moves { display: grid; grid-template-columns: auto 1fr 1fr; gap: 3px 14px; align-items: baseline;
    max-height: 320px; overflow-y: auto; padding: 4px 2px; font-family: var(--mp-mono); font-size: 13px; }
  .adm-mv-n { color: var(--mp-ink-dim); text-align: right; font-variant-numeric: tabular-nums; }
  .adm-mv-w, .adm-mv-b { color: var(--mp-bone); }
  .adm-mv { display: inline-block; padding: 1px 4px; }
  .adm-mv--cap { color: var(--mp-danger); }
  .adm-mv--abil { color: var(--mp-teal-1); }

  @media (max-width: 760px) {
    .adm-charts { grid-template-columns: 1fr; }
    .adm-modal-stats { grid-template-columns: repeat(2, 1fr); }
    .adm-grant-grid { grid-template-columns: 1fr; }
    .adm-maint { flex-direction: column; gap: 12px; }
    .adm-maint-side { flex-direction: row; align-self: flex-start; }
  }
  @media (prefers-reduced-motion: reduce) {
    .adm-loading svg, .adm-live-dot, .adm-bar, .adm-toggle span, .adm-auto.on svg { animation: none !important; transition: none !important; }
  }

  /* ---- Live-Ops (laufende Partien) ---- */
  .adm-live-vs { display: flex; align-items: center; gap: 8px; font-family: var(--mp-sans); }
  .adm-live-vs .vs { color: var(--mp-ink-dim); font-size: 11px; }
  .adm-live-side { display: inline-flex; align-items: center; gap: 6px; color: var(--mp-bone); font-weight: 600; }
  .adm-live-side .nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .adm-turn-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--mp-ink-faint); flex: none; }
  .adm-turn-dot.w { background: var(--mp-bone); }
  .adm-turn-dot.b { background: #2b2f38; }
  .adm-live-side.on .nm { color: var(--mp-teal-1); }
  .adm-live-side.on .adm-turn-dot { box-shadow: 0 0 0 2px color-mix(in srgb, var(--mp-teal-1) 45%, transparent); border-color: var(--mp-teal-3); }
  .adm-clock { font-family: var(--mp-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .adm-clock .lo { color: var(--mp-danger); }
  .adm-pill { display: inline-block; padding: 2px 8px; border: 1px solid var(--mp-ink-faint); font-family: var(--mp-sans);
    font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mp-ink); white-space: nowrap; }
  .adm-pill.ranked { color: var(--mp-gold-1); border-color: var(--mp-gold-3); }
  .adm-idle-warn { color: var(--mp-gold-1); }
  .adm-idle-stuck { color: var(--mp-danger); font-weight: 700; }
  .adm-live-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
  .adm-end-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
  .adm-live-stuck td { background: color-mix(in srgb, var(--mp-danger) 8%, transparent) !important; }
  .adm-pill.stuck { color: var(--mp-danger); border-color: var(--mp-danger); }
  .adm-refresh-int { height: 40px; background: var(--mp-bg-1); border: 1px solid var(--mp-ink-faint);
    color: var(--mp-bone); font-family: var(--mp-mono); font-size: 12.5px; padding: 0 8px; cursor: pointer; }
  .adm-refresh-int:focus { border-color: var(--mp-teal-3); outline: none; }
  .adm-bar--click { cursor: pointer; }
  .adm-bar--click:hover { filter: brightness(1.35); outline: 1px solid var(--mp-teal-1); outline-offset: 1px; }
  .announce-cd { opacity: .85; font-variant-numeric: tabular-nums; }

  /* ---- Feature-Schalter ---- */
  .adm-flags { display: flex; flex-direction: column; border: 1px solid var(--mp-ink-faint); }
  .adm-flag-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px;
    border-bottom: 1px solid color-mix(in srgb, var(--mp-ink-faint) 55%, transparent); }
  .adm-flag-row:last-child { border-bottom: none; }
  .adm-flag-row.is-off { background: color-mix(in srgb, var(--mp-danger) 7%, transparent); }
  .adm-flag-main { min-width: 0; }
  .adm-flag-main .adm-hint { margin: 5px 0 0; }
  .adm-flag-title { display: flex; align-items: center; gap: 8px; font-family: var(--mp-sans); font-weight: 700;
    font-size: 14px; color: var(--mp-bone); }
  .adm-flag-title svg { color: var(--mp-teal-1); }
  .adm-flag-state { padding: 1px 8px; border: 1px solid var(--mp-ink-faint); font-size: 10px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; }
  .adm-flag-state.on { color: var(--mp-teal-1); border-color: var(--mp-teal-3); }
  .adm-flag-state.off { color: var(--mp-danger); border-color: var(--mp-danger); }

  /* ---- Wirtschaft & Analytik ---- */
  .adm-bar--gold { background: linear-gradient(180deg, var(--mp-gold-1), var(--mp-gold-3)); }
  .adm-bar--teal { background: linear-gradient(180deg, var(--mp-teal-1), var(--mp-teal-3)); }
  .adm-an-econ-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px;
    font-family: var(--mp-sans); font-weight: 700; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--mp-gold-1); }
  .adm-an-econ-title svg { color: var(--mp-gold-2); }

  /* ---- Moderation: Status-Filter-Zähler + Spieler-Historie ---- */
  #admStatusFilter { margin-bottom: 14px; }
  .adm-chip-n { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px;
    background: color-mix(in srgb, var(--mp-ink-faint) 60%, transparent); color: var(--mp-ink-dim);
    font-family: var(--mp-mono); font-size: 11px; font-weight: 700; }
  #admStatusFilter button.on .adm-chip-n { background: color-mix(in srgb, var(--mp-gold-3) 35%, transparent); color: var(--mp-gold-1); }
  .adm-mod-hist { display: flex; flex-direction: column; gap: 2px; max-height: 220px; overflow-y: auto; }
  .adm-mod-hist-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline;
    padding: 6px 2px; border-bottom: 1px solid color-mix(in srgb, var(--mp-ink-faint) 40%, transparent);
    font-family: var(--mp-sans); font-size: 12.5px; }
  .adm-mod-hist-row:last-child { border-bottom: none; }

  /* ---- Ökonomie: XP/Souls-Belohnungswerte (adm-eco) ---- */
  .adm-eco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; }
  .adm-eco-group { border: 1px solid var(--mp-ink-faint); background: var(--mp-panel); padding: 14px 16px 16px; }
  .adm-eco-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
    font-family: var(--mp-sans); font-weight: 700; font-size: 11px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--mp-gold-1); }
  .adm-eco-title svg { color: var(--mp-teal-1); }
  .adm-eco-fields { display: flex; flex-direction: column; gap: 8px; }
  .adm-eco-field { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-family: var(--mp-sans); font-size: 13px; color: var(--mp-bone); }
  .adm-eco-input { width: 84px; padding: 7px 9px; text-align: right; background: var(--mp-bg-1);
    border: 1px solid var(--mp-ink-faint); color: var(--mp-ink); font-family: var(--mp-mono); font-size: 13px; }
  .adm-eco-input:focus { outline: none; border-color: var(--mp-teal-3); color: var(--mp-teal-1); }
  .adm-eco-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

  /* ---- Anti-Farm (adm-af / adm-dist) ---- */
  .adm-af-cap { color: var(--mp-danger); font-weight: 700; }
  .adm-af-track { width: 100%; min-width: 60px; }
  .adm-af-track { background: color-mix(in srgb, var(--mp-ink-faint) 45%, transparent); height: 8px; }
  .adm-af-fill { display: block; height: 8px; background: linear-gradient(90deg, var(--mp-aura-2, var(--mp-teal-3)), var(--mp-aura-1, var(--mp-teal-1))); }
  .adm-dist { display: flex; flex-direction: column; gap: 8px; }
  .adm-dist-row { display: grid; grid-template-columns: 72px 1fr 56px; align-items: center; gap: 10px;
    font-family: var(--mp-sans); font-size: 12.5px; color: var(--mp-bone); }
  .adm-dist-label { color: var(--mp-ink); font-family: var(--mp-mono); }
  .adm-dist-track { background: color-mix(in srgb, var(--mp-ink-faint) 45%, transparent); height: 14px; }
  .adm-dist-fill { display: block; height: 14px; background: linear-gradient(90deg, var(--mp-gold-3), var(--mp-gold-1)); }
  .adm-dist-n { text-align: right; font-family: var(--mp-mono); color: var(--mp-ink); }

  /* ---- Aktionen (Massen-Geschenk + Zeit-Event) ---- */
  .adm-act-card { margin-bottom: 16px; }
  .adm-act-event-on { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 9px 12px;
    border: 1px solid var(--mp-teal-3); background: color-mix(in srgb, var(--mp-teal-3) 14%, transparent);
    color: var(--mp-teal-1); font-family: var(--mp-sans); font-size: 13px; font-weight: 600; }
  .adm-act-event-on svg { color: var(--mp-teal-1); }

  /* ---- Spieler-Ökonomie-Verlauf (Verwalten-Modal) ---- */
  .adm-ue-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
  .adm-ue-chip { padding: 3px 8px; border: 1px solid var(--mp-ink-faint); background: var(--mp-panel-2);
    font-family: var(--mp-mono); font-size: 11.5px; color: var(--mp-ink); white-space: nowrap; }
  .adm-ue-sub { margin: 10px 0 6px; font-family: var(--mp-sans); font-size: 11px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--mp-gold-1); }

  /* ---- OLYMP-Testlabor (Admin-only, lokale Browser-Testpartien) ---- */
  .adm-olymp { display: flex; flex-direction: column; gap: 18px; }
  .adm-olymp-intro { position: relative; display: flex; align-items: stretch; justify-content: space-between; gap: 24px;
    padding: 24px; overflow: hidden; background:
      radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--mp-gold-2) 20%, transparent), transparent 38%),
      linear-gradient(135deg, var(--mp-panel), var(--mp-bg-1));
    border: 1px solid color-mix(in srgb, var(--mp-gold-2) 48%, var(--mp-ink-faint)); }
  .adm-olymp-intro::after { content: "⚡"; position: absolute; right: 29%; top: 50%; transform: translateY(-50%);
    font-size: 110px; line-height: 1; color: var(--mp-gold-1); opacity: .045; pointer-events: none; }
  .adm-olymp-intro-copy { position: relative; z-index: 1; flex: 1 1 520px; }
  .adm-olymp-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--mp-gold-1);
    font-family: var(--mp-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
  .adm-olymp-intro h2, .adm-olymp-matchbox h3, .adm-olymp-roster-head h3, .adm-olymp-card h3 { margin: 0; color: var(--mp-bone); }
  .adm-olymp-intro h2 { font-family: var(--mp-serif); font-size: clamp(25px, 3vw, 36px); letter-spacing: .04em; }
  .adm-olymp-intro p { max-width: 680px; margin: 10px 0 0; color: var(--mp-ink); font-family: var(--mp-sans); font-size: 14px; line-height: 1.55; }
  .adm-olymp-status { position: relative; z-index: 1; flex: 0 1 290px; display: flex; flex-direction: column; justify-content: center;
    gap: 6px; padding: 16px 18px; background: color-mix(in srgb, var(--mp-bg-1) 78%, transparent);
    border-left: 2px solid var(--mp-teal-2); font-family: var(--mp-sans); }
  .adm-olymp-status span { color: var(--mp-teal-1); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .adm-olymp-status strong { color: var(--mp-bone); font-size: 14px; }
  .adm-olymp-status small { color: var(--mp-ink-dim); font-size: 11.5px; line-height: 1.45; }

  .adm-olymp-matchbox { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 19px;
    background: var(--mp-panel); border: 1px solid var(--mp-ink-faint); }
  .adm-olymp-matchbox h3, .adm-olymp-roster-head h3 { font-family: var(--mp-serif); font-size: 19px; }
  .adm-olymp-matchbox p, .adm-olymp-roster-head p { margin: 5px 0 0; color: var(--mp-ink-dim); font-family: var(--mp-sans); font-size: 12.5px; line-height: 1.45; }
  .adm-olymp-match-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 0 0 auto; }
  .adm-olymp-roster-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 3px; }
  .adm-olymp-roster-head > span { flex: none; color: var(--mp-gold-1); font-family: var(--mp-mono); font-size: 11px;
    letter-spacing: .07em; text-transform: uppercase; }

  .adm-olymp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 14px; }
  .adm-olymp-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--mp-panel) 94%, var(--mp-gold-3)), var(--mp-panel));
    border: 1px solid var(--mp-ink-faint); overflow: hidden; }
  .adm-olymp-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 55px; height: 1px;
    background: linear-gradient(90deg, var(--mp-gold-1), transparent); }
  .adm-olymp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .adm-olymp-card h3 { font-family: var(--mp-serif); font-size: 20px; letter-spacing: .03em; }
  .adm-olymp-card-head > div > span { display: block; margin-top: 3px; color: var(--mp-ink-dim); font-family: var(--mp-mono);
    font-size: 10.5px; text-transform: uppercase; }
  .adm-olymp-cost { flex: none; padding: 4px 8px; color: var(--mp-gold-1); background: color-mix(in srgb, var(--mp-gold-3) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--mp-gold-3) 62%, transparent); font-family: var(--mp-sans); font-size: 10.5px; font-weight: 700; }
  .adm-olymp-portraits, .adm-olymp-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .adm-olymp-asset { min-width: 0; margin: 0; }
  .adm-olymp-asset-frame { display: grid; place-items: center; overflow: hidden; background:
    linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(315deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 16px 16px,
    var(--mp-bg-1); border: 1px solid color-mix(in srgb, var(--mp-ink-faint) 72%, transparent); color: var(--mp-gold-1); }
  .adm-olymp-asset--portrait .adm-olymp-asset-frame { aspect-ratio: 16 / 9; }
  .adm-olymp-asset--piece .adm-olymp-asset-frame { height: 110px; }
  .adm-olymp-img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .adm-olymp-asset--portrait .adm-olymp-img { object-fit: cover; }
  .adm-olymp-asset figcaption { margin-top: 4px; color: var(--mp-ink-dim); font-family: var(--mp-sans); font-size: 9.5px;
    letter-spacing: .05em; text-align: center; text-transform: uppercase; }
  .adm-olymp-card > p { flex: 1 1 auto; margin: 0; color: var(--mp-ink); font-family: var(--mp-sans); font-size: 12px; line-height: 1.5; }
  .adm-olymp-test { align-self: stretch; justify-content: center; }

  @media (max-width: 860px) {
    .adm-olymp-intro, .adm-olymp-matchbox { flex-direction: column; align-items: stretch; }
    .adm-olymp-status { flex-basis: auto; }
    .adm-olymp-match-actions { justify-content: flex-start; }
  }
  @media (max-width: 520px) {
    .adm-olymp-intro { padding: 18px; }
    .adm-olymp-match-actions .adm-btn { width: 100%; justify-content: center; }
    .adm-olymp-card { padding: 11px; }
    .adm-olymp-asset--piece .adm-olymp-asset-frame { height: 92px; }
  }

  /* ---- Puzzle-Editor (adm-pz) ---- */
  .adm-pz-editor { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
  .adm-pz-boardwrap { flex: 0 0 auto; }
  .adm-pz-board { display: grid; grid-template-columns: repeat(8, 40px); grid-template-rows: repeat(8, 40px);
    border: 1px solid var(--mp-ink-faint); }
  .adm-pz-sq { width: 40px; height: 40px; padding: 0; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; }
  .adm-pz-sq.lt { background: #b7b19c; }
  .adm-pz-sq.dk { background: #6f6a5b; }
  .adm-pz-sq:hover { outline: 2px solid var(--mp-teal-1); outline-offset: -2px; }
  .adm-pz-sq img { width: 90%; height: 90%; object-fit: contain; pointer-events: none; }
  .adm-pz-fallback { font-family: var(--mp-mono); font-size: 10px; color: #111; }
  .adm-pz-turn { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
  .adm-pz-turnbtn { padding: 6px 12px; }
  .adm-pz-turnbtn.on { border-color: var(--mp-teal-3); color: var(--mp-teal-1);
    background: color-mix(in srgb, var(--mp-teal-3) 16%, var(--mp-panel-2)); }
  .adm-pz-side { flex: 1 1 300px; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
  .adm-pz-palette { display: flex; flex-wrap: wrap; gap: 6px; }
  .adm-pz-pal { width: 40px; height: 40px; padding: 3px; border: 1px solid var(--mp-ink-faint);
    background: var(--mp-panel-2); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--mp-ink); }
  .adm-pz-pal img { width: 100%; height: 100%; object-fit: contain; }
  .adm-pz-pal.on { border-color: var(--mp-teal-1); box-shadow: 0 0 0 1px var(--mp-teal-1) inset; }
  .adm-pz-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
  .adm-pz-valid { font-family: var(--mp-sans); font-size: 12.5px; font-weight: 600; }
  .adm-pz-valid.ok { color: var(--mp-teal-1); }
  .adm-pz-valid.bad { color: var(--mp-danger); }

  /* ---- Lektionen-Editor (adm-ls) ---- */
  .adm-ls-meta { margin-bottom: 14px; }
  .adm-ls-activefield { flex-direction: row; align-items: center; gap: 8px; }
  .adm-ls-games { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
  .adm-ls-games-head, .adm-ls-steps-head, .adm-ls-grave-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
  .adm-ls-mini { padding: 4px 10px; font-size: 12px; }
  .adm-ls-game { border: 1px solid var(--mp-ink-faint); background: color-mix(in srgb, var(--mp-panel-2) 60%, transparent); }
  .adm-ls-game-head { display: flex; align-items: center; gap: 10px; padding: 8px 12px; cursor: pointer; }
  .adm-ls-game-head:hover { background: color-mix(in srgb, var(--mp-teal-3) 8%, transparent); }
  .adm-ls-game-caret { color: var(--mp-teal-1); width: 14px; }
  .adm-ls-game-title { font-weight: 600; flex: 1 1 auto; }
  .adm-ls-game-meta { color: var(--mp-ink-soft); font-size: 12px; font-family: var(--mp-mono); }
  .adm-ls-game-body { padding: 4px 12px 14px; display: flex; flex-direction: column; gap: 14px; }
  .adm-ls-boardrow { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
  .adm-ls-boardwrap { flex: 0 0 auto; }
  .adm-ls-board { display: grid; grid-template-columns: repeat(8, 34px); grid-template-rows: repeat(8, 34px); border: 1px solid var(--mp-ink-faint); }
  .adm-ls-sq { width: 34px; height: 34px; padding: 0; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .adm-ls-sq.lt { background: #b7b19c; }
  .adm-ls-sq.dk { background: #6f6a5b; }
  .adm-ls-sq:hover { outline: 2px solid var(--mp-teal-1); outline-offset: -2px; }
  .adm-ls-sq img { width: 90%; height: 90%; object-fit: contain; pointer-events: none; }
  .adm-ls-fallback { font-family: var(--mp-mono); font-size: 12px; color: #111; }
  .adm-ls-boardside { flex: 1 1 320px; min-width: 260px; display: flex; flex-direction: column; gap: 12px; }
  .adm-ls-colorrow { display: flex; align-items: center; gap: 8px; }
  .adm-ls-colorbtn { padding: 4px 12px; }
  .adm-ls-colorbtn.on { border-color: var(--mp-teal-3); color: var(--mp-teal-1); background: color-mix(in srgb, var(--mp-teal-3) 16%, var(--mp-panel-2)); }
  .adm-ls-palette { display: flex; flex-direction: column; gap: 8px; }
  .adm-ls-palgroup { display: flex; flex-direction: column; gap: 4px; }
  .adm-ls-pallabel { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-ink-soft); }
  .adm-ls-palrow { display: flex; flex-wrap: wrap; gap: 5px; }
  .adm-ls-pal { width: 34px; height: 34px; padding: 3px; border: 1px solid var(--mp-ink-faint); background: var(--mp-panel-2); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--mp-ink); }
  .adm-ls-pal img { width: 100%; height: 100%; object-fit: contain; }
  .adm-ls-pal.on { border-color: var(--mp-teal-1); box-shadow: 0 0 0 1px var(--mp-teal-1) inset; }
  .adm-ls-mana { max-width: 320px; }
  .adm-ls-num { max-width: 110px; }
  .adm-ls-grave { display: flex; flex-direction: column; gap: 6px; }
  .adm-ls-grave-row { display: flex; align-items: center; gap: 6px; }
  .adm-ls-grave-row select, .adm-ls-grave-row .adm-ls-sqf { flex: 0 0 auto; }
  .adm-ls-steps { display: flex; flex-direction: column; gap: 10px; }
  .adm-ls-step { border: 1px solid var(--mp-ink-faint); padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--mp-panel-2) 45%, transparent); }
  .adm-ls-step-head { display: flex; align-items: center; gap: 10px; }
  .adm-ls-step-n { font-weight: 600; color: var(--mp-teal-1); }
  .adm-ls-kind { display: flex; gap: 4px; }
  .adm-ls-kindbtn { padding: 3px 12px; font-size: 12.5px; }
  .adm-ls-kindbtn.on { border-color: var(--mp-teal-3); color: var(--mp-teal-1); background: color-mix(in srgb, var(--mp-teal-3) 16%, var(--mp-panel-2)); }
  .adm-ls-cmd, .adm-ls-copy { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 10px; }
  .adm-ls-sqf { max-width: 72px; text-transform: lowercase; font-family: var(--mp-mono); }
  .adm-ls-badsq { border-color: var(--mp-danger) !important; }
  .adm-ls-step-head .adm-msg-del, .adm-ls-game-head .adm-msg-del, .adm-ls-grave-row .adm-msg-del { margin-left: auto; }

/* ============================================================
   Endbildschirm (Match-Ergebnis-Inszenierung) — Claude-Design-Vorlage 1:1
   Vier Farbwelten via [data-tone]: win=Gold, loss=Blutrot, resign=Asche, draw=Teal.
   Tokens 1:1 -> --mp-*. Fixed-Overlay über allem; eigener Glow, kein Block-Glow.
   ============================================================ */
.eg-stage {
  position: fixed;
  inset: 0;
  z-index: 6000;
  overflow: hidden;
  background: transparent;
  --eg-speed: 1;
}

/* ---------- Backdrop: das ECHTE laufende Spiel dahinter, geblurrt + abgedunkelt.
   Kein nachgebautes Brett — backdrop-filter wirkt auf den realen Bildschirm. ---------- */
.eg-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  -webkit-backdrop-filter: blur(3px) brightness(0.5) saturate(0.78);
  backdrop-filter: blur(3px) brightness(0.5) saturate(0.78);
}

/* ---------- Vignette / Verdunkelung ---------- */
.eg-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 46%, transparent 0%, rgba(5,6,9,0.55) 55%, rgba(4,4,7,0.92) 100%),
    linear-gradient(180deg, rgba(4,4,7,0.55) 0%, transparent 30%, transparent 70%, rgba(4,4,7,0.7) 100%);
  animation: egFadeIn calc(900ms / var(--eg-speed)) ease forwards;
}
.eg-fog {
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 50% 40% at 30% 80%, rgba(77,208,196,0.06), transparent 60%),
    radial-gradient(ellipse 60% 30% at 70% 90%, rgba(216,177,90,0.05), transparent 65%);
  filter: blur(8px);
  animation: egFog 1.4s ease forwards, egFogDrift 16s ease-in-out infinite alternate;
}
@keyframes egFog { to { opacity: 1; } }
@keyframes egFogDrift { 0% { transform: translateX(-28px); } 100% { transform: translateX(28px); } }

/* tonaler Wash je Ergebnis */
.eg-wash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  animation: egWash calc(2600ms / var(--eg-speed)) ease forwards;
}
.eg-stage[data-tone="win"]    .eg-wash { background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(216,177,90,0.16), transparent 65%); }
.eg-stage[data-tone="loss"]   .eg-wash { background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(160,40,34,0.22), transparent 65%); }
.eg-stage[data-tone="resign"] .eg-wash { background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(90,90,100,0.12), transparent 65%); }
.eg-stage[data-tone="draw"]   .eg-wash { background: radial-gradient(ellipse 60% 50% at 50% 42%, rgba(77,208,196,0.14), transparent 65%); }
@keyframes egWash { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0.55; } }

/* ---------- Vordergrund ---------- */
.eg-content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.eg-headline { text-align: center; position: relative; }

.eg-rule {
  height: 1px;
  width: min(640px, 70vw);
  margin: 0 auto;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: egRule calc(900ms / var(--eg-speed)) cubic-bezier(.16,.84,.3,1) forwards;
  animation-delay: calc(420ms / var(--eg-speed));
}
.eg-rule.bottom { animation-delay: calc(560ms / var(--eg-speed)); }
.eg-stage[data-tone="win"]    .eg-rule { background: linear-gradient(90deg, transparent, var(--mp-gold-1) 50%, transparent); box-shadow: 0 0 18px var(--mp-gold-glow); }
.eg-stage[data-tone="loss"]   .eg-rule { background: linear-gradient(90deg, transparent, #c8453a 50%, transparent); box-shadow: 0 0 18px rgba(180,40,34,0.5); }
.eg-stage[data-tone="resign"] .eg-rule { background: linear-gradient(90deg, transparent, #8b8578 50%, transparent); box-shadow: 0 0 14px rgba(120,116,104,0.4); }
.eg-stage[data-tone="draw"]   .eg-rule { background: linear-gradient(90deg, transparent, var(--mp-teal-1) 50%, transparent); box-shadow: 0 0 18px var(--mp-teal-glow); }
@keyframes egRule { to { transform: scaleX(1); opacity: 1; } }

.eg-eyebrow {
  font-family: var(--mp-sans);
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  margin: 22px 0 6px;
  opacity: 0;
  animation: egFadeUp calc(800ms / var(--eg-speed)) ease forwards;
  animation-delay: calc(700ms / var(--eg-speed));
}
.eg-title {
  font-family: var(--mp-serif);
  font-weight: 800;
  font-size: clamp(58px, 12vw, 168px);
  line-height: 0.92;
  letter-spacing: 0.14em;
  margin: 0;
  padding-left: 0.14em;
  opacity: 0;
  transform: translateY(22px) scale(1.06);
  filter: blur(6px);
  animation: egTitleIn calc(1500ms / var(--eg-speed)) cubic-bezier(.2,.7,.25,1) forwards;
  animation-delay: calc(820ms / var(--eg-speed));
}
@keyframes egTitleIn {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.eg-stage[data-tone="win"] .eg-title {
  background: linear-gradient(180deg, #f8efce 0%, #e8c879 48%, #b0842c 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation-name: egTitleIn, egGlowGold;
  animation-duration: calc(1500ms / var(--eg-speed)), 4.5s;
  animation-delay: calc(820ms / var(--eg-speed)), calc(2200ms / var(--eg-speed));
  animation-iteration-count: 1, infinite;
  animation-timing-function: cubic-bezier(.2,.7,.25,1), ease-in-out;
  animation-fill-mode: forwards, none;
}
@keyframes egGlowGold {
  0%, 100% { text-shadow: 0 0 38px rgba(216,177,90,0.28), 0 0 80px rgba(216,177,90,0.12); }
  50% { text-shadow: 0 0 52px rgba(216,177,90,0.45), 0 0 110px rgba(216,177,90,0.2); }
}
.eg-stage[data-tone="loss"] .eg-title {
  background: linear-gradient(180deg, #e86a5c 0%, #b8302a 52%, #6e1410 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px rgba(150,30,26,0.35);
}
.eg-stage[data-tone="resign"] .eg-title {
  background: linear-gradient(180deg, #cfc9bb 0%, #9a9384 50%, #5e5849 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eg-stage[data-tone="draw"] .eg-title {
  background: linear-gradient(180deg, #d7f6f0 0%, #6ee7d8 50%, #239b95 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px rgba(77,208,196,0.28);
}
.eg-sub {
  font-family: var(--mp-serif-body);
  font-size: clamp(16px, 2vw, 24px);
  font-style: italic;
  color: var(--mp-ink);
  margin: 18px 0 0;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: egFadeUp calc(900ms / var(--eg-speed)) ease forwards;
  animation-delay: calc(1450ms / var(--eg-speed));
}
.eg-sub b { color: var(--mp-bone); font-weight: 600; font-style: normal; }
@keyframes egFadeIn { to { opacity: 1; } }
@keyframes egFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* Magister Schnurr kommentiert das Ergebnis (Katze + kurzer Spruch) */
.eg-cat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  color: var(--mp-gold-1, #d8b15a);
  opacity: 0;
  animation: egFadeUp calc(1100ms / var(--eg-speed)) ease forwards;
  animation-delay: calc(500ms / var(--eg-speed));
}
.eg-cat .coachCat {
  width: 62px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(216, 177, 90, .2));
}
.eg-cat-quip {
  font-family: var(--mp-serif-body);
  font-size: clamp(14px, 1.5vw, 18px);
  font-style: italic;
  color: rgba(232, 222, 197, .85);
  max-width: 340px;
  text-align: left;
}

/* ---------- Reward-Karte ---------- */
.eg-reward {
  margin-top: clamp(36px, 6vh, 72px);
  width: min(560px, 92vw);
  /* Fast deckend + neutral-dunkel: die Karte sitzt über dem ECHTEN (hellen,
     goldlastigen) Spielbildschirm — bei der Vorlage war dahinter ein dunkles
     Brett. Ohne hohe Deckkraft schimmert das Gold durch -> Karte wirkt golden. */
  background: rgba(10, 12, 16, 0.965);
  border: 1px solid rgba(216, 177, 90, 0.28);
  backdrop-filter: blur(10px) saturate(0.9);
  padding: 22px 26px 24px;
  position: relative;
  opacity: 0;
  transform: translateY(34px);
  animation: egRewardIn calc(900ms / var(--eg-speed)) cubic-bezier(.2,.7,.25,1) forwards;
  animation-delay: calc(2050ms / var(--eg-speed));
}
@keyframes egRewardIn { to { opacity: 1; transform: translateY(0); } }
.eg-reward::before, .eg-reward::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--mp-gold-2);
}
.eg-reward::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.eg-reward::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.eg-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(216, 177, 90, 0.14);
}
.eg-avatar {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a313e, #14171f);
  border: 1px solid var(--mp-gold-3);
  transform: rotate(45deg);
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(216,177,90,0.18);
}
.eg-avatar span { transform: rotate(-45deg); font-family: var(--mp-serif); font-weight: 700; font-size: 17px; color: var(--mp-gold-1); }
.eg-avatar img { width: 140%; height: 140%; object-fit: cover; transform: rotate(-45deg); }
.eg-profile-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.eg-profile-meta .pname { font-family: var(--mp-serif); font-size: 17px; color: var(--mp-bone); letter-spacing: 0.6px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eg-profile-meta .prank { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mp-gold-1); font-weight: 700; }
.eg-result-tag {
  font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800;
  padding: 5px 10px; border: 1px solid; white-space: nowrap;
}
.eg-stage[data-tone="win"]    .eg-result-tag { color: var(--mp-gold-1); border-color: var(--mp-gold-3); }
.eg-stage[data-tone="loss"]   .eg-result-tag { color: #e0796d; border-color: rgba(200,69,58,0.5); }
.eg-stage[data-tone="resign"] .eg-result-tag { color: #b6b0a2; border-color: rgba(150,144,132,0.5); }
.eg-stage[data-tone="draw"]   .eg-result-tag { color: var(--mp-teal-1); border-color: rgba(77,208,196,0.5); }

.eg-stats { display: flex; flex-direction: column; gap: 16px; }
.eg-stat-row { display: flex; flex-direction: column; gap: 8px; }
.eg-stat-top { display: flex; align-items: baseline; justify-content: space-between; }
.eg-stat-label {
  font-size: 9.5px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; color: var(--mp-ink-dim);
  display: flex; align-items: center; gap: 8px;
}
.eg-stat-label .gly { color: var(--mp-gold-2); display: inline-flex; }
.eg-stat-value {
  font-family: var(--mp-mono);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 10px;
}
.eg-stat-value .num { font-size: 26px; color: var(--mp-bone); font-weight: 500; letter-spacing: 0.5px; }
.eg-stat-value .delta { font-size: 14px; font-weight: 600; }
.eg-stat-value .delta.up { color: var(--mp-teal-1); }
.eg-stat-value .delta.down { color: var(--mp-danger); }
.eg-stat-value .delta.flat { color: var(--mp-ink-dim); }

.eg-bar {
  position: relative;
  height: 6px;
  background: rgba(216, 177, 90, 0.1);
  border: 1px solid rgba(216,177,90,0.12);
  overflow: hidden;
}
.eg-bar .fill {
  position: absolute; inset: 0;
  transform-origin: left;
  transition: transform 1200ms cubic-bezier(.2,.7,.25,1);
}
.eg-stage[data-tone="loss"] .eg-bar .fill,
.eg-stage[data-tone="resign"] .eg-bar .fill { background: linear-gradient(90deg, #7a2520, #c8453a); }
.eg-bar .fill { background: linear-gradient(90deg, var(--mp-gold-3), var(--mp-gold-1)); }
.eg-stage[data-tone="draw"] .eg-bar .fill { background: linear-gradient(90deg, var(--mp-teal-3), var(--mp-teal-1)); }
.eg-bar .ghost {
  position: absolute; top: 0; bottom: 0;
  border-right: 2px dashed rgba(232,222,197,0.5);
  opacity: 0.7;
}
.eg-bar-scale { display: flex; justify-content: space-between; font-family: var(--mp-mono); font-size: 9px; color: var(--mp-ink-faint); letter-spacing: 0.5px; }

.eg-shards-val .num { color: var(--mp-soul-1); }
.eg-shards-val .plus { color: var(--mp-soul-1); font-family: var(--mp-mono); font-size: 26px; font-weight: 500; }
/* Gleiche Spezifitaet wie ".eg-stat-label .gly" (Gold-Ton der Sieg-Welt), steht
   spaeter -> gewinnt: Souls sind Amethyst (testweise; Gold ist der Premium-Waehrung Relics vorbehalten). */
.eg-stat-label .eg-shard-glyph { color: var(--mp-soul-1); display: inline-flex; filter: drop-shadow(0 0 6px var(--mp-soul-glow)); }

/* Übungspartie-Hinweis (Computer/Lokal: Karte ohne Wertung) */
.eg-practice { gap: 6px; }
.eg-practice-note { margin: 0; font-family: var(--mp-serif-body); font-style: italic; font-size: clamp(13px, 1.4vw, 15px); color: var(--mp-ink-dim); letter-spacing: 0.3px; }

.eg-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  opacity: 0;
  animation: egFadeUp calc(900ms / var(--eg-speed)) ease forwards;
  animation-delay: calc(2600ms / var(--eg-speed));
}
.eg-actions .eg-btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mp-sans); font-weight: 700; font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase;
  padding: 14px 18px; cursor: pointer; transition: all 180ms ease; border: 1px solid transparent;
}
.eg-btn.primary {
  color: #0c0e13;
  background: linear-gradient(180deg, #f0d27a 0%, #d8b15a 40%, #b08530 100%);
  border-color: #f0d27a;
  box-shadow: 0 0 24px rgba(216,177,90,0.28), inset 0 1px 0 rgba(255,255,255,0.4);
}
.eg-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 34px rgba(216,177,90,0.45), inset 0 1px 0 rgba(255,255,255,0.5); }
.eg-btn.ghost { color: var(--mp-ink); background: rgba(18,21,28,0.7); border-color: rgba(216,177,90,0.32); backdrop-filter: blur(6px); }
.eg-btn.ghost:hover { color: var(--mp-bone); border-color: var(--mp-gold-1); }

.eg-embers { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.eg-ember {
  position: absolute;
  bottom: -10px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--mp-gold-1);
  box-shadow: 0 0 8px var(--mp-gold-1);
  opacity: 0;
  animation: egEmber linear infinite;
}
.eg-stage[data-tone="draw"] .eg-ember { background: var(--mp-teal-1); box-shadow: 0 0 8px var(--mp-teal-1); }
@keyframes egEmber {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  12% { opacity: 0.8; }
  88% { opacity: 0.5; }
  100% { transform: translateY(-104vh) translateX(30px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .eg-backdrop, .eg-fog, .eg-ember, .eg-stage[data-tone="win"] .eg-title { animation: none !important; }
  .eg-veil, .eg-rule, .eg-eyebrow, .eg-title, .eg-sub, .eg-cat, .eg-reward, .eg-actions {
    animation-duration: 1ms !important; animation-delay: 0ms !important;
  }
  .fc-card, .fc-power-ico.aktion, .fc-mb-mark.effect { animation: none !important; }
}

/* ============================================================
   Figurenkarte — kompaktes Vorschau-Popover (figure-card.js)
   Vorlage "Magic Pieces - Figurenkarte"; Tokens -> --mp-*.
   ============================================================ */
@keyframes fcPop {
  from { transform: scale(0.82) translateX(var(--pop-x, 0)); }
  to   { transform: scale(1) translateX(0); }
}
@keyframes fcGlow { 0%,100% { box-shadow: 0 0 14px -5px var(--pk); } 50% { box-shadow: 0 0 16px -2px var(--pk); } }
@keyframes fcPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

.fc-root { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.fc-root.show { pointer-events: auto; }

.fc-card {
  --accent: var(--mp-teal-1);
  --accent-soft: rgba(110, 231, 216, 0.16);
  position: absolute;
  width: 296px;
  max-width: calc(100vw - 20px);
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(20, 23, 31, 0.98), rgba(9, 11, 15, 0.99));
  border: 1px solid rgba(216, 177, 90, 0.4);
  box-shadow: 0 30px 70px -18px rgba(0,0,0,0.92), 0 0 0 1px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(216,177,90,0.08);
  transform-origin: var(--origin, center left);
  animation: fcPop 320ms cubic-bezier(.18,.9,.32,1.2) both;
}
.fc-card.tone-undead { --accent: #8fe3b3; --accent-soft: rgba(143, 227, 179, 0.15); }
.fc-card.tone-fantasy { --accent: #e6c067; --accent-soft: rgba(216, 177, 90, 0.16); }
.fc-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.8;
}
.fc-tail {
  position: absolute; top: var(--tail-top, 40px); width: 14px; height: 14px;
  background: linear-gradient(135deg, rgba(20,23,31,0.99), rgba(14,16,22,0.99));
  border: 1px solid rgba(216,177,90,0.4); transform: rotate(45deg); z-index: -1;
}
.fc-card.side-right .fc-tail { left: -8px; border-right: none; border-top: none; }
.fc-card.side-left  .fc-tail { right: -8px; border-left: none; border-bottom: none; }
.fc-corner { position: absolute; width: 12px; height: 12px; border: 1px solid var(--mp-gold-2); pointer-events: none; z-index: 4; }
.fc-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.fc-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.fc-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.fc-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.fc-head { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px 11px; }
.fc-head-text { flex: 1; min-width: 0; }
.fc-name {
  font-family: var(--mp-serif); font-weight: 700; font-size: 22px; letter-spacing: 0.5px; line-height: 1; margin: 0;
  color: var(--mp-bone);
  background: linear-gradient(180deg, #f5ebcf, #e0bf78 70%, #c5a056);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.fc-role { font-size: 9px; letter-spacing: 2.4px; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-top: 5px; }
.fc-close {
  width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0;
  color: var(--mp-ink-dim); border: 1px solid rgba(216,177,90,0.18); border-radius: 50%;
  background: rgba(7,8,11,0.5); transition: all 150ms; cursor: pointer;
}
.fc-close:hover { color: var(--mp-danger); border-color: rgba(194,90,74,0.5); }
.fc-tags { display: flex; align-items: center; justify-content: space-between; padding: 0 14px 11px; }
.fc-faction {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700; color: #07080b;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 95%, white), color-mix(in srgb, var(--accent) 72%, black));
  box-shadow: 0 0 14px -4px var(--accent);
}
.fc-rarity {
  width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--rar, var(--mp-gold-1));
  border: 1px solid color-mix(in srgb, var(--rar, var(--mp-gold-1)) 45%, transparent);
  border-radius: 50%; background: rgba(20,16,8,0.55);
}
.fc-art {
  position: relative; margin: 0 12px; height: 168px;
  border: 1px solid rgba(216,177,90,0.5);
  box-shadow: inset 0 0 0 1px rgba(216,177,90,0.12), inset 0 0 50px rgba(0,0,0,0.5);
  background-color: #06080b; background-size: cover; background-position: center top; overflow: hidden;
}
.fc-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, var(--accent-soft), transparent 65%), linear-gradient(180deg, transparent 55%, rgba(7,8,11,0.55) 100%);
}
.fc-art-inner { position: absolute; inset: 5px; border: 1px solid rgba(216,177,90,0.14); pointer-events: none; z-index: 2; }
.fc-art.is-sprite { background-image: radial-gradient(ellipse 60% 55% at 50% 42%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); background-size: cover; }
.fc-art-sprite { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; object-fit: contain; z-index: 1; filter: drop-shadow(0 8px 10px rgba(0,0,0,0.6)); }
.fc-power {
  --pk: var(--mp-gold-1); margin: 12px 12px 0;
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--pk) 12%, transparent), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--pk) 22%, transparent); border-left: 2px solid var(--pk);
}
.fc-power.kind-aktion { --pk: #e6c067; }
.fc-power.kind-reaktiv { --pk: #e8746a; }
.fc-power.kind-passiv { --pk: #6fb1ec; }
.fc-power.kind-none { --pk: #9aa1a8; }
.fc-power-text { flex: 1; min-width: 0; }
.fc-power-kind { font-size: 8.5px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--pk); margin-bottom: 3px; }
.fc-power-name { font-family: var(--mp-serif); font-size: 16px; font-weight: 600; letter-spacing: 0.5px; color: var(--mp-bone); }
.fc-power-ico {
  width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; color: var(--pk);
  border: 1px solid color-mix(in srgb, var(--pk) 50%, transparent);
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--pk) 28%, transparent), transparent 70%), rgba(7,8,11,0.5);
  box-shadow: 0 0 14px -5px var(--pk);
}
.fc-power-ico.aktion { animation: fcGlow 2.8s ease-in-out infinite; }
.fc-desc {
  margin: 10px 12px 0; padding: 11px 13px;
  font-family: var(--mp-serif-body); font-size: 14px; line-height: 1.5; color: var(--mp-ink);
  background: rgba(7,8,11,0.4); border: 1px solid rgba(216,177,90,0.1);
}
.fc-desc b { color: var(--mp-bone); font-weight: 600; }
.fc-foot { display: flex; align-items: stretch; margin: 14px 0 0; border-top: 1px solid rgba(216,177,90,0.14); }
.fc-foot-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; cursor: pointer;
  font-family: var(--mp-sans); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--mp-ink-dim); transition: all 160ms; background: transparent; border: none;
}
.fc-foot-btn svg { opacity: 0.7; }
.fc-foot-btn:hover { color: var(--mp-bone); background: rgba(216,177,90,0.05); }
.fc-foot-btn:hover svg { opacity: 1; }
.fc-foot-btn.dossier { border-left: 1px solid rgba(216,177,90,0.14); }
.fc-foot-btn.dossier:hover { color: var(--mp-gold-1); }
.fc-foot-btn.zug .chev { transition: transform 280ms cubic-bezier(.2,.7,.3,1); display: inline-flex; }
.fc-foot-btn.zug.on { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.fc-foot-btn.zug.on .chev { transform: rotate(90deg); }
.fc-zug-fly {
  position: absolute; top: 6px; width: 224px; padding: 12px;
  background: linear-gradient(180deg, rgba(20, 23, 31, 0.99), rgba(9, 11, 15, 0.99));
  border: 1px solid rgba(216, 177, 90, 0.4);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,0.92), inset 0 0 0 1px rgba(216,177,90,0.07);
  opacity: 0; pointer-events: none; transition: opacity 240ms ease, transform 300ms cubic-bezier(.2,.7,.3,1); z-index: 19;
}
.fc-zug-fly::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7;
}
.fc-card.fly-right .fc-zug-fly { left: calc(100% + 14px); transform: translateX(-12px) scale(0.96); transform-origin: center left; }
.fc-card.fly-left  .fc-zug-fly { right: calc(100% + 14px); transform: translateX(12px) scale(0.96); transform-origin: center right; }
.fc-zug-fly.open { opacity: 1; pointer-events: auto; transform: none; }
.fc-fly-tail {
  position: absolute; top: 30px; width: 12px; height: 12px;
  background: linear-gradient(135deg, rgba(20,23,31,0.99), rgba(14,16,22,0.99));
  border: 1px solid rgba(216,177,90,0.4); transform: rotate(45deg);
}
.fc-card.fly-right .fc-fly-tail { left: -7px; border-right: none; border-top: none; }
.fc-card.fly-left  .fc-fly-tail { right: -7px; border-left: none; border-bottom: none; }
.fc-zug-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 10px;
  background: rgba(7,8,11,0.55); border: 1px solid rgba(216,177,90,0.14);
}
.fc-zug-tab {
  padding: 7px; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700;
  color: var(--mp-ink-dim); transition: all 150ms; cursor: pointer; background: transparent; border: none;
}
.fc-zug-tab:hover { color: var(--mp-ink); }
.fc-zug-tab.on {
  color: #07080b;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 95%, white), color-mix(in srgb, var(--accent) 70%, black));
  box-shadow: 0 0 14px -6px var(--accent);
}
/* Mini-Brett im Look des echten Spielbretts (#board): Goldrahmen + texturierte Felder. */
.fc-mini-board {
  position: relative;
  display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr);
  gap: 1px; aspect-ratio: 1/1; padding: 4px; overflow: hidden;
  border: 2px solid var(--rift-gold); border-radius: 6px;
  background: var(--mp-board-frame);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.86),
    0 0 16px rgba(10,200,185,.18),
    inset 0 0 0 1px rgba(240,210,131,.22),
    inset 0 0 22px rgba(0,0,0,.7);
}
.fc-mini-board::before {
  content: ""; position: absolute; inset: 4px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(240,210,131,.22);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.42), inset 0 0 24px rgba(0,0,0,.46);
}
.fc-mb-cell {
  position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: var(--mp-sq-dark);
}
.fc-mb-cell.light { background: var(--mp-sq-light); }
.fc-mb-cell img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.7)); }
.fc-mb-mark { width: 46%; height: 46%; border-radius: 50%; box-sizing: border-box; }
.fc-mb-mark.move { background: radial-gradient(circle at 40% 35%, var(--mp-mark-move), var(--mp-mark-move-2)); box-shadow: 0 0 8px -1px rgba(240,210,131,.6); }
.fc-mb-mark.cap { background: transparent; border: 3px solid var(--mp-mark-cap); box-shadow: 0 0 8px -1px rgba(224,86,79,.55); }
.fc-mb-mark.both { background: radial-gradient(circle at 40% 35%, var(--mp-mark-move), var(--mp-mark-move-2)); border: 3px solid var(--mp-mark-cap); box-shadow: 0 0 8px -1px rgba(224,86,79,.5); }
.fc-mb-mark.effect {
  background: radial-gradient(circle at 40% 35%, var(--mp-mark-effect), var(--mp-mark-effect-2));
  box-shadow: 0 0 9px -1px rgba(90,154,214,.7); animation: fcPulse 2.2s ease-in-out infinite;
}
.fc-mb-note {
  padding: 22px 14px; text-align: center; font-family: var(--mp-serif-body); font-size: 12.5px; line-height: 1.45; color: var(--mp-ink);
  border: 1px dashed rgba(216,177,90,0.22); background: rgba(7,8,11,0.4);
}
.fc-zug-legend { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: 10px; letter-spacing: 0.4px; color: var(--mp-ink); }
.fc-zug-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fc-ld { width: 9px; height: 9px; border-radius: 50%; box-sizing: border-box; }
.fc-ld.move { background: radial-gradient(circle at 40% 35%, var(--mp-mark-move), var(--mp-mark-move-2)); }
.fc-ld.cap { background: transparent; border: 2px solid var(--mp-mark-cap); }
.fc-ld.both { background: radial-gradient(circle at 40% 35%, var(--mp-mark-move), var(--mp-mark-move-2)); border: 2px solid var(--mp-mark-cap); }
.fc-ld.effect { background: radial-gradient(circle at 40% 35%, var(--mp-mark-effect), var(--mp-mark-effect-2)); }
.fc-fly-cap { margin-top: 9px; font-family: var(--mp-serif-body); font-size: 12.5px; line-height: 1.4; text-align: center; color: var(--mp-ink); }
/* Schmale Viewports (Mobil): kein Platz fuer den Seiten-Flyout -> er fliesst
   UNTER die Karte (in den Kartenfluss) statt off-screen zu klippen. */
@media (max-width: 560px) {
  .fc-card.fly-left .fc-zug-fly, .fc-card.fly-right .fc-zug-fly {
    position: static; left: auto; right: auto; width: auto; transform: none;
    margin: 0 12px 12px; box-shadow: none; border: none; border-top: 1px solid rgba(216,177,90,0.18);
    opacity: 1; pointer-events: auto; display: none;
  }
  .fc-card.fly-left .fc-zug-fly.open, .fc-card.fly-right .fc-zug-fly.open { display: block; }
  .fc-fly-tail { display: none; }
}

/* ===== Rechtstexte (Impressum/Datenschutz/Nutzung/Jugendschutz) =============
   Markup: app/legal-page.js -> #infoGrid (<div class="legal">). Teilt sich
   mode-info + Ambient-Glow mit Codex/Support; Outer-Padding vom .infoPage-Wrap.
   Lese-orientiert: schmale Spalte, ruhige Prosa, dezente Gold-Akzente. ===== */
/* Container so breit wie Codex, damit der breite .duell-title (background-clip:
   text) NICHT an der Box clippt; die Prosa selbst bleibt schmal & lesbar. */
.legal {
  position: relative; z-index: 1;
  width: 100%; max-width: 1180px; margin: 0 auto;
  font-family: var(--mp-sans);
}
.legal .duell-head { margin-bottom: 26px; }
.legal .lg-nav, .legal .lg-meta, .legal .lg-doc, .legal .lg-foot { max-width: 820px; }
/* Globaler .duell-title nutzt width:max-content + 115px Schrift — in der schmalen
   Info-Spalte clippt das lange Woerter (DATENSCHUTZ/NUTZUNGSBEDINGUNGEN). Hier
   kleiner + umbruchfaehig statt abgeschnitten. */
.legal .duell-title {
  width: auto; max-width: 100%;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Pill-Navigation zwischen den vier Dokumenten (Muster: Codex-TOC). */
.legal .lg-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.legal .lg-pill {
  font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 700;
  color: var(--mp-ink); padding: 8px 14px; cursor: pointer;
  border: 1px solid rgba(216, 177, 90, 0.16); background: rgba(11, 13, 18, 0.5);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}
.legal .lg-pill:hover { color: var(--mp-gold-1); border-color: rgba(216, 177, 90, 0.4); }
.legal .lg-pill.on {
  color: var(--mp-bg-0); background: var(--mp-gold-1); border-color: var(--mp-gold-1);
}
.legal .lg-meta {
  font-family: var(--mp-mono); font-size: 11px; letter-spacing: .4px;
  color: var(--mp-ink-dim); margin-bottom: 26px;
}

/* Prosa */
.legal .lg-doc { display: grid; gap: 26px; }
.legal .lg-section { position: relative; padding-left: 16px; }
.legal .lg-section::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, var(--mp-gold-3), transparent);
}
.legal .lg-h {
  font-family: var(--mp-serif); font-size: 15px; font-weight: 600; letter-spacing: .6px;
  color: var(--mp-bone); margin: 0 0 10px;
}
.legal .lg-body { font-size: 14px; line-height: 1.66; color: var(--mp-ink); }
.legal .lg-body p { margin: 0 0 10px; }
.legal .lg-body p:last-child { margin-bottom: 0; }
.legal .lg-body b { color: var(--mp-bone); font-weight: 600; }
.legal .lg-body ul { margin: 6px 0 10px; padding-left: 20px; display: grid; gap: 5px; }
.legal .lg-body li { line-height: 1.5; }
.legal .lg-body a, .legal .lg-body [data-legal] {
  color: var(--mp-teal-2); text-decoration: none; border-bottom: 1px solid rgba(77, 208, 196, .35);
  cursor: pointer; background: none; padding: 0; font: inherit;
}
.legal .lg-body a:hover, .legal .lg-body [data-legal]:hover { color: var(--mp-teal-1); }
.legal .lg-address { font-style: normal; color: var(--mp-bone); line-height: 1.7; }
.legal .lg-note {
  font-size: 12.5px; color: var(--mp-ink-dim); font-style: italic;
  border-left: 2px solid rgba(77, 208, 196, .25); padding-left: 10px; margin-top: 8px;
}
/* PLATZHALTER — sichtbar markiert, damit nichts Ungefuelltes live geht. */
.legal mark.lg-todo, mark.lg-todo {
  background: rgba(216, 177, 90, .14); color: var(--mp-gold-1);
  border: 1px dashed rgba(216, 177, 90, .5); border-radius: 0;
  padding: 0 5px; font-family: var(--mp-mono); font-size: .86em; font-style: normal;
}
.legal .lg-foot {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(216, 177, 90, .12);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--mp-ink-dim);
}
.legal .lg-consent-link {
  background: none; border: none; cursor: pointer; padding: 0; font: inherit;
  color: var(--mp-teal-2); border-bottom: 1px solid rgba(77, 208, 196, .35);
}
.legal .lg-consent-link:hover { color: var(--mp-teal-1); }
.legal .lg-foot-sep { opacity: .5; }
.legal .lg-foot-note { font-style: italic; }

/* Sidebar-Fusszeile: Rechts-Links — kompakt in EINER Zeile, dezent abgesetzt. */
.sideLegal {
  display: flex; flex-wrap: nowrap; justify-content: center; align-items: baseline;
  margin-top: 8px; padding-top: 9px;
  border-top: 1px solid rgba(216, 177, 90, .1);
}
.sideLegal button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--mp-sans); font-size: 9px; letter-spacing: .1px;
  color: var(--mp-ink-dim); white-space: nowrap; transition: color 140ms ease;
}
.sideLegal button:hover { color: var(--mp-gold-1); }
.sideLegal button:not(:last-child)::after {
  content: '\00b7'; margin: 0 5px; color: rgba(216, 177, 90, .35);
}
body.side-nav-collapsed .sideLegal { display: none; }

/* ===== Cookie-/Consent-Geruest (ruht, bis Tracking aktiviert wird) ========= */
.consentBanner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; justify-content: center; padding: 14px;
  pointer-events: none;
}
.consentBanner .consentInner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  width: min(960px, 100%); padding: 14px 18px;
  background: var(--mp-panel-2); border: 1px solid rgba(216, 177, 90, .22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
}
.consentBanner .consentText {
  margin: 0; flex: 1 1 320px; font-size: 12.5px; line-height: 1.55;
  font-family: var(--mp-sans); color: var(--mp-ink);
}
.consentBanner .consentLink {
  background: none; border: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--mp-teal-2); border-bottom: 1px solid rgba(77, 208, 196, .35);
}
.consentBanner .consentLink:hover { color: var(--mp-teal-1); }
.consentActions { display: flex; gap: 8px; flex-wrap: wrap; }
.consentBtn {
  font-family: var(--mp-sans); font-size: 12px; font-weight: 700; letter-spacing: .4px;
  padding: 9px 16px; cursor: pointer; border: 1px solid transparent;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.consentBtn.ghost {
  background: rgba(11, 13, 18, .5); border-color: rgba(216, 177, 90, .2); color: var(--mp-ink);
}
.consentBtn.ghost:hover { color: var(--mp-gold-1); border-color: rgba(216, 177, 90, .45); }
.consentBtn.primary {
  background: var(--mp-gold-1); color: var(--mp-bg-0); border-color: var(--mp-gold-1);
}
.consentBtn.primary:hover { background: var(--mp-gold-2); border-color: var(--mp-gold-2); }

/* Einstellungs-Dialog */
.cm-overlay {
  position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center;
  padding: 18px; background: rgba(5, 6, 9, .72); backdrop-filter: blur(3px);
}
.cm {
  width: min(560px, 100%); max-height: 86vh; overflow-y: auto;
  padding: 28px 28px 24px; background: var(--mp-panel-2);
  border: 1px solid rgba(216, 177, 90, .22); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.cm-eyebrow {
  font-family: var(--mp-mono); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--mp-teal-2); margin-bottom: 8px;
}
.cm-title {
  font-family: var(--mp-serif); font-size: 22px; font-weight: 600; color: var(--mp-bone);
  margin: 0 0 10px;
}
.cm-intro { font-family: var(--mp-sans); font-size: 13px; line-height: 1.55; color: var(--mp-ink); margin: 0 0 18px; }
.cm-rows { display: grid; gap: 14px; margin-bottom: 22px; }
.cm-row { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.cm-name { font-family: var(--mp-sans); font-size: 13.5px; font-weight: 700; color: var(--mp-bone); }
.cm-desc { font-family: var(--mp-sans); font-size: 12px; line-height: 1.5; color: var(--mp-ink-dim); margin-top: 3px; }
.cm-lock, .cm-soon {
  font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
  color: var(--mp-ink-dim); margin-left: 6px;
}
/* Toggle-Switch */
.cm-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.cm-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.cm-track {
  position: absolute; inset: 0; cursor: pointer; background: rgba(11, 13, 18, .8);
  border: 1px solid rgba(216, 177, 90, .25); transition: background 160ms ease, border-color 160ms ease;
}
.cm-track::before {
  content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; background: var(--mp-ink); transition: left 160ms ease, background 160ms ease;
}
.cm-toggle input:checked + .cm-track { background: rgba(77, 208, 196, .25); border-color: var(--mp-teal-3); }
.cm-toggle input:checked + .cm-track::before { left: 21px; background: var(--mp-teal-1); }
.cm-toggle input:disabled + .cm-track { cursor: not-allowed; opacity: .65; }
.cm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Rechtstexte: Standalone-Overlay ======================================
   Impressum/Datenschutz oeffnen aus Footer/Consent-Hinweisen in einem eigenen
   Overlay ueber allem ([data-legal-overlay], legal-page.js). ===== */
.legalOverlay {
  position: fixed; inset: 0; z-index: 10001;
  display: grid; place-items: center; padding: 18px;
  background: rgba(5, 6, 9, .82); backdrop-filter: blur(4px);
}
.legalOverlayPanel {
  position: relative;
  width: min(960px, 94vw); max-height: 90vh; overflow-y: auto;
  padding: 30px clamp(18px, 4vw, 42px) 28px;
  background: var(--mp-bg-1, #0b0d12);
  border: 1px solid rgba(216, 177, 90, .22);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .65);
}
.legalOverlayClose {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; line-height: 1; cursor: pointer;
  background: rgba(11, 13, 18, .6); border: 1px solid rgba(216, 177, 90, .25);
  color: var(--mp-ink, #aea58c); font-size: 22px;
  transition: color 140ms ease, border-color 140ms ease;
}
.legalOverlayClose:hover { color: var(--mp-gold-1, #d8b15a); border-color: rgba(216, 177, 90, .5); }
/* Im Overlay bekommt die Prosa keinen aeusseren Page-Wrapper -> selbst zentrieren. */
.legalOverlayPanel .legal { max-width: 100%; }
.legalOverlayPanel .legal .lg-nav,
.legalOverlayPanel .legal .lg-meta,
.legalOverlayPanel .legal .lg-doc,
.legalOverlayPanel .legal .lg-foot { max-width: 100%; }

/* Login-Modal-Rechtshinweis (§ 305 BGB + Jugendschutz): Styling lebt jetzt bei
   .si-foot/.si-legal in main-10.css (Anmelde-Modal Design-Vorlage). */

/* ============================================================
   Live-Figurenkarte + Zughistorie-Chips (render/live-card.js)
   Vorlage "Magic Pieces - Figurenkarte Live"; Tokens -> --mp-*.
   Karte = eingebettete fc-card (Popover-Styles aus diesem File),
   lcx-* ergaenzt Plakette, Schach-Band, Matt-Schaerpe, FX, Chips.
   ============================================================ */
/* margin-top:auto schiebt Karte + Zughistorie ans Leisten-Ende: die Karte
   haengt direkt UEBER der Zughistorie statt unter der Aktions-Box. */
.lcxDock { position: relative; margin-top: auto; }

.lcx-dock-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px 8px;
}
.lcx-dock-title {
  font-size: 10px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--mp-gold-1);
  white-space: nowrap;
}
.lcx-dock-title.danger { color: #ff8d7e; animation: lcxPulse 1.4s ease-in-out infinite; }
.lcx-dock-title.final { color: #f3d795; text-shadow: 0 0 12px rgba(243,215,149,0.5); }
.lcx-dock-sub {
  font-family: var(--mp-mono);
  font-size: 10px;
  color: var(--mp-ink-dim);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lcx-slot { position: relative; }
/* Parallax-Wrapper: --rx/--ry setzt live-card.js aus der Mausposition. */
.lcx-tilt {
  position: relative;
  z-index: 1;
  transform: perspective(950px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease-out;
  will-change: transform;
}

/* ---- Artwork-Ebenen (Parallax + Sheen + Glint + Ken-Burns) ---- */
.lcx-art { overflow: hidden; }
.lcx-art-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform: translateZ(0);
  display: grid;
  place-items: center;
}
.lcx-art-img {
  position: absolute;
  inset: -14px;
  background-size: cover;
  background-position: center 20%;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0) scale(1.05);
  transition: transform 200ms ease-out;
  animation: lcxKenBurns 16s ease-in-out infinite alternate;
}
@keyframes lcxKenBurns { from { scale: 1; } to { scale: 1.07; } }
.lcx-art-piece {
  width: 56%; height: 82%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transform: translate3d(calc(var(--px, 0) * 0.7px), calc(var(--py, 0) * 0.7px), 0);
  transition: transform 200ms ease-out;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.8)) drop-shadow(0 0 18px rgba(216,177,90,0.25));
}
.lcx-art-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,0.13), transparent 55%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
.lcx-art-glint {
  position: absolute;
  top: -20%; bottom: -20%;
  width: 42%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(243,215,149,0.1) 45%, rgba(243,215,149,0.22) 50%, transparent 60%);
  transform: skewX(-14deg);
  animation: lcxGlint 9s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}
@keyframes lcxGlint {
  0%, 78% { left: -60%; opacity: 0; }
  80% { opacity: 1; }
  96%, 100% { left: 130%; opacity: 0; }
}

.lcx-empty {
  min-height: 120px;
  border: 1px dashed rgba(216,177,90,0.3);
  display: grid;
  place-items: center;
  background: rgba(9,11,15,0.4);
}
.lcx-empty span {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--mp-ink-dim);
  animation: lcxPulse 1.8s ease-in-out infinite;
}

/* Eingebettete Karte: Popover-Geometrie neutralisieren. */
.lcxDock .fc-card {
  position: relative;
  width: 100%;
  max-width: none;
  animation: none;
}
/* Enter-/Leave-Transforms und -1px-Ecken duerfen die Rail nicht horizontal
   scrollen lassen. */
body.mode-demo .effectRail { overflow-x: hidden; }
/* Portrait kompakt (128px) — 168px/200px vom User verworfen. */
.lcxDock .fc-art { height: 128px; }
.lcxDock .fc-name { font-size: 19px; }
/* Zustands-Gluehen (Schach/Matt) auf eigener Ebene. */
.lcxDock .fc-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 7;
}
.lcxDock .lcx-is-check { border-color: rgba(212,67,46,0.55); }
.lcxDock .lcx-is-check::before { background: linear-gradient(90deg, transparent, #d4432e, transparent); }
.lcxDock .lcx-is-check::after { animation: lcxHeartbeat 1.7s ease-in-out 550ms infinite; }
@keyframes lcxHeartbeat {
  0%, 46%, 100% { box-shadow: 0 0 0 0 rgba(212,67,46,0), 0 0 22px -10px rgba(212,67,46,0); }
  8%  { box-shadow: inset 0 0 0 2px rgba(212,67,46,0.45), inset 0 0 34px -4px rgba(212,67,46,0.4); }
  16% { box-shadow: inset 0 0 0 1px rgba(212,67,46,0.12), inset 0 0 24px -8px rgba(212,67,46,0.15); }
  26% { box-shadow: inset 0 0 0 2px rgba(212,67,46,0.55), inset 0 0 40px -2px rgba(212,67,46,0.5); }
}
.lcxDock .lcx-is-mate { border-color: rgba(243,215,149,0.65); }
.lcxDock .lcx-is-mate::before { background: linear-gradient(90deg, transparent, #f3d795, transparent); opacity: 1; }
.lcxDock .lcx-is-mate::after { animation: lcxMateBreathe 2.6s ease-in-out 900ms infinite; }
@keyframes lcxMateBreathe {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(243,215,149,0.25), inset 0 0 34px -6px rgba(243,215,149,0.3); }
  50%      { box-shadow: inset 0 0 0 2px rgba(243,215,149,0.45), inset 0 0 54px -4px rgba(243,215,149,0.5); }
}

/* ---- Aktions-Plakette ---- */
.lcx-plate {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px 9px;
  border-bottom: 1px solid rgba(216,177,90,0.14);
  border-left: 2px solid var(--ac, var(--mp-gold-1));
  background: linear-gradient(90deg, color-mix(in srgb, var(--ac, #e6c067) 14%, transparent), transparent 78%);
}
.lcx-plate.slim { align-items: center; }
.lcx-plate.slim .lcx-plate-text { display: flex; align-items: center; min-height: 30px; }
.lcx-plate-ico {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ac);
  border: 1px solid color-mix(in srgb, var(--ac) 55%, transparent);
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--ac) 26%, transparent), transparent 70%), rgba(7,8,11,0.5);
  box-shadow: 0 0 14px -4px var(--ac);
}
.lcx-plate-text { flex: 1; min-width: 0; }
.lcx-plate-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.lcx-plate-label {
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ac);
}
.lcx-plate-nota { font-family: var(--mp-mono); font-size: 11px; letter-spacing: 0.5px; color: var(--mp-bone); }
.lcx-plate-note {
  margin-top: 4px;
  font-family: var(--mp-serif-body);
  font-style: italic;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mp-ink);
}
.lcx-plate-ply { font-family: var(--mp-mono); font-size: 10px; color: var(--mp-ink-dim); flex-shrink: 0; padding-top: 2px; }
.lcx-plate-ply i { font-style: normal; color: var(--mp-ink-faint); }
.lcx-plate.slim .lcx-plate-ply { align-self: center; padding-top: 0; }

/* ---- Schach-Band ---- */
.lcx-check-band {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  background: linear-gradient(90deg, rgba(180,45,35,0.3), rgba(180,45,35,0.05));
  border-bottom: 1px solid rgba(212,67,46,0.45);
  animation: lcxBandIn 420ms 380ms cubic-bezier(.2,.9,.3,1.15) both;
}
@keyframes lcxBandIn { from { opacity: 0; transform: translateY(-8px); } }
.lcx-cb-ico { color: #ff8d7e; display: grid; place-items: center; animation: lcxPulse 1.4s ease-in-out infinite; }
.lcx-cb-word { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; font-weight: 800; color: #ff8d7e; }
.lcx-cb-sub {
  font-family: var(--mp-serif-body);
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.25;
  color: color-mix(in srgb, #ff8d7e 55%, var(--mp-ink));
  min-width: 0;
}

/* ---- Zugbild-Flyout: Overlay zur Brettseite (links der Karte) ----
   position:fixed entkommt dem overflow der Rail; die Koordinaten setzt
   positionZugFly() in live-card.js. Verschiebt NICHTS im Karten-Layout. */
.lcxDock .fc-zug-fly.lcx-fly {
  position: fixed;
  top: auto; left: auto; right: auto;
  width: 224px;
  z-index: 1400;
  transform: translateX(12px) scale(0.96);
  transform-origin: center right;
}
.lcxDock .fc-zug-fly.lcx-fly.open { opacity: 1; pointer-events: auto; transform: none; }
.lcx-fly-tail {
  position: absolute;
  top: 30px; right: -7px;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, rgba(20,23,31,0.99), rgba(14,16,22,0.99));
  border: 1px solid rgba(216,177,90,0.4);
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
}

/* ---- Enter-Animationen (nach Aktionsart) ---- */
.lcxDock .fc-card.lcx-enter-move    { animation: lcxEnterMove 560ms cubic-bezier(.2,.85,.25,1) both; }
@keyframes lcxEnterMove { from { opacity: 0; transform: translateX(38px) rotate(1.2deg); } }
.lcxDock .fc-card.lcx-enter-capture { animation: lcxEnterCap 430ms cubic-bezier(.16,1,.3,1) both; }
@keyframes lcxEnterCap {
  0%   { opacity: 0; transform: scale(1.12); filter: brightness(2.1); }
  55%  { opacity: 1; filter: brightness(1.3); }
  100% { transform: scale(1); filter: brightness(1); }
}
.lcxDock .fc-card.lcx-enter-ability { animation: lcxEnterAb 700ms cubic-bezier(.25,.8,.3,1) both; }
@keyframes lcxEnterAb {
  from { opacity: 0; transform: scale(0.94) translateY(10px); filter: blur(12px) saturate(1.7); }
  70%  { filter: blur(0) saturate(1.15); }
}
.lcxDock .fc-card.lcx-enter-mate { animation: lcxEnterMate 640ms cubic-bezier(.16,1,.3,1) both; }
@keyframes lcxEnterMate {
  0%   { opacity: 0; transform: scale(1.2); filter: brightness(2.6) blur(2px); }
  50%  { opacity: 1; filter: brightness(1.5) blur(0); }
  100% { transform: scale(1); filter: brightness(1); }
}
.lcxDock .fc-card.lcx-enter-preview { animation: lcxEnterPrev 340ms ease both; }
@keyframes lcxEnterPrev { from { opacity: 0; transform: translateY(8px) scale(0.99); } }

/* ---- Ghost (alte Karte verabschiedet sich) ---- */
.lcx-ghost {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  animation-fill-mode: both;
}
.lcx-ghost .fc-card { animation: none !important; }
.lcx-ghost .fc-card::after { display: none; }
.lcx-ghost .lcx-fx, .lcx-ghost .lcx-mate-sash, .lcx-ghost .fc-zug-fly { display: none !important; }
.lcx-ghost.lcx-leave-move    { animation: lcxLeaveMove 480ms cubic-bezier(.4,0,.6,1) both; }
@keyframes lcxLeaveMove { to { opacity: 0; transform: translateX(-36px) rotate(-1.5deg) scale(0.985); } }
.lcx-ghost.lcx-leave-capture { animation: lcxLeaveCap 400ms cubic-bezier(.45,0,.8,.4) both; }
@keyframes lcxLeaveCap { to { opacity: 0; transform: translate(-48px, 32px) rotate(-7deg) scale(0.94); } }
.lcx-ghost.lcx-leave-ability { animation: lcxLeaveAb 520ms ease-in both; }
@keyframes lcxLeaveAb { to { opacity: 0; transform: translateY(-24px) scale(0.97); filter: blur(10px); } }
.lcx-ghost.lcx-leave-mate    { animation: lcxLeaveMate 430ms cubic-bezier(.45,0,.8,.4) both; }
@keyframes lcxLeaveMate { to { opacity: 0; transform: translate(-62px, 46px) rotate(-10deg) scale(0.9); } }
.lcx-ghost.lcx-leave-preview { animation: lcxLeavePrev 300ms ease both; }
@keyframes lcxLeavePrev { to { opacity: 0; transform: scale(0.985); } }

/* ---- Shake bei Schlag / Matt ---- */
.lcxDock.lcx-shake .lcx-slot { animation: lcxShake 480ms cubic-bezier(.3,.1,.3,1); }
.lcxDock.lcx-shake.hard .lcx-slot { animation: lcxShakeHard 580ms cubic-bezier(.3,.1,.3,1); }
@keyframes lcxShake {
  10% { transform: translate(-6px, 3px) rotate(-0.5deg); }
  30% { transform: translate(5px, -3px) rotate(0.4deg); }
  50% { transform: translate(-3px, 2px); }
  70% { transform: translate(2px, -1px); }
  100% { transform: none; }
}
@keyframes lcxShakeHard {
  8%  { transform: translate(-9px, 5px) rotate(-0.9deg); }
  24% { transform: translate(8px, -5px) rotate(0.7deg); }
  42% { transform: translate(-5px, 3px) rotate(-0.4deg); }
  62% { transform: translate(4px, -2px); }
  82% { transform: translate(-2px, 1px); }
  100% { transform: none; }
}

/* ---- Karten-FX (Overlay) ---- */
.lcx-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}
.lcx-streak {
  position: absolute;
  top: -12%; bottom: -12%;
  width: 46%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(243,215,149,0.28) 45%, rgba(243,215,149,0.55) 50%, transparent 60%);
  transform: skewX(-14deg);
  mix-blend-mode: screen;
  animation: lcxStreak 750ms 120ms cubic-bezier(.3,.6,.3,1) both;
}
@keyframes lcxStreak { to { left: 132%; } }
.lcx-mote {
  position: absolute;
  width: var(--sz, 3px); height: var(--sz, 3px);
  border-radius: 50%;
  background: #f3d795;
  box-shadow: 0 0 8px 1px rgba(243,215,149,0.7);
  animation: lcxMote 1100ms var(--dl, 0ms) ease-out both;
}
@keyframes lcxMote {
  0%   { opacity: 0; transform: translateY(6px) scale(0.4); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px) scale(1); }
}
.lcx-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(232,116,106,0.5), rgba(180,45,35,0.15) 60%, transparent 80%);
  animation: lcxFlash 520ms ease-out both;
}
.lcx-flash.gold { background: radial-gradient(ellipse 80% 70% at 50% 42%, rgba(243,215,149,0.55), rgba(216,177,90,0.18) 60%, transparent 80%); animation-duration: 700ms; }
@keyframes lcxFlash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.lcx-ring {
  position: absolute;
  left: 50%; top: 42%;
  width: 110px; height: 110px;
  margin: -55px 0 0 -55px;
  border: 2px solid rgba(232,116,106,0.85);
  border-radius: 50%;
  animation: lcxRing 620ms 60ms cubic-bezier(.2,.7,.3,1) both;
}
.lcx-ring.gold { border-color: rgba(243,215,149,0.9); animation-duration: 780ms; }
.lcx-ring.gold.late { animation-delay: 340ms; }
@keyframes lcxRing {
  0%   { opacity: 0; transform: scale(0.3); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: scale(3); }
}
.lcx-ember {
  position: absolute;
  left: 50%; top: 42%;
  width: var(--sz, 4px); height: var(--sz, 4px);
  border-radius: 50%;
  background: #ffb0a5;
  box-shadow: 0 0 8px 1px rgba(232,116,106,0.85);
  animation: lcxEmber 720ms var(--dl, 0ms) cubic-bezier(.2,.7,.4,1) both;
}
@keyframes lcxEmber {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 40px), var(--dy, -40px)) scale(0.2); }
}
.lcx-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, rgba(111,177,236,0.32), transparent 70%);
  animation: lcxFlash 900ms ease-out both;
}
.lcx-rune {
  position: absolute;
  left: 50%; top: 42%;
  border: 1px dashed rgba(111,177,236,0.75);
  border-radius: 50%;
  animation: lcxRune 1100ms cubic-bezier(.25,.7,.3,1) both;
}
.lcx-rune.r1 { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
.lcx-rune.r2 { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-style: dotted; animation-delay: 120ms; animation-direction: reverse; }
@keyframes lcxRune {
  0%   { opacity: 0; transform: rotate(-100deg) scale(0.5); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(40deg) scale(1.15); }
}
.lcx-rise {
  position: absolute;
  bottom: 8%;
  width: var(--sz, 3px); height: var(--sz, 3px);
  border-radius: 50%;
  background: #a9d1f5;
  box-shadow: 0 0 8px 1px rgba(111,177,236,0.8);
  animation: lcxRise var(--dur, 1200ms) var(--dl, 0ms) ease-out both;
}
@keyframes lcxRise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.5); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0px), -150px) scale(1); }
}
.lcx-rise.gold { background: #f3d795; box-shadow: 0 0 9px 2px rgba(243,215,149,0.8); }

/* Faehigkeits-Zeile leuchtet einmal auf, wenn ein Sonderzug gespielt wurde. */
.lcx-power-used { animation: lcxPowerUsed 1.9s ease-out 380ms both; }
@keyframes lcxPowerUsed {
  0%   { box-shadow: none; }
  22%  { box-shadow: 0 0 26px -3px var(--pk), inset 0 0 20px -8px var(--pk); border-color: color-mix(in srgb, var(--pk) 70%, transparent); }
  100% { box-shadow: none; }
}

/* ---- Matt-Schaerpe ---- */
.lcx-mate-sash {
  position: absolute;
  left: 0; right: 0;
  top: 40%;
  display: grid;
  place-items: center;
  padding: 13px 10px 14px;
  transform: rotate(-4deg);
  background: linear-gradient(90deg, transparent, rgba(9,11,15,0.96) 10% 90%, transparent);
  z-index: 8;
  animation: lcxSashIn 620ms 480ms cubic-bezier(.16,1,.3,1) both;
}
.lcx-mate-sash::before, .lcx-mate-sash::after {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243,215,149,0.75), transparent);
}
.lcx-mate-sash::before { top: 0; }
.lcx-mate-sash::after { bottom: 0; }
@keyframes lcxSashIn {
  from { opacity: 0; transform: rotate(-4deg) scale(1.55); filter: blur(7px); }
  to   { opacity: 1; transform: rotate(-4deg) scale(1); filter: blur(0); }
}
.lcx-ms-crown { color: #f3d795; filter: drop-shadow(0 0 8px rgba(243,215,149,0.8)); margin-bottom: 3px; }
.lcx-ms-word {
  font-family: var(--mp-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  padding-left: 5px;
  background: linear-gradient(180deg, #fbf3da, #f3d795 55%, #c89a3e);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(243,215,149,0.45));
  white-space: nowrap;
}
.lcx-ms-sub {
  white-space: nowrap;
  margin-top: 3px;
  font-family: var(--mp-serif-body);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--mp-bone);
}

/* ---- Zughistorie-Chips ---- */
.effectRailHistoryBody.lcxChipsBody {
  display: block;
  max-height: none;
  overflow: visible;
}
/* Chips scrollen ohne sichtbaren Balken: Mausrad scrollt horizontal (JS in
   live-card.js), ausgefadete Kanten (fade-l/fade-r) zeigen weitere Chips an. */
.lcxChips {
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scrollbar-width: none;
}
.lcxChips::-webkit-scrollbar { display: none; }
.lcxChips.fade-l {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px);
}
.lcxChips.fade-r {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 26px), transparent 100%);
}
.lcxChips.fade-l.fade-r {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 26px, #000 calc(100% - 26px), transparent 100%);
}
.lcxChip {
  position: relative;
  width: 36px; height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(216,177,90,0.22);
  background: rgba(9,11,15,0.7);
  display: grid;
  place-items: center;
  opacity: 0.82;
  cursor: pointer;
  transition: opacity 150ms, border-color 150ms, transform 150ms;
}
.lcxChip:hover { opacity: 1; transform: translateY(-2px); border-color: rgba(216,177,90,0.45); }
.lcxChip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--ac, var(--mp-gold-1));
  box-shadow: 0 0 8px -2px var(--ac, var(--mp-gold-1));
}
.lcxChipImg { width: 76%; height: 68%; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.7)); }
.lcxChip.now {
  opacity: 1;
  border-color: color-mix(in srgb, var(--ac, #d8b15a) 55%, transparent);
  box-shadow: 0 0 12px -4px var(--ac, #d8b15a);
  animation: lcxChipIn 340ms cubic-bezier(.2,.85,.3,1.2) both;
}
@keyframes lcxChipIn { from { opacity: 0; transform: translateY(-8px) scale(0.7); } }
.lcxChip.viewing { opacity: 1; border-color: var(--mp-teal-1); box-shadow: 0 0 12px -4px var(--mp-teal-1); }
.lcxChipCrown {
  position: absolute;
  top: -6px; right: -6px;
  width: 15px; height: 15px;
  display: grid; place-items: center;
  color: #f3d795;
  background: #14171f;
  border: 1px solid rgba(216,177,90,0.5);
  border-radius: 50%;
  z-index: 1;
}

@keyframes lcxPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

@media (prefers-reduced-motion: reduce) {
  .lcxDock .fc-card, .lcx-ghost,
  .lcxDock .fc-card::after,
  .lcx-streak, .lcx-mote, .lcx-flash, .lcx-ring, .lcx-ember,
  .lcx-wash, .lcx-rune, .lcx-rise,
  .lcx-mate-sash, .lcx-check-band,
  .lcxDock.lcx-shake .lcx-slot,
  .lcx-art-glint, .lcx-art-img,
  .lcxChip.now, .lcx-power-used { animation: none !important; }
  .lcx-tilt, .lcx-art-img, .lcx-art-piece { transition: none; transform: none; }
}

/* ── Gemeinsamer Popup-Schließen-Knopf (Soul-Forge-Look) ─────────────────────────
   Goldener Rahmen auf dunklem Grund; das X dreht sich beim Hover 90°.
   Position/Größe setzen die jeweiligen Popup-Regeln (.dwx-close bleibt eigenständig,
   .fd-close .po-close .fb-close .gset-close .db-builder-close .pmClose nur Größe/Position);
   Look + Animation kommen von hier — eine Quelle für alle Modale. */
.mp-close {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid rgba(216, 177, 90, .2);
  border-radius: 0;
  background: rgba(16, 18, 24, .5);
  color: var(--mp-ink);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .18s ease;
  flex-shrink: 0;
}
.mp-close:hover { color: var(--mp-bone); border-color: var(--mp-gold-1); transform: rotate(90deg); }
.mp-close:active { transform: rotate(90deg) scale(.94); }
.mp-close svg { display: block; }
@media (prefers-reduced-motion: reduce) {
  .mp-close { transition: color .15s ease, border-color .15s ease; }
  .mp-close:hover, .mp-close:active { transform: none; }
}

/* ===========================================================================
   In-Game-Chat mit dem Gegner (app/game-chat.js) — einklappbares Panel, das
   unten links neben der eigenen Effektleiste andockt. Eigenes, persistentes DOM
   (#gameChat), damit renderEffectBar() es nicht bei jedem Zug ueberschreibt.
   =========================================================================== */
.gameChat {
  position: fixed;
  left: calc(var(--side-nav-width) + 18px);
  bottom: 18px;
  z-index: 90;                       /* ueber dem Brett, unter dem Profil-Modal (1000) */
  width: 316px;
  max-width: calc(100vw - var(--side-nav-width) - 36px);
  display: flex;
  flex-direction: column;
  max-height: min(58vh, 440px);
  border: 1px solid rgba(216, 177, 90, .22);
  border-radius: 12px;
  background:
    radial-gradient(120% 60% at 0% 100%, rgba(10, 200, 185, .07), transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
  color: var(--text);
  animation: gcRise .22s ease both;
}
[hidden].gameChat { display: none; }
/* Das HTML-`hidden`-Attribut muss die expliziten display-Regeln unten schlagen
   (sonst zeigen sich Profil-/Freund-Buttons bei anonymem Gegner + die 0-Badge). */
.gameChat [hidden] { display: none !important; }

@keyframes gcRise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.gameChat.is-collapsed { max-height: none; }
.gameChat.is-collapsed .gcBody,
.gameChat.is-collapsed .gcFooter { display: none; }
.gameChat.is-collapsed .gcHeader { cursor: pointer; border-bottom: none; }
.gameChat.is-collapsed .gcCollapse svg { transform: rotate(180deg); }

/* Kopfzeile */
.gcHeader {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-bottom: 1px solid rgba(216, 177, 90, .14);
  background: rgba(20, 26, 34, .55);
  flex: 0 0 auto;
}
.gcIcon { display: inline-flex; flex: 0 0 auto; }
.gcIcon svg { width: 18px; height: 18px; color: var(--accent); }
.gcHead { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.gcTitle {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}
.gcOppName {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gcOppName.is-link { cursor: pointer; }
.gcOppName.is-link:hover { color: var(--accent); text-decoration: underline; }
.gcOppName.is-waiting { color: var(--muted); font-weight: 600; font-style: italic; }

.gcActions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.gcIconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color .14s ease, background .14s ease;
}
.gcIconBtn svg { width: 17px; height: 17px; }
.gcIconBtn:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.gcIconBtn[data-gc-action="add-friend"]:hover { color: var(--accent); }
.gcCollapse svg { transition: transform .2s ease; }

.gcUnread {
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #04121a;
  font-size: 10px;
  font-weight: 800;
}
.gameChat.has-unread .gcIcon svg { animation: gcPulse 1.4s ease-in-out infinite; }
@keyframes gcPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* Nachrichten */
.gcBody {
  flex: 1 1 auto;
  min-height: 96px;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 177, 90, .22) transparent;
}
.gcBody::-webkit-scrollbar { width: 8px; }
.gcBody::-webkit-scrollbar-thumb { background: rgba(216, 177, 90, .2); border-radius: 8px; }
.gcMsg {
  max-width: 86%;
  align-self: flex-start;
  padding: 6px 9px;
  border-radius: 11px 11px 11px 3px;
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .05);
}
.gcMsg.mine {
  align-self: flex-end;
  border-radius: 11px 11px 3px 11px;
  background: color-mix(in srgb, var(--accent) 20%, rgba(10, 20, 26, .8));
  border-color: color-mix(in srgb, var(--accent) 34%, transparent);
}
.gcMsgBody { display: block; font-size: 13px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.gcMsgTime { display: block; margin-top: 2px; font-size: 9px; color: var(--muted); text-align: right; }
.gcEmpty {
  margin: auto;
  padding: 14px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Fusszeile: Composer / Anfrage / Hinweis */
.gcFooter { flex: 0 0 auto; border-top: 1px solid rgba(216, 177, 90, .14); }
.gcStatus { padding: 6px 10px 0; font-size: 11px; color: var(--muted); }
.gcStatus.on { color: var(--mp-gold-1, #e6c766); }
.gcForm { display: flex; gap: 6px; padding: 8px; align-items: center; }
.gcInput {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(8, 11, 16, .7);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.gcInput:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.gcInput::placeholder { color: var(--muted); }
.gcSend {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #04121a;
  cursor: pointer;
  transition: filter .14s ease, transform .1s ease;
}
.gcSend svg { width: 16px; height: 16px; }
.gcSend:hover { filter: brightness(1.12); }
.gcSend:active { transform: scale(.94); }

.gcRequest { padding: 12px 12px 13px; text-align: center; }
.gcReqText { font-size: 13px; line-height: 1.4; color: var(--text); margin: 0 0 9px; }
.gcReqBtns { display: flex; gap: 8px; justify-content: center; }
.gcBtn {
  padding: 7px 15px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter .14s ease, background .14s ease, border-color .14s ease;
}
.gcBtn--primary { background: var(--accent); color: #04121a; }
.gcBtn--primary:hover { filter: brightness(1.12); }
.gcBtn--ghost { background: transparent; border-color: var(--border); color: var(--muted); }
.gcBtn--ghost:hover { color: var(--text); border-color: rgba(216, 177, 90, .35); }
.gcNote { padding: 13px 12px; text-align: center; color: var(--muted); font-size: 12px; }

/* Schmale Viewports: volle Randbreite, kleinere Hoehe. */
@media (max-width: 900px) {
  .gameChat {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: none;
    max-height: 46vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gameChat { animation: none; }
  .gameChat.has-unread .gcIcon svg { animation: none; }
}
