/* Big screen: a fixed 1920×1080 stage scaled to fit any TV or projector. */

html, body { height: 100%; overflow: hidden; background: #000; }
#viewport { position: fixed; inset: 0; display: grid; place-items: center; background: #000; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  overflow: hidden;
  font-size: 34px;
  background: var(--night);
}

/* ---------- atmosphere ---------- */
.bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 38%, rgba(48, 86, 230, .55), rgba(10, 26, 94, .35) 45%, transparent 75%),
    radial-gradient(ellipse 120% 80% at 50% 120%, #0a1a5e 0%, #030a2e 45%, #01040f 80%);
  transition: filter 1.2s ease;
}
.beams { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; transition: opacity 1.2s ease; }
.beams i {
  position: absolute; bottom: -120px; left: 50%; width: 260px; height: 1500px;
  transform-origin: 50% 100%;
  background: linear-gradient(0deg, rgba(120, 160, 255, .0) 0%, rgba(120, 160, 255, .22) 30%, rgba(160, 190, 255, .06) 80%, transparent 100%);
  filter: blur(18px);
  clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0);
  animation: sweep 14s ease-in-out infinite alternate;
}
.beams i:nth-child(1) { --a: -38deg; animation-duration: 13s; }
.beams i:nth-child(2) { --a: -16deg; animation-duration: 17s; animation-delay: -4s; }
.beams i:nth-child(3) { --a: 4deg; animation-duration: 15s; animation-delay: -9s; }
.beams i:nth-child(4) { --a: 22deg; animation-duration: 19s; animation-delay: -2s; }
.beams i:nth-child(5) { --a: 41deg; animation-duration: 16s; animation-delay: -7s; }
@keyframes sweep {
  from { transform: translateX(-50%) rotate(calc(var(--a) - 9deg)); }
  to { transform: translateX(-50%) rotate(calc(var(--a) + 9deg)); }
}
.floor {
  position: absolute; left: -10%; right: -10%; bottom: -380px; height: 640px;
  background: radial-gradient(ellipse at 50% 30%, rgba(70, 120, 255, .35), rgba(20, 50, 160, .12) 45%, transparent 70%);
  pointer-events: none;
}
#sparkle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.flash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 70%, rgba(255,255,255,.55), transparent 70%); }
.flash.go { animation: flash .9s ease-out; }
.flash.go.red { background: radial-gradient(ellipse at 50% 70%, rgba(255, 60, 60, .45), transparent 70%); }
.flash.go.gold { background: radial-gradient(ellipse at 50% 60%, rgba(255, 200, 90, .55), transparent 70%); }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }

/* Tension when an answer is locked in: lights dim and pulse. */
.stage.tense .beams { opacity: .25; }
.stage.tense .bg { filter: brightness(.7) saturate(1.2); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { filter: brightness(.55) saturate(1.3); } }
.stage.won .bg { filter: brightness(1.25) saturate(1.2); }
.stage.lost .bg { filter: brightness(.6) hue-rotate(-20deg); }

/* ---------- scenes ---------- */
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.stage[data-scene="lobby"] .lobby,
.stage[data-scene="intro"] .intro,
.stage[data-scene="game"] .game,
.stage[data-scene="over"] .over { opacity: 1; visibility: visible; transition: opacity .9s ease, visibility 0s; }

