:root {
  /* theme (set per show from settings / template: stage.js → applyTheme) */
  --primary: #8b5cf6;
  --secondary: #ec4899;
  --bg: #0a0817;
  --card: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.14);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.65);
  --gold: #fbbf24; /* = theme accent */
  --pink: var(--secondary);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1080px;
  height: 1920px;
  transform-origin: center;
  font-family: var(--font);
  color: var(--text);
  overflow: hidden;
  background: var(--bg);
}

.bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 30% at 20% 15%, rgba(168, 85, 247, 0.45), transparent 70%),
    radial-gradient(40% 30% at 85% 40%, rgba(236, 72, 153, 0.3), transparent 70%),
    radial-gradient(50% 35% at 40% 85%, rgba(59, 130, 246, 0.3), transparent 70%);
  background:
    radial-gradient(40% 30% at 20% 15%, color-mix(in srgb, var(--primary) 45%, transparent), transparent 70%),
    radial-gradient(40% 30% at 85% 40%, color-mix(in srgb, var(--secondary) 32%, transparent), transparent 70%),
    radial-gradient(50% 35% at 40% 85%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(4%, -3%) rotate(6deg); } }

/* ───────── safe area ─────────
   --safe-* = pixels of the 1080×1920 frame that phones may hide (platform UI, side crop on tall screens).
   Set from stage.js per profile. The column below always fits inside. */
.safe {
  position: absolute;
  top: var(--safe-t, 0px); bottom: var(--safe-b, 0px); left: var(--safe-l, 0px); right: var(--safe-r, 0px);
  display: flex;
  flex-direction: column;
}
.scenes { position: relative; flex: 1 1 auto; min-height: 0; }
/* scenes are designed 1250px tall and scaled to fit .scenes (stage.js → layoutScenes) */
.scenes-fit { position: absolute; left: 0; top: 0; width: 1080px; height: 1250px; transform-origin: 0 0; }

