/* ============================================================
   HOST (groot scherm / beamer)
   ============================================================ */
body.host {
  font-size: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
}

.host-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand-logo {
  /* Groot genoeg dat de "LOUNGE · FUN · EVENTS" tagline ook leesbaar is.
     brightness(0) invert(1) verft alle gekleurde pixels wit zodat het logo
     contrasteert met de donkere achtergrond. */
  height: clamp(56px, 6vw, 95px);
  width: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 14px rgba(255, 138, 31, 0.55));
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--posta-text-dim);
}
.brand-name em {
  color: var(--posta-gold);
  font-style: normal;
}

.round-tag {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--posta-text-dim);
  letter-spacing: 0.15em;
}

.host-controls {
  display: flex;
  gap: 0.5rem;
}
.ctrl-btn {
  background: var(--posta-card);
  color: var(--posta-text-dim);
  border: 1px solid var(--posta-border);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.15s;
}
.ctrl-btn:hover { background: var(--posta-card-2); color: var(--posta-text); }
.ctrl-primary {
  background: var(--posta-gold);
  color: var(--posta-bg);
  font-weight: 700;
  border-color: var(--posta-gold);
}
.ctrl-primary:hover { background: var(--posta-gold-soft); color: var(--posta-bg); }
.ctrl-warn { color: var(--posta-red-soft); border-color: rgba(217, 53, 44, 0.4); }
.ctrl-warn:hover { background: rgba(217, 53, 44, 0.15); }

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.scene {
  position: absolute;
  inset: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  animation: pop-in 0.4s ease-out;
}
.scene[hidden] { display: none; }

.scene-title {
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

/* ===================== LOBBY ===================== */
/* Te winnen banner — bovenaan in normale flow, niet overlappend */
.lobby-prizes {
  align-self: center;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.8rem;
  max-width: min(900px, 90%);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.3vw, 1.3rem);
  letter-spacing: 0.12em;
  padding: 0.4rem 1.4rem;
  margin: 0 0 1rem;
  border: 1px solid var(--posta-border-2);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 138, 31, 0.22), rgba(232, 38, 29, 0.05));
  color: var(--posta-text);
  text-shadow: 0 0 14px rgba(255, 138, 31, 0.5);
  text-align: center;
  line-height: 1.3;
}
.lobby-prizes[hidden] { display: none; }
.lobby-prizes-icon { font-size: 1.3em; }
.lobby-prizes-label { color: var(--posta-gold); }
.lobby-prizes-list { color: var(--posta-text); }

.lobby-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;     /* QR + CTA bigger than player list */
  gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;                        /* sta toe dat de countdown er onder past */
  padding-top: 1.5rem;
}
.lobby-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

/* Call to action — biggest text on screen aside from the QR */
.lobby-cta {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.05em;
  color: var(--posta-text);
  text-shadow: 0 0 32px rgba(255, 138, 31, 0.4);
}
.lobby-cta-sub {
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  color: var(--posta-text-dim);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

/* QR block — visually the most important thing */
.lobby-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.lobby-qr-label {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  letter-spacing: 0.32em;
  color: var(--posta-gold);
  text-shadow: 0 0 14px rgba(255, 138, 31, 0.6);
}
.lobby-qr {
  background: var(--posta-text);
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(255, 138, 31, 0.55), 0 0 120px rgba(232, 38, 29, 0.25);
  animation: qr-pulse 2.4s ease-in-out infinite;
}
.lobby-qr img {
  /* Pas QR-grootte ook aan op viewport-hoogte zodat de countdown er altijd
     onder past, ook op laptopschermen / 720p. */
  width: min(24vw, 42vh, 360px);
  min-width: 200px;
  height: auto;
  display: block;
}
.lobby-url-fallback {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.75rem, 0.95vw, 1rem);
  color: var(--posta-text-mute);
}
.lobby-url-fallback span {
  color: var(--posta-gold);
}

@keyframes qr-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 60px rgba(255, 138, 31, 0.55), 0 0 120px rgba(232, 38, 29, 0.25);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 80px rgba(255, 138, 31, 0.85), 0 0 160px rgba(232, 38, 29, 0.45);
  }
}

