:root {
  --bg: #0e0a1f;
  --bg2: #18112f;
  --card: rgba(255, 255, 255, .065);
  --card2: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .12);
  --text: #f6f3ff;
  --muted: #a8a1c9;
  --red: #ff3d6e;
  --red2: #d0104c;
  --cyan: #3de0ff;
  --green: #2ee59d;
  --yellow: #ffd23f;
  --violet: #8b5cf6;
  --radius: 20px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, #241746 0%, var(--bg) 60%); }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .35; animation: drift 22s ease-in-out infinite alternate; }
.b1 { background: #ff2d6f; top: -25vmax; left: -20vmax; }
.b2 { background: #3b2bff; bottom: -30vmax; right: -25vmax; animation-duration: 28s; opacity: .3; }
.b3 { background: #00c2ff; top: 40%; left: 55%; width: 35vmax; height: 35vmax; opacity: .14; animation-duration: 34s; }
body.alarm .b1 { background: #ff0033; opacity: .5; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

/* ---------- Layout ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 10px) 16px 10px; min-height: 56px;
  background: rgba(14, 10, 31, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .12em; font-size: .95rem; }
.topbar .brand img { width: 26px; height: 26px; }
.topbar .spacer { flex: 1; }
.iconbtn { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 1.1rem; }
.iconbtn:active { transform: scale(.94); }
.roomchip { font-weight: 800; letter-spacing: .22em; padding: 8px 12px 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .95rem; }

.app { max-width: 560px; margin: 0 auto; padding: 4px 16px calc(var(--safe-b) + 110px); }
.screen { animation: screen-in .45s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes screen-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.boot { min-height: 70vh; display: grid; place-items: center; }
.boot-logo { width: 90px; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }

h1, h2, h3 { margin: 0; line-height: 1.1; }
.h-title { font-size: 1.7rem; font-weight: 900; letter-spacing: -.01em; }
.h-sub { color: var(--muted); font-size: .98rem; margin-top: 6px; line-height: 1.4; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > .grow { flex: 1; }
.mt { margin-top: 18px; } .mt-s { margin-top: 10px; } .mt-l { margin-top: 28px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card.tight { padding: 14px; }
.label { font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.label .count { background: var(--card2); color: var(--text); border-radius: 999px; padding: 2px 8px; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px; padding: 14px 20px; border-radius: 18px; font-weight: 800; font-size: 1.08rem;
  background: linear-gradient(135deg, var(--red), var(--red2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 45, 111, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s, filter .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .4; box-shadow: none; filter: grayscale(.6); }
.btn.cyan { background: linear-gradient(135deg, #3de0ff, #3b82f6); box-shadow: 0 10px 30px -10px rgba(61, 224, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .3); color: #07121f; }
.btn.green { background: linear-gradient(135deg, #2ee59d, #0ea56b); color: #04150d; box-shadow: 0 10px 30px -10px rgba(46, 229, 157, .6); }
.btn.ghost { background: var(--card); border: 1px solid var(--line); box-shadow: none; color: var(--text); }
.btn.small { min-height: 44px; font-size: .95rem; border-radius: 14px; padding: 10px 14px; }
.btn.inline { width: auto; }
.linkbtn { color: var(--muted); font-weight: 700; padding: 10px; text-decoration: underline; text-underline-offset: 3px; }
.btnrow { display: flex; gap: 10px; }
.btnrow .btn { flex: 1; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 14px 16px calc(var(--safe-b) + 14px); background: linear-gradient(to top, rgba(14, 10, 31, .96) 55%, rgba(14, 10, 31, 0)); }
.sticky-cta > * { max-width: 528px; margin: 0 auto; }
.has-cta .reactbar { bottom: calc(var(--safe-b) + 96px); }
.has-cta .app { padding-bottom: calc(var(--safe-b) + 180px); }
#cta .sticky-cta { animation: fade-in .3s both; }

/* ---------- Inputs ---------- */
.field { width: 100%; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-size: 1.1rem; font-weight: 700; outline: none; transition: border-color .2s, box-shadow .2s; }
.field:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(61, 224, 255, .15); }
.field::placeholder { color: #6f6893; font-weight: 600; }
.codefield { text-align: center; letter-spacing: .5em; text-transform: uppercase; font-size: 1.6rem; font-weight: 900; padding-left: calc(18px + .5em); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .15em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Home ---------- */
.hero { text-align: center; padding: 26px 0 22px; }
.hero-logo { width: 104px; height: 104px; filter: drop-shadow(0 18px 30px rgba(255, 45, 111, .45)); animation: bob 3s ease-in-out infinite; }
.wordmark { font-size: 3rem; font-weight: 950; letter-spacing: .08em; margin-top: 10px; position: relative; display: inline-block;
  background: linear-gradient(180deg, #fff, #ffc2d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark::after { content: attr(data-text); position: absolute; left: 0; top: 0; color: var(--red); -webkit-text-fill-color: var(--red); opacity: 0; animation: glitch 4s infinite steps(1); clip-path: inset(40% 0 35% 0); }
@keyframes glitch { 0%, 92%, 100% { opacity: 0; transform: none; } 93% { opacity: .9; transform: translate(-4px, 1px); } 95% { opacity: .9; transform: translate(3px, -1px); clip-path: inset(10% 0 70% 0); } 97% { opacity: 0; } }
.tagline { color: var(--muted); font-size: 1.05rem; margin-top: 4px; font-weight: 600; }
.rules { color: var(--muted); line-height: 1.5; font-size: .95rem; }
.rules summary { list-style: none; font-weight: 800; color: var(--text); display: flex; justify-content: space-between; cursor: pointer; }
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: "＋"; color: var(--muted); }
.rules[open] summary::after { content: "－"; }
.rules ol { padding-left: 1.2em; margin: 12px 0 0; }
.rules li { margin: 6px 0; }

/* ---------- Avatare & Spieler ---------- */
.avatar { --c: #888; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 70%, white), var(--c)); box-shadow: 0 6px 18px -6px var(--c), inset 0 -3px 0 rgba(0, 0, 0, .18); position: relative; }
.avatar.s { width: 34px; height: 34px; font-size: 1.1rem; }
.avatar.xs { width: 26px; height: 26px; font-size: .85rem; box-shadow: none; }
.avatar.l { width: 88px; height: 88px; font-size: 3rem; }
.avatar.xl { width: 120px; height: 120px; font-size: 4rem; }
.avatar.off { filter: grayscale(1) brightness(.6); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.ptile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.ptile .pname { font-weight: 800; font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.ptile .psub { font-size: .72rem; color: var(--muted); font-weight: 700; }
.ptile.me { border-color: rgba(61, 224, 255, .55); background: rgba(61, 224, 255, .07); }
.ptile .crown { position: absolute; top: 6px; left: 8px; font-size: .95rem; }
.ptile .pmenu { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 10px; color: var(--muted); font-weight: 900; }
.ptile.add { border-style: dashed; color: var(--muted); justify-content: center; animation: none; background: transparent; }
.ptile.add .plus { width: 52px; height: 52px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 1.4rem; }
.badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 900; background: var(--green); color: #04150d; border: 2px solid var(--bg); animation: pop-in .4s cubic-bezier(.3, 1.8, .5, 1) both; }
.badge.wait { background: #3a3358; color: var(--muted); animation: none; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6) translateY(10px); } }

/* ---------- Lobby ---------- */
.codehero { text-align: center; }
.codeletters { display: flex; justify-content: center; gap: 8px; margin: 6px 0 14px; }
.codeletters span { width: 58px; height: 70px; display: grid; place-items: center; font-size: 2.3rem; font-weight: 950; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); border: 1px solid var(--line); animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.codeletters span:nth-child(2) { animation-delay: .06s; } .codeletters span:nth-child(3) { animation-delay: .12s; } .codeletters span:nth-child(4) { animation-delay: .18s; }
.qrwrap { display: grid; place-items: center; margin-top: 14px; animation: pop-in .4s both; }
.qrwrap canvas { width: 200px; height: 200px; border-radius: 16px; background: #fff; padding: 10px; image-rendering: pixelated; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pack { flex: 1 1 calc(50% - 8px); min-width: 140px; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line); transition: all .2s; position: relative; }
.pack .pe { font-size: 1.5rem; }
.pack .pn { font-weight: 850; margin-top: 4px; }
.pack .pd { font-size: .75rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.pack.on { border-color: var(--cyan); background: rgba(61, 224, 255, .1); box-shadow: 0 0 0 3px rgba(61, 224, 255, .12); }
.pack.on::after { content: "✓"; position: absolute; top: 10px; right: 12px; font-weight: 900; color: var(--cyan); }
.pack:disabled { opacity: 1; cursor: default; }
.seg { display: flex; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 10px; font-weight: 800; font-size: .9rem; color: var(--muted); transition: all .2s; white-space: nowrap; }
.seg button.on { background: var(--card2); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.seg button:disabled { cursor: default; }
.setrow + .setrow { margin-top: 16px; }
.setrow .sethint { font-size: .8rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.waitline { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 700; min-height: 58px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* ---------- Rollenkarte ---------- */
.flip { perspective: 1200px; margin: 4px auto 0; width: min(100%, 320px); aspect-ratio: 4 / 5; touch-action: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transition: transform .55s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
.flip.open .flip-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 26px; text-align: center; overflow: hidden; }
.face.front { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px), linear-gradient(160deg, #2d1f5e, #1a1238); border: 1.5px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.face.front .q { font-size: 5rem; font-weight: 950; opacity: .9; background: linear-gradient(180deg, #fff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; animation: bob 2.4s ease-in-out infinite; }
.face.front .hold { margin-top: 18px; font-weight: 800; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.face.front .fingerprint { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 1.8rem; margin-top: 18px; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, .5); } 70% { box-shadow: 0 0 0 18px rgba(167, 139, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); } }
.face.back { transform: rotateY(180deg); }
.face.back.crew { background: linear-gradient(160deg, #0f766e, #0b3d59); border: 1.5px solid rgba(61, 224, 255, .5); box-shadow: 0 30px 70px -20px rgba(61, 224, 255, .45); }
.face.back.imposter { background: radial-gradient(circle at 50% 30%, #ff3d6e, #7a0a2e 70%); border: 1.5px solid rgba(255, 120, 150, .6); box-shadow: 0 30px 70px -15px rgba(255, 45, 111, .7); }
.face .role { font-size: .8rem; font-weight: 900; letter-spacing: .25em; text-transform: uppercase; opacity: .8; }
.face .secret { font-size: clamp(2rem, 11vw, 3rem); font-weight: 950; margin: 14px 0; line-height: 1.05; word-break: break-word; hyphens: auto; }
.face .meta { font-size: .95rem; opacity: .9; font-weight: 700; }
.face .meta b { font-weight: 900; }
.face .big-emoji { font-size: 4.5rem; line-height: 1; }
.readyrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Hinweis-Runde ---------- */
.turncard { text-align: center; padding: 22px 18px; position: relative; overflow: hidden; }
.turncard .avatar { margin: 0 auto; }
.turncard.mine { background: linear-gradient(160deg, rgba(61, 224, 255, .18), rgba(59, 130, 246, .08)); border-color: rgba(61, 224, 255, .5); }
.ring { position: relative; display: inline-grid; }
.ring::before, .ring::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--c, var(--cyan)); opacity: 0; animation: ring 2s infinite; }
.ring::after { animation-delay: 1s; }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.turnname { font-size: 1.5rem; font-weight: 900; margin-top: 16px; }
.turnsub { color: var(--muted); margin-top: 4px; font-weight: 700; min-height: 1.4em; display: flex; align-items: center; justify-content: center; gap: 8px; }
.orderstrip { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: none; }
.orderstrip::-webkit-scrollbar { display: none; }
.ostep { position: relative; flex: none; transition: transform .3s, opacity .3s; }
.ostep.done { opacity: .45; }
.ostep.now { transform: scale(1.18); }
.ostep.now .avatar { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--cyan); }
.feed { display: grid; gap: 8px; }
.clue { display: flex; align-items: center; gap: 10px; animation: slide-in .45s cubic-bezier(.2, 1.2, .4, 1) both; }
.clue .bubble { background: var(--card2); border: 1px solid var(--line); padding: 10px 14px; border-radius: 16px 16px 16px 6px; font-weight: 800; font-size: 1.05rem; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.clue .bubble .who { display: block; font-size: .72rem; color: var(--muted); font-weight: 800; margin-bottom: 2px; }
.clue .bubble.said { font-weight: 700; color: var(--muted); font-style: italic; }
.roundsep { text-align: center; font-size: .72rem; font-weight: 900; letter-spacing: .15em; color: var(--muted); text-transform: uppercase; margin: 6px 0 2px; }
@keyframes slide-in { from { opacity: 0; transform: translateX(-24px) scale(.95); } }
.peek { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); touch-action: none; }
.peek .pv { font-weight: 900; transition: filter .2s; }
.peek .pv.hide { filter: blur(9px); }
.peek .pl { font-size: .78rem; color: var(--muted); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.peek.imp .pv { color: #ff9ab3; }

/* ---------- Abstimmung ---------- */
.timer { --p: 1; position: relative; width: 84px; height: 84px; margin: 0 auto; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 7; }
.timer .tb { stroke: rgba(255, 255, 255, .1); }
.timer .tf { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: calc(226 * (1 - var(--p))); transition: stroke-dashoffset .3s linear, stroke .3s; }
.timer.warn .tf { stroke: var(--red); }
.timer.warn { animation: shake .5s infinite; }
.timer .tt { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
@keyframes shake { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
.votegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.vtile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px 14px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); transition: transform .15s, border-color .2s, background .2s; }
.vtile:active { transform: scale(.95); }
.vtile .pname { font-weight: 800; font-size: .92rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.vtile.sel { border-color: var(--red); background: rgba(255, 61, 110, .16); box-shadow: 0 0 0 4px rgba(255, 61, 110, .18), 0 12px 30px -12px rgba(255, 61, 110, .8); }
.vtile.sel::after { content: "🎯"; position: absolute; top: 6px; right: 8px; animation: pop-in .35s both; }
.vtile.self { opacity: .45; }
.vtile.self .pname::after { content: " (du)"; color: var(--muted); }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 99px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.allvoted { text-align: center; font-weight: 900; color: var(--yellow); animation: pulse-t 1s infinite; }
@keyframes pulse-t { 50% { opacity: .5; } }

/* ---------- Auflösung ---------- */
.suspense { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(8, 5, 18, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: center; animation: fade-in .3s both; }
.suspense .sn { font-size: 9rem; font-weight: 950; animation: count 1s cubic-bezier(.2, 1.4, .4, 1) both; background: linear-gradient(180deg, #fff, #ff7a9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.suspense .st { color: var(--muted); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
@keyframes count { from { transform: scale(2.2); opacity: 0; } 60% { transform: scale(.9); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
.verdict { text-align: center; padding: 26px 18px; border-radius: 26px; position: relative; overflow: hidden; animation: verdict-in .7s cubic-bezier(.2, 1.3, .4, 1) both; }
.verdict.crew { background: linear-gradient(160deg, rgba(46, 229, 157, .3), rgba(14, 165, 107, .1)); border: 1.5px solid rgba(46, 229, 157, .55); }
.verdict.imposter { background: linear-gradient(160deg, rgba(255, 61, 110, .35), rgba(122, 10, 46, .2)); border: 1.5px solid rgba(255, 100, 140, .6); }
.verdict.neutral { background: var(--card); border: 1.5px solid var(--line); }
.verdict .ve { font-size: 3.6rem; line-height: 1; }
.verdict .vt { font-size: 1.9rem; font-weight: 950; margin-top: 10px; }
.verdict .vs { margin-top: 8px; font-weight: 700; color: rgba(255, 255, 255, .85); line-height: 1.4; }
@keyframes verdict-in { from { transform: scale(.7) rotate(-3deg); opacity: 0; } }
.stamp { display: inline-block; margin-top: 12px; padding: 6px 14px; border: 3px solid currentColor; border-radius: 10px; font-weight: 950; letter-spacing: .15em; transform: rotate(-6deg); animation: stamp .5s .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.stamp.red { color: #ff6b8e; } .stamp.blue { color: var(--cyan); }
@keyframes stamp { from { transform: rotate(-6deg) scale(2.5); opacity: 0; } }
.wordreveal { text-align: center; }
.wordreveal .w { font-size: 2.2rem; font-weight: 950; margin-top: 4px; }
.impline { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.impline .who { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 800; }
.tally { display: grid; gap: 10px; }
.trow { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.tbar { height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.tbar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(139, 92, 246, .7), rgba(61, 224, 255, .7)); border-radius: 10px; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left; }
.tbar.imp i { background: linear-gradient(90deg, rgba(255, 61, 110, .8), rgba(255, 150, 90, .8)); }
.tbar span { position: relative; display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 10px; font-weight: 800; font-size: .9rem; }
.tvoters { display: flex; }
.tvoters .avatar { margin-left: -6px; border: 2px solid var(--bg); }
@keyframes grow { from { transform: scaleX(0); } }
.scores { display: grid; gap: 8px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); animation: slide-in .5s both; }
.srow .sn { flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .sp { font-weight: 950; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.srow .plus { font-weight: 900; color: var(--green); font-size: .85rem; animation: pop-in .5s .6s both; }
.srow .rank { width: 24px; text-align: center; font-weight: 900; color: var(--muted); }
.srow.first { border-color: rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .08); }
.srow.first .rank { color: var(--yellow); }

/* ---------- Reaktionen ---------- */
.reactbar { position: fixed; z-index: 14; left: 50%; transform: translateX(-50%); bottom: calc(var(--safe-b) + 14px); display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(24, 17, 47, .85); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.reactbar button { width: 40px; height: 40px; border-radius: 50%; font-size: 1.35rem; transition: transform .15s; }
.reactbar button:active { transform: scale(1.35); background: var(--card2); }
.floaters { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.float { position: absolute; bottom: 90px; display: flex; flex-direction: column; align-items: center; animation: float-up 2.8s cubic-bezier(.25, .6, .4, 1) forwards; }
.float .fe { font-size: 2.6rem; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4)); }
.float .fn { font-size: .7rem; font-weight: 800; background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 99px; margin-top: 2px; }
@keyframes float-up { 0% { transform: translateY(0) scale(.4); opacity: 0; } 12% { transform: translateY(-40px) scale(1.15); opacity: 1; } 100% { transform: translateY(-62vh) translateX(var(--dx, 0)) scale(.9) rotate(var(--rot, 0deg)); opacity: 0; } }

/* ---------- Toasts / Overlay ---------- */
.toasts { position: fixed; z-index: 70; top: calc(var(--safe-t) + 64px); left: 16px; right: 16px; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: rgba(30, 22, 58, .95); border: 1px solid var(--line); padding: 12px 18px; border-radius: 16px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1) both; max-width: 520px; }
.toast.err { border-color: rgba(255, 61, 110, .6); background: rgba(70, 12, 32, .95); }
.toast.out { animation: toast-out .3s forwards; }
@keyframes toast-in { from { transform: translateY(-20px) scale(.9); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(-14px); opacity: 0; } }
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(5, 3, 12, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade-in .2s both; }
.sheet { width: 100%; max-width: 560px; background: #1c1438; border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 22px 18px calc(var(--safe-b) + 18px); animation: sheet-in .35s cubic-bezier(.2, 1.1, .3, 1) both; }
.sheet h3 { font-size: 1.25rem; font-weight: 900; }
.sheet p { color: var(--muted); line-height: 1.45; }
@keyframes sheet-in { from { transform: translateY(100%); } }
.netbar { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); top: calc(var(--safe-t) + 10px); background: var(--yellow); color: #231a00; font-weight: 850; padding: 8px 16px; border-radius: 99px; font-size: .88rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 55; }

@media (min-width: 700px) {
  .app { padding-top: 20px; }
  .h-title { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.verdict .avatar { margin: 0 auto; }
.turncard .ring { margin: 0 auto; }
