/* Schattenbörse – TV-Ansicht (Bühne 1920×1080, wird skaliert) */
html, body { width: 100%; height: 100%; overflow: hidden; background: #050409; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px;
  transform-origin: 0 0;
  background:
    radial-gradient(ellipse 60% 50% at 25% 45%, rgba(155, 123, 255, .10), transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(242, 193, 78, .07), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(63, 169, 255, .08), transparent 70%),
    var(--ink);
  overflow: hidden;
}
.screen { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.screen.active { opacity: 1; pointer-events: auto; }

/* ---------- Intro ---------- */
#intro { display: grid; place-items: center; }
.intro-bg { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, transparent 0 118px, rgba(246, 231, 193, .035) 118px 120px),
  repeating-linear-gradient(0deg, transparent 0 118px, rgba(246, 231, 193, .035) 118px 120px);
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%); animation: drift 30s linear infinite; }
@keyframes drift { to { background-position: 120px 120px, 120px 120px; } }
.intro-inner { text-align: center; position: relative; }
.intro-logo { font-size: 230px; animation: glow 4s ease-in-out infinite; }
.intro-logo span, .lobby-logo span { display: block; }
.intro-sub { font-size: 34px; color: var(--paper-dim); margin: 10px 0 50px; letter-spacing: .08em; }
.intro-hint { color: var(--paper-faint); margin-top: 26px; font-size: 20px; }
#btnCreate { font-size: 34px; padding: 26px 60px; }

