html, body { width: 100%; height: 100%; overflow: hidden; }
#viewport { position: fixed; inset: 0; overflow: hidden; }
#app { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.screen { position: absolute; inset: 0; }
.panel { background: linear-gradient(160deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .035)); border: 1px solid var(--line); border-radius: 28px; backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .08); }

/* ---------- Splash ---------- */
#splash { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.sp-dome { font-size: 120px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(247, 201, 72, .4)); }
.sp-title { font-family: var(--display); font-size: 150px; line-height: .9; margin: 10px 0 14px; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #ffe7a3 55%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 40px rgba(247, 201, 72, .35)); animation: pop 1s cubic-bezier(.2, 1.4, .4, 1) both; }
.sp-sub { color: var(--gold); font-weight: 800; letter-spacing: .45em; text-transform: uppercase; font-size: 26px; animation: rise .8s .2s both; }
.sp-tag { color: var(--muted); font-size: 30px; margin: 18px 0 50px; animation: rise .8s .3s both; }
.sp-actions { display: flex; gap: 24px; animation: rise .8s .45s both; }
.sp-btn { font-size: 34px; padding: 24px 48px; border-radius: 24px; }
.sp-lang { margin-top: 40px; transform: scale(1.4); }
.sp-hint { margin-top: 34px; color: var(--muted); font-size: 22px; animation: blink 2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(40px); } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- Lobby ---------- */
#lobby { display: grid; grid-template-columns: 620px 1fr; gap: 28px; padding: 40px; }
.lb-left { display: flex; flex-direction: column; align-items: center; padding: 34px; text-align: center; }
.lb-logo { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-size: 40px; line-height: 1; }
.lb-logo span { font-size: 54px; }
.lb-join { margin-top: 26px; font-size: 34px; font-weight: 800; color: var(--gold); }
.lb-qr { margin: 22px 0; width: 400px; height: 400px; padding: 16px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 8px rgba(247, 201, 72, .5), 0 20px 60px rgba(0, 0, 0, .5); animation: qrglow 3s ease-in-out infinite; }
.lb-qr svg { width: 100%; height: 100%; display: block; }
@keyframes qrglow { 50% { box-shadow: 0 0 0 14px rgba(247, 201, 72, .25), 0 20px 60px rgba(0, 0, 0, .5); } }
.lb-scan { color: var(--muted); font-size: 22px; }
.lb-url { font-size: 30px; font-weight: 800; margin-top: 6px; word-break: break-all; }
.lb-code { margin-top: auto; display: flex; flex-direction: column; align-items: center; }
.lb-code span { color: var(--muted); font-size: 20px; text-transform: uppercase; letter-spacing: .2em; }
.lb-code b { font-family: var(--display); font-size: 110px; letter-spacing: .12em; line-height: 1; color: var(--gold); text-shadow: 0 8px 40px rgba(247, 201, 72, .45); }
.lb-right { display: flex; flex-direction: column; gap: 28px; min-height: 0; }
.lb-players { padding: 26px 30px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lb-h { font-family: var(--display); font-size: 30px; margin-bottom: 18px; }
.lb-h em { font-style: normal; color: var(--gold); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-content: start; overflow: hidden; }
.slots.many { grid-template-columns: repeat(6, 1fr); }
.slot { position: relative; border-radius: 20px; padding: 16px 12px; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgba(255, 255, 255, .06); border: 2px solid transparent; animation: slotIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.slot.filled { background: linear-gradient(170deg, color-mix(in srgb, var(--pc) 40%, transparent), rgba(0, 0, 0, .25)); border-color: var(--pc); }
.slot .sav { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--pc), 0 10px 20px rgba(0, 0, 0, .3); }
.slot .sname { font-weight: 800; font-size: 21px; line-height: 1.1; word-break: break-word; }
.slot .stag { font-size: 14px; color: var(--muted); font-weight: 700; }
.slot.empty { border: 2px dashed rgba(255, 255, 255, .18); color: var(--muted); font-weight: 700; }
.slot.empty .big { font-size: 46px; opacity: .6; }
.slot.empty.wait .big { animation: blink 1.6s ease-in-out infinite; }
.slot .kick { position: absolute; right: 8px; top: 8px; border: 0; background: rgba(0, 0, 0, .35); color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; opacity: .6; }
.slot .kick:hover { opacity: 1; background: var(--red); }
.slot .crown { position: absolute; left: 10px; top: 6px; font-size: 22px; }
.slot.off { opacity: .55; }
@keyframes slotIn { from { opacity: 0; transform: scale(.7); } }
.lb-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.lb-settings { padding: 24px 28px; display: grid; gap: 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 22px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel2); color: var(--text); font-size: 28px; font-weight: 800; }
.stepper button:hover { background: var(--gold); color: #111; }
.stepper b { font-family: var(--display); font-size: 38px; min-width: 56px; text-align: center; color: var(--gold); }
.toggle { width: 76px; height: 42px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .15); position: relative; transition: background .2s; flex: none; }
.toggle::after { content: ''; position: absolute; left: 5px; top: 5px; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: left .25s cubic-bezier(.3, 1.4, .5, 1); }
.toggle.on { background: var(--green); }
.toggle.on::after { left: 39px; }
.seat-info { font-size: 19px; color: var(--muted); background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 12px 16px; line-height: 1.5; }
.seat-info b { color: var(--gold); }
.start-btn { font-size: 32px; padding: 20px; width: 100%; }
.lb-rules { padding: 24px 28px; }
.lb-rules ol { margin: 0; padding-left: 26px; display: grid; gap: 12px; font-size: 20px; color: #dfe2ff; line-height: 1.35; }
.lb-rules li::marker { color: var(--gold); font-weight: 800; }

/* ---------- Spiel ---------- */
#topbar { position: absolute; left: 24px; right: 24px; top: 16px; height: 84px; display: flex; align-items: center; gap: 22px; }
.tb-logo { display: flex; align-items: center; gap: 12px; min-width: 330px; }
.tb-logo span { font-size: 46px; }
.tb-logo b { font-family: var(--display); font-size: 26px; display: block; line-height: 1; }
.tb-logo small { color: var(--gold); font-weight: 700; font-size: 17px; }
.tb-phases { flex: 1; display: flex; justify-content: center; gap: 8px; }
.ph { padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 19px; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: all .4s; white-space: nowrap; }
.ph.done { color: #c9cdf3; opacity: .7; }
.ph.on { color: #1a1300; background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: transparent; transform: scale(1.08); box-shadow: 0 6px 24px rgba(247, 201, 72, .45); }
.ph.final.on { background: linear-gradient(180deg, #ff8a96, #ff3349); color: #fff; }
.tb-right { display: flex; align-items: center; gap: 16px; }
.themebox { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 20px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.themebox .tcard { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 36px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tc) 80%, #fff), var(--tc)); box-shadow: 0 0 24px color-mix(in srgb, var(--tc) 70%, transparent); animation: tpulse 3s ease-in-out infinite; }
@keyframes tpulse { 50% { transform: scale(1.06) rotate(-3deg); } }
.themebox small { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.themebox b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.05; }
.themebox .nx { font-size: 15px; color: var(--muted); }
.tb-code { font-family: var(--display); font-size: 22px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: var(--gold); letter-spacing: .1em; }

#main { position: absolute; left: 24px; right: 24px; top: 112px; bottom: 70px; display: grid; grid-template-columns: 1fr 560px; gap: 22px; }
#leftcol { display: grid; grid-template-rows: 430px 1fr; gap: 20px; min-height: 0; }
#parl { position: relative; overflow: hidden; padding: 10px 20px 0; }
#hemi { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); width: 690px; height: 352px; overflow: visible; }
.parl-center { position: absolute; left: 50%; top: 268px; transform: translateX(-50%); text-align: center; width: 230px; }
.parl-center .tot { font-family: var(--display); font-size: 50px; line-height: 1; }
.parl-center .tot small { font-size: 17px; color: var(--muted); font-family: var(--body); font-weight: 700; display: block; }
.parl-center .maj { margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--gold); }
.majline { position: absolute; left: 50%; top: 4px; width: 3px; height: 34px; background: var(--gold); transform: translateX(-50%); border-radius: 3px; box-shadow: 0 0 12px var(--gold); }
.govbar { position: absolute; left: 18px; right: 18px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 16px; }
.govbar.many { font-size: 16px; gap: 6px; flex-wrap: nowrap; }
.govbar.many .gchip { padding: 4px 8px 4px 6px; gap: 5px; }
.parl-side .val .plogo { vertical-align: middle; margin-bottom: 4px; }
.banner .emo { font-size: 110px; line-height: 1; animation: pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.parl-side { position: absolute; top: 22px; width: 300px; font-size: 18px; }
.parl-side.l { left: 26px; }
.parl-side.r { right: 26px; text-align: right; }
.parl-side .lbl { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.parl-side .val { font-family: var(--display); font-size: 30px; }
.meter { position: relative; height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: visible; margin-top: 8px; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--green), #b4ffde); transition: width .8s cubic-bezier(.3, 1.2, .4, 1); }
.meter i.short { background: linear-gradient(90deg, var(--red), #ffb3bb); }
.meter em { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--gold); border-radius: 3px; box-shadow: 0 0 10px var(--gold); }

#stage { position: relative; overflow: hidden; padding: 22px 28px; }
.st-title { font-family: var(--display); font-size: 34px; display: flex; align-items: center; gap: 14px; }
.st-title small { font-family: var(--body); font-size: 20px; color: var(--muted); font-weight: 700; }
.st-hint { color: var(--muted); font-size: 21px; margin-top: 6px; }

/* Kandidat:innen-Wahl */
.pickgrid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 26px; }
.pickp { width: 170px; text-align: center; padding: 16px 10px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 2px solid var(--line); transition: all .4s; }
.pickp .q { width: 90px; height: 120px; margin: 0 auto 10px; border-radius: 14px; background: repeating-linear-gradient(45deg, #2a2f6b, #2a2f6b 8px, #222760 8px, #222760 16px); border: 3px solid var(--pc); display: grid; place-items: center; font-size: 40px; animation: shuffle 1.4s ease-in-out infinite; }
.pickp.done { border-color: var(--green); background: rgba(46, 229, 157, .12); }
.pickp.done .q { animation: none; }
.pickp b { font-size: 19px; }
@keyframes shuffle { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.revealgrid { display: flex; gap: 16px; justify-content: center; align-items: flex-start; margin-top: 14px; flex-wrap: nowrap; }
.revealgrid .rv { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: flipIn .8s cubic-bezier(.2, 1.3, .4, 1) both; }
.revealgrid .rv .ccard { transform: scale(.82); transform-origin: top center; margin-bottom: -60px; }
.revealgrid.many { flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.revealgrid.many .rv .ccard { transform: scale(.5); margin: 0 -52px -172px; }
.revealgrid.many .rvn { font-size: 14px; }
.revealgrid .rvn { font-weight: 800; font-size: 18px; display: flex; gap: 8px; align-items: center; }
@keyframes flipIn { from { opacity: 0; transform: perspective(800px) rotateY(100deg) translateY(30px); } }

/* Duell */
.duel { display: grid; grid-template-columns: 1fr 300px 1fr; gap: 10px; height: 100%; align-items: center; }
.dside { display: flex; align-items: center; gap: 20px; padding: 12px; border-radius: 24px; transition: all .5s; height: 100%; }
.dside.R { flex-direction: row-reverse; text-align: right; }
.dside .ccard { transform: scale(.88); flex: none; }
.dside.win { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--pc) 35%, transparent), transparent 70%); }
.dside.win .ccard { box-shadow: 0 0 0 6px var(--gold), 0 0 50px var(--gold), inset 0 0 0 3px var(--pc); }
.dside.lose { opacity: .55; filter: saturate(.5); }
.dinfo { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dside.R .dinfo { align-items: flex-end; }
.dname { font-family: var(--display); font-size: 30px; line-height: 1.05; display: flex; align-items: center; gap: 10px; }
.dice { display: flex; gap: 14px; min-height: 80px; }
.dcalc { font-size: 21px; font-weight: 700; color: #dfe2ff; }
.dcalc .eq { font-family: var(--display); font-size: 48px; color: var(--gold); margin-left: 6px; }
.dwait { font-size: 20px; font-weight: 800; color: var(--gold); animation: blink 1.2s ease-in-out infinite; }
.dmid { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.vs { font-family: var(--display); font-size: 92px; line-height: 1; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: vsPulse 1.2s ease-in-out infinite; }
@keyframes vsPulse { 50% { transform: scale(1.1) rotate(-4deg); } }
.dmid .dn { color: var(--muted); font-weight: 800; font-size: 19px; letter-spacing: .06em; }
.dres { font-family: var(--display); font-size: 34px; line-height: 1.1; animation: pop .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.dres .gain { display: block; font-size: 54px; color: var(--green); text-shadow: 0 0 30px rgba(46, 229, 157, .5); }
.progress-dots { display: flex; gap: 6px; }
.progress-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.progress-dots i.d { background: var(--gold); }
.progress-dots i.c { background: #fff; box-shadow: 0 0 10px #fff; }

/* Regierungsbildung */
.form-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; height: 100%; }
.form-hint { font-size: 24px; line-height: 1.45; color: #dfe2ff; }
.form-hint .leader { margin-top: 18px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: rgba(247, 201, 72, .12); border: 1px solid rgba(247, 201, 72, .4); font-weight: 700; }
.cabinet { border-radius: 22px; background: rgba(0, 0, 0, .25); padding: 18px 22px; border: 1px solid var(--line); animation: rise .5s both; }
.cabinet h3 { margin: 0 0 12px; font-family: var(--display); font-size: 26px; display: flex; justify-content: space-between; align-items: center; }
.cab-list { display: grid; gap: 8px; font-size: 19px; }
.cab-list.two { grid-template-columns: 1fr 1fr; font-size: 14px; gap: 6px; }
.cab-list.two .gchip { padding: 4px 8px; }
.cab-list .gchip { overflow: hidden; }
.cab-members { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mem { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-weight: 700; font-size: 18px; }
.mem .st { font-size: 20px; }
.mem.ok { background: rgba(46, 229, 157, .18); }
.waiting-dots::after { content: '…'; animation: dots 1.2s steps(4) infinite; display: inline-block; width: 1em; overflow: hidden; vertical-align: bottom; }
@keyframes dots { from { width: 0; } to { width: 1.2em; } }

/* Spielrunde */
.turn-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 26px; height: 100%; }
.turn-who { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.turn-who .ccard { transform: scale(.86); transform-origin: top center; margin-bottom: -40px; }
.turn-who .tw-name { font-family: var(--display); font-size: 26px; display: flex; gap: 10px; align-items: center; }
.turn-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tb-head { font-family: var(--display); font-size: 36px; line-height: 1.1; }
.tb-head small { display: block; font-family: var(--body); font-size: 20px; color: var(--muted); font-weight: 700; }
.acts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.act { padding: 12px 8px; border-radius: 16px; background: rgba(255, 255, 255, .06); text-align: center; font-weight: 700; font-size: 15px; border: 1px solid var(--line); animation: actGlow 3s ease-in-out infinite; }
.act .ai { font-size: 30px; display: block; }
.act:nth-child(2n) { animation-delay: .6s; } .act:nth-child(3n) { animation-delay: 1.2s; }
@keyframes actGlow { 50% { background: rgba(247, 201, 72, .14); border-color: rgba(247, 201, 72, .5); } }
.check-box { display: flex; align-items: center; gap: 30px; padding: 18px 24px; border-radius: 22px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.check-eq { font-family: var(--display); font-size: 46px; display: flex; align-items: center; gap: 16px; }
.check-eq small { font-family: var(--body); font-size: 18px; color: var(--muted); display: block; font-weight: 700; }
.need { font-size: 20px; color: var(--muted); font-weight: 700; }
.stamp { display: inline-block; font-family: var(--display); font-size: 54px; padding: 6px 26px; border: 6px solid currentColor; border-radius: 16px; transform: rotate(-8deg); animation: stampIn .5s cubic-bezier(.2, 1.8, .4, 1) both; text-shadow: 0 0 20px currentColor; }
.stamp.ok { color: var(--green); } .stamp.bad { color: var(--red); }
@keyframes stampIn { from { opacity: 0; transform: rotate(-8deg) scale(3); } }
.tgt { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-weight: 700; font-size: 20px; }
.vote-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.vote-wrap .pcard { transform: scale(1.12); transform-origin: top left; width: 250px; }
.vote-wrap .pcard .pcard-title { font-size: 20px; }
.tally { position: relative; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 10px 0 8px; }
.tally .yes { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #12b97a, var(--green)); transition: width .7s cubic-bezier(.3, 1.2, .4, 1); }
.tally .no { position: absolute; right: 0; top: 0; bottom: 0; background: linear-gradient(270deg, #c91f35, var(--red)); transition: width .7s cubic-bezier(.3, 1.2, .4, 1); opacity: .85; }
.tally .mk { position: absolute; top: -4px; bottom: -4px; width: 4px; background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.tally .lbl { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; font-family: var(--display); font-size: 24px; text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.voters { display: flex; flex-wrap: wrap; gap: 8px; }
.voter { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-weight: 700; font-size: 17px; border: 2px solid transparent; transition: all .3s; }
.voter.y { border-color: var(--green); background: rgba(46, 229, 157, .15); }
.voter.n { border-color: var(--red); background: rgba(255, 77, 94, .15); }
.voter .vs2 { font-size: 18px; }
.gov-assign { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 17px; }
.opp-show { display: flex; gap: 30px; align-items: center; }
.opp-show .ocard { width: 360px; transform: rotate(-3deg); animation: slam .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.opp-show .ocard .ocard-title { font-size: 26px; } .opp-show .ocard .ocard-desc { font-size: 18px; }
@keyframes slam { from { opacity: 0; transform: rotate(-20deg) scale(2.2); } }
.swapcards { display: flex; gap: 24px; margin-top: 10px; }
.swapcards i { width: 120px; height: 168px; border-radius: 16px; background: repeating-linear-gradient(45deg, #2a2f6b, #2a2f6b 8px, #222760 8px, #222760 16px); border: 3px solid var(--gold); animation: shuffle 1s ease-in-out infinite; display: block; }
.swapcards i:nth-child(2) { animation-delay: .5s; }

/* Spieler-Leiste */
#players { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; }
#players.compact { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: min-content; gap: 8px; }
.pl { --pc: #888; position: relative; display: grid; grid-template-columns: 78px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 22px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--pc) 26%, rgba(10, 14, 40, .6)), rgba(10, 14, 40, .55)); border: 2px solid color-mix(in srgb, var(--pc) 55%, transparent); transition: transform .4s, box-shadow .4s, border-color .4s; flex: 1; max-height: 150px; min-height: 0; }
.pl.turn { transform: scale(1.025) translateX(-8px); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(247, 201, 72, .35), 0 0 40px rgba(247, 201, 72, .3); }
.pl.turn::before { content: '▶'; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 22px; animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(5px, -50%); } }
.pl.off { opacity: .6; }
.pl-av { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--pc); background: rgba(255, 255, 255, .1); position: relative; }
.pl-av .nocand { display: grid; place-items: center; width: 100%; height: 100%; font-size: 34px; }
.pl-main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pl-name { font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name .nm { overflow: hidden; text-overflow: ellipsis; }
.pl-cand { font-size: 15px; color: #d6d9f7; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
.pl-cand .cp { font-family: var(--display); background: rgba(0, 0, 0, .35); padding: 0 8px; border-radius: 8px; font-size: 15px; }
.pl-badges { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; font-size: 14px; overflow: hidden; }
.mini { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 7px; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.mini.sc { background: repeating-linear-gradient(45deg, #2a2f6b, #2a2f6b 4px, #222760 4px, #222760 8px); border: 1px solid rgba(255, 255, 255, .25); }
.mini.sc.rev { background: #d72f43; border-color: #ff8a96; }
.mini.gov { background: rgba(247, 201, 72, .22); border: 1px solid rgba(247, 201, 72, .6); font-size: 15px; }
.mini.al { background: transparent; padding: 0; min-width: 20px; font-size: 16px; }
.mini.al.match { filter: drop-shadow(0 0 6px #fff); transform: scale(1.2); }
.pl-nums { display: flex; gap: 10px; text-align: center; }
.pl-nums div { min-width: 64px; }
.pl-nums b { display: block; font-family: var(--display); font-size: 36px; line-height: 1; }
.pl-nums span { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pl-nums .vp b { color: var(--gold); }
.pl .take { position: absolute; right: 10px; bottom: -8px; font-size: 12px; padding: 4px 10px; border-radius: 10px; border: 0; background: var(--red); color: #fff; font-weight: 800; z-index: 2; }
.tagbadge { font-size: 11px; padding: 2px 7px; border-radius: 7px; background: rgba(247, 201, 72, .2); color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.tagbadge.opp { background: rgba(255, 255, 255, .1); color: var(--muted); }
#players.compact .pl { grid-template-columns: 54px 1fr auto; padding: 6px 8px; gap: 8px; border-radius: 16px; max-height: 128px; }
#players.compact .pl-av { width: 54px; height: 54px; }
#players.compact .pl-name { font-size: 16px; }
#players.compact .pl-cand { font-size: 12px; }
#players.compact .pl-nums div { min-width: 40px; }
#players.compact .pl-nums b { font-size: 24px; }
#players.compact .pl-nums span { font-size: 9px; }
#players.compact .mini { min-width: 20px; height: 20px; font-size: 11px; }
#players.compact .pl.turn::before { display: none; }
#players.compact .tagbadge { display: none; }
#players.compact .pl-nums { flex-direction: column; gap: 2px; }
#players.compact .pl-nums div { display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
#players.compact .pl-nums b { font-size: 22px; }
#players.compact .pl-badges .mini.sc ~ .mini:not(.sc) { display: none; }
.pl.flash { animation: flash .8s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--pc); } 30% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--pc) 60%, transparent); } 100% { box-shadow: 0 0 0 20px transparent; } }

/* Ticker */
#ticker { position: absolute; left: 24px; right: 320px; bottom: 14px; height: 44px; display: flex; align-items: center; gap: 16px; border-radius: 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line); padding: 0 16px; overflow: hidden; }
.live { color: #ff5d6c; font-weight: 900; letter-spacing: .1em; font-size: 15px; animation: blink 1.6s infinite; white-space: nowrap; }
#tickerList { display: flex; gap: 34px; white-space: nowrap; overflow: hidden; font-size: 18px; flex: 1; }
#tickerList span { color: var(--muted); }
#tickerList span:first-child { color: #fff; font-weight: 700; animation: tickIn .6s both; }
@keyframes tickIn { from { opacity: 0; transform: translateX(-30px); } }

/* Effekte */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 50; }
.ov { position: absolute; inset: 0; display: grid; place-items: center; }
.ov.dim { background: radial-gradient(circle, rgba(7, 11, 34, .8), rgba(7, 11, 34, .95)); animation: fadeIn .3s both; }
.ov.out { animation: fadeOut .45s both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.banner { text-align: center; }
.banner .big { font-family: var(--display); font-size: 126px; line-height: .95; letter-spacing: -.01em; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .6)); animation: sweep 1s cubic-bezier(.2, 1.3, .3, 1) both; }
.banner .small { font-size: 34px; font-weight: 800; color: #dfe2ff; margin-top: 14px; animation: rise .6s .25s both; }
.banner.red .big { background: linear-gradient(180deg, #fff, #ff5d6c); -webkit-background-clip: text; background-clip: text; }
.banner .stripe { position: absolute; left: 0; right: 0; top: 50%; height: 260px; transform: translateY(-50%) skewY(-4deg); background: linear-gradient(90deg, transparent, rgba(247, 201, 72, .18), transparent); animation: stripe 1s ease-out both; z-index: -1; }
@keyframes sweep { from { opacity: 0; transform: translateX(-300px) skewX(20deg); letter-spacing: .3em; } }
@keyframes stripe { from { transform: translateY(-50%) skewY(-4deg) scaleX(0); } }
.news { width: 1100px; background: #f4f0e6; color: #141414; border-radius: 8px; padding: 30px 46px 40px; box-shadow: 0 40px 120px rgba(0, 0, 0, .7); animation: spinIn 1s cubic-bezier(.2, 1.1, .3, 1) both; font-family: Georgia, 'Times New Roman', serif; position: relative; }
.news .mast { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px double #141414; padding-bottom: 10px; font-family: var(--display); font-size: 26px; letter-spacing: .05em; }
.news .mast .brk { background: #d72f43; color: #fff; padding: 4px 14px; border-radius: 4px; animation: blink 1s infinite; }
.news h2 { font-size: 78px; line-height: 1; margin: 22px 0 14px; font-weight: 900; }
.news .lead { font-size: 30px; font-style: italic; display: flex; align-items: center; gap: 22px; }
.news .lead .nav { width: 110px; height: 110px; border-radius: 6px; overflow: hidden; filter: grayscale(1) contrast(1.2); flex: none; border: 3px solid #141414; }
.news .res { position: absolute; right: 40px; bottom: -30px; font-family: var(--display); font-size: 54px; color: #fff; background: #d72f43; padding: 8px 24px; transform: rotate(-6deg); border-radius: 8px; animation: stampIn .5s .7s cubic-bezier(.2, 1.8, .4, 1) both; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
@keyframes spinIn { from { opacity: 0; transform: rotate(-540deg) scale(.1); } }
.themeflip { text-align: center; }
.themeflip .card { width: 320px; height: 420px; margin: 0 auto 20px; border-radius: 30px; display: grid; place-items: center; font-size: 170px; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tc) 70%, #fff), var(--tc)); box-shadow: 0 0 80px color-mix(in srgb, var(--tc) 60%, transparent), 0 30px 80px rgba(0, 0, 0, .5); animation: flipIn 1s cubic-bezier(.2, 1.3, .4, 1) both; border: 8px solid rgba(255, 255, 255, .6); }
.themeflip .tt { font-family: var(--display); font-size: 80px; animation: rise .6s .4s both; }
.themeflip .lbl { font-size: 28px; color: var(--muted); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.govformed { text-align: center; animation: pop .8s cubic-bezier(.2, 1.4, .4, 1) both; }
.govformed .big { font-family: var(--display); font-size: 110px; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.govformed .cab { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; max-width: 1500px; }
.govformed .cab .cabi { animation: rise .5s both; }
.govformed .cab .gchip { font-size: 24px; padding: 12px 18px; background: color-mix(in srgb, var(--pc) 30%, #0b1030); }
.float { position: absolute; font-family: var(--display); font-size: 38px; pointer-events: none; animation: floatUp 2.2s ease-out forwards; text-shadow: 0 3px 12px rgba(0, 0, 0, .7); white-space: nowrap; z-index: 60; }
.float.pos { color: var(--green); } .float.neg { color: var(--red); } .float.gold { color: var(--gold); }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 15% { opacity: 1; transform: translateY(0) scale(1.2); } 30% { transform: scale(1); } 100% { opacity: 0; transform: translateY(-55px); } }
.starter { text-align: center; }
.starter .die { margin-bottom: 20px; }
.oppfx .ocard { width: 560px; transform: rotate(-4deg); animation: slam .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.oppfx .ocard .ocard-title { font-size: 44px; } .oppfx .ocard .ocard-desc { font-size: 26px; } .oppfx .ocard .ocard-head { font-size: 20px; }
.oppfx .who { text-align: center; font-size: 34px; font-weight: 800; margin-bottom: 26px; }
.rays { position: absolute; left: 50%; top: 50%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; background: repeating-conic-gradient(rgba(247, 201, 72, .14) 0 6deg, transparent 6deg 18deg); animation: spin2 20s linear infinite; z-index: -1; border-radius: 50%; mask-image: radial-gradient(circle, #000 10%, transparent 55%); }
@keyframes spin2 { to { transform: rotate(360deg); } }

/* Endbildschirm */
#endscreen { position: absolute; inset: 0; z-index: 40; background: radial-gradient(circle at 50% 30%, rgba(40, 30, 100, .92), rgba(7, 11, 34, .97)); display: flex; flex-direction: column; align-items: center; padding: 40px; animation: fadeIn .8s both; }
.end-title { font-family: var(--display); font-size: 90px; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.podium { display: flex; align-items: flex-end; gap: 30px; margin-top: 20px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: rise .8s both; }
.pod .pav { width: 150px; height: 150px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--pc), 0 20px 50px rgba(0, 0, 0, .5); }
.pod.p1 .pav { width: 210px; height: 210px; box-shadow: 0 0 0 8px var(--gold), 0 0 80px rgba(247, 201, 72, .6); }
.pod .pn { font-family: var(--display); font-size: 30px; }
.pod .pv { font-size: 26px; font-weight: 800; color: var(--gold); }
.pod .blk { width: 260px; border-radius: 20px 20px 0 0; display: grid; place-items: center; font-family: var(--display); font-size: 80px; color: rgba(255, 255, 255, .85); background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 70%, #fff), color-mix(in srgb, var(--pc) 60%, #000)); }
.pod.p1 .blk { height: 230px; } .pod.p2 .blk { height: 160px; } .pod.p3 .blk { height: 110px; }
.pod.p1 { animation-delay: .9s; } .pod.p2 { animation-delay: .5s; } .pod.p3 { animation-delay: .2s; }
.pod .crown { font-size: 70px; animation: float 2s ease-in-out infinite; }
.rest { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.rest .r { padding: 10px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: 20px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.end-bonus { margin-top: 18px; font-size: 22px; color: var(--muted); }
.end-actions { margin-top: 26px; }

/* Werkzeuge */
#tools { position: absolute; right: 24px; top: 1022px; display: none; gap: 8px; z-index: 80; }
#tools.show { display: flex; }
.tool { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; font-weight: 800; }
.tool.off { opacity: .4; }
.tool:hover { background: var(--gold); color: #111; }
.hostmenu { position: absolute; right: 0; bottom: 56px; width: 340px; padding: 14px; border-radius: 18px; background: rgba(12, 16, 50, .97); border: 1px solid var(--line); display: grid; gap: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.hostmenu h4 { margin: 0 0 4px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.hostmenu .btn { width: 100%; }
.conn { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); z-index: 99; background: var(--red); color: #fff; padding: 12px 24px; border-radius: 14px; font-weight: 800; font-size: 20px; }
#tickerList span b { color: var(--gold); }