.emblem { display: block; filter: drop-shadow(0 0 40px rgba(90, 140, 255, .55)); }
.show-title {
  margin: 0; text-align: center; text-transform: uppercase; letter-spacing: .06em;
  font-weight: 800; font-size: 104px; line-height: 1;
  background: linear-gradient(180deg, #fff6d8 0%, #ffd06a 38%, #d98a12 58%, #ffe1a0 78%, #b46400 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.45)) drop-shadow(0 0 30px rgba(255, 180, 60, .25));
}

/* Lobby */
.lobby { display: flex; flex-direction: column; align-items: center; padding-top: 70px; }
.lobby-emblem .emblem { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.lobby .show-title { margin-top: 10px; }
.show-sub { margin: 18px 0 0; font-size: 44px; font-weight: 500; color: var(--ice); letter-spacing: .04em; }
.lobby-join {
  position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 34px;
  padding: 22px 40px 22px 22px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(20, 40, 130, .75), rgba(4, 12, 51, .85));
  border: 2px solid rgba(207, 218, 243, .35);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.15);
}
.lobby-join .qr { width: 190px; height: 190px; border-radius: 14px; background: #fff; padding: 8px; }
.lobby-join strong { display: block; font-size: 46px; color: var(--gold-hi); }
.lobby-join span { display: block; font-size: 30px; color: var(--ice); max-width: 760px; margin: 6px 0 14px; }
.lobby-join code { font-family: var(--font); font-size: 34px; font-weight: 600; color: #fff; letter-spacing: .02em; }

/* Intro */
.intro { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.intro-burst {
  position: absolute; left: 50%; top: 42%; width: 1800px; height: 1800px; transform: translate(-50%, -50%) scale(.2);
  background: repeating-conic-gradient(from 0deg, rgba(255, 210, 120, .16) 0deg 4deg, transparent 4deg 15deg);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  opacity: 0;
}
.intro .show-title, .intro-welcome { opacity: 0; transform: translateY(30px); }
.intro-emblem { opacity: 0; transform: scale(.4); }
.stage.intro-play .intro-burst { animation: burst 9s ease-out forwards; }
.stage.intro-play .intro-emblem { animation: emblemIn 2.4s cubic-bezier(.2, .9, .2, 1.1) 1.6s forwards; }
.stage.intro-play .intro .show-title { animation: rise 1.2s ease 2.6s forwards; }
.stage.intro-play .intro-welcome { animation: rise 1.2s ease 4.4s forwards; }
@keyframes burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); } 25% { opacity: 1; } 100% { opacity: .5; transform: translate(-50%, -50%) scale(1.1) rotate(40deg); } }
@keyframes emblemIn { 0% { opacity: 0; transform: scale(.4) rotate(-25deg); filter: brightness(3); } 60% { opacity: 1; filter: brightness(1.6); } 100% { opacity: 1; transform: scale(1) rotate(0); filter: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.intro-welcome { margin: 28px 0 0; text-align: center; font-size: 46px; color: var(--ice); line-height: 1.25; }
.intro-welcome strong { display: inline-block; margin-top: 6px; font-size: 84px; color: #fff; font-weight: 800; letter-spacing: .02em; text-shadow: 0 0 30px rgba(120, 160, 255, .7); }

/* ---------- game scene ---------- */
.hero {
  position: absolute; left: 60px; top: 50px; width: 1340px; height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s ease, transform .6s ease;
}
.hero-emblem .emblem { animation: float 7s ease-in-out infinite; }
.hero-name { margin-top: 6px; font-size: 64px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 0 24px rgba(110, 150, 255, .7); }
.hero-status { margin-top: 6px; font-size: 40px; font-weight: 600; color: var(--gold-hi); letter-spacing: .03em; min-height: 48px; }
.stage.has-overlay .hero { opacity: 0; transform: scale(.96); }

.dock {
  position: absolute; left: 0; top: 10px; width: 360px; padding: 18px 22px 14px;
  border-radius: 20px; background: rgba(4, 12, 51, .82); border: 2px solid rgba(207, 218, 243, .3);
  opacity: 0; transform: translateX(-20px); transition: opacity .5s ease, transform .5s ease;
}
.dock.on { opacity: 1; transform: none; }
.dock h3 { margin: 0 0 10px; font-size: 22px; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dock .bars { height: 170px; }
.dock .bar-col .pct { font-size: 24px; }
.dock .bar-col .lbl { font-size: 26px; }

/* Ladder */
.ladder {
  position: absolute; right: 50px; top: 40px; width: 440px; height: 640px;
  padding: 18px 16px 16px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 26, 94, .78), rgba(2, 6, 28, .88));
  border: 2px solid rgba(207, 218, 243, .32);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12);
  display: flex; flex-direction: column;
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s ease;
}
.jokers { display: flex; justify-content: space-around; gap: 10px; padding: 0 6px 14px; border-bottom: 1px solid rgba(207, 218, 243, .2); margin-bottom: 8px; }
.joker {
  position: relative; width: 112px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(ellipse at 50% 30%, #3c64e6, #0d2172 60%, #040b31);
  border: 3px solid #cfdaf3;
  box-shadow: 0 0 18px rgba(90, 140, 255, .45);
  transition: filter .4s ease, transform .4s ease;
}
.joker .j-face { font-size: 30px; font-weight: 800; width: 62px; height: 40px; display: grid; place-items: center; }
span.j-face { width: auto; height: auto; letter-spacing: .02em; }
.joker .count {
  position: absolute; right: -8px; top: -10px; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 17px;
  background: var(--gold); color: #1a0d00; font-size: 22px; font-weight: 800; display: grid; place-items: center;
  border: 2px solid #fff3d6;
}
.joker .x { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease; }
.joker .x::before, .joker .x::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 92px; height: 7px; border-radius: 4px;
  background: var(--red); box-shadow: 0 0 8px rgba(229, 72, 77, .8);
  transform: translate(-50%, -50%) rotate(30deg);
}
.joker .x::after { transform: translate(-50%, -50%) rotate(-30deg); }
.joker.used { background: radial-gradient(ellipse at 50% 30%, #3a4260, #1a1f33 60%, #0b0e1a); border-color: #6b7593; box-shadow: none; }
.joker.used .j-face { opacity: .35; }
.joker.used .x { opacity: 1; }
.joker.used .count { display: none; }
.joker.pop { animation: pop .7s ease; }
@keyframes pop { 30% { transform: scale(1.25); filter: brightness(1.8); } }

.rungs { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.rung {
  --cut: 18px;
  position: relative; display: grid; grid-template-columns: 50px 30px 1fr; align-items: center;
  height: 34px; padding: 0 20px 0 18px;
  font-size: 28px; font-weight: 700; color: var(--gold); letter-spacing: .02em;
  isolation: isolate;
}
.rung .no { text-align: right; padding-right: 8px; font-weight: 600; opacity: .9; }
.rung .mark { color: #fff; font-size: 18px; text-align: center; opacity: 0; }
.rung .amt { text-align: left; }
.rung.safe { color: #fff; }
.rung.passed .mark { opacity: 1; }
.rung::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  clip-path: polygon(0 50%, var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo));
  transition: opacity .35s ease;
}
.rung.current { color: #170a00; }
.rung.current::before { opacity: 1; }
.rung.current .mark { color: #170a00; }
.rung.won::before { background: linear-gradient(180deg, var(--green-hi), var(--green) 50%, var(--green-lo)); }
.rung.won { color: #fff; }
.rung.lost::before { background: linear-gradient(180deg, #ff9b9b, var(--red) 50%, #8a1d20); opacity: 1; }
.rung.lost { color: #fff; }
.rung.blink::before { animation: rungBlink .5s ease 4; }
@keyframes rungBlink { 50% { filter: brightness(1.7) saturate(.6); } }
.rung.intro-hidden { opacity: 0; transform: translateX(40px); }
.rung { transition: opacity .35s ease, transform .35s ease, color .35s ease; }

/* Board: question + four answers */
.board {
  position: absolute; left: 0; right: 0; bottom: 34px; height: 350px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  transition: opacity .6s ease, transform .6s ease;
}
.board .rail { display: flex; gap: 70px; padding: 0 70px; }
.q-row { margin-bottom: 8px; }
.q-loz { --cut: 64px; flex: 1; height: 132px; padding: 0 110px; justify-content: center; text-align: center; }
.q-text { font-size: 44px; font-weight: 600; line-height: 1.15; max-height: 112px; overflow: hidden; }
.ans { flex: 1; height: 86px; padding: 0 70px 0 76px; }
.ans .letter { font-size: 38px; }
.ans .txt { font-size: 38px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .35s ease; }
.ans .txt.wrap { white-space: normal; line-height: 1.05; }
.ans:not(.shown) .txt { opacity: 0; }
.ans:not(.shown) .letter { opacity: .5; }
.ans.removed .txt { opacity: 0; transition: opacity .6s ease; }
.ans.removed { filter: saturate(.6); }
.ans.zap { animation: zap .5s steps(2) 2; }
@keyframes zap { 50% { filter: brightness(2.2) hue-rotate(40deg); } }
.ans.shown.appear .txt { animation: appear .45s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }
.cat-tag {
  align-self: center; margin-bottom: -6px; padding: 6px 22px; border-radius: 999px;
  font-size: 22px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ice);
  background: rgba(4, 12, 51, .8); border: 1px solid rgba(207, 218, 243, .3);
  opacity: 0; transition: opacity .4s ease;
}
.cat-tag.on { opacity: 1; }
.board.empty .q-loz .txt, .board.empty .ans .txt { opacity: 0; }
.board.enter .q-loz { animation: qIn .7s cubic-bezier(.2,.8,.2,1); }
@keyframes qIn { from { transform: scaleX(.2); opacity: 0; } }
.stage.banner-on .board { opacity: .05; transform: translateY(12px); }

/* Amount banner after a correct answer / at the end */
.banner {
  position: absolute; left: 50%; bottom: 120px; width: 1100px; transform: translate(-50%, 30px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.stage.banner-on .banner { opacity: 1; transform: translate(-50%, 0); }
.banner-kicker { font-size: 34px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ice); }
.banner-loz { --cut: 60px; width: 100%; height: 140px; justify-content: center;
  --fill: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 48%, var(--gold-lo) 100%); --ink: #170a00; }
.banner-amount { text-align: center; font-size: 84px; font-weight: 800; letter-spacing: .02em; }
.banner-note { font-size: 32px; color: var(--gold-hi); font-weight: 600; min-height: 40px; }
.banner.safe .banner-loz { --frame: linear-gradient(180deg, #fff, #ffe7a8 50%, #fff); }
.banner.sad .banner-loz { --fill: radial-gradient(ellipse 70% 120% at 50% 0%, #2f55d8 0%, #0d2172 42%, #040b31 100%); --ink: #fff; }

/* Overlays in the hero area */
.panel {
  position: absolute; left: 60px; top: 50px; width: 1340px; height: 600px;
  border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 32, 112, .9), rgba(3, 9, 40, .94));
  border: 2px solid rgba(207, 218, 243, .38);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15);
  opacity: 0; visibility: hidden; transform: scale(.94);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s linear .5s;
}
.panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.ap-head { padding: 34px 50px 0; }
.ap-kicker { display: block; font-size: 28px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.ap-title { margin: 4px 0 0; font-size: 70px; font-weight: 800; line-height: 1; }
.ap-vote { display: flex; align-items: center; justify-content: space-between; padding: 26px 70px 0 50px; }
.ap-join { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ap-join .qr { width: 300px; height: 300px; background: #fff; border-radius: 18px; padding: 10px; }
.ap-join code { font-family: var(--font); font-size: 30px; color: var(--ice); }
.ap-timer { position: relative; width: 380px; height: 380px; display: grid; place-items: center; }
.ap-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ap-timer circle { fill: none; stroke-width: 14; }
.ap-timer .track { stroke: rgba(207, 218, 243, .18); }
.ap-timer .prog { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 540.35; filter: drop-shadow(0 0 10px rgba(247, 165, 49, .7)); }
.ap-secs { font-size: 150px; font-weight: 800; line-height: 1; margin-top: -40px; }
.ap-count { position: absolute; bottom: 92px; font-size: 32px; color: var(--ice); font-weight: 600; }
.audience-panel.closed .ap-secs { font-size: 54px; margin-top: -30px; color: var(--gold-hi); }
.audience-panel.closed .prog { stroke: var(--silver-lo); }
.ap-chart { display: none; padding: 6px 110px 0; }
.audience-panel.results .ap-vote { display: none; }
.audience-panel.results .ap-chart { display: block; }
.audience-panel.results .ap-title { font-size: 60px; }

.bars { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; height: 430px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; }
.bar-col .pct { font-size: 46px; font-weight: 800; }
.bar-col .bar {
  width: 100%; height: 0%; border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #9ec0ff 0%, #3c6cf0 40%, #1636a8 100%);
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 0 24px rgba(80, 130, 255, .55), inset 0 2px 0 rgba(255,255,255,.4);
  transition: height 2.4s cubic-bezier(.3, .1, .2, 1);
}
.bar-col.top .bar { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 50%, var(--gold-lo)); box-shadow: 0 0 30px rgba(247, 165, 49, .65), inset 0 2px 0 rgba(255,255,255,.5); }
.bar-col .lbl { font-size: 46px; font-weight: 800; color: var(--gold); }
.bar-col.gone { opacity: .3; }
.bar-col.right .bar { background: linear-gradient(180deg, var(--green-hi), var(--green) 50%, var(--green-lo)); box-shadow: 0 0 30px rgba(63, 191, 63, .6), inset 0 2px 0 rgba(255,255,255,.5); }
.bar-col.right .lbl, .bar-col.right .pct { color: var(--green-hi); }

/* ---------- play-along overlays ---------- */
.tips-panel .tp-chart { padding: 10px 110px 0; }
.tips-panel .bars { height: 400px; }
.tp-count { position: absolute; right: 50px; top: 44px; font-size: 32px; font-weight: 600; color: var(--ice); }
.np-title { font-size: 58px; }
.np-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 26px 50px 0; }
.np-col { min-height: 380px; padding: 18px 20px; border-radius: 20px; background: rgba(3, 9, 40, .6); border: 2px solid rgba(207, 218, 243, .25); }
.np-col.right { border-color: var(--green); background: rgba(21, 107, 21, .35); }
.np-col.gone { opacity: .35; }
.np-col h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 44px; font-weight: 800; color: var(--gold); }
.np-col.right h3 { color: var(--green-hi); }
.np-col h3 small { font-size: 28px; color: var(--ice); font-weight: 600; }
.np-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 30px; font-weight: 600; line-height: 1.15; }
.np-col li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-col li.more { color: var(--ice); font-weight: 500; }

.board-panel {
  position: absolute; left: 50%; top: 50%; z-index: 4; width: 1240px; max-height: 960px;
  padding: 40px 56px 36px; border-radius: 32px;
  background: linear-gradient(180deg, rgba(14, 32, 112, .96), rgba(3, 9, 40, .98));
  border: 2px solid rgba(207, 218, 243, .38); box-shadow: 0 40px 120px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden; transform: translate(-50%, -50%) scale(.94);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s linear .5s;
}
.board-panel.on { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.stage.board-on .scene { filter: blur(8px) brightness(.45); transition: filter .6s ease; }
.bp-title { margin: 4px 0 24px; font-size: 76px; font-weight: 800; line-height: 1; }
.bp-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bp-list li {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 20px;
  height: 66px; padding: 0 28px; border-radius: 16px; background: rgba(3, 9, 40, .65);
  border: 2px solid rgba(207, 218, 243, .2); font-size: 38px; font-weight: 700;
  opacity: 0; transform: translateX(-30px);
}
.board-panel.on .bp-list li { animation: rowIn .5s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes rowIn { to { opacity: 1; transform: none; } }
.bp-list .r { color: var(--gold); font-weight: 800; }
.bp-list .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-list .pts { font-weight: 800; }
.bp-list .pts small { font-size: 26px; font-weight: 600; color: var(--ice); margin-left: 8px; }
.bp-list li.first { background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo)); color: #1a0d00; border-color: var(--gold-hi); }
.bp-list li.first .r, .bp-list li.first .pts small { color: inherit; }
.bp-foot { margin-top: 18px; font-size: 28px; color: var(--ice); }
.bp-empty { font-size: 36px; color: var(--ice); }
.lobby-join code b, .ap-join code b { color: var(--gold-hi); font-weight: 800; letter-spacing: .06em; }

/* Zusatzjoker: sweeping spotlights */
.person-panel { background: radial-gradient(ellipse at 50% 120%, rgba(30, 60, 170, .9), rgba(2, 6, 28, .96) 70%); }
.spot {
  position: absolute; top: -200px; width: 520px; height: 1100px; left: 50%;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, rgba(255, 244, 214, .0) 0%, rgba(255, 238, 190, .2) 55%, rgba(255, 244, 214, .36) 100%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  filter: blur(10px); mix-blend-mode: screen;
}
.person-panel.on .s1 { animation: spot 4.2s ease-in-out infinite alternate; }
.person-panel.on .s2 { animation: spot 5.1s ease-in-out -2s infinite alternate-reverse; }
.person-panel.on .s3 { animation: spot 3.6s ease-in-out -1s infinite alternate; }
@keyframes spot { from { transform: translateX(-50%) rotate(38deg); } to { transform: translateX(-50%) rotate(-38deg); } }
.pp-body { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 120px; }
.pp-body h2 { margin: 12px 0 18px; font-size: 76px; font-weight: 800; line-height: 1.05; }
.pp-body p { margin: 0; font-size: 40px; color: var(--ice); line-height: 1.3; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.pp-body h2 { text-shadow: 0 3px 18px rgba(0,0,0,.7); }
.pp-body strong { color: #fff; }

/* ---------- game over ---------- */
.over { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.over-kicker { margin-top: 24px; font-size: 52px; font-weight: 700; color: var(--ice); letter-spacing: .04em; }
.over-amount {
  margin-top: 8px; font-size: 190px; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, #fff6d8 0%, #ffd06a 38%, #d98a12 58%, #ffe1a0 78%, #b46400 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.45)) drop-shadow(0 0 40px rgba(255, 180, 60, .35));
}
.over-note { margin-top: 20px; font-size: 40px; color: var(--ice); }
.stage[data-scene="over"] .over-amount { animation: emblemIn 1.6s cubic-bezier(.2, .9, .2, 1.1); }

/* ---------- misc ---------- */
.offline {
  position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  padding: 10px 26px; border-radius: 999px; background: rgba(229, 72, 77, .9); font-size: 26px; font-weight: 600;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.stage.is-offline .offline { opacity: 1; }

#unlock {
  position: fixed; inset: 0; z-index: 10; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #fff; background: radial-gradient(ellipse at 50% 40%, rgba(20, 40, 140, .92), rgba(1, 4, 15, .97) 70%);
  font-family: var(--font);
}
#unlock strong { font-size: clamp(28px, 4vw, 56px); letter-spacing: .04em; }
#unlock span { font-size: clamp(16px, 2vw, 26px); color: var(--ice); }
#unlock small { margin-top: 18px; font-size: clamp(12px, 1.3vw, 17px); color: var(--muted); }
#unlock.gone { display: none; }
.gate {
  position: fixed; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(ellipse at 50% 40%, rgba(20, 40, 140, .97), rgba(1, 4, 15, 1) 70%); color: #fff; font-family: var(--font);
}
.gate[hidden] { display: none; }
.gate strong { font-size: clamp(28px, 4vw, 52px); letter-spacing: .04em; }
.gate label { font-size: 20px; color: var(--ice); font-weight: 600; }
.gate input { background: #fff; color: #0b1640; width: min(320px, 80vw); height: 58px; padding: 0 16px; border-radius: 12px; border: 2px solid #3a4c95; font: 700 26px/1 var(--font); text-align: center; letter-spacing: .2em; }
.gate input:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.gate button { min-width: 200px; height: 56px; border: 0; border-radius: 12px; background: var(--gold); color: #1a0d00; font: 700 22px/1 var(--font); cursor: pointer; }
.gate-err { margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--red); font-size: 18px; font-weight: 600; }
body.cursor-hidden, body.cursor-hidden * { cursor: none !important; }

/* Picture questions: the image takes the emblem's place in the hero area. */
.hero-media { display: none; transition: transform .5s ease; }
.hero-media img {
  display: block; max-width: 860px; max-height: 470px; border-radius: 20px;
  border: 4px solid #dfe6f3; background: #000;
  box-shadow: 0 0 0 2px rgba(127, 139, 171, .6), 0 24px 70px rgba(0,0,0,.6), 0 0 50px rgba(90, 140, 255, .35);
  animation: mediaIn .7s cubic-bezier(.2,.8,.2,1);
}
@keyframes mediaIn { from { opacity: 0; transform: scale(.94); } }
.stage.has-media .hero-media { display: block; }
.stage.has-media .hero-emblem, .stage.has-media .hero-name { display: none; }
.stage.has-media.dock-on .hero-media { transform: translateX(200px); }
.stage.has-media .hero-status { margin-top: 14px; }
