/* ============================================================
   PRESENTER STAGE — 1920×1080 canvas, scaled to fill screen
   ============================================================ */

html, body {
  background: #000;
  overflow: hidden;
}

#stage-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  font-family: var(--font-body);
}

/* ── Blank overlay ────────────────────────────────────────── */
#blank-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: none;
}
#blank-overlay.active { display: block; }

/* ── Stripe bands ─────────────────────────────────────────── */
.stripe-band {
  width: 100%;
  height: 28px;
  display: flex;
}
.stripe-band .s-red  { background: var(--red);  flex: 1; }
.stripe-band .s-navy { background: var(--navy); flex: 1; }

.stripe-top    { position: absolute; top: 0;    left: 0; right: 0; z-index: 2; }
.stripe-bottom { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; }

/* ── Pill component ───────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 36px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Theme helpers ────────────────────────────────────────── */
.theme-yellow { background: var(--yellow); color: var(--ink); }
.theme-black  { background: var(--ink);   color: var(--cream); }
.theme-navy   { background: var(--navy);  color: var(--cream); }
.theme-red    { background: var(--red);   color: var(--cream); }

.theme-yellow .pill { background: var(--ink);    color: var(--yellow); }
.theme-black  .pill { background: var(--red);    color: var(--cream);  }
.theme-navy   .pill { background: var(--yellow); color: var(--ink);    }
.theme-red    .pill { background: var(--ink);    color: var(--cream);  }

.theme-yellow .accent { color: var(--red); }
.theme-black  .accent { color: var(--red); }
.theme-navy   .accent { color: var(--yellow); }
.theme-red    .accent { color: var(--yellow); }

/* ═══════════════════════════════════════════════════════════
   SLIDE: COVER
   ═══════════════════════════════════════════════════════════ */
