/* ---------------------------------------------------------------------------
   Scenes for the five small arches, drawn from the product's own screens —
   the QR poster (sessions/[id]/qr), the join and tap-to-enable screens, the
   watch page, the admin's live session and the ProPresenter bridge window —
   set in the same candle-lit room as the hero. Each scene is laid out on a
   300×460 stage and scaled to its arch by scenes.js (--k), so the screens
   keep their real proportions at any width.
   --------------------------------------------------------------------------- */

.scene {
  position: relative; display: block; aspect-ratio: 3 / 4.6; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 4px 4px;
  background: radial-gradient(80% 50% at 50% 16%, rgba(201, 168, 76, 0.12), transparent 70%), #110f16;
}
.scene::after {
  content: ""; position: absolute; inset: 0; z-index: 10; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(233, 207, 134, 0.28);
}
.scene__stage { position: absolute; left: 0; top: 0; width: 300px; height: 460px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.scene__room { position: absolute; inset: -24px; background: var(--room, none) center / cover no-repeat; filter: blur(3px) brightness(0.8); }
.scene__room--dim { filter: blur(6px) brightness(0.42); }
.scene__phone { position: absolute; width: 280px; transform-origin: 0 0; }
.scene__phone .phone { --pw: 280px; }
.scene__phone .phone__screen > div { height: 100%; }

/* ------------------------------------------------- 05 · scan at the door */

/* The poster the admin prints from the QR page, on a lobby screen. */
.door-poster {
  position: absolute; left: 34px; top: 62px; width: 232px; aspect-ratio: 16 / 9; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 4px;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(99, 60, 180, 0.25), rgba(60, 20, 120, 0.08) 55%, transparent), #07070f;
  box-shadow: 0 0 0 5px #1b1920, 0 0 0 6px rgba(239, 232, 218, 0.12), 0 24px 40px rgba(0, 0, 0, 0.5);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; text-align: center;
}
.door-poster__brand { position: absolute; top: 8px; font-size: 5.5px; font-weight: 700; letter-spacing: 0.3em; color: #7c5cfc; }
.door-poster__qr { padding: 4px; border-radius: 5px; background: #fff; box-shadow: 0 0 20px 2px rgba(120, 80, 255, 0.3); line-height: 0; }
.door-poster__qr canvas { width: 44px; height: 44px; display: block; }
.door-poster__h { font-size: 11px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.door-poster__s { margin-top: -3px; font-size: 5.5px; color: #6b7280; }

.door-phone {
  left: 86px; top: 178px; --lift: 0px; opacity: 1;
  transform: translateY(var(--lift)) rotate(-3deg) scale(0.46);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.35s;
}
.scene--door[data-step="0"] .door-phone { --lift: 170px; opacity: 0; transition: none; }
.door-screens { position: absolute; inset: 0; }
.door-screens > div { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; }
.scene--door[data-step="0"] .door-cam, .scene--door[data-step="1"] .door-cam, .scene--door[data-step="2"] .door-cam,
.scene--door[data-step="3"] .door-join,
.scene--door[data-step="4"] .door-tap, .scene--door[data-step="5"] .door-tap,
.scene--door[data-step="6"] .door-watch { opacity: 1; }

/* The phone's camera, pointed at the poster. */
.door-cam { background: radial-gradient(70% 45% at 50% 42%, rgba(99, 60, 180, 0.4), transparent 72%), #0b0a12; }
.door-cam__qr { position: absolute; left: 50%; top: 42%; width: 156px; height: 156px; margin: -78px 0 0 -78px; padding: 12px; border-radius: 16px; background: #fff; transform: rotate(-5deg); box-shadow: 0 0 60px rgba(120, 80, 255, 0.35); }
.door-cam__qr canvas { width: 100%; height: 100%; display: block; }
.door-cam__brackets {
  --b: #ffd60a;
  position: absolute; left: 50%; top: 42%; width: 196px; height: 196px; margin: -98px 0 0 -98px; border-radius: 12px;
  background:
    linear-gradient(var(--b), var(--b)) 0 0 / 36px 4px no-repeat, linear-gradient(var(--b), var(--b)) 0 0 / 4px 36px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 0 / 36px 4px no-repeat, linear-gradient(var(--b), var(--b)) 100% 0 / 4px 36px no-repeat,
    linear-gradient(var(--b), var(--b)) 0 100% / 36px 4px no-repeat, linear-gradient(var(--b), var(--b)) 0 100% / 4px 36px no-repeat,
    linear-gradient(var(--b), var(--b)) 100% 100% / 36px 4px no-repeat, linear-gradient(var(--b), var(--b)) 100% 100% / 4px 36px no-repeat;
  opacity: 0; transform: scale(1.3); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.scene--door[data-step="2"] .door-cam__brackets { opacity: 1; transform: none; }
.door-cam__banner {
  position: absolute; left: 16px; right: 16px; top: 54px; display: flex; flex-direction: column; gap: 2px;
  padding: 11px 14px; border-radius: 14px; background: rgba(44, 44, 50, 0.94); color: #fff;
  font: 600 14px/1.2 system-ui, -apple-system, sans-serif;
  opacity: 0; transform: translateY(-12px); transition: opacity 0.3s, transform 0.4s;
}
.door-cam__banner small { font-size: 11.5px; font-weight: 400; color: rgba(255, 255, 255, 0.65); }
.scene--door[data-step="2"] .door-cam__banner { opacity: 1; transform: none; }
.door-cam__shutter { position: absolute; left: 50%; bottom: 34px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #0b0a12, 0 0 0 7px #fff; }

/* app/join/[slug] while it redirects. */
.door-join {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 20px;
  background: #09090f; text-align: center; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.door-spin { width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: #818cf8; animation: vs-spin 0.9s linear infinite; }
.door-join b { font-size: 15px; font-weight: 600; color: #fff; }
.door-join small { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }

/* The watch page's JoinScreen: one tap to allow audio. */
.door-tap {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 0 30px;
  background: #09090f; text-align: center; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.door-tap__head { display: grid; gap: 8px; }
.door-tap__brand { font: 600 42px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: -0.02em; color: #c9a84c; }
.door-tap__sub { font-size: 8.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #3a3a4a; }
.door-tap__lang { padding: 5px 18px; border-radius: 999px; background: rgba(201, 168, 76, 0.08); border: 1px solid rgba(201, 168, 76, 0.2); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c9a84c; }
.door-tap__cta { width: 100%; display: grid; gap: 12px; }
.door-tap__btn { position: relative; padding: 16px 0; border-radius: 12px; background: #c9a84c; color: #09090f; font-size: 15px; font-weight: 600; }
.door-tap__cta small { font-size: 11px; line-height: 1.4; color: #3a3a4a; }

/* ------------------------------------------------------- 06 · read along */

.read-phone { left: 68px; top: 116px; transform: rotate(-5deg) scale(0.6); }
.read-shoulder {
  /* the nearest listener, out of focus: over their shoulder */
  position: absolute; left: -110px; bottom: -170px; width: 300px; height: 340px; border-radius: 50%;
  background: radial-gradient(closest-side, #040306 58%, rgba(4, 3, 6, 0.8) 78%, transparent);
  filter: blur(5px);
}

/* ------------------------------------------------ 07 · their own type size */

.size-phone { left: 10px; top: 84px; }

/* -------------------------------------------------------- 08 · or listen */

.listen-said { position: absolute; left: 30px; right: 30px; top: 84px; margin: 0; display: grid; gap: 9px; text-align: center; }
.listen-said__cap { font: 500 8.5px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.18em; text-transform: uppercase; color: #c9a84c; }
.listen-said__text { min-height: 2.6em; font: italic 500 17.5px/1.28 "Cormorant Garamond", Georgia, serif; color: #efe8da; text-wrap: balance; }
.listen-said__text span { opacity: 0.12; animation: vs-word 0.35s ease var(--d, 0ms) both; }
.listen-arc { position: absolute; left: 0; top: 0; width: 300px; height: 460px; overflow: visible; }
.listen-arc path { fill: none; stroke: #c9a84c; stroke-opacity: 0.5; stroke-width: 1.2; stroke-dasharray: 3 6; }
.listen-arc circle { fill: #f6e3ad; }
.listen-bud { position: absolute; left: 198px; top: 142px; width: 50px; height: 75px; transform: rotate(18deg); filter: drop-shadow(0 0 18px rgba(233, 207, 134, 0.35)); }
.listen-phone { left: 26px; top: 216px; transform: rotate(4deg) scale(0.5); }

/* ---------------------------------------------------------- 09 · the booth */

.booth-glow { position: absolute; inset: 0; background: radial-gradient(64% 30% at 50% 36%, rgba(170, 186, 255, 0.14), transparent 72%); }
.booth-laptop { position: absolute; left: 16px; top: 112px; width: 268px; }
.booth-screen {
  position: relative; height: 170px; overflow: hidden; border-radius: 9px 9px 3px 3px;
  background: #1b1a20; box-shadow: inset 0 0 0 1px rgba(239, 232, 218, 0.12), 0 0 44px rgba(170, 186, 255, 0.14);
}
.booth-base { height: 9px; margin: 0 -14px; border-radius: 0 0 10px 10px; background: linear-gradient(#2c2a32, #151419); box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5); }

/* The admin's live session, in the admin's own tokens (--vs-*). */
.booth-admin {
  position: absolute; left: 6px; top: 6px; width: 512px; height: 316px; transform: scale(0.5); transform-origin: 0 0;
  display: flex; overflow: hidden; border-radius: 6px;
  background: #09090f; color: #f5f0e8; font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}
.ba-side { width: 112px; flex: none; display: flex; flex-direction: column; gap: 18px; padding: 18px 10px; background: #0d0d17; border-right: 1px solid #1e1e2a; }
.ba-brand { padding-left: 6px; font: 600 20px/1 "Cormorant Garamond", Georgia, serif; color: #c9a84c; }
.ba-side nav { display: flex; flex-direction: column; gap: 2px; }
.ba-side nav span { padding: 6px 8px; border-radius: 6px; font-size: 10px; font-weight: 500; color: #6b6b7a; }
.ba-side nav .on { color: #c9a84c; background: rgba(201, 168, 76, 0.12); }
.ba-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 13px 15px; }
.ba-top { display: flex; align-items: center; justify-content: space-between; font-size: 9px; }
.ba-back { color: #6b6b7a; }
.ba-stop { padding: 5px 10px; border-radius: 4px; background: #dc2626; color: #fff; font-weight: 600; }
.ba-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.ba-status { display: flex; align-items: center; gap: 9px; font-size: 8.5px; font-weight: 700; }
.ba-status .ok { color: #4ade80; }
.ba-status .rec { color: #f87171; }
.ba-status .pill { padding: 2px 6px; border-radius: 3px; background: rgba(201, 168, 76, 0.12); color: #c9a84c; }
.ba-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-stats div { display: grid; justify-items: center; gap: 1px; padding: 8px; border-radius: 8px; background: #111118; border: 1px solid #1e1e2a; }
.ba-stats b { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ba-stats span { font-size: 8.5px; color: #6b6b7a; }
.ba-meter { display: flex; align-items: center; gap: 8px; font: 8px "JetBrains Mono", ui-monospace, monospace; color: #6b6b7a; }
.ba-meter i { flex: 1; height: 8px; overflow: hidden; border-radius: 99px; background: #1e1e2a; }
.ba-meter b { display: block; width: 32%; height: 100%; border-radius: 99px; background: #22c55e; transition: width 0.1s linear; }
.ba-meter b.is-hot { background: #eab308; }
.ba-feed { flex: 1; min-height: 0; overflow: hidden; padding: 9px 10px; border-radius: 8px; background: #111118; border: 1px solid #1e1e2a; }
.ba-feed__h { margin: 0 0 6px; font-size: 10px; font-weight: 600; }
.ba-feed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ba-feed li { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; line-height: 1.35; color: #cbc4b7; }
.ba-feed li.is-new { animation: vs-rise 0.5s cubic-bezier(0.2, 0.7, 0.1, 1) both; }

/* The ProPresenter bridge, a small native window on the presentation Mac. */
.booth-bridge {
  position: absolute; left: 128px; top: 246px; width: 160px; overflow: hidden; border-radius: 7px;
  background: #ececec; color: #222; font: 8.5px/1.35 system-ui, -apple-system, sans-serif;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.45);
}
.booth-bridge__bar { display: flex; align-items: center; gap: 4px; padding: 5px 7px; background: linear-gradient(#e7e7e7, #d5d5d5); border-bottom: 1px solid #c3c3c3; }
.booth-bridge__bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff5f57; }
.booth-bridge__bar i:nth-child(2) { background: #febc2e; }
.booth-bridge__bar i:nth-child(3) { background: #28c840; }
.booth-bridge__bar span { margin: 0 auto; padding-right: 26px; font-size: 8px; font-weight: 600; color: #4a4a4a; }
.booth-bridge__body { position: relative; margin: 9px 8px 8px; padding: 9px 8px 7px; border: 1px solid #c8c8c8; border-radius: 3px; }
.booth-bridge__legend { position: absolute; top: -6px; left: 7px; margin: 0; padding: 0 3px; background: #ececec; font-size: 7.5px; color: #555; }
.booth-bridge dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 6px; }
.booth-bridge dt { color: #555; }
.booth-bridge dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booth-bridge dd em { font-style: normal; color: #1f9d3a; }

.booth-faders { position: absolute; left: 34px; right: 34px; bottom: 30px; height: 72px; display: flex; justify-content: space-between; }
.booth-faders span { position: relative; width: 2px; background: rgba(239, 232, 218, 0.16); }
.booth-faders span::after {
  content: ""; position: absolute; left: -7px; top: var(--y, 44%); width: 16px; height: 9px; border-radius: 2px;
  background: linear-gradient(#3b3843, #1e1c24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.booth-faders span:nth-child(2) { --y: 30%; }
.booth-faders span:nth-child(4)::after { top: 22%; background: linear-gradient(#5b4c24, #2d2715); animation: booth-fade 7s ease-in-out infinite alternate; }
.booth-faders span:nth-child(5) { --y: 58%; }
.booth-faders span:nth-child(7) { --y: 36%; }
@keyframes booth-fade { to { top: 12%; } }