/* Right column: counter + player list */
.lobby-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 480px;
  width: 100%;
  justify-self: end;
}
.lobby-count {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1;
  color: var(--posta-gold);
  text-shadow: 0 0 22px rgba(255, 138, 31, 0.55);
}
.lobby-count #playerCount {
  display: inline-block;
}
.lobby-count .dim {
  font-size: 0.4em;
  color: var(--posta-text-dim);
  letter-spacing: 0.1em;
}
@keyframes count-bounce {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.lobby-count .count-bounce {
  animation: count-bounce 0.45s ease-out;
}

.lobby-players {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.lobby-player-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--posta-card);
  border: 1px solid var(--posta-border);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  animation: pop-in 0.3s ease-out;
}
.lobby-player-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  letter-spacing: 0.05em;
  color: var(--posta-text);
}
.lobby-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 2.2vw, 38px);
  height: clamp(28px, 2.2vw, 38px);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.2vw, 1.2rem);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.lobby-player-more {
  list-style: none;
  font-style: italic;
  color: var(--posta-text-dim);
  padding: 0.2rem 0.7rem;
}

/* Floating join toasts */
.lobby-join-toasts {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 20;
  pointer-events: none;
}
.lobby-join-toast {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(20, 20, 26, 0.92);
  border: 1px solid var(--posta-border-2);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 0 30px rgba(255, 138, 31, 0.45);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 0.05em;
  color: var(--posta-text);
  animation: toast-slide-in 0.35s ease-out;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lobby-join-toast.join-toast-fade {
  opacity: 0;
  transform: translateY(15px);
}
.join-toast-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.2);
}
.join-toast-text b { color: var(--posta-gold); }
@keyframes toast-slide-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lobby-wait-big {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2.4rem);
  letter-spacing: 0.18em;
  color: var(--posta-neon);
  font-style: normal;
  text-shadow: 0 0 18px rgba(255, 74, 20, 0.65);
  display: inline-block;
  animation: neon-pulse 1.6s ease-in-out infinite;
}

/* Lobby auto-restart countdown — bottom banner, altijd zichtbaar onderaan
   het scherm i.p.v. ergens onder de QR weggestopt. */
.lobby-countdown {
  align-self: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  padding: 0.7rem 2rem;
  margin: 1rem auto 0;
  max-width: min(900px, 92%);
  background: linear-gradient(180deg, rgba(255, 74, 20, 0.22), rgba(232, 38, 29, 0.06));
  border: 1px solid var(--posta-border-2);
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(255, 138, 31, 0.4), inset 0 0 18px rgba(255, 138, 31, 0.08);
  transition: transform 0.2s ease;
}
.lobby-countdown[hidden] { display: none; }
.lobby-countdown-label {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  letter-spacing: 0.22em;
  color: var(--posta-gold);
  text-shadow: 0 0 10px rgba(255, 138, 31, 0.6);
}
.lobby-countdown-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 138, 31, 0.8), 0 0 40px rgba(255, 74, 20, 0.45);
  letter-spacing: 0.05em;
  transition: font-size 0.2s ease;
}
.lobby-countdown-unit {
  font-size: 0.45em;
  color: var(--posta-gold);
  margin-left: 0.15em;
}
.lobby-countdown-urgency {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1vw, 1.05rem);
  letter-spacing: 0.32em;
  color: var(--posta-neon);
  text-shadow: 0 0 12px rgba(255, 74, 20, 0.6);
  margin-top: 0.2rem;
}

