/* =============================================================================
   Festquiz – gemeinsames Stylesheet (Spieler, Großbild, Spielleitung)
   Schriften: Fraunces (Anzeige) + Manrope (Text). Farben je Theme über [data-theme].
   ========================================================================== */

/* ---------- Themes --------------------------------------------------------- */
[data-theme] {
  --f-display: 'Fraunces Variable', 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --f-body: 'Manrope Variable', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --surface: color-mix(in srgb, var(--bg-1) 84%, transparent);
  --surface-2: color-mix(in srgb, var(--bg-2) 90%, transparent);
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 26%, transparent);
  --shade: 0 18px 50px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
[data-theme="night"] {
  --bg-0: #10121a; --bg-1: #171a25; --bg-2: #1f2331;
  --ink: #f1ede6; --ink-dim: #a7a9b8; --accent: #e9b872; --accent-ink: #1e1407; --accent-2: #8fb8ff;
  --good: #7fd6a0; --bad: #ff7f78;
  --layer-far: #2a2f45; --layer-mid: #181c29; --layer-near: #0c0e15; --layer-glow: #f6e7c8; --layer-snow: #fff;
}
[data-theme="christmas"] {
  --bg-0: #0b1d19; --bg-1: #10302a; --bg-2: #17413a;
  --ink: #f4ecdc; --ink-dim: #a9bdb2; --accent: #d8b25a; --accent-ink: #1d1608; --accent-2: #c23b4a;
  --good: #7fd49a; --bad: #ef6f63;
  --layer-far: #133a32; --layer-mid: #0e2b25; --layer-near: #071512; --layer-glow: #f3e3b5; --layer-snow: #dfe8e2;
}
[data-theme="winter"] {
  --bg-0: #0d1626; --bg-1: #142238; --bg-2: #1c2f4c;
  --ink: #edf3fa; --ink-dim: #9db1c9; --accent: #a9d8ff; --accent-ink: #0b1a2b; --accent-2: #cbb6ff;
  --good: #7fe0b0; --bad: #ff7d7d;
  --layer-far: #1b2e4a; --layer-mid: #13223a; --layer-near: #0a1323; --layer-glow: #e6f1ff; --layer-snow: #d9e4f2;
}
[data-theme="summer"] {
  --bg-0: #0f2a35; --bg-1: #143b47; --bg-2: #1a4b59;
  --ink: #fff3e4; --ink-dim: #b7d0cd; --accent: #ff9b66; --accent-ink: #2a1205; --accent-2: #ffd166;
  --good: #8be0a4; --bad: #ff7a7a;
  --layer-far: #1c5462; --layer-mid: #154452; --layer-near: #071d26; --layer-glow: #ffc77d; --layer-snow: #f6e7cf;
}
[data-theme="birthday"] {
  --bg-0: #1e1030; --bg-1: #2a1742; --bg-2: #382057;
  --ink: #fff0f6; --ink-dim: #c8b1d6; --accent: #ffb0c8; --accent-ink: #2b0c19; --accent-2: #f2cf6b;
  --good: #9be3b4; --bad: #ff8080;
  --layer-far: #32205a; --layer-mid: #46297a; --layer-near: #5c3590; --layer-glow: #ffd9e6; --layer-snow: #fff;
}
[data-theme="halloween"] {
  --bg-0: #120d15; --bg-1: #1d1622; --bg-2: #291f30;
  --ink: #f6ead6; --ink-dim: #b3a49b; --accent: #f28c28; --accent-ink: #1f0e02; --accent-2: #9bd86b;
  --good: #9bd86b; --bad: #ff6b5e;
  --layer-far: #251b2d; --layer-mid: #1a1321; --layer-near: #09070b; --layer-glow: #ffcf86; --layer-snow: #fff;
}
[data-theme="horror"] {
  --bg-0: #060405; --bg-1: #100a0c; --bg-2: #1c0f12;
  --ink: #efe4d8; --ink-dim: #a39089; --accent: #ff6a00; --accent-ink: #1c0900; --accent-2: #c8142c;
  --good: #8fdc5a; --bad: #ff4d6d;
  --layer-far: #1a0c11; --layer-mid: #0d0709; --layer-near: #020102; --layer-glow: #ffb347; --layer-snow: #fff;
  --layer-moon: #b3101f; --layer-eye: #ff2b2b; --layer-fog: #8b9a94; --layer-web: #cfc6c0; --layer-blood: #7d0a16;
  --line: color-mix(in srgb, #ff3b3b 16%, transparent);
  --line-strong: color-mix(in srgb, #ff5a4a 30%, transparent);
  --shade: 0 18px 50px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(125, 10, 22, .25);
}
[data-theme="newyear"] {
  --bg-0: #0a0c1d; --bg-1: #12152e; --bg-2: #1b1f42;
  --ink: #f2efe8; --ink-dim: #a8abc6; --accent: #e9d39c; --accent-ink: #1c1606; --accent-2: #8fa9ff;
  --good: #8fe0b5; --bad: #ff7d8a;
  --layer-far: #1a1e3d; --layer-mid: #141832; --layer-near: #0b0e21; --layer-glow: #ffe7a8; --layer-snow: #fff;
}
[data-theme="classic"] {
  --bg-0: #e8ecf1; --bg-1: #f7f9fb; --bg-2: #ffffff;
  --ink: #15202b; --ink-dim: #566472; --accent: #2346d0; --accent-ink: #ffffff; --accent-2: #d99a00;
  --good: #1d8a4b; --bad: #c8372d;
  --layer-far: rgba(35, 70, 208, .14); --layer-mid: rgba(35, 70, 208, .06); --layer-near: rgba(21, 32, 43, .06); --layer-glow: #fff; --layer-snow: #fff;
  --shade: 0 16px 40px -24px rgba(21, 32, 43, .35);
  color-scheme: light;
}

[data-theme="panel"] {
  --bg-0: #0e1115; --bg-1: #151920; --bg-2: #1c2129;
  --ink: #e7eaef; --ink-dim: #98a2b0; --accent: #8ea6ff; --accent-ink: #0a1024; --accent-2: #f2c14e;
  --good: #5fd08a; --bad: #ff7a72;
  --layer-far: #1c2129; --layer-mid: #151920; --layer-near: #0e1115; --layer-glow: #fff; --layer-snow: #fff;
  --shade: 0 16px 40px -24px rgba(0, 0, 0, .7);
}

/* ---------- Grundlagen ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--f-body); font-size: 16px; line-height: 1.5; font-feature-settings: 'tnum' 0;
  color: var(--ink); background: var(--bg-0);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
#app { position: relative; z-index: 1; min-height: 100dvh; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }

/* ---------- Hintergrund: Parallax + Partikel -------------------------------- */
.bg { position: fixed; inset: -40px; z-index: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(120% 80% at 50% -10%, var(--bg-2), var(--bg-0) 60%); }
.bg-layer { position: absolute; inset: 0; will-change: transform; }
.bg-layer svg { width: 100%; height: 100%; }
.bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-float { animation: bg-float 14s ease-in-out infinite; }
.bg-twinkle { animation: bg-twinkle 4s ease-in-out infinite; }
.bg-wave { animation: bg-wave 9s ease-in-out infinite; }
@keyframes bg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes bg-twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
@keyframes bg-wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-30px); } }
.burst { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
/* Geisterstunde */
.bg-flicker { animation: bg-flicker 7s steps(1) infinite; }
.bg-blink { animation: bg-blink 8s steps(1) infinite; filter: drop-shadow(0 0 4px var(--layer-eye)); }
.bg-bat { animation: bg-bat 30s linear infinite; }
.bg-flap { animation: bg-flap .34s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 40%; }
.bg-spider { animation: bg-spider 11s ease-in-out infinite; }
.bg-flash { position: absolute; inset: 0; background: radial-gradient(90% 70% at 62% 20%, #ffd9d0, #ff3b2e 40%, transparent 75%); opacity: 0; mix-blend-mode: screen; animation: bg-flash 19s linear infinite; }
.bg-drips { position: absolute; left: 0; top: 40px; height: 110px; width: 100%; overflow: hidden; opacity: .9; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7)); }
.bg-drips svg { max-width: none; transform-origin: 50% 0; animation: bg-drip 16s ease-in-out infinite alternate; }
@keyframes bg-flicker { 0%, 100% { opacity: .85; } 8% { opacity: .2; } 10% { opacity: .9; } 13% { opacity: .35; } 16% { opacity: .85; } 58% { opacity: .5; } 61% { opacity: .9; } 80% { opacity: 0; } 86% { opacity: .85; } }
@keyframes bg-blink { 0%, 100% { opacity: 0; } 12% { opacity: 1; } 40% { opacity: 0; } 42% { opacity: 1; } 68% { opacity: 0; } }
@keyframes bg-bat { 0% { transform: translate(-80px, 60px); } 25% { transform: translate(380px, -30px); } 50% { transform: translate(820px, 50px); } 75% { transform: translate(1260px, -40px); } 100% { transform: translate(1700px, 30px); } }
@keyframes bg-flap { from { transform: scaleY(1); } to { transform: scaleY(.25); } }
@keyframes bg-spider { 0%, 100% { transform: translateY(-150px); } 45%, 60% { transform: translateY(40px); } }
@keyframes bg-flash { 0%, 91.5%, 93%, 96%, 100% { opacity: 0; } 92% { opacity: .5; } 92.4% { opacity: .05; } 94% { opacity: .32; } }
@keyframes bg-drip { from { transform: scaleY(.7); } to { transform: scaleY(1); } }
[data-theme="horror"] .bg { background: radial-gradient(110% 75% at 62% 12%, #3a0a12, #14070a 45%, var(--bg-0) 75%); }
[data-theme="horror"] .bg::after { background: radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(0, 0, 0, .78) 100%), linear-gradient(180deg, color-mix(in srgb, var(--bg-0) 25%, transparent), color-mix(in srgb, var(--bg-0) 50%, transparent) 50%, color-mix(in srgb, var(--bg-0) 70%, transparent)); }
@media (prefers-reduced-motion: reduce) { .bg-flicker, .bg-blink, .bg-bat, .bg-flap, .bg-spider, .bg-flash, .bg-drips svg { animation: none; } .bg-bat { transform: translate(600px, 0); } }
/* Inhalte lesbar halten: dunkler Schleier unter Text */
.bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--bg-0) 30%, transparent), color-mix(in srgb, var(--bg-0) 45%, transparent) 50%, color-mix(in srgb, var(--bg-0) 65%, transparent)); }
/* Text bleibt auch vor hellen Hintergrundelementen lesbar */
:where(.q-prompt, .intro-title, .intro-cat, .intro-desc, .intro-kicker, .join-title, .join-sub, .page-title, .lobby-title, .big-answer, .sc-top, .sc-code, .sc-url, .sc-code-label, .q-meta, .lead, .hint, .q-count, .sub-title, .final-kicker, .draw-term, .label) {
  text-shadow: 0 1px 2px color-mix(in srgb, var(--bg-0) 85%, transparent), 0 0 22px color-mix(in srgb, var(--bg-0) 70%, transparent);
}
[data-theme="classic"] :where(.q-prompt, .intro-title, .intro-cat, .intro-desc, .intro-kicker, .join-title, .join-sub, .page-title, .lobby-title, .big-answer, .sc-top, .sc-code, .sc-url, .sc-code-label, .q-meta, .lead, .hint, .q-count, .sub-title, .final-kicker, .draw-term, .label),
[data-theme="panel"] :where(.page-title, .lead, .hint, .label, .sub-title, .q-prompt, .intro-title, .big-answer, .q-meta, .q-count) { text-shadow: none; }