/* ---------- Lobby ---------- */
#lobby { display: grid; grid-template-columns: 760px 1fr; gap: 60px; padding: 70px 80px; }
.lobby-logo { font-size: 128px; margin-bottom: 40px; }
.qr-card { display: flex; gap: 32px; align-items: center; padding: 28px; border-radius: 26px;
  background: linear-gradient(160deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.qr { width: 340px; height: 340px; border-radius: 18px; overflow: hidden; background: var(--paper); flex: none; box-shadow: 0 0 0 6px rgba(242, 193, 78, .25), 0 0 60px rgba(242, 193, 78, .25); }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-step { font-family: var(--display); font-size: 40px; line-height: 1.05; letter-spacing: .02em; }
.qr-or { color: var(--paper-faint); margin-top: 18px; font-size: 18px; text-transform: uppercase; letter-spacing: .12em; }
.join-url { font-family: var(--mono); font-size: 22px; color: var(--gold); word-break: break-all; margin-top: 6px; }
.room-code { font-family: var(--display); font-size: 96px; letter-spacing: .14em; color: var(--paper); line-height: 1; margin-top: 4px; }
.lobby-right { display: flex; flex-direction: column; min-width: 0; }
.lobby-head { display: flex; align-items: baseline; justify-content: space-between; }
.lobby-head h2 { font-family: var(--display); font-weight: 400; font-size: 60px; margin: 0; letter-spacing: .02em; }
.lobby-head h2 span { color: var(--gold); }
.lobby-head h2 small { color: var(--paper-faint); font-size: .5em; }
.lobby-mode { font-size: 22px; color: var(--paper-dim); text-align: right; max-width: 420px; }
.lobby-players { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-content: start; margin-top: 30px; }
.lp { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: var(--ink-2); border: 1px solid var(--line);
  animation: lpIn .7s var(--bounce) both; position: relative; }
.lp .avatar { font-size: 34px; }
.lp .nm { font-size: 28px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp .lead { position: absolute; top: -12px; right: 14px; font-size: 14px; background: var(--gold); color: var(--ink); padding: 3px 10px; border-radius: 99px; font-weight: 700; }
.lp.empty { border-style: dashed; opacity: .35; animation: none; justify-content: center; font-size: 22px; color: var(--paper-faint); min-height: 86px; }
@keyframes lpIn { 0% { transform: translateY(40px) scale(.7); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lobby-foot { margin-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-size: 22px; color: var(--paper-dim); }
.lobby-settings { display: flex; gap: 10px; flex-wrap: wrap; }
.lobby-settings .pill { font-size: 18px; }
.dot-anim { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 8px; animation: pulse 1.2s infinite; box-shadow: 0 0 12px var(--green); }

/* ---------- Spiel ---------- */
.topbar { position: absolute; left: 0; right: 0; top: 0; height: 96px; display: flex; align-items: center; gap: 30px; padding: 0 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent); }
.top-logo { font-size: 44px; }
.round-box { display: flex; align-items: baseline; gap: 8px; font-size: 22px; color: var(--paper-dim); }
.round-box b { font-family: var(--display); font-size: 48px; color: var(--paper); font-weight: 400; }
.phase-name { font-family: var(--display); font-size: 46px; letter-spacing: .05em; text-transform: uppercase; flex: 1; text-align: center;
  background: linear-gradient(90deg, transparent, rgba(242, 193, 78, .12), transparent); padding: 6px 0; }
.timer { position: relative; width: 78px; height: 78px; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 8; }
.timer .trk { stroke: rgba(255, 255, 255, .08); }
.timer .arc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 276.5; transition: stroke .3s; }
.timer.low .arc { stroke: var(--red); }
.timer.low b { color: var(--red); animation: pulse .5s infinite; }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 26px; }
.timer.idle { opacity: .25; }
.room-mini { font-size: 18px; color: var(--paper-faint); }
.room-mini b { color: var(--paper-dim); letter-spacing: .1em; }

.board-wrap { position: absolute; left: 40px; top: 108px; width: 900px; height: 900px; }
.board { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 6px; }
.tile { position: relative; border-radius: 12px; background: linear-gradient(170deg, #1e1a33, #15122a); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; padding: 0; transition: box-shadow .4s, transform .3s var(--bounce); }
.tile .band { height: 22px; background: var(--gc); box-shadow: 0 0 18px color-mix(in srgb, var(--gc) 60%, transparent); flex: none; position: relative; }
.tile .houses { position: absolute; inset: 0; display: flex; gap: 4px; align-items: center; justify-content: center; }
.tile .houses i { width: 13px; height: 13px; background: #fff; clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .6)); animation: pop .5s var(--bounce); }
.tile .houses .lm { width: 22px; height: 18px; background: var(--gold-2); clip-path: polygon(0 100%, 0 40%, 25% 40%, 25% 15%, 50% 0, 75% 15%, 75% 40%, 100% 40%, 100% 100%); }
.tile .tn { font-weight: 700; font-size: 17px; line-height: 1.1; padding: 8px 10px 0; }
.tile .tp { margin-top: auto; padding: 0 10px 8px; font-family: var(--mono); font-size: 15px; color: var(--paper-dim); display: flex; justify-content: space-between; align-items: center; }
.tile .own { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: var(--oc); box-shadow: 0 0 0 2px rgba(0, 0, 0, .4), 0 0 14px var(--oc); }
.tile.owned { border-color: color-mix(in srgb, var(--oc) 70%, transparent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--oc) 55%, transparent), inset 0 -40px 50px -30px color-mix(in srgb, var(--oc) 40%, transparent); }
.tile.special { background: radial-gradient(circle at 50% 40%, #2c2448, #15122a); align-items: center; justify-content: center; text-align: center; }
.tile.special .si { font-size: 46px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }
.tile.special .tn { padding: 4px 6px 0; font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .03em; }
.tile.tflash { animation: tileFlash .9s var(--ease); }
.tile.bump { animation: pop .6s var(--bounce); }
.tile.quake { animation: shake .6s; }
@keyframes tileFlash { 0% { box-shadow: 0 0 0 0 var(--gold); transform: scale(1); } 30% { box-shadow: 0 0 0 6px var(--gold), 0 0 60px var(--gold); transform: scale(1.06); } 100% { transform: scale(1); } }

.center { grid-row: 2 / 6; grid-column: 2 / 6; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, #251f40, #120f22 70%); border: 1px solid var(--line); box-shadow: inset 0 0 80px rgba(0, 0, 0, .6); }
.center.tribunal-mode { background: radial-gradient(ellipse at 50% 0%, #4a0f1d, #13070c 70%); border-color: rgba(255, 59, 92, .35); }
.center.blackout::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--lx, 50%) var(--ly, 50%), transparent 0, rgba(0, 0, 0, .55) 90px, rgba(0, 0, 0, .96) 210px); animation: torch 4s ease-in-out infinite; pointer-events: none; z-index: 5; }
@keyframes torch { 0% { --lx: 30%; } 50% { --lx: 70%; } 100% { --lx: 30%; } }
.stage-inner { position: absolute; inset: 0; padding: 30px 34px; display: flex; flex-direction: column; align-items: center; text-align: center; animation: fadeUp .6s var(--ease) both; }
.st-kicker { font-size: 18px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.st-title { font-family: var(--display); font-size: 64px; letter-spacing: .03em; line-height: 1; margin: 8px 0 8px; text-transform: uppercase; }
.st-sub { color: var(--paper-dim); font-size: 22px; line-height: 1.35; max-width: 520px; }
.st-grow { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 560px; }
.chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; font-size: 14px; color: var(--paper-dim); transition: transform .3s var(--bounce); }
.chip .avatar { font-size: 30px; }
.chip .cn { max-width: 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .badge { position: absolute; top: -6px; right: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px;
  background: var(--green); color: #032015; font-weight: 700; animation: pop .4s var(--bounce); box-shadow: 0 0 12px var(--green); }
.chip.done .avatar { box-shadow: 0 0 0 3px var(--green), 0 0 18px var(--green); }
.chip.wait .avatar { opacity: .55; }
.chip .dots { display: flex; gap: 3px; }
.chip .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.chip .dots i.on { background: var(--green); box-shadow: 0 0 8px var(--green); }

.dice-feed { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 480px; margin-top: 14px; }
.df { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); animation: fadeUp .4s var(--ease); font-size: 19px; text-align: left; }
.df .avatar { font-size: 20px; }
.die { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--paper); color: var(--ink); font-weight: 700; font-family: var(--mono); font-size: 20px; box-shadow: 0 3px 0 #b5a376; animation: roll .6s var(--ease); }
@keyframes roll { 0% { transform: rotate(-200deg) scale(.3); } 100% { transform: none; } }
.df .to { margin-left: auto; color: var(--paper-dim); }

/* Ratssitzung */
.gov { display: flex; align-items: center; gap: 30px; margin-top: 12px; }
.gov-card { width: 200px; padding: 14px 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gov-card .avatar { font-size: 46px; }
.gov-card .gn { font-size: 24px; font-weight: 700; }
.gov-card .gr { font-size: 14px; white-space: nowrap; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.gov-card.empty .avatar { background: #2a2440; box-shadow: 0 0 0 2px var(--line-2); }
.gov-card.empty .avatar::after { content: '?'; font-family: var(--display); font-size: .7em; color: var(--paper-faint); }
.gov-arrow { font-size: 40px; color: var(--paper-faint); animation: pulse 1.4s infinite; }
.votes-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; margin-top: 10px; }
.vote-chip { width: 62px; height: 82px; perspective: 600px; font-size: 13px; }
.vote-chip .vc-in { position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.vote-chip.flip .vc-in { transform: rotateY(180deg); }
.vote-chip .vc-f, .vote-chip .vc-b { position: absolute; inset: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; backface-visibility: hidden; }
.vote-chip .vc-f { background: #241f3b; border: 1px solid var(--line); }
.vote-chip .vc-f .avatar { font-size: 22px; }
.vote-chip .vc-b { transform: rotateY(180deg); font-family: var(--display); font-size: 24px; letter-spacing: .04em; }
.vote-chip .vc-b.ja { background: linear-gradient(160deg, #4be3a0, #138a57); color: #03130b; }
.vote-chip .vc-b.nein { background: linear-gradient(160deg, #ff6b81, #8f1630); color: #fff; }
.vote-chip .vc-b small { font-family: var(--body); font-size: 12px; opacity: .8; }
.vote-chip .env { font-size: 18px; opacity: .3; }
.vote-chip.voted .env { opacity: 1; animation: pop .4s var(--bounce); }
.result-banner { font-family: var(--display); font-size: 54px; letter-spacing: .06em; margin-top: 12px; animation: pop .6s var(--bounce) both; }
.result-banner.yes { color: var(--green); text-shadow: 0 0 40px rgba(75, 227, 160, .6); }
.result-banner.no { color: var(--red); text-shadow: 0 0 40px rgba(255, 59, 92, .6); }
.hand { display: flex; gap: 18px; margin-top: 20px; }
.hand .law-card { font-size: 14px; animation: dealIn .6s var(--bounce) both; }
.hand .law-card:nth-child(2) { animation-delay: .12s; }
.hand .law-card:nth-child(3) { animation-delay: .24s; }
@keyframes dealIn { from { transform: translateY(-80px) rotate(-15deg); opacity: 0; } to { transform: none; opacity: 1; } }
.enacted-wrap { perspective: 1000px; margin-top: 16px; }
.enacted-card { font-size: 20px; animation: bigFlip 1.1s var(--ease) both; }
@keyframes bigFlip { 0% { transform: rotateY(180deg) scale(.6); opacity: 0; } 60% { transform: rotateY(-10deg) scale(1.08); opacity: 1; } 100% { transform: none; } }

/* Tribunal */
.trib-title { font-family: var(--display); font-size: 92px; letter-spacing: .12em; color: var(--red); text-shadow: 0 0 40px rgba(255, 59, 92, .6); animation: flicker 3s infinite; line-height: 1; }
.tally { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.tally-row { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.tally-row .avatar { font-size: 18px; }
.tally-row .tn { width: 120px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally-row .bar { flex: 1; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.tally-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); width: 0; transition: width 1.2s var(--ease); }
.tally-row .vn { width: 30px; font-family: var(--mono); }
.arrest-box { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.arrest-box .avatar { font-size: 90px; filter: grayscale(.4); }
.arrest-box .an { font-size: 32px; font-weight: 700; }
.stamp { position: absolute; top: 40px; font-family: var(--display); font-size: 64px; color: var(--red); border: 6px solid var(--red); padding: 0 18px; border-radius: 10px; transform: rotate(-14deg);
  animation: stampIn .5s cubic-bezier(.5, 1.8, .5, 1) .9s both; background: rgba(19, 7, 12, .5); letter-spacing: .06em; }
@keyframes stampIn { 0% { transform: rotate(-14deg) scale(3); opacity: 0; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }
.reveal-tag { font-size: 24px; padding: 6px 18px; border-radius: 99px; animation: fadeUp .5s 1.6s both; }
.reveal-tag.gruender { background: rgba(63, 169, 255, .2); color: var(--blue); }
.reveal-tag.syndikat { background: rgba(255, 59, 92, .2); color: var(--red); }
.reveal-tag.neutral { background: rgba(155, 123, 255, .2); color: var(--violet); }

/* Krise */
.crisis-box { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 6; }
.crisis-box .ci { font-size: 110px; animation: pulse .6s infinite; }
.crisis-box .ct { font-family: var(--display); font-size: 72px; color: var(--red); letter-spacing: .05em; text-shadow: 0 0 30px rgba(255, 59, 92, .7); line-height: 1; }
.crisis-box .cd { font-size: 22px; color: var(--paper-dim); margin: 8px 0 18px; }
.fixers { display: flex; gap: 10px; justify-content: center; }
.fixers i { width: 46px; height: 46px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; font-style: normal; font-size: 24px; }
.fixers i.on { border: 2px solid var(--green); background: rgba(75, 227, 160, .2); box-shadow: 0 0 18px rgba(75, 227, 160, .5); animation: pop .4s var(--bounce); }
.crisis-timer { width: 70%; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-top: 20px; overflow: hidden; }
.crisis-timer i { display: block; height: 100%; background: var(--red); }
.crisis-frame { position: absolute; inset: 0; pointer-events: none; z-index: 50; box-shadow: inset 0 0 0 10px var(--red), inset 0 0 160px rgba(255, 59, 92, .5); animation: alarmPulse .8s infinite; }
@keyframes alarmPulse { 50% { opacity: .25; } }

/* Seitenleiste */
.side { position: absolute; left: 980px; top: 108px; width: 900px; height: 900px; display: flex; flex-direction: column; gap: 16px; }
.panel { background: linear-gradient(160deg, rgba(28, 25, 48, .85), rgba(19, 17, 31, .85)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.panel-h { font-size: 16px; letter-spacing: .25em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 12px; display: flex; justify-content: space-between; }
.panel-h b { color: var(--paper); letter-spacing: .05em; font-family: var(--mono); font-size: 20px; }
.track { display: flex; gap: 10px; margin-bottom: 12px; }
.slot { position: relative; flex: 1; height: 92px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .12); display: flex; flex-direction: column; justify-content: flex-end; padding: 6px; font-size: 12.5px; line-height: 1.15; color: var(--paper-faint); }
.blue-track .slot { border-color: rgba(63, 169, 255, .3); }
.red-track .slot { border-color: rgba(255, 59, 92, .3); }
.slot.win::before { content: '★'; position: absolute; top: 6px; right: 8px; font-size: 18px; }
.blue-track .slot.win::before { color: var(--blue); }
.red-track .slot.win::before { color: var(--red); }
.slot.filled { border: 0; color: #fff; }
.slot.filled .law-card { position: absolute; inset: 0; width: auto; height: auto; font-size: 11px; animation: slotIn .7s var(--bounce) both; }
.slot.filled .law-card .seal { font-size: 30px; }
@keyframes slotIn { 0% { transform: translateY(-60px) scale(1.4) rotate(8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.law-meta { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--paper-faint); letter-spacing: .1em; text-transform: uppercase; }
.tracker { display: flex; align-items: center; gap: 10px; }
.tracker i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.tracker i.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px var(--gold); }
.deck b { color: var(--paper); font-family: var(--mono); margin-left: 8px; }
.dev-bar { position: relative; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dev-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #1b7a55, var(--green), #b8ffe0); box-shadow: 0 0 30px rgba(75, 227, 160, .6); transition: width 1.2s var(--ease); }
.dev-fill::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .15) 14px 28px); animation: barber 1.5s linear infinite; }
@keyframes barber { to { background-position: 60px 0; } }
.dev-ticks { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0, 0, 0, .35) calc(10% - 2px) 10%); }
.players-p { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.player-list { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: start; }
.player-list.dense { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); transition: transform .3s var(--bounce), background .3s; }
.pc .avatar { font-size: 24px; }
.pc .pn { font-weight: 700; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc .pm { font-size: 14px; color: var(--paper-faint); font-family: var(--mono); }
.pc .tags { position: absolute; top: -9px; right: 8px; display: flex; gap: 4px; }
.pc .tags span { font-size: 13px; padding: 2px 7px; border-radius: 99px; background: var(--ink); border: 1px solid var(--line-2); }
.pc .tags .mayor { background: var(--gold); color: var(--ink); border: 0; font-weight: 700; }
.pc .tags .chanc { background: var(--violet); color: #fff; border: 0; font-weight: 700; }
.pc.dead { opacity: .5; filter: grayscale(.8); }
.pc.dead .pn { text-decoration: line-through; }
.pc.off .pn::after { content: ' ⚠'; color: var(--red); }
.pc .rv { font-size: 12px; padding: 2px 8px; border-radius: 99px; margin-left: auto; }
.pc .rv.gruender { background: rgba(63, 169, 255, .2); color: var(--blue); }
.pc .rv.syndikat { background: rgba(255, 59, 92, .2); color: var(--red); }
.pc .rv.neutral, .pc .rv.solo { background: rgba(155, 123, 255, .2); color: var(--violet); }
.pc.ping { animation: pop .5s var(--bounce); }
.pc .spark { position: absolute; right: 10px; top: 50%; color: var(--green); font-weight: 700; animation: sparkUp 1s var(--ease) forwards; }
@keyframes sparkUp { from { transform: translateY(-50%); opacity: 1; } to { transform: translateY(-160%); opacity: 0; } }

/* Spielfiguren */
.tokens { position: absolute; inset: 0; pointer-events: none; }
.token { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 17px; transition: left .22s var(--ease), top .22s var(--ease); z-index: 3; }
.token .avatar { width: 34px; height: 34px; }
.token.hop .avatar { animation: hop .22s ease-out; }
@keyframes hop { 50% { transform: translateY(-16px) scale(1.12); } }

/* Ticker */
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; display: flex; align-items: center; background: #07060d; border-top: 1px solid var(--line); }
.ticker-label { flex: none; height: 100%; display: grid; place-items: center; padding: 0 22px; background: var(--gold); color: var(--ink); font-family: var(--display); font-size: 24px; letter-spacing: .1em; }
.ticker-track { flex: 1; overflow: hidden; height: 100%; position: relative; mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
.ticker-inner { position: absolute; top: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; font-size: 22px; animation: tick linear infinite; will-change: transform; }
.ticker-inner span { padding: 0 34px; }
.ticker-inner span::before { content: '◆'; color: var(--gold); margin-right: 34px; font-size: 14px; vertical-align: 3px; }
.ticker-inner .k-blue { color: var(--blue); } .ticker-inner .k-red, .ticker-inner .k-bad, .ticker-inner .k-crisis, .ticker-inner .k-arrest { color: #ff8094; }
.ticker-inner .k-good { color: var(--green); } .ticker-inner .k-rumor, .ticker-inner .k-headline { color: var(--gold-2); font-style: italic; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Effekte */
.fx-layer { position: absolute; inset: 0; pointer-events: none; z-index: 100; }
.banner { position: absolute; left: 0; right: 0; top: 50%; height: 220px; margin-top: -110px; display: grid; place-items: center;
  background: linear-gradient(90deg, transparent, rgba(11, 10, 20, .92) 15%, rgba(11, 10, 20, .92) 85%, transparent); animation: bannerIn 2.6s var(--ease) forwards; }
.banner .bk { font-size: 24px; letter-spacing: .5em; color: var(--gold); text-transform: uppercase; }
.banner .bt { font-family: var(--display); font-size: var(--bs, 130px); white-space: nowrap; letter-spacing: .06em; line-height: 1; text-transform: uppercase; }
.banner::before, .banner::after { content: ''; position: absolute; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.banner::before { top: 0; } .banner::after { bottom: 0; }
.banner.red .bt { color: var(--red); } .banner.red::before, .banner.red::after { background: linear-gradient(90deg, transparent, var(--red), transparent); }
@keyframes bannerIn { 0% { clip-path: inset(50% 0 50% 0); } 15% { clip-path: inset(0 0 0 0); } 80% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; transform: scale(1.04); } }
.banner .bt { animation: btIn 2.6s var(--ease) forwards; }
@keyframes btIn { 0% { letter-spacing: .5em; opacity: 0; } 20% { letter-spacing: .06em; opacity: 1; } 100% { letter-spacing: .1em; } }

.law-pop { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 4, 9, .7); animation: fadeOut 4s forwards; perspective: 1400px; }
.law-pop .law-card { font-size: 36px; animation: bigFlip 1.2s var(--ease) both; }
.law-pop .lp-t { position: absolute; bottom: 170px; font-family: var(--display); font-size: 70px; letter-spacing: .05em; animation: fadeUp .6s .6s both; }
@keyframes fadeOut { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

.paper { position: absolute; left: 50%; top: 50%; width: 900px; transform: translate(-50%, -50%) rotate(-3deg); background: #efe3c4; color: #1a1612; padding: 30px 44px 36px; border-radius: 4px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7); animation: paperIn 6.5s var(--ease) forwards; font-family: Georgia, 'Times New Roman', serif; }
.paper .ph { display: flex; justify-content: space-between; border-bottom: 3px double #1a1612; padding-bottom: 8px; font-size: 18px; text-transform: uppercase; letter-spacing: .2em; }
.paper .pt { font-family: var(--display); font-size: 74px; line-height: 1; margin: 18px 0 10px; text-transform: uppercase; letter-spacing: .02em; }
.paper .pb { font-size: 34px; line-height: 1.3; font-style: italic; }
@keyframes paperIn { 0% { transform: translate(-50%, 60%) rotate(25deg) scale(.4); opacity: 0; } 12% { transform: translate(-50%, -50%) rotate(-3deg) scale(1); opacity: 1; } 88% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(.95); } }

.flash { position: absolute; inset: 0; animation: flashOut .9s forwards; }
.flash.red { background: rgba(255, 59, 92, .45); } .flash.green { background: rgba(75, 227, 160, .35); } .flash.white { background: rgba(255, 255, 255, .6); }
@keyframes flashOut { to { opacity: 0; } }
.coin-fly { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-2), var(--gold) 50%, #9a6c12); box-shadow: 0 0 14px var(--gold); animation: coinFly 1.4s var(--ease) forwards; }
@keyframes coinFly { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 20% { opacity: 1; transform: translate(var(--dx1), var(--dy1)) scale(1); } 100% { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }

.toasts { position: absolute; left: 980px; bottom: 76px; width: 900px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 90; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 14px; background: rgba(11, 10, 20, .94); border: 1px solid var(--line-2); font-size: 20px; animation: toastIn 4s var(--ease) forwards; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
@keyframes toastIn { 0% { transform: translateX(60px); opacity: 0; } 10% { transform: none; opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

#confetti { position: absolute; inset: 0; width: 1920px; height: 1080px; pointer-events: none; z-index: 120; }

/* Ende */
#end { display: grid; place-items: center; padding: 60px; background: radial-gradient(ellipse at 50% 30%, var(--wc, #2b1f4a) 0%, var(--ink) 65%); }
.end-inner { text-align: center; width: 100%; }
.end-k { font-size: 26px; letter-spacing: .5em; color: var(--paper-dim); text-transform: uppercase; animation: fadeUp .6s both; }
.end-t { font-family: var(--display); font-size: 170px; line-height: .95; text-transform: uppercase; margin: 10px 0; animation: pop .9s var(--bounce) .2s both; }
.end-r { font-size: 30px; color: var(--paper-dim); max-width: 1300px; margin: 0 auto 36px; animation: fadeUp .6s .5s both; }
.end-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1600px; margin: 0 auto; }
.ec { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); text-align: left; animation: fadeUp .5s both; }
.ec.win { border-color: var(--gold); box-shadow: 0 0 24px rgba(242, 193, 78, .3); }
.ec .avatar { font-size: 26px; }
.ec .en { font-weight: 700; font-size: 20px; }
.ec .er { font-size: 15px; }
.ec .er.gruender { color: var(--blue); } .ec .er.syndikat { color: var(--red); } .ec .er.neutral, .ec .er.solo, .ec .er.saboteur { color: var(--violet); }
.ec .crown { margin-left: auto; font-size: 22px; }
.end-stats { display: flex; gap: 18px; justify-content: center; margin-top: 30px; }
.stat { padding: 14px 22px; border-radius: 16px; background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .3); animation: fadeUp .5s 1s both; }
.stat .sl { font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.stat .sv { font-size: 22px; margin-top: 4px; }
.end-hint { margin-top: 30px; color: var(--paper-faint); font-size: 20px; }

.audio-ctl { position: absolute; right: 22px; bottom: 70px; display: flex; align-items: center; gap: 8px; z-index: 200; opacity: .35; transition: opacity .3s; padding: 6px 10px; border-radius: 99px; background: rgba(0, 0, 0, .5); }
.audio-ctl:hover { opacity: 1; }
.audio-ctl button { width: 40px; height: 40px; border-radius: 50%; background: var(--ink-3); font-size: 18px; }
.audio-ctl button.off { opacity: .4; text-decoration: line-through; }
.audio-ctl input { width: 110px; accent-color: var(--gold); }
#lobby ~ .audio-ctl { bottom: 22px; }
.offline { position: absolute; top: 0; left: 50%; transform: translate(-50%, -100%); background: var(--red); color: #fff; padding: 12px 30px; border-radius: 0 0 14px 14px; font-size: 20px; z-index: 300; transition: transform .4s var(--ease); }
.offline.show { transform: translate(-50%, 0); }
.sound-hint { position: absolute; top: 110px; left: 50%; transform: translateX(-50%); padding: 12px 26px; border-radius: 99px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: 20px; z-index: 250; cursor: pointer; animation: pulse 1.5s infinite; }