/* Sub-10s: countdown grows */
.lobby-countdown.countdown-soon .lobby-countdown-num {
  font-size: clamp(3.5rem, 7vw, 7rem);
}
/* Sub-5s: blink urgency */
.lobby-countdown.countdown-blink .lobby-countdown-num {
  font-size: clamp(4.5rem, 9vw, 9rem);
  animation: countdown-flash 0.6s ease-in-out infinite;
}
.lobby-countdown.countdown-blink .lobby-countdown-urgency {
  animation: countdown-flash 0.6s ease-in-out infinite;
}
@keyframes countdown-flash {
  0%, 100% { color: #fff; text-shadow: 0 0 22px rgba(255, 138, 31, 0.8); }
  50%      { color: var(--posta-neon); text-shadow: 0 0 28px rgba(255, 74, 20, 1), 0 0 60px rgba(232, 38, 29, 0.7); }
}

/* Disconnected players show subtly muted in the lobby chip list */
.lobby-players li.player-offline {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: var(--posta-text-mute);
}

/* Tussen rondes (mid-cycle countdown):
   verberg "SCAN & SPEEL MEE", verberg QR, focus volledig op countdown + stand. */
body.lobby-mid-cycle .lobby-prizes,
body.lobby-mid-cycle .lobby-cta,
body.lobby-mid-cycle .lobby-cta-sub,
body.lobby-mid-cycle .lobby-qr-block {
  display: none !important;
}
body.lobby-mid-cycle .lobby-grid {
  grid-template-columns: 1fr;       /* single wide column with countdown + ranking */
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
body.lobby-mid-cycle .lobby-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.lobby-mid-cycle .lobby-countdown {
  flex-direction: column;       /* stack the parts when there's no QR competing for space */
  align-items: center;
  margin: 1.5rem auto 0;
  padding: 1.4rem 2.4rem;
}
body.lobby-mid-cycle .lobby-countdown-num {
  font-size: clamp(4rem, 9vw, 9rem);
}
body.lobby-mid-cycle .lobby-right {
  align-items: center;
  justify-self: center;
  max-width: none;
}
body.lobby-mid-cycle .lobby-count {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  text-align: center;
}

/* Mid-cycle ranking rows: 4 kolommen — rank · avatar · naam · punten */
.lobby-rank-row {
  background: transparent !important;
  border: 1px solid var(--posta-border) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.9rem !important;
  display: grid !important;
  grid-template-columns: 2.5rem auto 1fr auto !important;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}
.lobby-rank-row .rank-pos { color: var(--posta-gold); }
.lobby-rank-row .rank-name { text-align: left; color: var(--posta-text); }
.lobby-rank-row .rank-points { color: var(--posta-text); font-weight: 700; }
body.lobby-mid-cycle .lobby-players {
  flex-direction: column;
  gap: 0.5rem;
  max-height: none;
  width: min(800px, 90%);
  margin: 1rem auto 0;
}

@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 12px rgba(255, 74, 20, 0.5), 0 0 28px rgba(255, 74, 20, 0.3);
  }
  50% {
    text-shadow: 0 0 22px rgba(255, 74, 20, 0.95), 0 0 48px rgba(255, 74, 20, 0.55);
  }
}

.lobby-hint {
  margin-top: 1.2rem;
  color: var(--posta-text-dim);
  font-style: italic;
}

/* ===================== ROUND INTRO ===================== */
.intro-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.intro-tag {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  color: var(--posta-gold);
  letter-spacing: 0.3em;
}
.intro-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 1;
  margin: 1rem 0;
  text-shadow: 0 0 40px rgba(245, 166, 35, 0.5);
}
.intro-desc {
  font-size: clamp(1.2rem, 2vw, 2rem);
  color: var(--posta-text-dim);
  margin-bottom: 2rem;
}
.intro-count {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 14rem);
  color: var(--posta-gold);
  line-height: 1;
  animation: pop-in 0.5s ease-out;
}

/* ===================== REACTION ===================== */
.scene-react-wait { background: var(--posta-red); inset: 0; padding-top: 0; }
.react-wait {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.react-eye { font-size: clamp(5rem, 12vw, 10rem); }
.react-msg {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 14rem);
  letter-spacing: 0.1em;
}
.react-sub {
  font-size: clamp(1rem, 2vw, 1.8rem);
  opacity: 0.85;
}