/* ---------- Typografie ------------------------------------------------------ */
.page-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; font-variation-settings: 'opsz' 72; }
.sub-title { font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 .8rem; display: flex; gap: .6rem; align-items: baseline; }
.sub-title .count, .help, .hint { color: var(--ink-dim); font-weight: 500; }
.lead { color: var(--ink-dim); font-size: 1.02rem; max-width: 62ch; margin: 0 0 1rem; }
.lead b { color: var(--ink); }
.lead.strong { color: var(--ink); font-weight: 700; font-size: 1.15rem; }
.hint { font-size: .92rem; margin: .5rem 0; }
.help { display: block; font-size: .84rem; margin-top: .3rem; line-height: 1.4; }
.label { display: block; font-weight: 650; font-size: .92rem; margin: 0 0 .4rem; color: var(--ink-dim); }
.strong { font-weight: 700; }
.pos { color: var(--good); } .neg { color: var(--bad); } .warn { color: var(--accent-2); }
.form-err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: .4rem 0; font-size: .95rem; }
.form-err:empty { min-height: 0; margin: 0; }

/* ---------- Bedienelemente -------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .55rem 1.1rem;
  border-radius: var(--r-md); border: 1px solid transparent; font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, opacity .15s; user-select: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--line); }
.btn-good { background: var(--good); color: #08140c; }
.btn-bad { background: var(--bad); color: #1a0705; }
.btn-danger-text { color: var(--bad); }
.btn-lg { min-height: 56px; font-size: 1.08rem; padding: .7rem 1.4rem; border-radius: 16px; }
.btn-sm { min-height: 36px; padding: .35rem .75rem; font-size: .88rem; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.icon-btn:hover:not(:disabled) { background: var(--line); }
.icon-btn:disabled { opacity: .35; }
.mini-btn { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 .45rem; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: .8rem; font-weight: 700; }
.mini-btn:hover { border-color: var(--accent); }
.chip-btn { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: .35rem .8rem; font-weight: 650; font-size: .88rem; }
.chip-btn:hover { border-color: var(--accent); }

.input { width: 100%; min-height: 46px; padding: .6rem .85rem; border-radius: 12px; border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--bg-0) 55%, transparent); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: color-mix(in srgb, var(--ink-dim) 70%, transparent); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
textarea.input { resize: vertical; line-height: 1.45; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%), linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.input-xl { min-height: 58px; font-size: 1.2rem; border-radius: 16px; padding: .7rem 1rem; }
.input-sm { min-height: 36px; padding: .3rem .6rem; font-size: .9rem; width: auto; }
.input-code { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; text-align: center; }
.input-row { display: flex; gap: .5rem; align-items: center; }
.input-row > .input { flex: 1; }
.input-unit { display: flex; align-items: center; gap: .6rem; flex: 1; }
.input-unit span { color: var(--ink-dim); font-weight: 650; }
.input-short { max-width: 9rem; }

.switch { appearance: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 2px 0 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--accent-ink); }
.switch:disabled { opacity: .5; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--bg-0) 40%, transparent); }
.seg-btn { border: 0; background: transparent; padding: .45rem .9rem; border-radius: 9px; font-weight: 650; color: var(--ink-dim); min-height: 36px; }
.seg-btn[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.range { width: 100%; accent-color: var(--accent); height: 36px; }

.field { margin: 0 0 1.1rem; }
.field-row { display: flex; gap: .8rem; align-items: flex-start; }
.field-row label { cursor: pointer; }
.field-row label b { display: block; font-weight: 650; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 1rem; }

.badge { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; vertical-align: middle; margin-left: .6rem; border: 1px solid currentColor; font-family: var(--f-body); letter-spacing: 0; }
.badge.st-draft { color: var(--ink-dim); }
.badge.st-open { color: var(--accent-2); }
.badge.st-running { color: var(--good); }
.badge.st-ended { color: var(--ink-dim); opacity: .8; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shade); }
.panel + .panel { margin-top: 1rem; }
.panel-title { font-size: 1.02rem; font-weight: 750; margin: 0 0 .8rem; }

/* Dialoge & Hinweise */
.dialog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.4rem; background: var(--bg-1); color: var(--ink); width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); }
.dialog::backdrop { background: rgba(5, 8, 12, .55); backdrop-filter: blur(3px); }
.dialog-sm { width: min(420px, calc(100vw - 24px)); }
.dialog-title { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; margin: 0 0 .8rem; line-height: 1.2; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.2rem; flex-wrap: wrap; }
.toasts { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: grid; gap: .5rem; width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: 12px; padding: .7rem 1rem; font-weight: 600; box-shadow: var(--shade); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: none; }
.toast-good { border-left-color: var(--good); }
.toast-bad { border-left-color: var(--bad); }

/* ---------- Avatare --------------------------------------------------------- */
.av { overflow: visible; }
.av .av-body { transform-box: fill-box; transform-origin: 50% 100%; animation: av-breathe 3.6s ease-in-out infinite; }
.av[data-mood="happy"] .av-body { animation: av-hop .8s cubic-bezier(.3, 1.6, .6, 1) infinite; }
.av[data-mood="win"] .av-body { animation: av-win 1.1s ease-in-out infinite; }
.av[data-mood="sad"] .av-body { animation: av-droop 2.4s ease-in-out infinite; }
.av[data-mood="shock"] .av-body { animation: av-shake .28s linear infinite; }
.av[data-mood="think"] .av-body { animation: av-sway 2.6s ease-in-out infinite; }
.av .av-flame { animation: av-flame .18s steps(2) infinite; transform-box: fill-box; transform-origin: 50% 0; }
.av .av-led { animation: bg-twinkle 1.2s ease-in-out infinite; }
.av .av-tear { animation: av-tear 1.6s ease-in infinite; }
.av .av-sparkle { animation: bg-twinkle 1s ease-in-out infinite; }
@keyframes av-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.015, .985); } }
@keyframes av-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.06, .92); } 45% { transform: translateY(-12%) scale(.96, 1.05); } }
@keyframes av-win { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-10%) rotate(-6deg); } 75% { transform: translateY(-10%) rotate(6deg); } }
@keyframes av-droop { 0%, 100% { transform: scale(1.02, .94) translateY(2%); } 50% { transform: scale(1.03, .92) translateY(3%); } }
@keyframes av-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3%); } 75% { transform: translateX(3%); } }
@keyframes av-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes av-flame { 50% { transform: scaleY(.7); } }
@keyframes av-tear { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Spieler-Kacheln */
.pl { position: relative; display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem; border-radius: 14px; transition: background .2s, opacity .3s; }
.pl.offline { opacity: .45; }
.pl.clickable { cursor: pointer; }
.pl.clickable:hover { background: var(--line); }
.pl-meta { display: grid; min-width: 0; line-height: 1.2; }
.pl-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-score { color: var(--ink-dim); font-weight: 650; font-variant-numeric: tabular-nums; font-size: .9rem; }
.pl-badge { position: absolute; left: calc(.5rem + 4px); top: .2rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--ink-dim); border: 1px solid var(--line-strong); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .6, 1); }
.pl-badge.on { opacity: 1; transform: scale(1); }
.pl-badge.st-answered, .pl-badge.st-solved { background: var(--good); color: #08140c; border-color: transparent; }
.pl-badge.st-buzzed { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pl-badge.st-locked, .pl-badge.st-offline { background: var(--bad); color: #1a0705; border-color: transparent; }
.pl-badge.st-frozen { background: #bfe6ff; color: #0b2233; border-color: transparent; }
.pl-badge.st-drawing { background: var(--accent-2); color: #111; border-color: transparent; }
.pl-badge.st-typing .ico { animation: bg-twinkle 1s infinite; }
.pl-gain { position: absolute; right: .3rem; top: -.2rem; font-weight: 800; font-size: .95rem; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .6, 1); font-variant-numeric: tabular-nums; }
.pl-gain.show { opacity: 1; transform: none; }
.pl-gain.pos { color: var(--good); } .pl-gain.neg { color: var(--bad); }
.pl-tile { flex-direction: column; text-align: center; gap: .2rem; padding: .6rem .4rem; }
.pl-tile .pl-meta { justify-items: center; }
.pl-tile .pl-badge { left: auto; right: 18%; }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; }
.lobby-grid .pl-tile { animation: pop-in .5s cubic-bezier(.3, 1.6, .6, 1) both; }
.lobby-grid.big { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.lobby-grid.big .pl-name { font-size: 1.35rem; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6) translateY(20px); } }
.mini-av { display: inline-block; vertical-align: middle; margin-right: -6px; }
.name-chip { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; margin-right: .4rem; white-space: nowrap; }
.name-chip svg { margin-top: -4px; }

/* Rangliste */
.standings { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.standing { display: grid; grid-template-columns: 2.2rem 48px minmax(6rem, 1fr) 2fr auto; gap: .7rem; align-items: center; padding: .4rem .8rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s both; }
.standing:nth-child(2) { animation-delay: .06s; } .standing:nth-child(3) { animation-delay: .12s; } .standing:nth-child(4) { animation-delay: .18s; }
.standing:nth-child(5) { animation-delay: .24s; } .standing:nth-child(6) { animation-delay: .3s; } .standing:nth-child(7) { animation-delay: .36s; } .standing:nth-child(8) { animation-delay: .42s; }
.standing.me { border-color: var(--accent); }
.standing-rank { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; text-align: center; color: var(--ink-dim); }
.standing:first-child .standing-rank { color: var(--accent); }
.standing-name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standing-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.standing-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: inherit; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both .2s; transform-origin: left; }
.standing-score { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; display: grid; line-height: 1.1; }
.standing-score small { font-size: .78rem; font-weight: 700; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Siegertreppchen */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.4rem, 2vw, 1.4rem); margin: 1.5rem 0 1rem; }
.podium-col { display: flex; flex-direction: column; align-items: center; width: clamp(96px, 26vw, 220px); animation: rise .7s both; }
.podium-col.p1 { animation-delay: .5s; } .podium-col.p2 { animation-delay: .2s; } .podium-col.p3 { animation-delay: 0s; }
.podium-name { font-weight: 800; font-size: 1.1rem; margin-top: .2rem; text-align: center; }
.podium-score { color: var(--ink-dim); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: .4rem; }
.podium-block { width: 100%; border-radius: 14px 14px 4px 4px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); display: grid; place-items: center; }
.podium-block span { font-family: var(--f-display); font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 600; color: var(--ink-dim); }
.p1 .podium-block { height: clamp(110px, 22vh, 200px); border-color: var(--accent); }
.p1 .podium-block span { color: var(--accent); }
.p2 .podium-block { height: clamp(80px, 15vh, 140px); }
.p3 .podium-block { height: clamp(56px, 10vh, 100px); }
.podium-rest { max-width: 420px; margin: 0 auto; padding-left: 1.6rem; color: var(--ink-dim); }
.podium-rest li { display: flex; justify-content: space-between; padding: .2rem 0; }

/* ---------- Beitreten & Profil ---------------------------------------------- */
.join { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1rem; text-align: center; }
.join-mark { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line-strong); margin-bottom: 1.2rem; background: var(--surface); }
.join-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.6rem, 11vw, 4.4rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 .5rem; font-variation-settings: 'opsz' 144, 'SOFT' 50; animation: title-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.join-sub { color: var(--ink-dim); margin: 0 0 1.8rem; }
.join-form { width: min(380px, 100%); text-align: left; }
@keyframes title-in { from { opacity: 0; transform: translateY(18px); letter-spacing: .04em; } }
.profile { max-width: 520px; margin: 0 auto; padding: 1.2rem 1rem 3rem; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-dim); text-decoration: none; border: 0; background: none; padding: .4rem 0; font-weight: 650; margin-bottom: .6rem; }
.back-link:hover { color: var(--ink); }

