/* ============================================================
   "Past het?" De Show (#506) — a game-show round, js/show.js.
   In the game's own style (Laura: "not so color crazy"): the studio
   picture calm and dark behind, white cards with ink text, purple as
   the main colour, yellow only as a small accent and the game's own
   yellow button, real pictures instead of long text.
   ============================================================ */
.show {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  color: var(--ink, #0D065B);
  background: #1A0B6E;
  font-family: inherit;
}

/* ---- studio, calm ---- */
.show-bg { position: absolute; inset: 0; }
.show-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.show-bg-tall { display: none; }
@media (max-aspect-ratio: 3/4) {
  .show-bg-tall { display: block; }
  .show-bg-wide { object-position: 50% 40%; }
}
.show-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 6, 91, 0.55) 0%, rgba(13, 6, 91, 0.45) 45%, rgba(13, 6, 91, 0.85) 100%);
}
.show-lights { display: none; }

/* ---- layout ---- */
.show-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: 540px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.show-top { display: flex; align-items: flex-start; gap: 10px; }
.show-quit {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--ink, #0D065B);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.show-quit svg { width: 20px; height: 20px; }

/* ---- host (Bella), like the game's chat ---- */
.show-host { flex: 1; display: flex; align-items: flex-end; gap: 8px; min-height: 60px; }
.show-host-av { width: 54px; height: 54px; object-fit: contain; flex: 0 0 auto; }
.show-host-line {
  margin: 0;
  background: #fff;
  color: var(--ink, #0D065B);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  box-shadow: 0 6px 18px rgba(13, 6, 91, 0.25);
  text-wrap: pretty;
}
.show-host-line:empty { display: none; }
.show-host-line.is-in { animation: show-pop 0.3s ease; }
@keyframes show-pop {
  from { opacity: 0; transform: translateY(6px); }
}

/* ---- main ---- */
.show-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0;
}

/* ---- buttons: the game's own .btn .btn-yellow ---- */
.show-btn { min-width: 200px; }
.show-btn.is-hidden { visibility: hidden; }

/* ---- wheel, in the game's colours ---- */
.show-wheel-wrap { position: relative; width: min(74vw, 290px); aspect-ratio: 1; }
.show-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--purple, #5F29FF);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
  position: relative;
}
.show-wheel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--purple, #5F29FF);
  box-shadow: inset 0 0 0 5px #fff;
}
.show-wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--yellow, #FAFF05);
  filter: drop-shadow(0 2px 0 var(--ink, #0D065B));
}
.show-wheel-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 25%;
  aspect-ratio: 1;
  margin: -12.5% 0 0 -12.5%;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--purple, #5F29FF);
  transform: rotate(var(--a)) translateY(-118%) rotate(calc(var(--a) * -1));
  display: grid;
  place-items: center;
}
.show-wheel-face img, .show-wheel-face svg { width: 100%; height: 100%; object-fit: cover; }
.show-wheel-face.is-hit { border-color: var(--yellow, #FAFF05); box-shadow: 0 0 0 4px var(--ink, #0D065B); }

/* ---- person card ---- */
.show-person {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 3px solid var(--purple, #5F29FF);
  border-radius: 22px;
  padding: 12px 14px;
  width: 100%;
  animation: show-pop 0.3s ease;
}
.show-person-av { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: #F3EFFF; display: grid; place-items: center; }
.show-person-av img, .show-person-av svg { width: 100%; height: 100%; object-fit: cover; }
.show-person.is-small { padding: 8px 12px; border-width: 2px; }
.show-person.is-small .show-person-av { width: 48px; height: 48px; }
.show-person-name { font-size: 1.2rem; }
.show-facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.show-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F3EFFF;
  color: var(--ink, #0D065B);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}
.show-facts svg { width: 16px; height: 16px; color: var(--purple, #5F29FF); }

/* ---- board ---- */
.show-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; width: 100%; }
.show-tile {
  border: 3px solid var(--purple, #5F29FF);
  border-radius: 20px;
  padding: 18px 10px;
  background: #fff;
  color: var(--ink, #0D065B);
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 5px 0 var(--purple, #5F29FF);
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.show-tile svg { width: 34px; height: 34px; color: var(--purple, #5F29FF); }
.show-tile-cat { font-weight: 800; font-size: 1.05rem; }
.show-tile-pts { font-weight: 900; font-size: 1.5rem; }
.show-tile:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--purple, #5F29FF); }
.show-tile.is-flip { transform: rotateY(180deg); }
.show-tile.is-done { opacity: 0.4; box-shadow: none; cursor: default; }

/* ---- AI answer: a picture when there is one ---- */
.show-ai {
  width: 100%;
  background: #fff;
  border-radius: 22px;
  padding: 12px 14px 14px;
  box-shadow: 0 8px 22px rgba(13, 6, 91, 0.3);
  animation: show-pop 0.3s ease;
}
.show-ai-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple, #5F29FF);
}
.show-ai-label svg { width: 16px; height: 16px; }
.show-ai-pic { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; margin-top: 8px; background: #F3EFFF; }
.show-ai-text { margin: 8px 0 0; font-size: 1.15rem; font-weight: 800; line-height: 1.35; text-wrap: pretty; }
.show-ai.has-pic .show-ai-text { font-size: 1rem; font-weight: 700; }

/* ---- answer buttons, like the game's, big ---- */
.show-buzzers { display: flex; gap: 12px; width: 100%; }
.show-buzz {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink, #0D065B);
  border-radius: 20px;
  padding: 16px 10px;
  font: inherit;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--ink, #0D065B);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink, #0D065B);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.3s ease;
}
.show-buzz svg { width: 24px; height: 24px; }
.show-buzz.is-yes svg { color: var(--good, #14B86B); }
.show-buzz.is-no svg { color: var(--bad, #FF5C7A); }
.show-buzz:active, .show-buzz.is-pressed { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink, #0D065B); }
.show-buzz:disabled { cursor: default; }
.show-buzz:disabled:not(.is-pressed):not(.is-right):not(.is-off) { opacity: 0.55; }
.show-buzz.is-right.is-yes { background: var(--good, #14B86B); color: #fff; border-color: var(--good-dark, #0E8A50); box-shadow: 0 5px 0 var(--good-dark, #0E8A50); }
.show-buzz.is-right.is-no { background: var(--bad, #FF5C7A); color: #fff; border-color: #D63E5E; box-shadow: 0 5px 0 #D63E5E; }
.show-buzz.is-right svg { color: #fff; }
.show-buzz.is-off { opacity: 0.4; }

/* ---- bonus (Maker and up) ---- */
.show-bonus { width: 100%; display: grid; gap: 8px; animation: show-pop 0.3s ease; }
.show-bonus-q { margin: 0; font-weight: 800; font-size: 1rem; text-align: center; color: #fff; }
.show-bonus-q em { font-style: normal; color: var(--yellow, #FAFF05); }
.show-bonus-opt {
  border: 2px solid #fff;
  background: #fff;
  color: var(--ink, #0D065B);
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.show-bonus-opt.is-right { border-color: var(--good, #14B86B); background: #E6F8EF; }
.show-bonus-opt.is-wrong { border-color: var(--bad, #FF5C7A); background: #FFE9EE; }

/* ---- guess: little people light up ---- */
.show-guess-q { margin: 0; font-weight: 800; font-size: 1.05rem; text-align: center; line-height: 1.4; color: #fff; text-wrap: pretty; }
.show-guess { display: flex; align-items: center; gap: 16px; }
.show-guess-step { width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--ink, #0D065B); display: grid; place-items: center; cursor: pointer; }
.show-guess-step svg { width: 22px; height: 22px; }
.show-guess-val { min-width: 90px; text-align: center; font-size: 3.2rem; font-weight: 900; color: #fff; }
.show-guess-val.is-answer { animation: show-pop 0.4s ease; color: var(--yellow, #FAFF05); }
.show-guess-people {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px 10px;
  background: #fff;
  border-radius: 18px;
  padding: 12px 18px;
}
.show-guess-people svg { width: 30px; height: 30px; color: #D9D2F5; transition: color 0.2s ease; }
.show-guess-people svg.is-on { color: var(--purple, #5F29FF); }
.show-guess-people svg.is-yes { color: var(--good, #14B86B); }
.show-guess-range { width: min(100%, 300px); accent-color: var(--purple, #5F29FF); }

/* ---- podiums: white, the kid's own with a yellow marker ---- */
.show-pods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 10px; }
.show-pod {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.35;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.show-pod.is-lit { opacity: 1; transform: none; }
.show-pod-av {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  background: #F3EFFF;
  display: grid;
  place-items: center;
  margin-bottom: -10px;
  z-index: 1;
}
.show-pod-av img, .show-pod-av svg { width: 100%; height: 100%; object-fit: cover; }
.show-pod-plate {
  width: 100%;
  background: #fff;
  color: var(--ink, #0D065B);
  border-radius: 14px;
  padding: 13px 4px 6px;
  text-align: center;
}
.show-pod.is-you .show-pod-plate { box-shadow: inset 0 -5px 0 var(--yellow, #FAFF05), 0 0 0 3px var(--purple, #5F29FF); }
.show-pod-name { display: block; font-weight: 800; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.show-pod-score { display: block; font-weight: 900; font-size: 1.1rem; color: var(--purple, #5F29FF); }
.show-pod.is-winner .show-pod-plate { box-shadow: 0 0 0 3px var(--yellow, #FAFF05); }
.show-pod.is-winner::before {
  content: "";
  position: absolute;
  top: -16px;
  width: 26px;
  height: 14px;
  background: var(--yellow, #FAFF05);
  clip-path: polygon(0 100%, 0 20%, 25% 60%, 50% 0, 75% 60%, 100% 20%, 100% 100%);
  z-index: 3;
}
.show-initial { font-weight: 900; font-size: 1.3rem; color: var(--purple, #5F29FF); }
.show-pod-pick {
  position: absolute;
  top: -24px;
  z-index: 2;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  background: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.show-pod-pick.is-in { opacity: 1; transform: none; }
.show-pod-pick.is-yes { color: var(--good-dark, #0E8A50); }
.show-pod-pick.is-no { color: #D63E5E; }
.show-pod-pick.is-num { color: var(--ink, #0D065B); font-size: 0.95rem; }
.show-fly {
  position: absolute;
  top: -10px;
  z-index: 3;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--yellow, #FAFF05);
  text-shadow: 0 2px 0 var(--ink, #0D065B);
  animation: show-fly 1.2s ease forwards;
  pointer-events: none;
}
@keyframes show-fly {
  from { opacity: 0; transform: translateY(10px); }
  25% { opacity: 1; transform: translateY(-14px); }
  to { opacity: 0; transform: translateY(-44px); }
}

/* ---- slime: a gooey blob on the head with drips, then gone ---- */
.show-slime {
  position: absolute;
  top: -10px;
  left: 6%;
  right: 6%;
  height: 0;
  z-index: 2;
  border-radius: 46% 54% 40% 44% / 30% 30% 60% 60%;
  background: radial-gradient(circle at 32% 28%, #C9F59A 0, #7FD84A 30%, #4FAE2A 75%);
  opacity: 0;
  pointer-events: none;
}
.show-slime::before,
.show-slime::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 13px;
  height: 18px;
  border-radius: 0 0 9px 9px;
  background: #4FAE2A;
}
.show-slime::before { left: 20%; }
.show-slime::after { left: 64%; height: 26px; bottom: -22px; width: 11px; }
.show-pod.is-slimed .show-slime { animation: show-slime 2.6s ease forwards; }
@keyframes show-slime {
  0% { height: 0; opacity: 1; transform: translateY(-30px); }
  16% { height: 58%; transform: none; }
  24% { height: 52%; }
  75% { height: 56%; opacity: 1; }
  100% { height: 56%; opacity: 0; }
}

/* ---- Crasher pops in ---- */
.show-crasher {
  position: absolute;
  right: 12px;
  top: 30%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-direction: row-reverse;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.show-crasher.is-in { opacity: 1; transform: none; }
.show-crasher svg { width: 70px; height: 70px; }
.show-crasher span {
  background: var(--ink, #0D065B);
  color: #fff;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 16px 16px 4px 16px;
  max-width: 200px;
}

/* ---- finale ---- */
.show-finale {
  background: #fff;
  border-radius: 24px;
  padding: 22px 30px;
  text-align: center;
  animation: show-pop 0.4s ease;
}
.show-trophy { width: 64px; height: 64px; color: var(--purple, #5F29FF); }
.show-finale-title { margin: 6px 0 0; font-weight: 800; font-size: 1.1rem; }
.show-finale-score { margin: 2px 0 0; font-weight: 900; font-size: 2.6rem; color: var(--purple, #5F29FF); }
.show-finale-score span { font-size: 1rem; color: var(--ink, #0D065B); }

/* ---- intro: a box that keeps the picture's shape (9:16), so Bella and
   the hero land exactly on their empty spots ---- */
.show-intro { position: absolute; inset: 0; z-index: 4; overflow: hidden; background: #0D065B; transition: opacity 0.4s ease; }
.show-intro.is-out { opacity: 0; }
.show-intro-media { position: absolute; inset: 0; overflow: hidden; }
.show-intro-box {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  aspect-ratio: 768 / 1376;
  transform: translateX(-50%);
}
@media (min-aspect-ratio: 768/1376) {
  .show-intro-box { height: auto; width: min(100%, 560px); top: 50%; transform: translate(-50%, -50%); }
}
.show-intro-shot { position: absolute; inset: 0; overflow: hidden; }
.show-intro-shot video, .show-intro-still { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-intro.is-still .show-intro-still { animation: show-zoom 3.2s ease-out both; }
@keyframes show-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.show-title {
  position: absolute;
  left: 50%;
  top: 9%;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 10px 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0D065B);
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  font-weight: 900;
  box-shadow: inset 0 -6px 0 var(--yellow, #FAFF05), 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: show-title 0.6s ease both;
  z-index: 2;
}
@keyframes show-title {
  from { opacity: 0; transform: translateX(-50%) scale(0.8); }
}
.show-intro-host, .show-intro-hero {
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -100%) scale(0.7);
  transform-origin: 50% 100%;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.show-intro-host { width: 30%; }
.show-intro-hero { width: 24%; aspect-ratio: 1; left: 80%; top: 62%; }
.show-intro-hero svg { width: 100%; height: 100%; }
.show-intro.is-host .show-intro-host { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.show-intro.is-players .show-intro-hero { opacity: 1; transform: translate(-50%, -100%) scale(1); }
.show-intro.is-css .show-intro-shot {
  background: radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 24%);
}
.show-intro.is-players .show-intro-host { opacity: 0; }
.show-skip {
  position: absolute;
  right: 14px;
  top: calc(14px + env(safe-area-inset-top, 0px));
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: var(--ink, #0D065B);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .show-title, .show-host-line.is-in, .show-person, .show-ai, .show-finale, .show-bonus, .show-intro.is-still .show-intro-still { animation: none; }
  .show-tile, .show-pod, .show-buzz { transition: none; }
  .show-pod.is-slimed .show-slime { animation: none; height: 56%; opacity: 0.9; }
}

/* ---- round two (#506): category wheel, time to answer, the reveal on
   the stage with name tags, and a microphone in front of Bella ---- */
.show-wheel-face { flex-direction: column; gap: 2px; }
.show-wheel-face svg { width: 42%; height: 42%; color: var(--purple, #5F29FF); }
.show-wheel-face span { font-size: 0.68rem; font-weight: 900; color: var(--ink, #0D065B); }
.show-wheel-face.is-crasher { background: #fff; }
.show-wheel-face.is-crasher svg { width: 100%; height: 100%; }

.show-ai-head { display: flex; align-items: center; justify-content: space-between; }
.show-ai-pts {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ink, #0D065B);
  background: var(--yellow, #FAFF05);
  border-radius: 999px;
  padding: 2px 10px;
}

.show-timer { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.show-timer span { display: block; height: 100%; background: var(--yellow, #FAFF05); transform-origin: 0 50%; }

.show-pod-pick.is-lock { color: var(--purple, #5F29FF); padding: 3px 7px; }
.show-pod-pick.is-lock svg { width: 14px; height: 14px; display: block; }
.show-pod-pick.is-late { color: #8A8AA3; }

/* name tags on the stands */
.show-stand {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.show-intro.is-players .show-stand, .show-stage .show-stand { opacity: 1; }
.show-stand-tag {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 4px 10px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink, #0D065B);
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1.15;
  box-shadow: 0 3px 0 rgba(13, 6, 91, 0.35);
  transition: background 0.25s ease, color 0.25s ease;
}
.show-stand-tag b { font-size: 0.75rem; }
.show-stand.is-you .show-stand-tag { box-shadow: inset 0 -4px 0 var(--yellow, #FAFF05), 0 3px 0 rgba(13, 6, 91, 0.35); }
.show-stand-tag.is-yes { background: var(--good, #14B86B); color: #fff; }
.show-stand-tag.is-no { background: var(--bad, #FF5C7A); color: #fff; }
.show-stand-tag.is-late { background: #D9D2F5; }
.show-stand.is-right .show-stand-tag { outline: 3px solid var(--yellow, #FAFF05); outline-offset: 2px; }
.show-stand-slime {
  position: absolute;
  left: 50%;
  top: -60px;
  width: 70px;
  height: 0;
  transform: translateX(-50%);
  border-radius: 46% 54% 40% 44% / 30% 30% 60% 60%;
  background: radial-gradient(circle at 32% 28%, #C9F59A 0, #7FD84A 30%, #4FAE2A 75%);
  opacity: 0;
  pointer-events: none;
}
.show-stand.is-slimed .show-stand-slime { animation: show-stand-slime 2.6s ease forwards; }
@keyframes show-stand-slime {
  0% { height: 0; opacity: 1; transform: translate(-50%, -30px); }
  18% { height: 56px; transform: translateX(-50%); }
  75% { height: 52px; opacity: 1; }
  100% { height: 52px; opacity: 0; }
}

/* the reveal happens on the stage picture */
.show-stage { width: 100%; display: flex; justify-content: center; animation: show-pop 0.3s ease; }
.show-stage-box {
  position: relative;
  height: min(58vh, 520px);
  aspect-ratio: 768 / 1376;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.show-stage-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-stage .show-intro-hero { opacity: 1; transform: translate(-50%, -100%); }
.show-stage-answer {
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translate(-50%, -10px) scale(0.9);
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  font-size: 1.2rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.show-stage-answer.is-in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.show-stage-answer.is-yes { color: var(--good-dark, #0E8A50); box-shadow: inset 0 -5px 0 var(--good, #14B86B); }
.show-stage-answer.is-no { color: #D63E5E; box-shadow: inset 0 -5px 0 var(--bad, #FF5C7A); }
@media (prefers-reduced-motion: reduce) {
  .show-stand.is-slimed .show-stand-slime { animation: none; height: 52px; opacity: 0.9; }
}

/* ---- one screen, never scrolling to answer (Laura) ---- */
.show-main.is-q, .show-main.is-stageview { justify-content: flex-start; overflow: hidden; }
.show-main.is-q .show-person { flex: 0 0 auto; }
.show-main.is-q .show-ai { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }
.show-main.is-q .show-ai-pic { flex: 1 1 0; min-height: 0; height: 0; aspect-ratio: auto; }
.show-main.is-q .show-timer, .show-main.is-q .show-buzzers { flex: 0 0 auto; }
.show-main.is-q .show-ai-text { flex: 0 0 auto; }

/* the reveal: the stage picture OR the podium row, never both (Laura) */
.show.is-stage .show-pods { display: none; }
.show-main.is-stageview .show-stage { flex: 1 1 0; min-height: 0; }
.show-main.is-stageview .show-stage-box { height: 100%; max-height: 100%; }
.show-main.is-stageview .show-next, .show-main.is-stageview .show-bonus { flex: 0 0 auto; }
.show-stage .show-intro-hero { width: 26%; }

/* ---- Bella in her round frame, like everywhere in the game (Laura) ---- */
.show-host-av {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #F3EFFF;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(13, 6, 91, 0.3);
  display: block;
}
.show-host-av img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- scores at the top, answer buttons at the bottom (Laura) ---- */
.show-top { order: 0; }
.show-pods { order: 1; padding-top: 16px; padding-bottom: 2px; }
.show-main { order: 2; }
.show-pod-av { width: 42px; height: 42px; margin-bottom: -8px; border-width: 2px; }
.show-pod-plate { padding: 10px 4px 4px; border-radius: 12px; }
.show-pod-name { font-size: 0.74rem; }
.show-pod-score { font-size: 0.98rem; }
.show-pod-pick { top: auto; bottom: -20px; }
.show-main.is-q .show-buzzers { margin-top: auto; }

/* ---- top: the game's usual round bar and points (Laura), Bella below ---- */
.show-top { align-items: center; position: relative; z-index: 2; }
.show-dots { flex: 1; }
.show .rdot { background: rgba(255, 255, 255, 0.22); }
.show .rdot.now { background: #fff; }
.show .rdot.done { background: var(--good, #14B86B); }
.show-points { display: inline-flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2); }
.show-points svg { width: 16px; height: 16px; }
.show-hostbar { order: 0; position: relative; z-index: 2; margin-top: 10px; }

/* ---- one card: who it is for on top, what AI suggests below (Laura) ---- */
.show-card { padding: 0; overflow: hidden; }
.show-card-who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F3EFFF; }
.show-card-whotext { flex: 1; min-width: 0; }
.show-card .show-person-name { display: block; font-size: 1.05rem; line-height: 1.2; }
.show-card .show-facts { margin-top: 4px; gap: 4px; }
.show-card .show-facts li { background: #fff; font-size: 0.78rem; padding: 3px 8px; }
.show-card .show-ai-pts { align-self: flex-start; }
.show-card .show-ai-pic { margin: 0; border-radius: 0; }
.show-card .show-ai-text { margin: 0; padding: 10px 14px 12px; }
.show-card .show-ai-label {
  vertical-align: 2px;
  margin-right: 8px;
  padding: 2px 8px 2px 6px;
  border-radius: 999px;
  background: var(--purple, #5F29FF);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  gap: 4px;
}
.show-card .show-ai-label svg { width: 14px; height: 14px; }

/* ---- intro: Bella full body on her spot, behind her own microphone ---- */
.show-intro-host { width: auto; height: 50%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.35)); }

/* ---- the stage with the four players fills the whole screen (Laura):
   no card on top of the studio, so the name tags have room ---- */
.show-main.is-stageview { justify-content: flex-end; }
.show-main.is-stageview .show-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
  container-type: size;
  animation: show-fade 0.35s ease;
}
.show-main.is-stageview .show-stage-box {
  height: auto;
  max-height: none;
  width: min(100cqw, 100cqh * 768 / 1376);
  border-radius: 0;
  box-shadow: none;
}
.show-main.is-stageview > :not(.show-stage) { position: relative; z-index: 2; }
.show-stand-tag { white-space: nowrap; }
.show-stage-answer { top: 31%; }
@keyframes show-fade { from { opacity: 0; } }

/* ---- slime cam (Laura): zoom in on whoever was wrong, full screen;
   Crasher swoops in with a bucket and tips it over their head ---- */
.show-stage-box { transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1); }
.show.is-slimecam .show-top, .show.is-slimecam .show-hostbar { visibility: hidden; }
.show.is-slimecam .show-stage-answer, .show.is-slimecam .show-main > :not(.show-stage) { opacity: 0; }
.show.is-slimecam .show-crasher { top: calc(16px + env(safe-area-inset-top, 0px)); }

.show-bucket {
  position: absolute;
  width: 25%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  animation: show-bucket-in 0.5s cubic-bezier(0.2, 1.3, 0.4, 1) backwards;
  transition: opacity 0.35s ease, transform 0.45s ease;
  pointer-events: none;
}
.sb-crasher { display: block; width: 68%; position: relative; z-index: 1; animation: show-crasher-bob 0.45s ease-in-out infinite alternate; }
.sb-crasher svg { display: block; width: 100%; height: auto; }
.sb-bucket {
  display: block;
  width: 74%;
  margin-top: -24%;
  position: relative;
  z-index: 2;
  transform-origin: 50% 55%;
  transition: transform 0.45s cubic-bezier(0.5, -0.4, 0.3, 1.3);
}
.sb-bucket .b-bucket { display: block; width: 100%; height: auto; }
.show-bucket.is-go .sb-bucket { transform: rotate(180deg) translateY(-6%); }
.show-bucket.is-gone { opacity: 0; transform: translate(-50%, -190%); }
@keyframes show-bucket-in {
  from { transform: translate(-50%, -280%) rotate(-14deg); opacity: 0; }
}
@keyframes show-crasher-bob {
  to { transform: translateY(-6%) rotate(5deg); }
}

.show-pour {
  position: absolute;
  width: 4.5%;
  height: 0;
  transform: translateX(-50%);
  z-index: 4;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, #A6EA6A, #5BBF33);
  pointer-events: none;
}
.show-pour.is-go { animation: show-pour 0.8s ease 0.2s forwards; }
.show-pour.is-gone { display: none; }
@keyframes show-pour {
  0% { height: 0; opacity: 1; }
  45% { height: 9%; opacity: 1; }
  100% { height: 9%; opacity: 0; }
}

/* the slime that lands: a gooey cap on the head, drips running down */
.show-slimecap { position: absolute; width: 13%; z-index: 4; transform: translate(-50%, -30%); opacity: 0; pointer-events: none; }
.show-slimecap svg { display: block; width: 100%; height: auto; overflow: visible; }
.show-slimecap.is-go { animation: show-cap 0.7s cubic-bezier(0.3, 1.4, 0.5, 1) 0.4s forwards; }
@keyframes show-cap {
  0% { opacity: 1; transform: translate(-50%, -170%) scale(0.5, 0.8); }
  55% { opacity: 1; transform: translate(-50%, -30%) scale(1.18, 0.82); }
  100% { opacity: 1; transform: translate(-50%, -30%) scale(1); }
}
.show-slimecap .g-drip { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 0; }
.show-slimecap.is-go .g-drip { animation: show-drip 1.6s ease-in 0.85s forwards; }
.show-slimecap.is-go .g-drip:nth-child(2) { animation-delay: 1.05s; animation-duration: 2s; }
.show-slimecap.is-go .g-drip:nth-child(3) { animation-delay: 0.95s; }
.show-slimecap.is-go .g-drip:nth-child(4) { animation-delay: 1.2s; animation-duration: 1.8s; }
@keyframes show-drip { to { transform: scaleY(1); } }

/* the kid was wrong: slime all over the screen, then it slides off */
.show-screengoo { position: absolute; inset: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.sg-sheet {
  position: absolute;
  box-shadow: inset 0 -26px 30px rgba(40, 120, 20, 0.35);
  left: -4%;
  right: -4%;
  top: 0;
  height: 56%;
  background: linear-gradient(180deg, #8EE352 0%, #72CF40 65%, #5BBF33 100%);
  animation: sg-in 2.3s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.sg-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 34px;
  margin-top: -1px;
  background: radial-gradient(circle at 50% 0, #5BBF33 0 17px, transparent 18px) 0 0 / 52px 34px repeat-x;
}
.sg-sheet i {
  position: absolute;
  top: 100%;
  border-radius: 0 0 999px 999px;
  background: #5BBF33;
  transform: translateX(-50%) scaleY(0);
  transform-origin: 50% 0;
  animation: sg-drip 1.3s ease-in forwards;
}
.sg-bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #D2FF8A 0 22%, #8EE352 23% 100%); box-shadow: inset 0 -3px 0 rgba(40, 120, 20, 0.35); }
.sg-shine { position: absolute; width: 54px; height: 14px; border-radius: 999px; background: rgba(232, 255, 196, 0.75); transform: rotate(-12deg); }
.show-screengoo b {
  position: absolute;
  border-radius: 50%;
  background: #6CCB3C;
  transform: scale(0);
  animation: sg-blob 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) 0.12s forwards, sg-out 0.5s ease 1.7s forwards;
}
@keyframes sg-in {
  0% { transform: translateY(-105%); }
  11% { transform: translateY(0) scaleY(1.05); }
  19% { transform: translateY(0) scaleY(0.97); }
  27% { transform: none; }
  70% { transform: none; opacity: 1; }
  100% { transform: translateY(75%); opacity: 0; }
}
@keyframes sg-drip { to { transform: translateX(-50%) scaleY(1); } }
@keyframes sg-blob { to { transform: scale(1); } }
@keyframes sg-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .show-stage-box { transition: none; }
  .show-bucket, .show-pour, .show-screengoo { display: none; }
  .show-slimecap.is-go { animation: none; opacity: 1; }
  .show-slimecap .g-drip { transform: none; }
  .show-main.is-stageview .show-stage { animation: none; }
}

/* ---- the bonus gets room: the stage picture moves up (Laura) ---- */
.show-main.is-stageview .show-stage-box {
  margin-top: calc(-1 * var(--lift, 0px));
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.2, 1), margin-top 0.4s ease;
}

/* ---- Bella talks in the intro: a talk bubble under her (Laura) ---- */
.show-intro-talk {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink, #0D065B);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.show-intro-talk::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12px;
  margin-left: -12px;
  border: 12px solid transparent;
  border-top: 0;
  border-bottom-color: #fff;
}
.show-intro-talk.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .show-main.is-stageview .show-stage-box { transition: none; }
  .show-intro-talk { transition: none; }
}

/* ---- computers: the wide studio around the tall intro picture, not dark edges ---- */
.show-intro { background: transparent; }
.show.is-intro .show-frame { visibility: hidden; }

/* opened straight from a link: one tap to start, so sound can play */
/* centred without a transform: the game's .btn sinks 3px on press by
   setting transform, which would make a translate-centred button jump
   sideways under the finger and miss the tap (Laura: "sometimes twice") */
.show-start {
  position: absolute;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  z-index: 3;
  min-width: 220px;
  font-size: 1.2rem;
}

/* ---- computers: the landscape pictures fill the whole screen (Laura) ---- */
.show-intro-media { container-type: size; }
.show-intro-box.is-wide {
  top: 50%;
  height: auto;
  width: max(100cqw, 100cqh * 1376 / 768);
  aspect-ratio: 1376 / 768;
  transform: translate(-50%, -50%);
}
.show-intro-box.is-wide .show-intro-hero { width: 8.5%; }
.show-main.is-stageview .show-stage.is-wide { position: fixed; inset: 0; align-items: center; }
.show-main.is-stageview .show-stage.is-wide .show-stage-box {
  flex: 0 0 auto;
  width: max(100cqw, 100cqh * 1376 / 768);
  aspect-ratio: 1376 / 768;
}
.show-stage-box.is-wide .show-intro-hero { width: 8.5%; }
.show-stage-box.is-wide .show-bucket { width: 9%; }
.show-stage-box.is-wide .show-slimecap { width: 5.5%; }
.show-stage-box.is-wide .show-pour { width: 1.8%; }
.show-stage-box.is-wide .show-stage-answer { top: 19%; }
/* phones: the tall pictures fit the width, so all four players are always
   in view (no cropped Noor or Jij); Bella's talk bubble sits below */
.show-intro-box:not(.is-wide) {
  top: 0;
  height: auto;
  width: min(100cqw, 100cqh * 768 / 1376);
  transform: translateX(-50%);
}