.scene-react-go {
  background: var(--posta-green-2);
  inset: 0;
  padding-top: 0;
}
.react-go {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.go-text {
  font-family: var(--font-display);
  font-size: clamp(8rem, 28vw, 30rem);
  color: white;
  letter-spacing: 0.05em;
  text-shadow: 0 0 80px rgba(0,0,0,0.4);
  animation: pop-in 0.2s ease-out;
}

/* ===================== RANKINGS ===================== */
.ranking, .leaderboard {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.ranking li, .leaderboard li {
  display: grid;
  grid-template-columns: 3rem 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--posta-card);
  border: 1px solid var(--posta-border);
  border-radius: 10px;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  animation: slide-up 0.3s ease-out backwards;
}
.ranking li:nth-child(1), .leaderboard li:nth-child(1) {
  background: linear-gradient(90deg, var(--posta-gold) 0%, var(--posta-gold-soft) 100%);
  color: var(--posta-bg);
  border-color: var(--posta-gold);
  font-weight: 700;
}
.ranking li:nth-child(2), .leaderboard li:nth-child(2) {
  background: rgba(192, 192, 192, 0.15);
  border-color: rgba(192, 192, 192, 0.3);
}
.ranking li:nth-child(3), .leaderboard li:nth-child(3) {
  background: rgba(205, 127, 50, 0.15);
  border-color: rgba(205, 127, 50, 0.3);
}
.rank-pos {
  font-family: var(--font-display);
  font-size: 1.5em;
  text-align: center;
}
.rank-name { font-weight: 600; }
.rank-time { color: var(--posta-text-dim); font-family: ui-monospace, monospace; }
.ranking li:nth-child(1) .rank-time { color: var(--posta-bg); opacity: 0.7; }
.rank-points {
  font-family: var(--font-display);
  font-size: 1.3em;
  color: var(--posta-gold);
  min-width: 4rem;
  text-align: right;
}
.ranking li:nth-child(1) .rank-points { color: var(--posta-bg); }
.rank-foul .rank-points { color: var(--posta-red-soft); }
.rank-foul .rank-time::before { content: "⚠ te vroeg "; color: var(--posta-red-soft); }
.rank-wrong { opacity: 0.5; }
.rank-wrong .rank-points { color: var(--posta-text-mute); }

/* ===================== QUIZ ===================== */
.quiz-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.quiz-timer-bar {
  height: 0.6rem;
  background: var(--posta-card);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--posta-gold) 0%, var(--posta-red) 100%);
  width: 100%;
  transition: width 0.1s linear;
}
.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 5rem);
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.1;
  padding: 0 1rem;
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  flex: 1;
  align-content: center;
}
.quiz-option {
  background: var(--posta-card);
  border: 2px solid var(--posta-border);
  border-radius: 14px;
  padding: 1.5rem;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  color: var(--posta-text);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.quiz-option .opt-letter {
  font-family: var(--font-display);
  font-size: 1.4em;
  background: var(--posta-gold);
  color: var(--posta-bg);
  width: 2em;
  height: 2em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.quiz-option.correct {
  background: linear-gradient(90deg, rgba(61, 220, 132, 0.25), rgba(61, 220, 132, 0.05));
  border-color: var(--posta-green);
  animation: pulse-glow 1.5s ease-in-out;
}
.quiz-option.correct .opt-letter {
  background: var(--posta-green);
  color: var(--posta-bg);
}
.quiz-option.dim { opacity: 0.35; }

.quiz-correct {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--posta-green);
  margin-bottom: 2rem;
}

/* ===================== TIMING ===================== */
.timing-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.2rem;
  padding: 0 2rem;
}
.timing-target-label {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  letter-spacing: 0.3em;
  color: var(--posta-text-dim);
}
.timing-target {
  font-family: var(--font-display);
  font-size: clamp(4rem, 9vw, 9rem);
  color: var(--posta-gold);
  line-height: 1;
  text-shadow: 0 0 40px rgba(245, 166, 35, 0.5);
}
.timing-stopwatch {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(5rem, 14vw, 14rem);
  color: var(--posta-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.timing-bar-wrap {
  position: relative;
  width: min(80vw, 1000px);
  height: 1rem;
  background: var(--posta-card);
  border: 1px solid var(--posta-border);
  border-radius: 999px;
  overflow: hidden;
}
.timing-bar-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--posta-gold) 0%, var(--posta-red) 100%);
  border-radius: 999px;
  transition: width 0.06s linear;
}
.timing-bar-target {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 4px;
  background: var(--posta-gold-soft);
  box-shadow: 0 0 12px var(--posta-gold);
  left: 50%;
}
.timing-hint {
  color: var(--posta-text-dim);
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-style: italic;
}
.rank-diff {
  color: var(--posta-text-dim);
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
}