/* ───────── header ───────── */
.top {
  position: relative;
  flex: none;
  height: 150px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
}
.brand { font-size: 46px; font-weight: 800; letter-spacing: 2px; }
.logo {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  white-space: nowrap;
}
.live {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 28px;
  padding: 8px 18px; border-radius: 12px; background: #ef4444;
}
.live .dot { width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.platforms { margin-left: auto; display: flex; gap: 12px; }
.pchip { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700;
  padding: 8px 14px; border-radius: 12px; background: var(--card); }

/* ───────── scenes ───────── */
.scene {
  position: absolute;
  inset: 0;
  padding: 0 56px;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}
.scene.active { opacity: 1; transform: none; }

/* battle */
.round { font-size: 30px; font-weight: 700; color: var(--gold); letter-spacing: 3px; margin-top: 20px; }
.sentence { font-size: 76px; line-height: 1.05; font-weight: 800; margin: 18px 0 40px; text-wrap: balance; }
.options { display: flex; flex-direction: column; gap: 22px; }
.opt {
  position: relative;
  height: 130px;
  border-radius: 28px;
  background: var(--card);
  border: 2px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 30px;
  gap: 22px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.opt.small { height: 104px; }
.opt .fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  opacity: 0.55;
  transition: width 0.6s cubic-bezier(.2, .8, .2, 1);
}
.opt.leader { border-color: var(--gold); box-shadow: 0 0 40px rgba(251, 191, 36, 0.35); }
.opt > *:not(.fill) { position: relative; }
.opt .key {
  width: 74px; height: 74px; border-radius: 20px; flex: none;
  display: grid; place-items: center;
  font-size: 44px; font-weight: 800; background: rgba(0, 0, 0, 0.35);
}
.opt .emoji { font-size: 58px; }
.opt .label { font-size: 50px; font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .pct { font-size: 50px; font-weight: 800; }
.opt .votes { font-size: 26px; color: var(--muted); width: 120px; text-align: right; }
.opt.bump .pct { animation: bump 0.35s; }
@keyframes bump { 40% { transform: scale(1.25); color: var(--gold); } }

.timer { display: flex; align-items: center; gap: 28px; margin-top: 46px; position: relative; }
.ring { width: 150px; height: 150px; transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; transition: stroke 0.3s; }
.ring-fg.urgent { stroke: #ef4444; }
.timer-text { position: absolute; left: 0; width: 150px; text-align: center; line-height: 1; }
.timer-text b { display: block; font-size: 56px; }
.timer-text span { font-size: 22px; color: var(--muted); }
.timer-hint { font-size: 32px; color: var(--muted); max-width: 720px; }
.howto { margin-top: 36px; font-size: 36px; font-weight: 700; text-align: center;
  padding: 22px; border-radius: 22px; background: rgba(0, 0, 0, 0.3); border: 2px dashed var(--line); }
.howto b { color: var(--gold); }

/* result */
#scene-result { text-align: center; }
.result-label { margin-top: 70px; font-size: 44px; font-weight: 800; letter-spacing: 8px; color: var(--gold); }
.result-emoji { font-size: 260px; line-height: 1.1; margin-top: 20px; animation: pop 0.8s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(0.2) rotate(-20deg); opacity: 0; } }
.result-name { font-size: 110px; font-weight: 800;
  background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; color: transparent; }
.result-sub { font-size: 40px; color: var(--muted); margin-top: 10px; }
.result-bars { display: flex; justify-content: center; align-items: flex-end; gap: 28px; height: 340px; margin-top: 50px; }
.rbar { width: 140px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 10px; }
.rbar .col { width: 100%; border-radius: 18px 18px 6px 6px; background: rgba(255, 255, 255, 0.2);
  transition: height 1s cubic-bezier(.2, .8, .2, 1); height: 0; }
.rbar.win .col { background: linear-gradient(180deg, var(--gold), var(--pink)); }
.rbar .n { font-size: 34px; font-weight: 800; }
.rbar .l { font-size: 26px; color: var(--muted); }

/* spin */
#scene-spin { text-align: center; }
.spin-title { margin-top: 26px; font-size: 40px; font-weight: 800; letter-spacing: 8px; color: var(--gold); }
.spin-who { height: 120px; display: flex; align-items: center; justify-content: center; gap: 20px;
  font-size: 54px; font-weight: 800; margin-top: 6px; }
.spin-who .avatar { width: 96px; height: 96px; font-size: 40px; }
.wheel-wrap { position: relative; width: 820px; height: 820px; margin: 10px auto 0; }
#wheel { width: 100%; height: 100%; filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6)); }
#wheel text { font-family: var(--font); font-weight: 800; fill: #fff; font-size: 64px; }
.pointer { position: absolute; top: -18px; left: 50%; z-index: 2; transform: translateX(-50%);
  width: 0; height: 0; border-left: 38px solid transparent; border-right: 38px solid transparent;
  border-top: 70px solid #fff; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.hub { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; transform: translate(-50%, -50%);
  border-radius: 50%; border: 10px solid #fff; background: #1e1b4b; overflow: hidden;
  display: grid; place-items: center; box-shadow: 0 0 40px rgba(0, 0, 0, 0.6); }
.hub .avatar { width: 100%; height: 100%; border-radius: 0; font-size: 70px; }
.spin-prize { height: 150px; margin-top: 20px; font-size: 64px; font-weight: 800; }
.spin-prize .big { background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; color: transparent; }
.spin-prize .small { display: block; font-size: 32px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.spin-prize .code { color: #fff; background: rgba(255, 255, 255, 0.12); padding: 2px 14px; border-radius: 10px; letter-spacing: 3px; }
.spin-prize.reveal { animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }
.spin-next { display: none; }
.spin-next .label { font-size: 24px; letter-spacing: 4px; color: var(--muted); }

/* ───────── shared lower area ───────── */
.feed {
  position: relative; flex: none; margin: 10px 56px 0; height: 190px;
  display: flex; flex-direction: column-reverse; gap: 8px; overflow: hidden;
  mask-image: linear-gradient(to top, #000 60%, transparent);
}
.fitem { display: flex; align-items: center; gap: 14px; font-size: 28px; animation: slidein 0.3s; }
.fitem .avatar { width: 44px; height: 44px; font-size: 20px; }
.fitem .u { font-weight: 700; }
.fitem .t { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fitem .tag { font-size: 22px; font-weight: 800; padding: 2px 10px; border-radius: 8px; background: rgba(251, 191, 36, 0.2); color: var(--gold); }
@keyframes slidein { from { opacity: 0; transform: translateX(-30px); } }

.spinbar {
  position: relative; flex: none; margin: 20px 40px 0; height: 84px;
  display: flex; align-items: center; gap: 18px; padding: 0 26px;
  border-radius: 24px; background: linear-gradient(90deg, rgba(245, 158, 11, 0.25), rgba(236, 72, 153, 0.25));
  border: 2px solid rgba(251, 191, 36, 0.5);
}
.spinbar-cta { font-size: 28px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.spinbar-cta .short { display: none; }
.spinbar-queue .avatar:nth-child(n + 4) { display: none; }
.spinbar-cta b { color: var(--gold); }
.spinbar-queue { margin-left: auto; display: flex; align-items: center; padding-left: 14px; flex: none; }
.spinbar-queue .avatar { width: 52px; height: 52px; margin-left: -14px; border: 3px solid var(--bg); font-size: 22px; }
.spinbar-queue .more { margin-left: 10px; font-size: 28px; font-weight: 800; color: var(--gold); white-space: nowrap; }

.sponsors {
  position: relative; flex: none; margin-top: 20px; height: 196px;
  padding: 14px 40px 26px; background: rgba(0, 0, 0, 0.55); border-top: 2px solid var(--line);
}
.sponsors-label { font-size: 20px; letter-spacing: 6px; color: var(--muted); margin-bottom: 10px; }
.sponsors-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; transition: opacity 0.5s; }
.sponsors-row.fade { opacity: 0; }
.sp { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--card); min-width: 0; }
.sp .rank { width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font-weight: 800; font-size: 26px; color: #000; }
.sp .info { min-width: 0; }
.sp .n { font-size: 28px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp .tl { font-size: 20px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* avatars + platform badges */
.avatar { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; overflow: hidden; background-size: cover; background-position: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pbadge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  font-size: 18px; font-weight: 800; color: #fff; flex: none; }
.pbadge.instagram { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.pbadge.youtube { background: #ff0000; }
.pbadge.facebook { background: #1877f2; }
.pbadge.other { background: #555; }

/* floating vote pops */
.pops { position: absolute; inset: 0; pointer-events: none; }
.pop { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 700;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.55);
  animation: floatup 1.6s ease-out forwards; }
.pop .avatar { width: 36px; height: 36px; font-size: 16px; }
@keyframes floatup { from { opacity: 0; transform: translateY(20px); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-110px); } }

.confetti { position: absolute; top: -40px; width: 18px; height: 28px; border-radius: 4px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(2000px) rotate(720deg); } }

.offline { position: absolute; top: calc(var(--safe-t, 0px) + 10px); left: 50%; transform: translateX(-50%); display: none;
  background: #ef4444; padding: 6px 16px; border-radius: 10px; font-size: 22px; }
.offline.show { display: block; }
.sound { position: absolute; top: 46%; left: 50%; transform: translateX(-50%); display: none; z-index: 10;
  font: 700 26px var(--font); color: #000; background: var(--gold); border: 0; border-radius: 999px;
  padding: 16px 30px; cursor: pointer; }
.sound.show { display: block; }

/* ───────── intro ───────── */
#scene-intro { text-align: center; }
/* every .anim element starts after its --d delay, shifted by --el (time already elapsed, for late joiners) */
#scene-intro .anim { opacity: 0; }
#scene-intro.play .anim { animation: rise 0.7s cubic-bezier(.2, 1.4, .4, 1) calc(var(--d) - var(--el, 0s)) both; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(0.9); } to { opacity: 1; transform: none; } }

.intro-rays { position: absolute; left: 50%; top: 190px; width: 1600px; height: 1600px; margin: -800px 0 0 -800px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.07) 0 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(circle, #000 10%, transparent 60%); animation: spinbg 30s linear infinite; }
@keyframes spinbg { to { transform: rotate(360deg); } }
.intro-particles { position: absolute; inset: 0; overflow: hidden; }
.particle { position: absolute; bottom: -120px; font-size: 64px; animation: floaty linear infinite; opacity: 0.8; }
@keyframes floaty { to { transform: translateY(-1500px) rotate(var(--r)); } }

.intro-kicker { position: relative; margin-top: 30px; font-size: 34px; font-weight: 800; letter-spacing: 12px; color: var(--muted); }
.intro-title { position: relative; font-size: 136px; font-weight: 800; line-height: 1; margin-top: 10px; white-space: nowrap; }
.intro-title span { display: inline-block; opacity: 0;
  background: linear-gradient(180deg, #fff 30%, var(--gold)); -webkit-background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 30px rgba(236, 72, 153, 0.55)); }
#scene-intro.play .intro-title span { animation: letter 0.6s cubic-bezier(.2, 1.8, .4, 1) calc(var(--d) - var(--el, 0s)) both; }
@keyframes letter { from { opacity: 0; transform: translateY(-120px) scale(1.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.intro-sponsor { position: relative; font-size: 30px; color: var(--muted); margin-top: 14px; height: 40px; }
.intro-sponsor b { color: #fff; }

.intro-steps { position: relative; display: flex; flex-direction: column; gap: 16px; margin-top: 26px; text-align: left; }
.step { display: flex; align-items: center; gap: 28px; padding: 18px 28px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.08); border: 2px solid var(--line); backdrop-filter: blur(6px); }
#scene-intro.play .step.anim { animation-name: slidestep; }
@keyframes slidestep { from { opacity: 0; transform: translateX(-140px) scale(0.92); } to { opacity: 1; transform: none; } }
.step .ico { width: 96px; height: 96px; flex: none; border-radius: 28px; display: grid; place-items: center; font-size: 62px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
#scene-intro.play .step .ico { animation: wobble 1.6s ease-in-out calc(var(--d) - var(--el, 0s) + 0.7s) infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.06); } 75% { transform: rotate(8deg) scale(1.06); } }
.step .txt { font-size: 44px; font-weight: 800; line-height: 1.1; }
.step .txt small { display: block; font-size: 28px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.step .txt b { color: var(--gold); }

.intro-upnext { position: relative; margin-top: 24px; padding: 22px 30px; border-radius: 28px;
  border: 2px dashed rgba(251, 191, 36, 0.6); background: rgba(0, 0, 0, 0.35); }
.intro-upnext .lbl { font-size: 24px; font-weight: 800; letter-spacing: 6px; color: var(--gold); }
.intro-upnext .q { font-size: 46px; font-weight: 800; margin-top: 6px; line-height: 1.1; }
#scene-intro.play .intro-upnext .q { animation: unblur 1.2s ease-out calc(5.4s - var(--el, 0s)) both; }
@keyframes unblur { from { filter: blur(18px); opacity: 0.3; } to { filter: none; opacity: 1; } }
.intro-upnext .chips { display: flex; justify-content: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.intro-upnext .chip { font-size: 30px; font-weight: 700; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.intro-upnext .queue { display: flex; justify-content: center; margin-top: 12px; }
.intro-upnext .queue .avatar { width: 64px; height: 64px; margin-left: -14px; border: 3px solid var(--bg); font-size: 26px; }

.intro-count { position: absolute; left: 50%; bottom: 0; width: 180px; height: 180px; transform: translateX(-50%); }
.ring.big { width: 180px; height: 180px; }
.intro-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 800; }
.intro-num.tick { animation: numpop 0.5s cubic-bezier(.2, 1.8, .4, 1); }
.intro-num.go { font-size: 76px; color: var(--gold); }
@keyframes numpop { from { transform: scale(1.8); opacity: 0.2; } }


/* ───────── compact layout for phone safe areas ───────── */
#stage.compact .top { height: 72px; padding: 0 6px; gap: 14px; }
#stage.compact .brand { font-size: 34px; }
#stage.compact .live { font-size: 20px; padding: 5px 12px; }
#stage.compact .live .dot { width: 10px; height: 10px; }
#stage.compact .pchip { font-size: 20px; padding: 5px 10px; gap: 6px; }
#stage.compact .pchip .pbadge { width: 26px; height: 26px; font-size: 14px; }
#stage.compact .feed { display: none; } /* the platforms show comments themselves, right there */
#stage.compact .spinbar { margin: 14px 0 0; height: 76px; padding: 0 18px; }
#stage.compact .spinbar-cta { font-size: 26px; }
#stage.compact .spinbar-cta .long { display: none; }
#stage.compact .spinbar-cta .short { display: inline; }
#stage.compact .spinbar-queue { padding-left: 24px; }
#stage.compact .spinbar-queue .avatar { width: 44px; height: 44px; font-size: 18px; }
#stage.compact .spinbar-queue .avatar:nth-child(n + 3) { display: none; }
#stage.compact .sponsors { margin-top: 12px; height: auto; padding: 10px 12px 12px; border-radius: 22px; border: 2px solid var(--line); }
#stage.compact .sponsors-label { font-size: 15px; letter-spacing: 5px; margin-bottom: 8px; }
#stage.compact .sponsors-row { gap: 10px; }
#stage.compact .sp { padding: 10px; gap: 10px; border-radius: 14px; }
#stage.compact .sp .rank { width: 40px; height: 40px; font-size: 20px; border-radius: 11px; }
#stage.compact .sp .n { font-size: 22px; }
#stage.compact .sp .tl { font-size: 16px; }

/* below the safe box, right above the phone's comment box: a hint that's fine to be covered */
.outer-cta { display: none; position: absolute; left: 0; right: 0; top: calc(1920px - var(--safe-b, 0px) + 36px);
  text-align: center; font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, 0.55); animation: nudge 1.6s ease-in-out infinite; }
#stage.compact .outer-cta { display: block; }
@keyframes nudge { 50% { transform: translateY(14px); } }

/* ───────── ?guides: show what phones may hide ───────── */
.guides { position: absolute; inset: 0; pointer-events: none; display: none; z-index: 50; }
.guides.show { display: block; }
.guides .zone { position: absolute; background: rgba(239, 68, 68, 0.28); border: 2px dashed rgba(239, 68, 68, 0.9);
  color: #fff; font: 700 22px var(--font); display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px; }
.guides .zone.side { writing-mode: vertical-rl; }
.guides .safebox { position: absolute; border: 4px dashed #22c55e; }
.guides .safebox span { position: absolute; top: -34px; left: 0; color: #22c55e; font: 800 22px var(--font); }

/* ───────── disclosures (AI Act Art. 50, ad/sponsorship labelling, giveaway terms) ───────── */
.ai-chip { display: flex; align-items: center; font-weight: 800; font-size: 24px; padding: 8px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.35); white-space: nowrap; }
#stage.compact .live { display: none; } /* the apps show their own LIVE badge */
#stage.compact .ai-chip { font-size: 18px; padding: 5px 10px; border-radius: 10px; }
.ad { display: inline-block; font-weight: 800; letter-spacing: 1px; color: #000; background: var(--gold);
  border-radius: 6px; padding: 1px 8px; margin-right: 6px; }
.sponsors-label .ad { font-size: 0.9em; }
.legal { flex: none; margin: 10px 40px 0; text-align: center; font-size: 19px; line-height: 1.35;
  color: rgba(255, 255, 255, 0.72); }
.legal b { color: #fff; }
#stage.compact .legal { margin: 8px 0 0; font-size: 16px; }
.sponsored-q { color: #000; background: var(--gold); border-radius: 8px; padding: 2px 10px; margin-right: 10px; letter-spacing: 2px; }

/* AI icon (SVG sparkles) */
.ai-ico { width: 1.15em; height: 1.15em; margin-right: 0.35em; vertical-align: -0.2em; flex: none; }
.legal .ai-ico { margin-right: 0.2em; }

/* ───────── prize drop ───────── */
#scene-drop { text-align: center; }
.drop-title { margin-top: 40px; font-size: 120px; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, #fff 20%, var(--gold)); -webkit-background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 40px rgba(251, 191, 36, 0.5)); }
#scene-drop.active .drop-title { animation: dropshake 0.9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes dropshake { 0% { transform: scale(2.2) rotate(-8deg); opacity: 0; } 60% { transform: scale(0.95) rotate(2deg); opacity: 1; } }
.drop-sub { font-size: 36px; color: var(--muted); margin-top: 12px; }
.drop-prize { margin-top: 50px; font-size: 64px; font-weight: 800; min-height: 80px; }
.drop-prize b { background: linear-gradient(90deg, var(--gold), var(--pink)); -webkit-background-clip: text; color: transparent; }
.drop-code { display: flex; justify-content: center; gap: 14px; margin-top: 36px; min-height: 190px; }
.drop-code .tile { width: 100px; height: 170px; border-radius: 22px; display: grid; place-items: center;
  font: 800 104px var(--font); background: #fff; color: #1e1b4b; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  animation: tileflip 0.5s cubic-bezier(.2, 1.4, .4, 1) both; }
.drop-code .tile.wait { background: rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.5); animation: pulse 1s infinite; }
.drop-code.claimed .tile { background: rgba(255, 255, 255, 0.25); color: rgba(30, 27, 75, 0.6); }
@keyframes tileflip { from { transform: rotateX(90deg) scale(0.8); opacity: 0; } }
@keyframes pulse { 50% { opacity: 0.5; } }
.drop-how { margin-top: 34px; font-size: 40px; font-weight: 700; }
.drop-how b { color: var(--gold); }
.drop-bar { margin: 34px auto 0; width: 80%; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.drop-bar div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--pink)); transform-origin: left; }
.drop-claimed { margin-top: 40px; font-size: 58px; font-weight: 800; min-height: 90px; display: flex;
  align-items: center; justify-content: center; gap: 16px; }
.drop-claimed .avatar { width: 84px; height: 84px; font-size: 34px; }
.drop-claimed.show { animation: pop 0.6s cubic-bezier(.2, 1.6, .4, 1); }

/* small notices, e.g. "YouTube: watch for prize drops" */
.toast { position: absolute; left: 50%; top: calc(var(--safe-t, 0px) + 96px); transform: translate(-50%, -20px);
  opacity: 0; transition: opacity 0.3s, transform 0.3s; z-index: 20; max-width: 760px; text-align: center;
  font-size: 28px; font-weight: 700; padding: 14px 24px; border-radius: 18px; background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--gold); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.spinbar-cta .pbadge { width: 30px; height: 30px; font-size: 15px; vertical-align: 0.1em; }

#stage.no-spins .spinbar { display: none; }

/* ───────── other show types: shared ───────── */
.sentence.center { text-align: center; }
.gstat { margin-top: 30px; text-align: center; font-size: 32px; color: var(--muted); font-weight: 700; min-height: 40px; }
.gstat b { color: #fff; }
.gtimer { display: flex; align-items: center; gap: 24px; margin-top: 22px; }
.gt-bar { flex: 1; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.gt-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.gtimer.urgent .gt-bar i { background: linear-gradient(90deg, #ef4444, var(--gold)); }
.gtimer b { font-size: 52px; width: 110px; text-align: right; font-variant-numeric: tabular-nums; }
.gtimer.urgent b { color: #f87171; }

/* trivia */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.tcard { position: relative; min-height: 200px; border-radius: 28px; background: var(--card); border: 2px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; padding: 26px 30px; gap: 12px; overflow: hidden; }
.tcard .key { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; font-size: 42px; font-weight: 800;
  background: linear-gradient(135deg, var(--c1), var(--c2)); }
.tcard .label { font-size: 50px; font-weight: 800; line-height: 1.05; }
.tcard .emoji { position: absolute; right: 22px; top: 18px; font-size: 64px; opacity: 0.9; }

/* tug of war */
.teams { display: flex; justify-content: space-between; gap: 30px; margin-top: 10px; }
.team { flex: 1; border-radius: 28px; padding: 26px; background: var(--card); border: 3px solid var(--line); text-align: center; transition: border-color 0.3s, transform 0.3s; }
.team .emoji { font-size: 120px; line-height: 1.1; }
.team .label { font-size: 52px; font-weight: 800; }
.team .key { display: inline-block; font-size: 30px; font-weight: 800; padding: 4px 16px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); margin-top: 8px; }
.team .n { font-size: 30px; color: var(--muted); margin-top: 8px; }
.team.ahead { border-color: var(--gold); transform: scale(1.03); }
.team.a { --tc: var(--primary); } .team.b { --tc: var(--secondary); }
.team .key { color: var(--tc); }
.rope-wrap { position: relative; height: 150px; margin-top: 50px; }
.rope-zone { position: absolute; top: 30px; height: 90px; width: 12%; border-radius: 20px; opacity: 0.35; }
.rope-zone.a { left: 0; background: var(--primary); } .rope-zone.b { right: 0; background: var(--secondary); }
.rope { position: absolute; left: 0; right: 0; top: 66px; height: 18px; border-radius: 9px;
  background: repeating-linear-gradient(115deg, #d6a96a 0 14px, #a8743c 14px 26px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.rope-mid { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 4px; margin-left: -2px; background: rgba(255, 255, 255, 0.5); border-radius: 2px; }
.knot { position: absolute; top: 35px; left: 50%; width: 80px; height: 80px; margin-left: -40px; border-radius: 50%;
  background: var(--gold); border: 6px solid #fff; box-shadow: 0 0 40px rgba(251, 191, 36, 0.6); transition: left 0.35s cubic-bezier(.2, .9, .3, 1.2); }

/* boss raid */
.boss-name { text-align: center; font-size: 72px; font-weight: 800; margin-top: 16px; }
.boss-arena { position: relative; height: 470px; display: grid; place-items: center; }
.boss { font-size: 380px; line-height: 1; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)); transition: filter 0.3s, transform 0.3s; }
.boss.shake { animation: bossShake 0.25s; }
.boss.dead { filter: grayscale(1) brightness(0.5); transform: rotate(-90deg) scale(0.7); transition: 1s; }
@keyframes bossShake { 25% { transform: translate(-16px, 6px) rotate(-3deg); } 75% { transform: translate(14px, -4px) rotate(3deg); } }
.hits { position: absolute; inset: 0; pointer-events: none; }
.dmg { position: absolute; font-size: 54px; font-weight: 800; color: #fff; text-shadow: 0 4px 0 #000, 0 0 20px rgba(0, 0, 0, 0.6);
  animation: dmgUp 1s ease-out forwards; white-space: nowrap; }
.dmg.crit { font-size: 84px; color: var(--gold); }
.dmg small { display: block; font-size: 24px; color: #fff; opacity: 0.85; }
@keyframes dmgUp { from { transform: translateY(0) scale(0.6); opacity: 1; } 30% { transform: translateY(-30px) scale(1.15); } to { transform: translateY(-160px) scale(1); opacity: 0; } }
.hp { margin-top: 10px; }
.hp-bar { height: 54px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); border: 3px solid rgba(255, 255, 255, 0.25); overflow: hidden; }
.hp-bar i { display: block; height: 100%; width: 100%; transform-origin: left; background: linear-gradient(90deg, #ef4444, #f97316); transition: transform 0.3s; }
.hp-txt { text-align: center; font-size: 36px; font-weight: 800; margin-top: 12px; font-variant-numeric: tabular-nums; }

/* emoji race */
.lanes { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.lane { position: relative; height: 150px; border-radius: 26px; background: var(--card); border: 2px solid var(--line); overflow: hidden; }
.lane::after { content: ''; position: absolute; right: 26px; top: 0; bottom: 0; width: 26px;
  background: repeating-conic-gradient(#fff 0 25%, #111 0 50%) 0 0 / 26px 26px; opacity: 0.85; }
.lane .track { position: absolute; left: 150px; right: 70px; top: 0; bottom: 0; }
.lane .runner { position: absolute; top: 50%; font-size: 96px; line-height: 1; transform: translate(-50%, -50%) scaleX(-1); transition: left 0.4s cubic-bezier(.2, .9, .3, 1); }
.lane .tag { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; }
.lane .tag .k { font-size: 34px; font-weight: 800; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.lane .tag .n { font-size: 22px; color: var(--muted); text-align: center; }
.lane.lead { border-color: var(--gold); }

/* result extras */
.mvp { display: flex; justify-content: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.mvp:empty { display: none; }
.mvp .m { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 22px; background: var(--card); border: 2px solid var(--line); font-size: 30px; font-weight: 700; }
.mvp .m .avatar { width: 64px; height: 64px; font-size: 26px; }
.mvp .m small { display: block; font-size: 22px; color: var(--muted); font-weight: 500; }
.mvp-title { width: 100%; text-align: center; font-size: 26px; letter-spacing: 6px; color: var(--muted); font-weight: 800; }
.rbar.right .col { background: linear-gradient(180deg, #4ade80, #16a34a); }

/* result scene for the other show types: smaller hero so the top-3 fits */
#scene-result.game .result-emoji { font-size: 190px; }
#scene-result.game .result-name { font-size: 96px; }
#scene-result.game .result-bars { height: 240px; margin-top: 30px; }
.mvp { flex-wrap: nowrap; gap: 14px; margin-top: 30px; }
.mvp-title { display: none; }
.mvp .m { font-size: 26px; padding: 12px 16px; gap: 10px; max-width: 320px; }
.mvp .m span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvp .m .avatar { width: 52px; height: 52px; font-size: 22px; flex: none; }
.lane .tag { flex-direction: column; align-items: center; width: 130px; left: 10px; }
.lane .tag .name { position: static; font-size: 24px; color: var(--muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.lane .track { left: 200px; right: 160px; }
.lane .n { position: absolute; right: 68px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 800; color: var(--muted); }
#stage.long-title .live { display: none; }