/* Avatar-Baukasten */
.ab { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1rem; margin-bottom: 1.4rem; }
.ab-preview { border: 0; background: radial-gradient(circle at 50% 60%, var(--line), transparent 70%); border-radius: 20px; padding: .4rem; }
.ab-controls { display: grid; gap: .6rem; }
.ab-row { display: grid; grid-template-columns: 3.4rem 40px 1fr 40px; gap: .4rem; align-items: center; }
.ab-label { font-weight: 650; color: var(--ink-dim); font-size: .9rem; }
.ab-val { text-align: center; font-weight: 700; }
.ab-colors { grid-template-columns: 3.4rem 1fr; }
.swatches { display: flex; flex-wrap: wrap; gap: .35rem; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; background: var(--c); padding: 0; position: relative; }
.swatch[aria-checked="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg-1) inset; }
.swatch-pick { background: conic-gradient(#ff6b6b, #e8c547, #6fcf7a, #47c6c0, #5aa9f0, #8b7cf6, #e85d75, #ff6b6b); cursor: pointer; overflow: hidden; }
.swatch-custom { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ab-controls .btn { justify-self: start; }
@media (max-width: 460px) { .ab { grid-template-columns: 1fr; justify-items: center; } .ab-controls { width: 100%; } }

/* ---------- Spieleransicht -------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: .8rem; padding: .5rem max(1rem, env(safe-area-inset-left)) .5rem 1rem;
  background: color-mix(in srgb, var(--bg-0) 72%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.tb-me { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.tb-name { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-round { color: var(--ink-dim); font-size: .85rem; font-weight: 650; white-space: nowrap; }
.tb-score { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--accent); min-width: 3ch; text-align: right; }
.tb-score.bump { animation: bump .5s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes bump { 40% { transform: scale(1.3); } }
body.offline .topbar::after { content: 'Verbindung wird wiederhergestellt …'; position: absolute; left: 0; right: 0; top: 100%; background: var(--bad); color: #1a0705; text-align: center; font-size: .82rem; font-weight: 700; padding: .2rem; }
.strip { display: flex; gap: .2rem; overflow-x: auto; padding: .4rem .8rem; scrollbar-width: none; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg-0) 45%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.strip .pl { flex-direction: column; gap: 0; padding: .1rem .25rem; }
.strip .pl-meta { justify-items: center; }
.strip .pl-name { font-size: .72rem; font-weight: 650; max-width: 4.6rem; }
.strip .pl-badge { width: 18px; height: 18px; left: auto; right: -2px; top: 0; }
.strip .pl-badge .ico { width: 11px; height: 11px; }
.pmain { max-width: 640px; margin: 0 auto; padding: 1rem 1rem calc(2rem + env(safe-area-inset-bottom)); }
body:has(.votebar:not([hidden])) .pmain { padding-bottom: 8rem; }

.lobby { text-align: center; padding-top: 1rem; }
.lobby-me { display: flex; justify-content: center; }
.lobby-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.1; margin: .4rem 0; }
.lobby-actions { margin: 1rem 0; }
.lobby .lobby-grid { text-align: left; }
.lobby .sub-title { justify-content: center; }

.intro { text-align: center; padding: clamp(2rem, 10vh, 6rem) 0 2rem; }
.intro-kicker { color: var(--ink-dim); font-weight: 650; margin: 0 0 .6rem; font-size: .95rem; }
.intro-title { font-family: var(--f-display); font-weight: 650; font-size: clamp(2.6rem, 11vw, 5rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 .5rem; font-variation-settings: 'opsz' 144, 'SOFT' 30; animation: title-in .9s cubic-bezier(.2, .8, .2, 1) both; text-wrap: balance; }
.intro-cat { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 5vw, 2rem); color: var(--accent); margin: 0 0 1rem; animation: rise .7s both .25s; }
.intro-desc { color: var(--ink-dim); max-width: 44ch; margin: 0 auto 1rem; font-size: 1.05rem; animation: rise .7s both .4s; text-wrap: pretty; }
.intro.is-final .intro-title { color: var(--accent); }
.scores, .final-screen { text-align: center; }
.scores .standings { text-align: left; }

/* Pause */
.pause-veil { position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: .4rem; text-align: center; background: color-mix(in srgb, var(--bg-0) 80%, transparent); backdrop-filter: blur(6px); color: var(--ink); }
.pause-veil b { font-family: var(--f-display); font-size: 2rem; font-weight: 600; }
.pause-veil span { color: var(--ink-dim); }

/* ---------- Bühne (Fragen) -------------------------------------------------- */
.stage { animation: stage-in .35s ease both; }
@keyframes stage-in { from { opacity: 0; transform: translateY(8px); } }
.q-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; min-height: 56px; }
.q-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.q-cat { font-family: var(--f-display); font-style: italic; color: var(--accent); font-size: 1.05rem; }
.q-num { color: var(--ink-dim); font-size: .88rem; font-weight: 650; }
.q-prompt { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.4rem, 5.4vw, 2.1rem); line-height: 1.2; letter-spacing: -.01em; margin: .2rem 0 1.1rem; font-variation-settings: 'opsz' 60; text-wrap: balance; }
.q-prompt.small { font-size: clamp(1.1rem, 4vw, 1.4rem); margin-bottom: .7rem; }
.q-statement { font-size: clamp(1.5rem, 6vw, 2.3rem); text-align: center; margin: 1rem 0 1.4rem; }
.q-count { color: var(--ink-dim); font-weight: 600; margin: 1rem 0 .4rem; text-align: center; }
.q-count b { color: var(--ink); font-size: 1.1em; }
.q-info { display: flex; gap: .6rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .75rem .9rem; color: var(--ink-dim); margin: 1rem 0; }
.q-info .ico { color: var(--accent); margin-top: 2px; }
.big-answer { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.05; color: var(--accent); margin: .3rem 0 1rem; text-wrap: balance; animation: title-in .7s cubic-bezier(.2, .8, .2, 1) both; }
.big-answer small { font-size: .45em; color: var(--ink-dim); margin-left: .35rem; font-style: italic; }
.big-answer.small { font-size: 1.6rem; }
.host-answer { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px dashed var(--accent); border-radius: 12px; padding: .6rem .9rem; margin: .8rem 0; }
.host-answer small { display: block; color: var(--ink-dim); margin-top: .2rem; }
.answer-form { display: flex; gap: .6rem; margin: 1rem 0; flex-wrap: wrap; }
.answer-form > .input, .answer-form > .input-unit { flex: 1 1 220px; }
.waiting { text-align: center; padding: 2rem 1rem; color: var(--ink-dim); font-weight: 650; }

/* Timer */
.timer { position: relative; flex: none; display: grid; place-items: center; }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-track { fill: none; stroke: var(--line); stroke-width: 5; }
.timer-bar { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke .3s; }
.timer-num { position: relative; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.timer.urgent .timer-bar { stroke: var(--bad); }
.timer.urgent .timer-num { color: var(--bad); animation: bump .9s infinite; }
.timer.paused .timer-num { opacity: .5; }
.timer.idle { visibility: hidden; }

/* Ergebnis-Banner */
.result { display: flex; align-items: center; gap: .8rem; border-radius: 18px; padding: .5rem 1rem .5rem .5rem; margin: 0 0 1rem; border: 1px solid var(--line); background: var(--surface); animation: rise .5s cubic-bezier(.3, 1.6, .6, 1) both; }
.result.ok { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--surface)); }
.result.bad { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.result-txt { display: grid; }
.result-title { font-family: var(--f-display); font-weight: 650; font-size: 1.6rem; line-height: 1.1; }
.result-pts { font-weight: 750; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.result.ok .result-pts { color: var(--good); }

/* Antwortoptionen */
.opts { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.opt { position: relative; width: 100%; display: flex; align-items: center; gap: .8rem; text-align: left; min-height: 62px; padding: .6rem .9rem .6rem .6rem; border-radius: 16px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 650; font-size: 1.05rem; line-height: 1.25;
  transition: border-color .15s, background-color .2s, transform .12s, opacity .3s; backdrop-filter: blur(10px); }
.opt:not(:disabled):hover { border-color: var(--accent); }
.opt:not(:disabled):active { transform: scale(.98); }
.opt:disabled { cursor: default; }
.opt-key { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; border: 1.5px solid var(--line-strong); color: var(--ink-dim); }
.opt-txt { flex: 1; }
.opt-mark { flex: none; }
.opt-who { display: flex; margin-left: auto; padding-left: .4rem; }
.opt-tag { font-size: .78rem; font-weight: 700; color: var(--ink-dim); border: 1px solid var(--line-strong); border-radius: 99px; padding: .1rem .5rem; margin-left: auto; white-space: nowrap; }
.opt.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.opt.mine .opt-key { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt.correct { border-color: var(--good); background: color-mix(in srgb, var(--good) 22%, var(--surface)); animation: correct-pop .6s cubic-bezier(.3, 1.6, .6, 1); }
.opt.correct .opt-key { background: var(--good); color: #08140c; border-color: var(--good); }
.opt.correct .opt-mark { color: var(--good); }
.opt.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--surface)); }
.opt.wrong .opt-mark { color: var(--bad); }
.opt.is-answer { border-style: dashed; border-color: var(--good); }
.phase-reveal .opt:not(.correct):not(.wrong) { opacity: .55; }
.hidden-opt { opacity: .18 !important; text-decoration: line-through; }
@keyframes correct-pop { 40% { transform: scale(1.03); } }

/* Fakt oder Fake: Aussagen statt kurzer Antworten */
.stage-absurd .opt { min-height: 84px; font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
.stage-absurd .opt-key { align-self: flex-start; margin-top: .1rem; }
.role-screen.stage-absurd .opts { grid-template-columns: 1fr; }
.role-screen.stage-absurd .opt { min-height: 96px; font-size: clamp(1.25rem, 1.8vw, 1.8rem); }

/* Wahr / Falsch */
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.tf { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 132px; border-radius: 22px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 800; font-size: 1.25rem; position: relative; transition: all .15s; }
.tf-true .ico { color: var(--good); } .tf-false .ico { color: var(--bad); }
.tf:not(:disabled):hover { border-color: var(--accent); }
.tf.mine { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.tf.correct { border-color: var(--good); background: color-mix(in srgb, var(--good) 22%, var(--surface)); }
.tf.wrong { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--surface)); }
.tf.is-answer { border-style: dashed; border-color: var(--good); }
.phase-reveal .tf:not(.correct) { opacity: .5; }
.tf .opt-who { position: absolute; bottom: .5rem; }

/* Schätzen */
.scale { position: relative; height: 92px; margin: 1.2rem .8rem 1.4rem; }
.scale-line { position: absolute; left: 0; right: 0; top: 46px; height: 3px; background: var(--line-strong); border-radius: 2px; }
.scale-mark { position: absolute; top: 4px; transform: translateX(-50%); display: grid; justify-items: center; animation: rise .6s both; }
.scale-mark::after { content: ''; width: 2px; height: 14px; background: var(--ink-dim); }
.scale-truth { position: absolute; top: 36px; transform: translateX(-50%); display: grid; justify-items: center; }
.scale-truth::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-0); box-shadow: 0 0 0 2px var(--accent); }
.scale-truth span { margin-top: .3rem; font-weight: 800; white-space: nowrap; color: var(--accent); }
.ranking { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .35rem; }
.ranking li { display: grid; grid-template-columns: 2rem 30px 1fr auto auto; gap: .6rem; align-items: center; padding: .35rem .6rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.ranking li.me { border-color: var(--accent); }
.ranking .rk { font-weight: 800; color: var(--ink-dim); }
.ranking .nm { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking .val { font-variant-numeric: tabular-nums; font-weight: 700; }
.ranking .diff { grid-column: 3 / 5; grid-row: 2; font-size: .82rem; color: var(--ink-dim); }
.ranking b { color: var(--good); font-variant-numeric: tabular-nums; }

/* Sortieren */
.ord-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.ord-item, .ord-list.static li { display: flex; align-items: center; gap: .6rem; min-height: 58px; padding: .5rem .6rem; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 650; touch-action: none; }
.ord-item.dragging { z-index: 2; border-color: var(--accent); box-shadow: var(--shade); position: relative; }
.ord-item.drop-hint { border-color: var(--accent); border-style: dashed; }
.ord-grip { color: var(--ink-dim); cursor: grab; padding: .3rem; }
.ord-txt { flex: 1; cursor: grab; }
.ord-btns { display: flex; gap: .3rem; }
.ord-btns .icon-btn { width: 36px; height: 36px; }
.ord-n { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--line); }
.ord-val { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.ord-list.solution li { animation: rise .5s both; }
.ord-list.solution li:nth-child(2) { animation-delay: .1s; } .ord-list.solution li:nth-child(3) { animation-delay: .2s; } .ord-list.solution li:nth-child(4) { animation-delay: .3s; } .ord-list.solution li:nth-child(5) { animation-delay: .4s; } .ord-list.solution li:nth-child(6) { animation-delay: .5s; }

/* Listen in Host- und Ergebnisansichten */
.host-list, .judge-list, .throws, .final-res { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .4rem; }
.host-list li, .judge-list li, .throws li, .final-res li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .45rem .7rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.host-list li > span, .judge-list li > span { flex: 1; min-width: 6rem; }
.host-list b { font-variant-numeric: tabular-nums; }
.judge-list small { color: var(--ink-dim); }
.final-res li.ok { border-color: var(--good); } .final-res li.bad { border-color: var(--bad); }
.final-res li > span { flex: 1; }
.final-res b { font-variant-numeric: tabular-nums; }
.final-res li.ok b { color: var(--good); } .final-res li.bad b { color: var(--bad); }

/* Geschenke-Laden */
.shop { display: grid; gap: .6rem; }
.shop-item { border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); overflow: hidden; transition: border-color .15s; }
.shop-item.on { border-color: var(--accent); }
.shop-item.poor { opacity: .5; }
.shop-toggle { width: 100%; display: flex; gap: .8rem; align-items: center; padding: .7rem .9rem; border: 0; background: transparent; text-align: left; }
.shop-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--line); color: var(--accent); flex: none; }
.shop-item.on .shop-ico { background: var(--accent); color: var(--accent-ink); }
.shop-txt { flex: 1; display: grid; }
.shop-txt small { color: var(--ink-dim); }
.shop-cost { font-weight: 800; font-variant-numeric: tabular-nums; }
.shop-targets { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .9rem .8rem; }
.target { display: flex; align-items: center; gap: .3rem; border: 1px solid var(--line-strong); background: transparent; border-radius: 99px; padding: .15rem .7rem .15rem .2rem; font-weight: 650; }
.target.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.shop-foot { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; margin-top: .6rem; background: linear-gradient(transparent, var(--bg-0) 30%); }
.shop-sum { display: grid; font-weight: 750; }
.shop-sum small { color: var(--ink-dim); font-weight: 600; }
.shop-legend { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .6rem; }
.shop-legend li { display: grid; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.shop-legend span { color: var(--accent); font-weight: 750; }
.shop-legend small { color: var(--ink-dim); }
.fx-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }
.fx { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border-radius: 99px; font-weight: 700; font-size: .85rem; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); }
.fx-cold { background: rgba(191, 230, 255, .2); }
.throws li span:last-child { margin-left: auto; color: var(--ink-dim); font-weight: 650; }
.ice { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: .4rem; text-align: center; color: #0b2233;
  background: radial-gradient(circle, rgba(225, 244, 255, .82), rgba(170, 215, 245, .9)); backdrop-filter: blur(8px); animation: freeze .4s ease both; }