/* ===================== SPAM ===================== */
.spam-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 0 2rem;
}
.spam-countdown {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 22rem);
  color: var(--posta-red-soft);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(217, 53, 44, 0.6);
}
.spam-label {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.3em;
  color: var(--posta-gold);
}
.spam-live {
  width: min(80vw, 900px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.spam-live-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr 4rem;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: var(--posta-card);
  border: 1px solid var(--posta-border);
  border-radius: 8px;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  position: relative;
  overflow: hidden;
}
.spam-live-row .spam-live-bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.25) 0%, rgba(245, 166, 35, 0.05) 100%);
  width: 0%;
  z-index: 0;
  transition: width 0.3s ease-out;
}
.spam-live-row > * { position: relative; z-index: 1; }
.spam-live-row .rank-pos {
  font-family: var(--font-display);
  text-align: center;
  color: var(--posta-gold);
}
.spam-live-row .rank-name { font-weight: 600; }
.spam-live-row .rank-count {
  font-family: var(--font-display);
  text-align: right;
  font-size: 1.4em;
  color: var(--posta-gold);
  font-variant-numeric: tabular-nums;
}

/* ===================== LEADERBOARD ===================== */
.lb-next {
  text-align: center;
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  color: var(--posta-text-dim);
  font-style: italic;
}

/* ===================== SHELL ===================== */
.shell-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.shell-phase {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.15em;
  color: var(--posta-gold);
  text-shadow: 0 0 30px rgba(245, 166, 35, 0.5);
}
.shell-stage {
  position: relative;
  width: min(75vw, 1000px);
  height: clamp(220px, 32vh, 360px);
  /* Table surface */
  background:
    radial-gradient(ellipse at center 70%, rgba(245, 166, 35, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, transparent 0%, transparent 60%, rgba(0,0,0,0.5) 80%, rgba(0,0,0,0.9) 100%);
  border-radius: 14px;
}
.shell-stage::after {
  /* Table edge / horizon line */
  content: '';
  position: absolute;
  bottom: 8%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.3), transparent);
}
.shell-cup {
  position: absolute;
  top: 18%;
  width: 18%;
  height: 70%;
  /* Cup shape via radial+linear gradients for 3D look */
  background:
    /* Glossy highlight on left */
    radial-gradient(ellipse 30% 60% at 28% 35%, rgba(255, 220, 200, 0.45) 0%, transparent 70%),
    /* Inner shadow on right */
    radial-gradient(ellipse 30% 80% at 75% 50%, rgba(0, 0, 0, 0.4) 0%, transparent 65%),
    /* Main red */
    linear-gradient(170deg, #ff5e54 0%, #d9352c 25%, #a8201a 70%, #6a1410 100%);
  border-radius: 100% 100% 8% 8% / 50% 50% 6% 6%;
  border-bottom: 3px solid rgba(0, 0, 0, 0.55);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.55),
    inset 0 -8px 14px rgba(0, 0, 0, 0.25);
  transition: left 380ms cubic-bezier(0.4, 0, 0.6, 1),
              transform 380ms cubic-bezier(0.5, -0.2, 0.5, 1.1);
  z-index: 2;
}
.shell-cup::before {
  /* Specular highlight (curved sheen on top-left) */
  content: '';
  position: absolute;
  top: 8%;
  left: 18%;
  width: 14%;
  height: 35%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.shell-cup::after {
  /* Cast shadow under cup */
  content: '';
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -16px;
  height: 14px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.55) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}