.slide-cover {
  width: 1920px;
  height: 1080px;
  background: var(--cream);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-cover .cover-content {
  text-align: center;
  z-index: 1;
}

.slide-cover .date-pill {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: var(--cream);
  padding: 10px 40px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.slide-cover .pub-name {
  font-family: var(--font-display);
  font-size: 72px;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-cover .quiz-title {
  font-family: var(--font-display);
  font-size: 300px;
  color: var(--red);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.slide-cover .host-line {
  font-family: var(--font-body);
  font-size: 44px;
  color: var(--muted);
  font-weight: 500;
}

.slide-cover .uj-flag {
  position: absolute;
  bottom: 56px;
  right: 80px;
  width: 160px;
  height: 96px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: HOUSE RULES
   ═══════════════════════════════════════════════════════════ */
.slide-rules {
  width: 1920px;
  height: 1080px;
  background: var(--cream);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.slide-rules .rules-heading {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.slide-rules .rules-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  flex: 1;
}

.slide-rules .rule-card {
  border-radius: var(--radius-card);
  padding: 40px 52px;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.2;
  text-transform: uppercase;
}

.rule-card:nth-child(1) { background: var(--red);    color: var(--cream); }
.rule-card:nth-child(2) { background: var(--navy);   color: var(--cream); }
.rule-card:nth-child(3) { background: var(--yellow); color: var(--ink);   }
.rule-card:nth-child(4) { background: var(--ink);    color: var(--cream); }

.rule-card .rule-num {
  font-size: 100px;
  line-height: 1;
  opacity: 0.25;
  margin-right: 32px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: ROUNDS OVERVIEW
   ═══════════════════════════════════════════════════════════ */
.slide-overview {
  width: 1920px;
  height: 1080px;
  background: var(--cream);
  position: relative;
  padding: 72px var(--stage-margin);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.slide-overview .ov-heading {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1;
}

.slide-overview .ov-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.slide-overview .ov-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 40px;
  border-radius: var(--radius-card);
}

.slide-overview .ov-num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 1;
  width: 70px;
  opacity: 0.35;
}

.slide-overview .ov-text {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 32px;
  min-width: 0;
}

.slide-overview .ov-name {
  font-family: var(--font-display);
  font-size: 60px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.slide-overview .ov-tagline {
  font-family: var(--font-body);
  font-size: 30px;
  opacity: 0.75;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slide-overview .ov-points {
  font-size: 30px;
  white-space: nowrap;
}

.slide-overview .ov-joker {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  border: 5px dashed var(--red);
  border-radius: var(--radius-card);
  color: var(--ink);
}

.slide-overview .ov-joker-icon { font-size: 64px; line-height: 1; }

.slide-overview .ov-joker-label {
  font-family: var(--font-display);
  font-size: 56px;
  color: var(--red);
  line-height: 1;
}

.slide-overview .ov-joker-rule {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
}

/* Joker badges on the round title slide */
.slide-round-title .joker-badges {
  position: absolute;
  left: var(--stage-margin);
  bottom: 80px;
  right: 600px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  z-index: 1;
}

.slide-round-title .joker-badges-label {
  font-family: var(--font-display);
  font-size: 40px;
  text-transform: uppercase;
  margin-right: 8px;
}

.slide-round-title .joker-badge {
  font-family: var(--font-display);
  font-size: 40px;
  text-transform: uppercase;
  line-height: 1;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--cream);
  border: 4px solid var(--cream);
  box-shadow: 0 6px 0 rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: ROUND TITLE
   ═══════════════════════════════════════════════════════════ */
.slide-round-title {
  width: 1920px;
  height: 1080px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--stage-margin);
  overflow: hidden;
}

.slide-round-title .round-bg-num {
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-family: var(--font-display);
  font-size: 600px;
  line-height: 1;
  opacity: 0.07;
  color: currentColor;
  pointer-events: none;
  user-select: none;
}

.slide-round-title .round-pill {
  margin-bottom: 40px;
  align-self: flex-start;
}

.slide-round-title .round-title-text {
  font-family: var(--font-display);
  font-size: 200px;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.slide-round-title .tagline {
  font-family: var(--font-body);
  font-size: 44px;
  font-weight: 500;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: QUESTION / STANDARD
   ═══════════════════════════════════════════════════════════ */
.slide-question-standard {
  width: 1920px;
  height: 1080px;
  background: var(--cream);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-question-standard .q-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.slide-question-standard .q-number {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--navy);
  line-height: 1;
}

.slide-question-standard .q-body {
  flex: 1;
  display: flex;
  align-items: center;
}

.slide-question-standard .q-text {
  font-family: var(--font-display);
  font-size: 120px;
  color: var(--ink);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 1500px;
}

/* Sorting question — lettered cards */
.slide-question-standard .sort-body {
  display: flex;
  flex-direction: column;
  gap: 64px;
  width: 100%;
}

.slide-question-standard .sort-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.slide-question-standard .sort-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 28px 16px 16px;
  border: 4px solid currentColor;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.06);
}

.slide-question-standard .sort-letter {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 1;
}

.slide-question-standard .sort-name {
  font-family: var(--font-display);
  font-size: 54px;
  text-transform: uppercase;
  line-height: 1;
}

.slide-question-standard .q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slide-question-standard .points-label {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: QUESTION / EQUATION
   ═══════════════════════════════════════════════════════════ */
.slide-question-equation {
  width: 1920px;
  height: 1080px;
  background: var(--cream);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-question-equation .eq-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.slide-question-equation .eq-formula {
  display: flex;
  align-items: center;
  gap: 48px;
  justify-content: center;
  flex: 1;
}

.slide-question-equation .eq-box {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: 40px 64px;
  font-family: var(--font-display);
  font-size: 100px;
  text-transform: uppercase;
  line-height: 1;
  text-align: center;
  min-width: 300px;
}

.slide-question-equation .eq-box.eq-unit {
  background: var(--red);
}

.slide-question-equation .eq-op {
  font-family: var(--font-display);
  font-size: 100px;
  color: var(--muted);
}

.slide-question-equation .eq-question-mark {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: 40px 64px;
  font-family: var(--font-display);
  font-size: 100px;
  min-width: 200px;
  text-align: center;
}

.slide-question-equation .eq-sentence {
  font-family: var(--font-body);
  font-size: 44px;
  color: var(--ink);
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
}

.slide-question-equation .eq-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: QUESTION / ZOOM
   ═══════════════════════════════════════════════════════════ */
.slide-question-zoom {
  width: 1920px;
  height: 1080px;
  background: var(--red);
  position: relative;
  display: flex;
  overflow: hidden;
}

.slide-question-zoom .zoom-img-panel {
  flex: 0 0 1200px;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slide-question-zoom .zoom-img-panel img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Blurred copy of the picture fills the bars left by object-fit: contain */
.slide-question-zoom .zoom-img-backdrop {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(30px) brightness(0.6);
}

.slide-question-zoom .zoom-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--ink-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 48px;
}

.slide-question-zoom .zoom-info-panel {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
}

.slide-question-zoom .zoom-track-label {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 0.1em;
  opacity: 0.7;
  text-transform: uppercase;
}

.slide-question-zoom .zoom-picture-label {
  font-family: var(--font-display);
  font-size: 72px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slide-question-zoom .zoom-level-label {
  font-family: var(--font-display);
  font-size: 120px;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 0.9;
}

.slide-question-zoom .zoom-hint {
  font-family: var(--font-body);
  font-size: 32px;
  opacity: 0.65;
  font-weight: 500;
}

.slide-question-zoom .zoom-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slide-question-zoom .zoom-pts-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slide-question-zoom .pts-box {
  width: 80px;
  height: 56px;
  border-radius: 12px;
  border: 4px solid var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  opacity: 0.35;
  color: var(--cream);
}

.slide-question-zoom .pts-box.active {
  background: var(--red-deep);
  border-color: var(--yellow);
  color: var(--yellow);
  opacity: 1;
}

.slide-question-zoom .pts-box.earned {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
  opacity: 0.25;
  text-decoration: line-through;
}

.slide-question-zoom .pts-label {
  font-family: var(--font-display);
  font-size: 28px;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: QUESTION / MUSIC
   ═══════════════════════════════════════════════════════════ */
.slide-question-music {
  width: 1920px;
  height: 1080px;
  background: var(--navy);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.slide-question-music .music-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  z-index: 1;
}

.slide-question-music .track-label {
  font-family: var(--font-display);
  font-size: 220px;
  color: var(--cream);
  line-height: 0.85;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.slide-question-music .track-label .track-num {
  color: var(--yellow);
}

.slide-question-music .music-bars-area {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  justify-content: center;
  z-index: 1;
}

.slide-question-music .music-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.slide-question-music .bar-rect {
  width: 200px;
  border-radius: 16px 16px 0 0;
  border: 6px solid transparent;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

/* States */
.bar-rect.state-upcoming {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
}

.bar-rect.state-active {
  background: var(--red);
  border-color: var(--red);
}

.bar-rect.state-played {
  background: rgba(255,255,255,0.12);
  border-color: transparent;
}

/* Pulse animation for active bar */
@keyframes bar-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.75; transform: scaleY(0.93); }
}

.bar-rect.state-active.playing {
  animation: bar-pulse 0.6s ease-in-out infinite;
  transform-origin: bottom;
}

.bar-height-0 { height: 220px; }
.bar-height-1 { height: 280px; }
.bar-height-2 { height: 340px; }
.bar-height-3 { height: 400px; }

.slide-question-music .bar-label {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.slide-question-music .bar-pts {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--yellow);
  letter-spacing: 0.04em;
}

.bar-pts.state-played { color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   SLIDE: ANSWERS
   ═══════════════════════════════════════════════════════════ */
.slide-answers {
  width: 1920px;
  height: 1080px;
  background: var(--cream);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.slide-answers .ans-heading {
  font-family: var(--font-display);
  font-size: 100px;
  color: var(--navy);
  text-transform: uppercase;
  line-height: 1;
}

.slide-answers .ans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 80px;
  flex: 1;
  align-content: start;
}

.slide-answers .ans-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide-answers .ans-item.visible { opacity: 1; }

.slide-answers .ans-num {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--red);
  min-width: 56px;
  line-height: 1;
}

.slide-answers .ans-text {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--ink);
  line-height: 1.1;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: SCORES / LEADERBOARD
   ═══════════════════════════════════════════════════════════ */
.slide-scores {
  width: 1920px;
  height: 1080px;
  background: var(--red);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.slide-scores .scores-heading {
  font-family: var(--font-display);
  font-size: 100px;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1;
}

.slide-scores .scores-table {
  flex: 1;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.slide-scores .scores-table th {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 32px 8px;
  opacity: 0.65;
  text-align: left;
}

.slide-scores .scores-table td {
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--cream);
  background: rgba(0,0,0,0.25);
}

.slide-scores .scores-table td:first-child {
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.slide-scores .scores-table td:last-child {
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  text-align: right;
}

.slide-scores .scores-table tr.leader td {
  background: var(--yellow);
  color: var(--ink);
}

.slide-scores .pos-cell {
  color: var(--yellow);
  font-size: 40px;
  width: 80px;
}

.slide-scores .scores-table tr.leader .pos-cell {
  color: var(--red);
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: TIEBREAKER
   ═══════════════════════════════════════════════════════════ */
.slide-tiebreaker {
  width: 1920px;
  height: 1080px;
  background: var(--ink);
  position: relative;
  padding: var(--stage-margin);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
}

.slide-tiebreaker .tb-pill {
  align-self: flex-start;
  background: var(--red);
  color: var(--cream);
}

.slide-tiebreaker .tb-question {
  font-family: var(--font-display);
  font-size: 110px;
  color: var(--cream);
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.01em;
  max-width: 1500px;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE: WINNERS
   ═══════════════════════════════════════════════════════════ */
.slide-winners {
  width: 1920px;
  height: 1080px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-winners .winners-label {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  z-index: 1;
  margin-bottom: 24px;
}

.slide-winners .winners-team {
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 1.05;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-align: center;
  z-index: 1;
  opacity: 0;
  text-shadow: 0 8px 0 rgba(0,0,0,0.25);
}

.slide-winners .winners-points {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--cream);
  margin-top: 20px;
  z-index: 1;
  opacity: 0;
}

/* Trophy keeps its space before the reveal so nothing jumps */
.slide-winners .winners-trophy {
  width: 260px;
  height: 312px;
  margin-bottom: 16px;
  z-index: 1;
  opacity: 0;
}
.slide-winners .winners-trophy svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(255, 204, 51, 0.6));
}

/* Rotating light rays behind the trophy */
.slide-winners .winners-rays {
  position: absolute;
  left: 50%;
  top: 300px;
  width: 2400px;
  height: 2400px;
  margin: -1200px 0 0 -1200px;
  background: repeating-conic-gradient(rgba(255, 204, 51, 0.13) 0deg 8deg, transparent 8deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  mask-image: radial-gradient(circle, #000 0%, transparent 55%);
  opacity: 0;
}

/* Reveal — timed to the fanfare: trophy rises, name pops on the
   first long note, points land with the final chord */
.slide-winners.revealed .winners-rays {
  animation: rays-in 1s ease-out forwards, rays-spin 40s linear infinite;
}
.slide-winners.revealed .winners-trophy {
  animation: trophy-rise 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             trophy-float 3s ease-in-out 1s infinite;
}
.slide-winners.revealed .winners-team {
  animation: team-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s forwards;
}
.slide-winners.revealed .winners-points {
  animation: fade-up 0.6s ease-out 1.95s forwards;
}

@keyframes rays-in { to { opacity: 1; } }
@keyframes rays-spin { to { transform: rotate(360deg); } }
@keyframes trophy-rise {
  from { opacity: 0; transform: translateY(240px) scale(0.3); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes trophy-float {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-10px); }
}
@keyframes team-pop {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

/* Confetti canvas — above the slide, below the blank-screen overlay */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
}

/* Connection status indicator */
#connection-status {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #888;
  z-index: 10000;
  transition: background 0.3s;
}
#connection-status.connected    { background: #2ecc71; }
#connection-status.disconnected { background: var(--red); }

/* Exit presenter button — invisible at rest, appears on mouse movement */
#exit-presenter {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  pointer-events: none;
}
#exit-presenter.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Click-to-start overlay — unlocks audio and enters fullscreen */
#start-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22,22,29,0.85);
  cursor: pointer;
}
#start-overlay[hidden] { display: none; }
#start-overlay .start-box {
  text-align: center;
  color: var(--cream);
  font-family: var(--font-body);
}
#start-overlay .start-icon { font-size: 96px; }
#start-overlay .start-title {
  font-family: var(--font-display);
  font-size: 72px;
  text-transform: uppercase;
  margin: 16px 0;
}
#start-overlay .start-sub { font-size: 22px; opacity: 0.7; }
.theme-red .joker-badge { background: var(--ink); }