.ice b { font-family: var(--f-display); font-size: 2.4rem; }
@keyframes freeze { from { opacity: 0; backdrop-filter: blur(0); } }

/* Buzzer */
.buzz-zone { display: grid; justify-items: center; gap: .8rem; margin-top: .6rem; }
.buzzer { position: relative; width: min(68vw, 260px); aspect-ratio: 1; border-radius: 50%; border: 0; padding: 0; background: radial-gradient(circle at 50% 70%, #8f1d26, #4a0c11); box-shadow: 0 14px 0 #2a060a, 0 24px 40px -10px rgba(0, 0, 0, .6); transition: transform .08s, box-shadow .08s; touch-action: manipulation; }
.buzzer-cap { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #ff8a8f, #e3222f 45%, #a3121c); box-shadow: inset 0 -10px 20px rgba(0, 0, 0, .3), inset 0 8px 16px rgba(255, 255, 255, .25); }
.buzzer-label { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 2.1rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); padding: 0 1rem; }
.buzzer:not(:disabled):active, .buzzer.pressed { transform: translateY(10px); box-shadow: 0 4px 0 #2a060a, 0 10px 20px -10px rgba(0, 0, 0, .6); }
.buzzer.off { filter: grayscale(.85) brightness(.75); }
.buzzer:not(.off) { animation: buzz-glow 1.6s ease-in-out infinite; }
@keyframes buzz-glow { 50% { box-shadow: 0 14px 0 #2a060a, 0 24px 60px -6px rgba(227, 34, 47, .6); } }
.buzz-wait { display: grid; gap: .3rem; text-align: center; font-size: 1.2rem; }
.buzz-wait span { color: var(--ink-dim); font-size: 1rem; }
.buzz-free { display: grid; justify-items: center; gap: .3rem; padding: 1.4rem; color: var(--accent); }
.buzz-free b { font-family: var(--f-display); font-size: 1.8rem; color: var(--ink); }
.buzz-free.arming { opacity: .6; }
.buzz-holder { display: grid; justify-items: center; gap: .1rem; animation: pop-in .5s cubic-bezier(.3, 1.6, .6, 1); }
.buzz-holder b { font-family: var(--f-display); font-size: 1.8rem; font-weight: 650; }
.buzz-holder span { color: var(--ink-dim); }
.judge-box { width: 100%; text-align: center; }
.judge-btns { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.suggest { font-weight: 700; }
.s-exact { color: var(--good); } .s-close { color: var(--accent-2); } .s-wrong { color: var(--bad); }

/* Montagsmaler */
.draw-layout { display: grid; gap: .8rem; }
.draw-top { min-height: 2.4rem; }
.draw-term { margin: 0 0 .5rem; font-weight: 650; display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.draw-term b { font-family: var(--f-display); font-size: 1.6rem; color: var(--accent); }
.draw-term .who { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink-dim); }
.mask { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.mask i { width: 14px; height: 3px; background: var(--ink); border-radius: 2px; margin-top: 14px; }
.mask i.gap { background: transparent; }
.board { display: grid; gap: .5rem; }
.board-canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 16px; background: #fbfaf7; box-shadow: var(--shade); touch-action: none; }
.board.is-drawer .board-canvas { cursor: crosshair; }
.board.is-fill .board-canvas { cursor: cell; }
/* Montagsmaler: auf großen Bildschirmen die ganze Breite nutzen, begrenzt durch die Fensterhöhe */
@media (min-width: 860px) {
  .pmain:has(.draw-layout) { max-width: min(1500px, 96vw); }
  .draw-layout .board { max-width: max(480px, calc((100dvh - 250px) * 4 / 3)); width: 100%; margin: 0 auto; }
  .draw-layout:not(.drawer) .board { max-width: max(480px, calc((100dvh - 290px) * 4 / 3)); }
  .draw-layout .chat { max-height: max(220px, calc(100dvh - 330px)); }
}
.board-tools { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.board-pens, .board-sizes, .board-actions { display: flex; gap: .3rem; align-items: center; }
.pen { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--pen); }
.pen.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg-0) inset; }
.size { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.size i { display: block; border-radius: 50%; background: var(--ink); }
.size.on, .tool.on { border-color: var(--accent); background: var(--line); }
.tool { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.side-title { font-size: .95rem; font-weight: 750; margin: 0 0 .4rem; }
.chat { list-style: none; padding: .4rem; margin: 0 0 .6rem; max-height: 220px; overflow-y: auto; display: grid; gap: .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; align-content: start; }
.chat li { display: flex; gap: .4rem; align-items: center; padding: .25rem .4rem; border-radius: 8px; font-size: .95rem; }
.chat li > span { flex: 1; overflow-wrap: anywhere; }
.chat li.sys { color: var(--good); font-weight: 650; }
.chat li.close { background: color-mix(in srgb, var(--accent-2) 16%, transparent); }
.chat li.pending { outline: 1px dashed var(--accent-2); }
.chat li.empty { color: var(--ink-dim); justify-content: center; }
.chat-form { display: flex; gap: .4rem; }
.solved-note { font-weight: 700; color: var(--good); text-align: center; padding: .6rem; }
@media (min-width: 860px) { .draw-layout { grid-template-columns: minmax(0, 1fr) 300px; } .chat { max-height: 420px; } }

/* Pixel-Reveal */
.pix-frame { border-radius: 18px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shade); }
.pix-img { width: 100%; max-height: 52vh; object-fit: contain; image-rendering: pixelated; transition: filter .4s; }
.role-host .q-body:has(.pix-frame) { display: flex; flex-direction: column; }
.role-host .pix-extra { order: -1; }
.role-host .pix-img { max-height: 34vh; }
.phase-reveal .pix-img { image-rendering: auto; animation: unblur .9s ease both; }
@keyframes unblur { from { filter: blur(12px) saturate(.5); } }
.pix-dots { display: flex; gap: 6px; align-items: center; justify-content: center; margin: .7rem 0; }
.pix-dots i { width: 26px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: background .3s; }
.pix-dots i.on { background: var(--accent); }
.pix-dots span { margin-left: .6rem; font-weight: 750; color: var(--accent); font-variant-numeric: tabular-nums; }
.solved-list { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; margin: .6rem 0; }
.solved-list small { color: var(--ink-dim); margin-right: .6rem; }

/* Karte */
.map-layout { display: grid; gap: .8rem; }
.map-photo { margin: 0; border-radius: 16px; overflow: hidden; background: var(--bg-2); box-shadow: var(--shade); cursor: zoom-in; max-height: 34vh; }
.map-photo img { width: 100%; height: 100%; max-height: 34vh; object-fit: contain; }
.map-photo.zoomed { position: fixed; inset: 0; z-index: 50; max-height: none; border-radius: 0; background: rgba(0, 0, 0, .9); cursor: zoom-out; display: grid; place-items: center; }
.map-photo.zoomed img { max-height: 100vh; }
.map-box { height: 46vh; min-height: 280px; border-radius: 16px; overflow: hidden; box-shadow: var(--shade); background: var(--bg-2); z-index: 0; }
.map-error { padding: 2rem 1rem; text-align: center; color: var(--ink-dim); }
.map-av { background: none; border: 0; }
.map-av-in { display: grid; justify-items: center; }
.map-av-in span { background: var(--bg-0); color: var(--ink); font-weight: 750; font-size: .72rem; padding: 0 .4rem; border-radius: 6px; white-space: nowrap; margin-top: -4px; }
.map-target { background: none; border: 0; }
.map-target-in { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--accent), 0 4px 12px rgba(0, 0, 0, .5); animation: bump 1.4s infinite; }
.map-pin { background: none; border: 0; }
.leaflet-container { font-family: var(--f-body); }
.map-tip { font-weight: 800; }
@media (min-width: 900px) {
  .map-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-areas: 'photo map' 'side map'; }
  .map-photo { grid-area: photo; max-height: none; } .map-photo img { max-height: 40vh; }
  .map-box { grid-area: map; height: 62vh; }
  .map-side { grid-area: side; }
  .map-layout.is-reveal { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: 'map photo' 'map side'; }
}

/* Bluff & Finale */
.bluff-opts .opt { min-height: 58px; padding-left: 1rem; }
.bluff-res { list-style: none; padding: 0; display: grid; gap: .5rem; }
.bluff-res li { padding: .7rem .9rem; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; animation: rise .5s both; }
.bluff-res li.truth { border-color: var(--good); background: color-mix(in srgb, var(--good) 16%, var(--surface)); }
.bluff-txt { display: grid; }
.bluff-txt b { font-size: 1.1rem; }
.bluff-txt small { color: var(--ink-dim); }
.bluff-txt .ico { color: var(--good); }
.bluff-voters { display: flex; padding-right: 6px; }
.final-kicker { text-align: center; color: var(--ink-dim); font-weight: 650; margin: 0; }
.final-cat { text-align: center; font-size: clamp(2.2rem, 9vw, 3.6rem); color: var(--accent); }
.is-final .lead { text-align: center; margin-left: auto; margin-right: auto; }
.bet-form { display: grid; gap: .8rem; justify-items: center; margin: 1rem 0; }
.bet-num { font-family: var(--f-display); font-size: 3.6rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.bet-quick { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Großbild -------------------------------------------------------- */
.sc { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.sc-top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2.4rem 0; color: var(--ink-dim); font-weight: 650; font-size: 1.1rem; }
.sc-brand b { color: var(--ink); margin-left: .5rem; letter-spacing: .06em; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; padding: 1rem 2.4rem 2rem; }
.sc-lobby .sc-grid { grid-template-columns: 1fr; }
.sc-main { min-width: 0; }
.sc-rail { display: grid; align-content: start; gap: .3rem; }
.sc-rail .pl { padding: .45rem .6rem; background: color-mix(in srgb, var(--bg-1) 94%, transparent); border: 1px solid var(--line); border-radius: 18px; }
.sc-rail .pl-name { font-size: 1.15rem; }
.sc-rail .pl-score { font-size: 1.05rem; }
.sc-rail .pl-badge { width: 28px; height: 28px; top: .3rem; left: .5rem; }
.sc-rail .pl-gain { font-size: 1.3rem; right: .8rem; top: 50%; transform: translateY(-50%) scale(.6); }
.sc-rail .pl-gain.show { transform: translateY(-50%); }
.role-screen .q-prompt { font-size: clamp(2.2rem, 3.6vw, 4rem); line-height: 1.12; margin-bottom: 2rem; }
.role-screen .q-cat { font-size: 1.6rem; }
.role-screen .q-num { font-size: 1.15rem; }
.role-screen .opts { grid-template-columns: 1fr 1fr; gap: 1rem; }
.role-screen .opt { min-height: 110px; font-size: clamp(1.3rem, 1.9vw, 2rem); border-radius: 22px; padding: 1rem 1.2rem 1rem 1rem; }
.role-screen .opt-key { width: 58px; height: 58px; font-size: 1.6rem; border-radius: 16px; }
.role-screen .tf { min-height: 220px; font-size: 2.2rem; }
.role-screen .tf .ico { width: 64px; height: 64px; }
.role-screen .q-statement { font-size: clamp(2.4rem, 4vw, 4.4rem); }
.role-screen .q-count { font-size: 1.4rem; }
.role-screen .big-answer { font-size: clamp(3rem, 6vw, 6rem); }
.role-screen .result { display: none; }
.role-screen .ord-item, .role-screen .ord-list.static li { min-height: 76px; font-size: 1.5rem; }
.role-screen .bluff-res b, .role-screen .bluff-opts .opt { font-size: 1.5rem; }
.role-screen .pix-frame { max-width: 80vh; margin: 0 auto; }
.role-screen .ranking li { font-size: 1.25rem; }
.role-screen .map-box { height: 68vh; }
.role-screen .chat { max-height: 60vh; font-size: 1.15rem; }
.role-screen .draw-term b { font-size: 2.4rem; }
.role-screen .q-info { font-size: 1.3rem; }
.role-screen .scale { height: 110px; }
.sc-lobby-in { display: grid; grid-template-columns: minmax(300px, 0.9fr) 1.1fr; gap: 3rem; align-items: center; min-height: 72vh; }
.sc-join { display: grid; gap: 1.6rem; justify-items: start; }
.sc-qr { width: min(32vh, 320px); aspect-ratio: 1; background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--shade); }
.sc-qr svg { width: 100%; height: 100%; }
.sc-url { font-size: 1.5rem; font-weight: 700; margin: 0; }
.sc-code-label { color: var(--ink-dim); margin: 1rem 0 0; font-weight: 650; }
.sc-code { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 5.6rem); font-weight: 650; letter-spacing: .04em; line-height: 1; margin: .2rem 0 0; color: var(--accent); }
.sc-intro .intro-title { font-size: clamp(4rem, 9vw, 9rem); }
.sc-intro .intro-cat { font-size: clamp(2rem, 3.6vw, 3.6rem); }
.sc-intro .intro-desc { font-size: 1.6rem; max-width: 40ch; }
.sc-scores .standing { font-size: 1.4rem; padding: .6rem 1rem; grid-template-columns: 3rem 60px minmax(8rem, 1fr) 2fr auto; }
.sc .podium-name { font-size: 1.7rem; }
.sc .podium-score { font-size: 1.3rem; }
@media (max-width: 900px) {
  .sc-grid { grid-template-columns: 1fr; padding: 1rem; }
  .sc-rail { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .sc-lobby-in { grid-template-columns: 1fr; }
  .role-screen .opts { grid-template-columns: 1fr; }
}

/* ---------- Abstimmung (Spiel ohne Host) ------------------------------------ */
.votebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-0) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); animation: rise .35s both; }
.votebar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.votebar-hint { display: grid; font-weight: 650; color: var(--ink-dim); font-size: .92rem; }
.votebar-hint small { font-weight: 500; font-size: .78rem; }
.votebar .btn { min-width: 11rem; }
.sc-right { display: flex; align-items: center; gap: 1.2rem; }
.sc-vote { color: var(--accent); font-weight: 750; }

/* ---------- Ton ------------------------------------------------------------- */
.snd-wrap { position: relative; }
.snd-btn { width: 38px; height: 38px; }
.snd-btn svg { pointer-events: none; }
.snd-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 210px; padding: .7rem .9rem; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line-strong); box-shadow: var(--shade); display: grid; gap: .5rem; }
.snd-row { align-items: center; margin: 0; font-weight: 650; }
.sound-gate { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.2rem; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1.05rem; box-shadow: var(--shade); animation: bump 1.6s ease-in-out infinite; }