.shell-cup.lifted {
  transform: translateY(-55%) rotate(-12deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shell-hand {
  position: absolute;
  top: -8%;
  width: 10%;
  height: auto;
  font-size: clamp(40px, 6vw, 75px);
  text-align: center;
  transform: translateX(-50%);
  transition: left 380ms cubic-bezier(0.4, 0, 0.6, 1), opacity 250ms;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
  animation: hand-wobble 1.6s ease-in-out infinite;
  z-index: 2;   /* boven cup, maar bal heeft z-index 5 — bal blijft zichtbaar */
}
.shell-letters {
  position: absolute;
  bottom: -4%;
  left: 0;
  right: 0;
  height: 14%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.shell-letter {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--posta-gold);
  text-shadow: 0 0 14px rgba(255, 138, 31, 0.6);
  letter-spacing: 0.05em;
}
@keyframes hand-wobble {
  0%, 100% { transform: translateX(-50%) rotate(-8deg); }
  50%      { transform: translateX(-50%) rotate(8deg); }
}
.shell-ball {
  position: absolute;
  bottom: 14%;
  width: 9%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 32% 30%, #fff5d6 0%, #ffd470 18%, #f5a623 55%, #b87013 90%);
  border-radius: 50%;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(255, 200, 80, 0.6),
    inset -3px -3px 8px rgba(120, 60, 5, 0.4);
  transition: left 380ms cubic-bezier(0.4, 0, 0.6, 1), opacity 200ms;
  z-index: 5;   /* hoger dan handje + cup zodat de bal altijd zichtbaar is */
}
.shell-ball::after {
  /* Ball shine */
  content: '';
  position: absolute;
  top: 18%;
  left: 26%;
  width: 28%;
  height: 28%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, transparent 60%);
  border-radius: 50%;
  filter: blur(0.5px);
}

/* ===================== BOMB ===================== */
.bomb-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.bomb-stage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  width: min(70vw, 700px);
}
.bomb-cell {
  background: var(--posta-card);
  border: 3px solid var(--posta-border);
  border-radius: 14px;
  aspect-ratio: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--posta-gold);
  position: relative;
  transition: all 0.3s;
}
.bomb-cell.safe {
  background: rgba(61, 220, 132, 0.15);
  border-color: var(--posta-green);
  color: var(--posta-green);
}
.bomb-cell.bomb {
  background: rgba(217, 53, 44, 0.2);
  border-color: var(--posta-red);
  color: var(--posta-red-soft);
  animation: pulse-glow 1s ease-in-out infinite;
}
.bomb-cell .cell-letter {
  font-family: var(--font-display);
  font-size: 0.5em;
  position: absolute;
  top: 0.5rem;
  left: 0.8rem;
  color: var(--posta-text-dim);
}
.bomb-timer-bar {
  height: 0.5rem;
  background: var(--posta-card);
  border-radius: 999px;
  overflow: hidden;
  width: min(60vw, 600px);
}
.bomb-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--posta-gold), var(--posta-red));
  width: 100%;
  transition: width 0.1s linear;
}

/* ===================== FREEZE ===================== */
.freeze-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.freeze-tikken { color: var(--posta-text); }
.freeze-label {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 14rem);
  color: var(--posta-gold);
  line-height: 1;
  animation: pulse-glow 0.4s ease-in-out infinite;
}
.scene-freeze-stop { background: var(--posta-red); inset: 0; padding-top: 0; }
.freeze-stop-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 1rem;
}
.freeze-stop-text {
  font-family: var(--font-display);
  font-size: clamp(8rem, 25vw, 25rem);
  line-height: 1;
  letter-spacing: 0.05em;
  animation: pop-in 0.2s ease-out;
}
.freeze-stop-sub {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  opacity: 0.9;
  font-family: var(--font-display);
  letter-spacing: 0.2em;
}

/* ===================== RISK ===================== */
.risk-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.risk-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: min(80vw, 800px);
}
.risk-opt {
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 3px solid;
}
.risk-safe {
  background: rgba(61, 220, 132, 0.12);
  border-color: var(--posta-green);
}
.risk-risk {
  background: rgba(217, 53, 44, 0.12);
  border-color: var(--posta-red);
}
.risk-opt-tag {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.15em;
}
.risk-safe .risk-opt-tag { color: var(--posta-green); }
.risk-risk .risk-opt-tag { color: var(--posta-red-soft); }
.risk-opt-pts {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  color: var(--posta-text);
  line-height: 1;
  margin: 0.5rem 0;
}
.risk-opt-sub {
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  color: var(--posta-text-dim);
}
.risk-live {
  display: flex;
  gap: 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  color: var(--posta-text-dim);
}
.risk-live span { font-size: 1.4em; }

/* ===================== TARGET ===================== */
.target-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.target-stage {
  width: min(70vw, 800px);
  aspect-ratio: 5/3;
  background:
    radial-gradient(circle at center, rgba(245, 166, 35, 0.05), transparent 70%),
    var(--posta-bg-2);
  border: 2px dashed var(--posta-border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.target-stage svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===================== FINISHED ===================== */
.scene-finished { align-items: stretch; }
.final-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.final-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}
.final-tag {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.4rem);
  letter-spacing: 0.3em;
  color: var(--posta-gold);
}
.final-winner-box {
  background: linear-gradient(135deg, var(--posta-gold) 0%, var(--posta-gold-soft) 100%);
  color: var(--posta-bg);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-glow);
  animation: pop-in 0.5s ease-out, pulse-glow 2.5s ease-in-out infinite;
}
.final-winner-label {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  letter-spacing: 0.3em;
  opacity: 0.7;
}
.final-winner-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin: 0.3rem 0;
}
.final-winner-score {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  opacity: 0.8;
}
.final-board {
  flex: 1;
  overflow: hidden;
}
.final-board li {
  font-size: clamp(0.95rem, 1.4vw, 1.3rem);
  padding: 0.6rem 1rem;
}
.final-board li:nth-child(1) { display: none; }   /* winner shown above */

.final-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  background: var(--posta-card);
  border: 1px solid var(--posta-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}
.final-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  letter-spacing: 0.05em;
  color: var(--posta-text);
  text-align: center;
}
.final-cta-btn {
  font-size: clamp(1.4rem, 2.4vw, 2rem) !important;
  padding: 1.2rem 1.5rem !important;
  letter-spacing: 0.1em !important;
  border-radius: 12px !important;
  font-family: var(--font-display) !important;
}
.final-cta-sub {
  text-align: center;
  font-size: 0.95rem;
  color: var(--posta-text-dim);
  font-style: italic;
}
.final-qr-block {
  margin-top: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.final-qr-label {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  color: var(--posta-gold);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}
.final-qr {
  background: var(--posta-text);
  padding: 0.6rem;
  border-radius: 10px;
  align-self: center;
}
.final-qr img {
  width: clamp(140px, 14vw, 220px);
  height: auto;
  display: block;
}

/* ===================== FX ===================== */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
}

/* ===================== PRIZE ANNOUNCE ===================== */
.prize-announce {
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: linear-gradient(135deg, var(--posta-gold) 0%, var(--posta-gold-soft) 100%);
  color: var(--posta-bg);
  padding: 1rem 2rem;
  border-radius: 16px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  z-index: 110;
  box-shadow: 0 0 60px rgba(245, 166, 35, 0.7);
  animation: prize-slide-in 0.4s ease-out, pulse-glow 2s ease-in-out infinite;
  min-width: 30rem;
}
.prize-announce[hidden] { display: none; }
@keyframes prize-slide-in {
  from { transform: translateX(-50%) translateY(-100px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}
.prize-announce-icon { font-size: 4rem; }
.prize-announce-tag {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.prize-announce-text {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.1;
}
.prize-announce-text .gold { color: var(--posta-bg); text-decoration: underline; text-decoration-color: rgba(0,0,0,0.4); }
.prize-announce-code {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}
.prize-announce-code .adm-code {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--posta-bg);
}

/* ===================== LINKS OF RECHTS ===================== */
.lr-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.lr-stage {
  position: relative;
  width: min(60vh, 90vw);
  max-width: 700px;
  background: linear-gradient(180deg, rgba(255,138,31,0.05) 0%, rgba(0,0,0,0) 60%);
  border: 1px solid var(--posta-border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-glow);
}
.lr-stage svg { width: 100%; height: auto; display: block; }
.lr-floor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 0.6rem;
}
.lr-zone {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 8px;
  letter-spacing: 0.15em;
}
.lr-zone-l {
  color: var(--posta-gold);
  background: rgba(255, 138, 31, 0.1);
  border: 1px solid var(--posta-border);
}
.lr-zone-r {
  color: var(--posta-red-soft);
  background: rgba(232, 38, 29, 0.1);
  border: 1px solid rgba(232, 38, 29, 0.4);
}

/* ===================== HOOG OF LAAG ===================== */
.hl-wrap, .hl-results-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.hl-start {
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 138, 31, 0.7), 0 0 60px rgba(255, 74, 20, 0.45);
  animation: pop-in 0.5s ease-out;
}
.hl-question {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  letter-spacing: 0.12em;
  color: var(--posta-text-dim);
}
.hl-results-pair {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
.hl-num-small {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--posta-text-dim);
  line-height: 1;
}
.hl-arrow {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--posta-gold);
  line-height: 1;
}
.hl-num-big {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 14rem);
  color: #fff;
  text-shadow: 0 0 28px rgba(255, 138, 31, 0.7);
  line-height: 1;
  animation: pop-in 0.4s ease-out;
}