/* ---------- Bewegung reduzieren --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg-layer { transform: none !important; }
}

/* ---------- Serie, Aufholrunde, Kategorie-Wahl -------------------------------- */
.pl { position: relative; }
.pl-streak { position: absolute; right: .35rem; top: .25rem; display: inline-flex; align-items: center; gap: 1px; padding: 1px 6px 1px 3px; border-radius: 99px; font-size: .72rem; font-weight: 800; background: linear-gradient(135deg, #ffb238, #ff5a36); color: #2a0a00; box-shadow: 0 0 12px rgba(255, 120, 40, .55); animation: streak-pop .4s cubic-bezier(.3, 1.6, .6, 1); }
.pl-streak[hidden] { display: none; }
.strip .pl-streak { right: auto; left: -4px; top: -2px; font-size: .62rem; padding: 0 4px 0 2px; }
.pl-tile .pl-streak { right: 14%; top: auto; bottom: 34%; }
@keyframes streak-pop { from { transform: scale(.3); opacity: 0; } }
.result-streak { display: inline-flex; align-items: center; gap: .25rem; font-size: .85rem; font-weight: 750; color: #ffb238; }
.catchup { display: inline-grid; justify-items: center; gap: .4rem; margin: .4rem auto 1rem; padding: .8rem 1.2rem; border-radius: 18px; border: 1.5px solid color-mix(in srgb, #ff8a3a 60%, transparent); background: color-mix(in srgb, #ff8a3a 12%, var(--surface)); animation: rise .7s both .5s; }
.catchup-title { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-display); font-size: 1.25rem; color: #ffb238; }
.catchup > span { color: var(--ink-dim); font-size: .92rem; }
.catchup-row { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; }
.catchup-pl { display: inline-flex; align-items: center; gap: .35rem; }
.catchup-pl i { font-style: normal; font-weight: 800; color: #ffb238; }
.sc-intro .catchup { font-size: 1.3rem; padding: 1.1rem 1.8rem; }
.sc-intro .catchup-title { font-size: 1.9rem; }
.pick { text-align: center; padding: clamp(1rem, 6vh, 4rem) 0 2rem; }
.pick-who { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; color: var(--ink-dim); margin: 0 0 1.2rem; font-size: 1.05rem; }
.pick-who b { color: var(--ink); }
.pick-opts { display: grid; gap: .7rem; max-width: 560px; margin: 0 auto 1rem; }
.pick-opt { padding: 1.1rem 1.2rem; border-radius: 18px; border: 1.5px solid var(--line-strong); background: var(--surface); font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; transition: transform .15s, border-color .15s, background .15s; }
.pick.can .pick-opt:not(:disabled):hover { border-color: var(--accent); transform: translateY(-2px); }
.pick-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.pick:not(.can) .pick-opt { opacity: .85; cursor: default; }
.sc-main .pick-opts { max-width: 1100px; grid-template-columns: repeat(3, 1fr); }
.sc-main .pick-opt { font-size: 2.1rem; padding: 2.4rem 1.2rem; }
.sc-main .pick-who { font-size: 1.6rem; }

/* ---------- Laden: Gruppen und fiese Effekte ---------------------------------- */
.shop-group { margin: .9rem 0 .2rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); font-weight: 750; }
.shop-item.kind-attack .shop-ico { color: var(--bad); }
.shop-item.kind-attack.on { border-color: var(--bad); }
.shop-item.kind-attack.on .shop-ico { background: var(--bad); color: #1a0705; }
.shop-legend b { display: inline-flex; align-items: center; gap: .35rem; }
.target { display: inline-flex; align-items: center; gap: .3rem; }
.fx-bad { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--ink); }
.fx-bomb { animation: bomb-pulse 1s ease-in-out infinite; }
@keyframes bomb-pulse { 50% { background: color-mix(in srgb, var(--bad) 45%, transparent); } }
.fx-note { margin: 0 0 .5rem; font-weight: 700; color: var(--bad); }
.opts.inked .opt-txt { filter: blur(9px); user-select: none; }
.opts.inked .opt { position: relative; overflow: hidden; }
.opts.inked .opt::after { content: ''; position: absolute; inset: -20%; background: radial-gradient(circle at 22% 40%, #0b0b12 0 16%, transparent 17%), radial-gradient(circle at 58% 62%, #0b0b12 0 22%, transparent 23%), radial-gradient(circle at 82% 30%, #0b0b12 0 13%, transparent 14%), radial-gradient(circle at 40% 85%, #0b0b12 0 10%, transparent 11%); opacity: .82; pointer-events: none; animation: ink-in .35s ease-out; }
@keyframes ink-in { from { transform: scale(.2); opacity: 0; } }
.opts.whirl { display: flex; flex-direction: column; }
.opts.whirl > li { transition: transform .3s; animation: whirl-shake 1.6s ease-in-out infinite; }
@keyframes whirl-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-1.2deg) translateX(-4px); } 75% { transform: rotate(1.2deg) translateX(4px); } }
.opts.boomed { opacity: .45; filter: grayscale(1); }
.throws .throw-item { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; color: var(--accent); }
.throws .throw-blocked { opacity: .7; }
.throws .throw-reflected .throw-item { color: var(--bad); }
.throws .fill { flex: 1; margin: 0 !important; color: var(--ink) !important; }

/* ---------- Höher oder tiefer ---------------------------------------------------- */
.hl-shown { display: grid; justify-items: center; margin: .2rem 0 1rem; }
.hl-shown small { color: var(--ink-dim); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; font-size: .75rem; }
.hl-shown b { font-family: var(--f-display); font-size: clamp(2.4rem, 10vw, 4.2rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hl-shown.is-old b { font-size: 1.5rem; color: var(--ink-dim); text-decoration: line-through; }
.hl-up .ico { color: var(--good); } .hl-down .ico { color: var(--accent-2); }
.chain-me { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .3rem; margin: 1rem 0 0; color: var(--ink-dim); font-weight: 650; }
.chain-me.hot { color: #ffb238; }
.chain-row { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.chain { display: inline-flex; align-items: center; gap: .3rem; }
.chain b { display: inline-flex; align-items: center; color: #ffb238; }
.role-screen .hl-shown b { font-size: clamp(4rem, 9vw, 8rem); }
.role-screen .hl-shown.is-old b { font-size: 2.2rem; }

/* ---------- Wer bin ich? ---------------------------------------------------------- */
.clues { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.clue { display: flex; gap: .7rem; align-items: baseline; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 1.08rem; text-wrap: pretty; }
.clue.new { animation: clue-in .5s cubic-bezier(.2, .9, .3, 1.2); border-color: var(--accent); }
.clue.later { opacity: .45; border-style: dashed; }
.clue-n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: var(--line); color: var(--ink-dim); }
.clue.new .clue-n { background: var(--accent); color: var(--accent-ink); }
@keyframes clue-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.role-screen .clue { font-size: 1.9rem; padding: 1.1rem 1.4rem; }
.role-screen .clue-n { width: 2.6rem; height: 2.6rem; font-size: 1.2rem; }

/* ---------- Reaktionen ------------------------------------------------------------ */
.react { position: fixed; left: .7rem; bottom: calc(.7rem + env(safe-area-inset-bottom)); z-index: 25; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: .4rem; }
body:has(.votebar:not([hidden])) .react { bottom: calc(5.4rem + env(safe-area-inset-bottom)); }
.react[hidden] { display: none; }
.react-toggle { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shade); }
.react.open .react-toggle { border-color: var(--accent); color: var(--accent); }
.react-tray { display: none; flex-direction: column; gap: .3rem; padding: .35rem; border-radius: 26px; background: var(--bg-2); border: 1px solid var(--line-strong); box-shadow: var(--shade); }
.react.open .react-tray { display: flex; animation: rise .2s both; }
.react-tray.cool { opacity: .5; }
.react-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--accent); transition: transform .12s, background .12s; }
.react-btn:hover { background: var(--line); transform: scale(1.1); }
.react-btn:active { transform: scale(.88); }
.react-btn.r-heart, .react-float.r-heart .react-ico { color: #ff5d7a; }
.react-btn.r-boo, .react-float.r-boo .react-ico { color: var(--bad); }
.react-btn.r-ghost, .react-float.r-ghost .react-ico { color: #d9e6ff; }
.react-btn.r-laugh, .react-float.r-laugh .react-ico, .react-btn.r-wow, .react-float.r-wow .react-ico { color: #ffd34d; }
.react-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.react-float { position: absolute; bottom: -70px; display: grid; justify-items: center; gap: 2px; animation: react-up 3.1s ease-out forwards; }
.react-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--bg-1) 88%, transparent); border: 1px solid var(--line-strong); color: var(--accent); box-shadow: var(--shade); }
.react-float.big .react-ico { width: 96px; height: 96px; }
.react-who { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 750; padding: 1px 8px 1px 3px; border-radius: 99px; background: color-mix(in srgb, var(--bg-0) 80%, transparent); white-space: nowrap; }
.react-float.big .react-who { font-size: 1.05rem; }
@keyframes react-up { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 12% { transform: translate(0, -80px) scale(1.15); opacity: 1; } 22% { transform: translate(0, -130px) scale(1); } 80% { opacity: 1; } 100% { transform: translate(var(--drift), -78vh) scale(.9); opacity: 0; } }

/* ---------- Auszeichnungen und Statistik ------------------------------------------ */
.awards-title { margin-top: 2rem; text-align: center; }
.awards { list-style: none; padding: 0; margin: .6rem auto 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; max-width: 1100px; text-align: left; }
.award { position: relative; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); animation: rise .6s both; }
.award-ico { position: absolute; right: .6rem; top: .5rem; color: var(--accent); opacity: .9; }
.award-txt { display: grid; min-width: 0; }
.award-txt small { color: var(--accent); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: .7rem; }
.award-txt b { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.15; }
.award-txt span { color: var(--ink-dim); font-size: .88rem; }
.award.a-mean .award-ico, .award.a-unlucky .award-ico, .award.a-victim .award-ico { color: var(--bad); }
.stats { max-width: 900px; margin: 1rem auto; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stats summary { padding: .7rem 1rem; font-weight: 750; cursor: pointer; }
.stats-wrap { overflow-x: auto; padding: 0 .6rem .6rem; }
.stats-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.stats-table th, .stats-table td { padding: .4rem .6rem; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
.stats-table th:first-child { text-align: left; }
.stats-table thead th { border-top: 0; color: var(--ink-dim); font-size: .78rem; font-weight: 700; }
.sc-main .awards { margin-top: 1rem; }
.sc-main .stats { display: none; }
@media (prefers-reduced-motion: reduce) { .react-float, .opts.whirl > li, .fx-bomb, .clue.new, .award { animation-duration: .01s; } }

.chain-me small { flex-basis: 100%; text-align: center; font-weight: 500; }
body:has(.shop-foot) .react { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }

/* ---------- Reaktionen: am Spieler (Großbild) bzw. am rechten Rand (Handy) -------- */
.react-pop { position: fixed; z-index: 41; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 2px solid var(--accent); color: var(--accent); box-shadow: var(--shade); animation: react-pop 2.5s ease-out forwards; transform-origin: 30% 80%; }
.react-pop.r-heart { color: #ff5d7a; border-color: #ff5d7a; } .react-pop.r-boo { color: var(--bad); border-color: var(--bad); }
.react-pop.r-laugh, .react-pop.r-wow { color: #ffd34d; border-color: #ffd34d; } .react-pop.r-ghost { color: #d9e6ff; border-color: #d9e6ff; }
@keyframes react-pop { 0% { transform: scale(0) rotate(-20deg); opacity: 0; } 10% { transform: scale(1.25) rotate(6deg); opacity: 1; } 18% { transform: scale(1) rotate(0); } 80% { transform: scale(1) translateY(-6px); opacity: 1; } 100% { transform: scale(.7) translateY(-22px); opacity: 0; } }
.react-float { left: auto; bottom: 30%; animation: react-side 2.7s ease-out forwards; }
.react-float .react-ico { width: 38px; height: 38px; }
@keyframes react-side { 0% { transform: translateY(40px) scale(.4); opacity: 0; } 14% { transform: translateY(0) scale(1.1); opacity: 1; } 80% { opacity: .95; } 100% { transform: translate(var(--drift), -38vh) scale(.9); opacity: 0; } }

/* ---------- Zwischenstand mit Überholen, gestufte Siegerehrung ---------------------- */
.standings.live .standing { animation: none; position: relative; }
.standings.live .standing-bar i { animation: none; transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.standings.live .standing.up { z-index: 2; box-shadow: 0 0 0 2px var(--accent), var(--shade); }
.standing-score small.pos { color: var(--good); } .standing-score small.neg { color: var(--bad); }
.late-s { animation: rise .6s both 3.2s; }
.sc-grid.no-rail { grid-template-columns: 1fr; }
.podium.staged .podium-col { animation: podium-in .9s cubic-bezier(.2, 1.3, .4, 1) both; }
.podium.staged .podium-col.p3 { animation-delay: .6s; } .podium.staged .podium-col.p2 { animation-delay: 2.2s; } .podium.staged .podium-col.p1 { animation-delay: 4s; }
.podium.staged .podium-col:only-child, .podium.staged .podium-col.p1:first-child { animation-delay: 1.2s; }
@keyframes podium-in { from { opacity: 0; transform: translateY(60px) scale(.8); } }
.staged .late { animation: rise .7s both 4.6s; }
.award { animation-delay: calc(var(--i, 0) * .15s); }
.staged .award { animation-delay: calc(5.2s + var(--i, 0) * .25s); }
@media (prefers-reduced-motion: reduce) { .late, .late-s, .podium.staged .podium-col, .staged .award { animation-delay: 0s !important; } }

/* ---------- Wer bietet mehr? ---------------------------------------------------- */
.bid-top { display: grid; justify-items: center; gap: .1rem; margin: .2rem 0 .8rem; }
.bid-top small { color: var(--ink-dim); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.bid-top b { font-family: var(--f-display); font-size: clamp(3rem, 14vw, 5.5rem); line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); }
.bid-top b i { font-style: normal; font-size: .4em; color: var(--ink-dim); }
.bid-top.ok b { color: var(--good); } .bid-top.bad b { color: var(--bad); }
.bid-top span { display: inline-flex; align-items: center; gap: .4rem; font-weight: 750; }
.bid-chips { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-bottom: .6rem; }
.bid-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem .2rem .3rem; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); }
.bid-chip b { font-variant-numeric: tabular-nums; }
.bid-chip.out { opacity: .5; }
.bid-tools { display: grid; gap: .7rem; margin-top: .8rem; }
.bid-step { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.bid-step .icon-btn { width: 54px; height: 54px; border: 1px solid var(--line-strong); border-radius: 16px; }
.bid-num { font-family: var(--f-display); font-size: 3rem; min-width: 2.2ch; text-align: center; font-variant-numeric: tabular-nums; }
.bid-btns { display: grid; grid-template-columns: 1fr 2fr; gap: .6rem; }
.bid-meter { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 0 .8rem; }
.bid-meter i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s; }
.bid-entries { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.bid-entry { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 650; animation: rise .3s both; }
.bid-entry.ok { border-color: var(--good); } .bid-entry.ok > .ico { color: var(--good); }
.bid-entry.no { opacity: .55; text-decoration: line-through; } .bid-entry.no > .ico { color: var(--bad); }
.bid-entry.wait { border-style: dashed; }
.bid-host { display: flex; flex-wrap: wrap; gap: .4rem; }
.bid-list summary { cursor: pointer; font-weight: 700; } .bid-list p { color: var(--ink-dim); font-size: .9rem; }
.bid-missed { color: var(--ink-dim); font-size: .95rem; }
.role-screen .bid-top b { font-size: clamp(5rem, 12vw, 10rem); }
.role-screen .bid-entry { font-size: 1.5rem; padding: .5rem 1rem; }
.role-screen .bid-chip { font-size: 1.4rem; }

/* ---------- Bestenliste auf der Startseite ----------------------------------------- */
.join-lb { margin-top: 2rem; text-align: left; }
.lb .sub-title small { color: var(--ink-dim); font-weight: 600; margin-left: .4rem; font-size: .85rem; }
.lb-list { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .35rem; }
.lb-list li { display: grid; grid-template-columns: 1.8rem 1fr auto; gap: 0 .6rem; align-items: center; padding: .45rem .8rem; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.lb-rank { grid-row: span 2; font-family: var(--f-display); font-size: 1.4rem; color: var(--ink-dim); text-align: center; }
.lb-list li:first-child .lb-rank { color: var(--accent); }
.lb-name { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-wins { display: inline-flex; align-items: center; gap: .25rem; font-weight: 800; color: var(--accent); }
.lb-list small { grid-column: 2 / 4; color: var(--ink-dim); font-size: .8rem; }

.join-lb { width: 100%; max-width: 420px; margin-inline: auto; }

/* ---------- Erklär-Animation: Beispielrunde in Schleife ------------------------------- */
.explain.xp { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: clamp(.5rem, 1.6vh, 1.2rem); padding: clamp(.8rem, 2.5vh, 2rem) clamp(.8rem, 3vw, 3rem);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 14%, var(--bg-1)), var(--bg-0) 70%); color: var(--ink); animation: xp-open .5s ease-out both; overflow: hidden; font-size: clamp(13px, 1.9vmin, 26px); }
@keyframes xp-open { from { opacity: 0; transform: scale(1.04); } }
.xp-head { text-align: center; }
.xp-head small { color: var(--accent); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8em; }
.xp-head h1 { margin: 0; font-family: var(--f-display); font-size: 2.2em; line-height: 1.05; }
.xp-scene { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 1.2em; min-height: 0; }
.xp-screen, .xp-phone { position: relative; border: 2px solid var(--line-strong); background: color-mix(in srgb, var(--bg-0) 72%, transparent); min-height: 0; }
.xp-screen { border-radius: 1.2em; padding: 2.2em 1.4em 1.2em; }
.xp-phone { border-radius: 2em; padding: 2.4em 1em 1.2em; border-width: 3px; }
.xp-tag { position: absolute; left: 1.2em; top: .6em; font-size: .7em; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.xp-screen-in, .xp-phone-in { display: grid; align-content: center; gap: .7em; height: 100%; overflow: hidden; }
.xp-screen-in.in > *, .xp-phone-in.in > * { animation: xp-in .45s cubic-bezier(.2, .9, .3, 1.1) both; }
@keyframes xp-in { from { opacity: 0; transform: translateY(14px); } }
.xp-q { margin: 0; font-family: var(--f-display); font-size: 1.9em; line-height: 1.15; text-wrap: balance; }
.xp-screen .xp-ring { position: absolute; right: 1em; top: 1em; width: 3.4em; height: 3.4em; transform: rotate(-90deg); }
.xp-ring circle { fill: none; stroke-width: 6; } .xp-ring .tr { stroke: var(--line-strong); }
.xp-ring .bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 151; animation: xp-ring var(--d, 8s) linear both; }
@keyframes xp-ring { to { stroke-dashoffset: 151; } }
.xp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.xp-opts.long, .xp-phone .xp-opts { grid-template-columns: 1fr; }
.xp-opt { display: flex; align-items: center; gap: .6em; padding: .6em .7em; border-radius: .8em; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; transition: border-color .3s, background .3s, opacity .3s, transform .15s; }
.xp-opt b { flex: none; width: 1.8em; height: 1.8em; border-radius: .5em; display: grid; place-items: center; background: var(--line); color: var(--ink-dim); }
.xp-phone .xp-opt { font-size: .82em; }
.xp-opt.tapped { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); transform: scale(.97); }
.xp-opt.good { border-color: var(--good); background: color-mix(in srgb, var(--good) 26%, var(--surface)); }
.xp-opts:has(.good) .xp-opt:not(.good), .xp-two:has(.good) .xp-opt:not(.good) { opacity: .45; }
.xp-opt.own { opacity: .45; border-style: dashed; }
.xp-two { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.xp-two .xp-opt { flex-direction: column; gap: .2em; padding: 1em .4em; }
.xp-two .yes svg { color: var(--good); } .xp-two .no svg { color: var(--bad); }
.xp-num { margin: 0; display: grid; justify-items: start; font-family: var(--f-display); font-size: 3.4em; line-height: 1; font-variant-numeric: tabular-nums; }
.xp-num small { font-family: var(--f-body); font-size: .22em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: .3em; }
.xp-num b { color: var(--accent); } .xp-num b.good { color: var(--good); }
.xp-note { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4em; color: var(--ink-dim); font-weight: 700; font-size: 1.1em; }
.xp-note.no { color: var(--bad); }
.xp-who { display: inline-flex; align-items: center; gap: .25em; color: var(--ink); font-weight: 800; }
.xp-who svg { width: 1.7em; height: auto; }
.xp-verdict { margin: 0; font-family: var(--f-display); font-size: 2.6em; } .xp-verdict.ok { color: var(--good); } .xp-verdict.no { color: var(--bad); }
.xp-info { margin: 0; display: flex; gap: .5em; align-items: flex-start; color: var(--ink-dim); font-size: 1.15em; }
.xp-stage { margin: 0; color: var(--accent); font-weight: 800; }
.xp-chain { margin: 0; display: flex; align-items: center; justify-content: center; gap: .3em; color: #ffb238; font-weight: 750; }
.xp-btn { justify-self: stretch; text-align: center; padding: .7em 1em; border-radius: .9em; background: var(--accent); color: var(--accent-ink); font-weight: 800; transition: transform .15s; }
.xp-btn.ghost { background: transparent; color: var(--ink-dim); border: 2px solid var(--line-strong); }
.xp-btn.tapped { transform: scale(.94); filter: brightness(1.2); }
.xp-field { position: relative; min-height: 2.8em; display: flex; align-items: center; padding: .5em .8em; border-radius: .8em; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 750; font-size: 1.1em; }
.xp-field i { position: absolute; left: .8em; font-style: normal; font-weight: 500; color: var(--ink-dim); } .xp-field.filled i { display: none; }
.xp-field span::after { content: ''; display: inline-block; width: 2px; height: 1.1em; background: var(--accent); margin-left: 2px; vertical-align: -.15em; animation: bg-twinkle 1s steps(2) infinite; }
.xp-field.shake { border-color: var(--bad); animation: av-shake .25s linear 3; }
.xp-unit { color: var(--ink-dim); font-weight: 700; text-align: right; margin-top: -.4em; }
.xp-rows { display: grid; gap: .45em; }
.xp-row { display: flex; align-items: center; gap: .6em; padding: .55em .7em; border-radius: .8em; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; }
.xp-row b { flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-dim); font-size: .85em; }
.xp-row em { font-style: normal; color: var(--ink-dim); margin-left: .5em; font-weight: 600; }
.xp-row.new { border-color: var(--accent); } .xp-row.new b { background: var(--accent); color: var(--accent-ink); }
.xp-row.tapped { border-color: var(--accent); } .xp-row.moved { animation: xp-moved .5s ease-out; }
@keyframes xp-moved { from { transform: scale(1.06); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); } }
.xp-rows.good .xp-row { border-color: var(--good); } .xp-phone .xp-row { font-size: .85em; }
.xp-scale { position: relative; height: 6.5em; border-bottom: .25em solid var(--line-strong); margin-top: .5em; }
.xp-scale .truth { position: absolute; bottom: -.25em; width: .25em; height: 5.5em; background: var(--good); border-radius: 9px; }
.xp-scale > span { position: absolute; bottom: .3em; transform: translateX(-50%); display: grid; justify-items: center; font-size: .8em; animation: xp-in .5s both; }
.xp-scale em { font-style: normal; color: var(--ink-dim); font-weight: 700; }
.xp-buzz { justify-self: center; display: grid; place-items: center; width: 7em; height: 7em; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 .5em 0 color-mix(in srgb, var(--accent) 55%, #000); transition: transform .12s, box-shadow .12s, opacity .3s; }
.xp-buzz.tapped { transform: translateY(.4em); box-shadow: 0 .1em 0 color-mix(in srgb, var(--accent) 55%, #000); } .xp-buzz.off { opacity: .35; }
.xp-canvas { width: 100%; max-height: 62%; background: #fbfaf7; border-radius: .8em; }
.xp-canvas path { fill: none; stroke: #1e1a1c; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: xp-draw 3s ease-in-out forwards; }
.xp-canvas .p2 { animation-delay: 3s; } .xp-canvas .p3 { animation-delay: 6s; } .xp-canvas .p4 { animation-delay: 9s; }
@keyframes xp-draw { to { stroke-dashoffset: 0; } }
.xp-chat { display: grid; gap: .3em; align-content: end; min-height: 5.5em; }
.xp-chat p { margin: 0; padding: .35em .6em; border-radius: .7em; background: var(--surface); border: 1px solid var(--line); font-size: .85em; animation: xp-in .3s both; }
.xp-chat p.ok { border-color: var(--good); color: var(--good); font-weight: 800; }
.xp-map { position: relative; min-height: 8em; height: 100%; border-radius: .9em; border: 2px solid var(--line-strong); background: repeating-linear-gradient(0deg, transparent 0 1.9em, var(--line) 1.9em calc(1.9em + 1px)), repeating-linear-gradient(90deg, transparent 0 1.9em, var(--line) 1.9em calc(1.9em + 1px)), color-mix(in srgb, var(--accent-2) 12%, var(--surface)); }
.xp-phone .xp-map { height: 9em; }
.xp-pin { position: absolute; transform: translate(-50%, -100%); color: var(--accent); font-style: normal; font-size: .8em; animation: xp-drop .6s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes xp-drop { from { transform: translate(-50%, -400%); opacity: 0; } }
.xp-target { position: absolute; width: 1em; height: 1em; margin: -.5em; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 .5em color-mix(in srgb, var(--good) 30%, transparent); animation: xp-in .5s both; }
.xp-photo { display: grid; place-items: center; align-content: center; gap: .3em; height: 100%; min-height: 8em; border-radius: .9em; background: linear-gradient(135deg, #3a5a7a, #c98a5a 60%, #f0d9a8); color: #fff; font-weight: 800; }
.xp-pix { justify-self: center; width: 11em; height: 11em; border-radius: 1em; background: radial-gradient(circle at 50% 58%, #f28c28 0 38%, transparent 39%), radial-gradient(circle at 50% 22%, #5d7a2e 0 9%, transparent 10%), radial-gradient(circle at 38% 52%, #1e1a1c 0 5%, transparent 6%), radial-gradient(circle at 62% 52%, #1e1a1c 0 5%, transparent 6%), #2b2030; transition: filter .9s; }
.xp-pix.st0 { filter: blur(1.5em) contrast(1.6); } .xp-pix.st1 { filter: blur(1em) contrast(1.4); } .xp-pix.st2 { filter: blur(.55em) contrast(1.2); } .xp-pix.st3 { filter: blur(.25em); } .xp-pix.st4 { filter: none; }
.xp-shop { display: grid; gap: .4em; }
.xp-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5em; padding: .45em .6em; border-radius: .8em; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: .82em; color: var(--ink); }
.xp-item svg { color: var(--accent); width: 1.6em; height: 1.6em; } .xp-item.bad svg { color: var(--bad); }
.xp-item.on, .xp-item.tapped { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 16%, var(--surface)); }
.xp-targets { display: flex; gap: .4em; min-height: 2.2em; font-size: .8em; }
.xp-targets > span { padding: .2em .6em .2em .2em; border-radius: 99px; border: 2px solid var(--line-strong); } .xp-targets .on, .xp-targets .tapped { border-color: var(--bad); }
.xp-chips { display: flex; flex-wrap: wrap; gap: .4em; }
.xp-chip { display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em .3em .4em; border-radius: 99px; border: 2px solid var(--line-strong); background: var(--surface); font-weight: 750; animation: xp-in .35s both; }
.xp-chip.ok { border-color: var(--good); padding-left: .6em; } .xp-chip.ok svg { color: var(--good); width: 1em; height: 1em; } .xp-chip.out { opacity: .5; }
.xp-step { display: flex; align-items: center; justify-content: center; gap: .8em; }
.xp-step i { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: .8em; border: 2px solid var(--line-strong); font-style: normal; } .xp-step i.tapped { border-color: var(--accent); }
.xp-step b { font-family: var(--f-display); font-size: 2.6em; min-width: 2.4ch; text-align: center; }
.xp-finger { position: absolute; left: 0; top: 0; width: 2.6em; height: 2.6em; margin: -1.3em; border-radius: 50%; background: color-mix(in srgb, var(--accent) 45%, transparent); border: 3px solid var(--accent); opacity: 0; pointer-events: none; transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .3s; z-index: 3; }
.xp-finger.press { animation: xp-press .32s ease-out; }
@keyframes xp-press { 40% { scale: .6; } 100% { scale: 1; box-shadow: 0 0 0 1em transparent; } 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } }
.xp-players { display: flex; justify-content: center; gap: clamp(.6em, 3vw, 3em); }
.xp-pl { position: relative; display: grid; justify-items: center; min-width: 5.5em; transition: filter .4s; }
.xp-pl-av svg { width: 4.2em; height: auto; }
.xp-pl-name { font-weight: 800; font-size: .9em; }
.xp-pl-score { font-family: var(--f-display); font-size: 1.5em; font-variant-numeric: tabular-nums; color: var(--accent); }
.xp-pl-badge { position: absolute; left: 12%; top: 0; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #08140c; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .6, 1); z-index: 2; }
.xp-pl-badge.on { opacity: 1; transform: scale(1); }
.xp-pl-badge.b-bolt { background: var(--accent); color: var(--accent-ink); } .xp-pl-badge.b-lock { background: var(--bad); } .xp-pl-badge.b-snow { background: #bfe6ff; color: #0b2233; } .xp-pl-badge.b-star { background: #ffd34d; } .xp-pl-badge.b-pencil { background: var(--accent-2); }
.xp-pl.frozen { filter: saturate(.3) brightness(1.2) hue-rotate(170deg); }
.xp-pl-float { position: absolute; top: -.4em; right: -1.2em; font-family: var(--f-display); font-size: 1.7em; font-weight: 700; opacity: 0; pointer-events: none; }
.xp-pl-float.pos { color: var(--good); } .xp-pl-float.neg { color: var(--bad); }
.xp-pl-float.go { animation: xp-float 2s ease-out both; }
@keyframes xp-float { 0% { opacity: 0; transform: translateY(1em) scale(.5); } 15% { opacity: 1; transform: translateY(0) scale(1.2); } 25% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-1em); } }
.xp-foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .3em 1em; }
.xp-cap { grid-column: 1 / -1; margin: 0; min-height: 2.5em; display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-size: 1.7em; line-height: 1.15; text-wrap: balance; }
.xp-cap.in { animation: xp-in .4s both; }
.xp-bar { height: 5px; border-radius: 99px; background: var(--line-strong); overflow: hidden; }
.xp-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; }
@keyframes xp-bar { from { transform: scaleX(0); } }
.xp-time { color: var(--ink-dim); font-weight: 700; font-size: .8em; font-variant-numeric: tabular-nums; }
.xp-tools { position: absolute; right: 1rem; top: 1rem; display: flex; gap: .4rem; font-size: 16px; }
@media (max-width: 700px), (orientation: portrait) {
  .xp-scene { grid-template-columns: 1fr; grid-template-rows: minmax(0, .8fr) minmax(0, 1.2fr); gap: .6em; }
  .xp-phone { justify-self: center; width: min(100%, 24em); padding: 1.7em .8em .8em; }
  .xp-phone-in { font-size: .86em; gap: .45em; }
  .xp-screen { padding: 1.8em 1em .8em; }
  .xp-players { gap: 1.4em; }
  .xp-q { font-size: 1.4em; } .xp-num { font-size: 2.4em; } .xp-cap { font-size: 1.35em; } .xp-pl-av svg { width: 3.2em; } .xp-head h1 { font-size: 1.7em; }
}

/* =============================================================================
   Spieler-Ansicht: alles auf einen Bildschirm, nichts scrollt
   ========================================================================== */
body.play { overflow: hidden; }
body.play #app { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
body.play .topbar { position: relative; flex: none; grid-template-columns: 1fr auto auto auto auto; gap: .55rem; }
body.play .strip { flex: none; }
body.play .pmain { flex: 1 1 auto; min-height: 0; width: 100%; overflow-y: auto; overscroll-behavior: contain; padding: .7rem .9rem .5rem; scrollbar-width: none; }
body.play .pmain::-webkit-scrollbar { display: none; }
body.play .pmain > * { zoom: var(--z, 1); }
body.play .votebar { position: relative; flex: none; padding: .55rem .9rem calc(.55rem + env(safe-area-inset-bottom)); }
body.play:has(.votebar:not([hidden])) .pmain { padding-bottom: .5rem; }
/* Reaktionen sitzen in der Kopfzeile und klappen nach unten auf */
.topbar .react { position: relative; left: auto; bottom: auto; flex-direction: column; align-items: center; gap: 0; }
body.play:has(.votebar:not([hidden])) .topbar .react, body.play:has(.shop-foot) .topbar .react { bottom: auto; }
.topbar .react-toggle { width: 40px; height: 40px; box-shadow: none; background: transparent; }
.topbar .react-tray { position: absolute; top: calc(100% + .5rem); right: -4px; z-index: 30; }

@media (max-width: 700px) {
  .q-head { min-height: 48px; margin-bottom: .3rem; }
  .q-prompt { font-size: clamp(1.25rem, 5.2vw, 1.7rem); margin: .1rem 0 .7rem; }
  .q-statement { margin: .6rem 0 1rem; }
  .q-count { margin: .6rem 0 .2rem; font-size: .92rem; }
  .q-info { margin: .6rem 0; padding: .55rem .75rem; font-size: .92rem; }
  .opts { gap: .45rem; }
  .opt { min-height: 56px; }
  .result { margin-bottom: .7rem; padding: .35rem .8rem .35rem .4rem; }
  .result-av svg { width: 54px; height: 54px; }
  .result-title { font-size: 1.35rem; }
  .ord-list { gap: .35rem; margin-bottom: .6rem; }
  .ord-item, .ord-list.static li { min-height: 48px; padding: .3rem .5rem; }
  .ord-list.static li { min-height: 42px; font-size: .95rem; }
  .intro { padding: clamp(.5rem, 6vh, 4rem) 0 1rem; }
  .pick { padding: clamp(.3rem, 3vh, 2rem) 0 .5rem; }
  .pick-opt { padding: .8rem 1rem; font-size: 1.2rem; }
  .lobby { padding-top: .2rem; }
  .lobby-me svg { width: 104px; height: 104px; }
  .lobby-actions { margin: .5rem 0; }
  .lobby .sub-title { margin: .8rem 0 .4rem; }
  .lobby-grid { grid-template-columns: repeat(4, 1fr); gap: .2rem; }
  .lobby-grid .pl-tile { padding: .3rem .1rem; }
  .lobby-grid .pl-tile svg { width: 52px; height: 52px; }
  .lobby-grid .pl-name { font-size: .78rem; }
  .standings { gap: .35rem; margin: .5rem 0; }
  .throws { font-size: .88rem; }
  .profile { padding: .6rem 1rem 1rem; }
  .profile .page-title { margin-bottom: .2em; }
  .profile .back-link { margin-bottom: .1rem; }
  .ab { grid-template-columns: 1fr; justify-items: center; gap: .3rem; padding: .6rem .8rem; margin-bottom: .8rem; }
  .ab-preview svg { width: 112px; height: 112px; }
  .ab-controls { width: 100%; gap: .35rem; }
  .ab-controls .btn { justify-self: center; }
}
@media (max-width: 700px) and (max-height: 700px) { .ab-preview svg { width: 84px; height: 84px; } .lobby-me svg { width: 80px; height: 80px; } }

/* Geschenke-Laden als Kachelraster */
.shop-lead { color: var(--ink-dim); font-size: .9rem; margin: 0 0 .3rem; }
.shop-lead b { color: var(--ink); }
.shop { display: block; }
.shop-group { margin: .5rem 0 .3rem; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.shop-tile { display: grid; justify-items: center; gap: .1rem; padding: .45rem .2rem .4rem; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); text-align: center; line-height: 1.15; min-height: 78px; transition: border-color .15s, transform .12s, background .15s; }
.shop-tile:active { transform: scale(.96); }
.shop-tile b { font-size: .8rem; font-weight: 750; }
.shop-tile .shop-ico { width: 32px; height: 32px; border-radius: 10px; }
.shop-tile .shop-cost { font-size: .78rem; color: var(--ink-dim); }
.shop-tile.focus { border-color: var(--ink-dim); }
.shop-tile.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.shop-tile.on .shop-ico { background: var(--accent); color: var(--accent-ink); }
.shop-tile.on .shop-cost { color: var(--accent); font-weight: 800; }
.shop-tile.kind-attack .shop-ico { color: var(--bad); }
.shop-tile.kind-attack.on { border-color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, var(--surface)); }
.shop-tile.kind-attack.on .shop-ico { background: var(--bad); color: #1a0705; }
.shop-tile.kind-attack.on .shop-cost { color: var(--bad); }
.shop-tile.poor:not(.on) { opacity: .45; }
.shop-detail { margin-top: .5rem; min-height: 3.4rem; }
.shop-desc { margin: 0 0 .35rem; font-size: .88rem; color: var(--ink-dim); }
.shop-desc b { color: var(--ink); }
.shop-detail .shop-targets { padding: 0; gap: .3rem; }
.shop-foot { padding: .5rem 0 .1rem; margin-top: .2rem; }
.opt.mine:not(.correct):not(.wrong) { animation: lock-in .35s cubic-bezier(.3, 1.6, .6, 1); }
@keyframes lock-in { 0% { transform: scale(.96); } 100% { transform: scale(1); } }

/* =============================================================================
   Großbild: Fläche ausnutzen, ruhige Übergänge
   ========================================================================== */
.sc { height: 100dvh; min-height: 0; overflow: hidden; }
.sc-top { padding: clamp(.8rem, 1.6vh, 1.6rem) clamp(1.5rem, 2.5vw, 3.5rem) 0; font-size: clamp(1rem, 1.15vw, 1.7rem); }
.sc-top .sc-brand b { font-family: var(--f-display); font-size: 1.25em; }
.sc-top .sc-round { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: .2em .9em; }
.sc-top .sc-round:empty { display: none; }
.sc-vote:not(:empty) { background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 99px; padding: .2em .9em; }
.sc-grid { min-height: 0; grid-template-columns: minmax(0, 1fr) clamp(260px, 21vw, 520px); gap: clamp(1.2rem, 2vw, 3rem); padding: clamp(.6rem, 1.5vh, 1.4rem) clamp(1.5rem, 2.5vw, 3.5rem) clamp(1rem, 2.5vh, 2.4rem); }
.sc-main { min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.sc-main > * { zoom: var(--z, 1); animation: stage-in .55s cubic-bezier(.2, .8, .2, 1) both; }
.sc-rail { min-height: 0; overflow: hidden; align-content: center; }
.sc-rail > * { zoom: var(--z, 1); }
.sc-rail .pl { transition: border-color .3s, background .3s, transform .3s; }
.sc-rail .pl:has(.pl-gain.show) { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--bg-1)); }
@keyframes stage-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.sc-main .stage .q-head { min-height: 0; }
.sc-main .q-prompt { text-wrap: balance; }
.sc-main .opt { transition: opacity .4s, border-color .3s, background .3s, transform .3s; }
.sc-main .phase-reveal .opt:not(.correct) { opacity: .5; }
.sc-main .phase-reveal .opt.correct { transform: scale(1.02); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 45%, transparent), var(--shade); }
.sc-code { white-space: nowrap; font-size: clamp(2.6rem, 4.6vw, 5rem); }
.sc-lobby-in { min-height: 0; }
.sc-intro { padding: 0; }
.sc-intro .intro-kicker { font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; }
.sc-scores { max-width: 1100px; width: 100%; margin: 0 auto; }
.sc-scores .page-title { text-align: center; }
.sc-scores .intro-kicker { text-align: center; }
@media (prefers-reduced-motion: reduce) { .sc-main > * { animation: none; } }
.sc-lobby-in { grid-template-columns: auto minmax(0, 1fr); gap: 4rem; }
.sc-rail .pl { position: relative; }
.sc-rail .pl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-rail .pl:has(.pl-gain.show) .pl-meta { padding-right: 4.4rem; min-width: 0; }
.sc-main .shop-legend { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sc-main .shop-legend li { padding: .5rem .7rem; }
.sc-main .stage-gifts .lead { display: none; }

/* Einstieg */
.join-crew { display: flex; align-items: flex-end; justify-content: center; gap: .2rem; margin-bottom: .8rem; }
.join-crew span { display: block; animation: crew-in .7s cubic-bezier(.3, 1.6, .6, 1) both, crew-bob 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .12s), calc(.8s + var(--i) * .4s); }
@keyframes crew-in { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes crew-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
.join-form .input-code { text-align: center; letter-spacing: .08em; font-weight: 750; text-transform: uppercase; }
@media (prefers-reduced-motion: reduce) { .join-crew span { animation: none; } }
@media (max-height: 720px) { .join { justify-content: flex-start; padding-top: 1rem; } .join-crew svg { width: 64px; height: 64px; } }
@media (max-width: 700px) {
  body.play:has(.draw-layout) .strip { display: none; }
  body.play .draw-layout { gap: .45rem; }
  body.play .draw-layout .board { width: 100%; max-width: max(200px, calc((100dvh - 425px) * 4 / 3)); margin-inline: auto; }
  body.play .draw-layout .chat { max-height: 4.6rem; overflow: hidden; margin-bottom: .4rem; }
  body.play .draw-layout .hint { display: none; }
}