/* ===================== VERMIJD DE KLEUR ===================== */
.avoid-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.avoid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  width: min(70vw, 900px);
}
.avoid-cell {
  height: clamp(80px, 12vh, 130px);
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 0 18px rgba(255, 255, 255, 0.08);
}
.avoid-cell.avoid-forbidden {
  border-color: rgba(255, 255, 255, 0.85);
  outline: 2px dashed rgba(0, 0, 0, 0.5);
  outline-offset: -10px;
  animation: pulse-glow 1.4s ease-in-out infinite;
}

/* ===================== SCHREEUW DERBY ===================== */
.derby-wrap, .derby-cheer-wrap, .derby-result-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
}
.derby-select-timer {
  font-size: 0.6em;
  color: var(--posta-gold);
  margin-left: 0.5rem;
}

/* Horse cards in select fase */
.derby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  width: min(85vw, 1200px);
}
.derby-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  background: var(--posta-bg-2);
  border: 3px solid;
  border-radius: 14px;
  text-align: center;
}
.derby-card-icon {
  width: clamp(60px, 7vw, 90px);
  height: clamp(60px, 7vw, 90px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(30px, 4vw, 50px);
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}
.derby-card-name {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  letter-spacing: 0.05em;
}
.derby-card-trait { font-size: 0.85rem; }
.derby-card-supporters {
  font-family: var(--font-display);
  color: var(--posta-gold);
  font-size: 1.1rem;
}
.derby-card-supporters span { font-size: 1.4em; }

/* Race track */
.derby-cheer-title {
  font-size: clamp(1.6rem, 3vw, 2.8rem);
}
.derby-bonus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: #fff;
  background: linear-gradient(90deg, var(--posta-gold), var(--posta-neon));
  padding: 0.4rem 1.6rem;
  border-radius: 999px;
  letter-spacing: 0.18em;
  box-shadow: 0 0 30px rgba(255, 138, 31, 0.7);
  animation: derby-bonus-pulse 0.6s ease-in-out infinite;
}
.derby-bonus[hidden] { display: none; }
@keyframes derby-bonus-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}
.derby-track {
  width: min(90vw, 1400px);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.derby-lane {
  display: grid;
  grid-template-columns: 160px 1fr 90px;
  gap: 0.6rem;
  align-items: center;
}
.derby-lane-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  letter-spacing: 0.05em;
  text-align: right;
}
.derby-lane-track {
  position: relative;
  height: clamp(28px, 3.5vw, 50px);
  background: linear-gradient(90deg, var(--posta-bg-2) 0%, var(--posta-bg-3) 100%);
  border: 1px solid var(--posta-border);
  border-radius: 999px;
  overflow: hidden;
}
.derby-lane-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  opacity: 0.4;
  transition: width 0.18s linear;
}
.derby-lane-horse {
  position: absolute;
  top: 50%;
  left: 0;                                        /* expliciete startpositie */
  transform: translate(-50%, -50%);
  font-size: clamp(28px, 3vw, 44px);              /* iets groter zodat ze opvallen */
  transition: left 0.2s linear;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  /* Running bounce — lichte op-en-neer beweging zodat het paard 'rent' */
  animation: derby-run 0.32s ease-in-out infinite;
  display: inline-block;
}
@keyframes derby-run {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50%      { transform: translate(-50%, -65%) rotate(2deg); }
}
.derby-lane-finish {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(18px, 2vw, 28px);
  opacity: 0.5;
}
.derby-lane-supporters {
  font-family: var(--font-display);
  font-size: 1rem;
  text-align: left;
}

/* Result scene */
.derby-result-tag {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  letter-spacing: 0.32em;
  color: var(--posta-gold);
}
.derby-result-winner {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 1;
  text-shadow: 0 0 40px rgba(255, 138, 31, 0.7);
  animation: pop-in 0.5s ease-out;
}
.derby-result-supporters {
  font-size: clamp(0.95rem, 1.3vw, 1.3rem);
  color: var(--posta-text-dim);
}
.derby-result-top {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.4rem);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
