/* Frens Theater — velvet, gold, popcorn and foxes. The auditorium is drawn at a fixed 1600 × 1080 and scaled to fit
   (theater.js), so the curtains, the screen and the seats always line up; everything around it is ordinary layout. */
@font-face { font-family: "Rubik Mono One"; src: url(/DARTChannel/assets/fonts/RubikMonoOne.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url(/DARTChannel/assets/fonts/PressStart2P.woff2) format("woff2"); font-display: swap; }

:root {
  --velvet: #b3172f; --velvet-d: #5a0712; --velvet-dd: #2a040b;
  --gold: #f2b33d; --gold-l: #ffe9a8; --gold-d: #9a5f12;
  --fox: #ff7a1a; --ink: #1a0509; --cream: #fff4e6; --teal: #3ee0d0;
  --panel: rgba(30, 6, 12, .86); --line: rgba(242, 179, 61, .28);
  --display: "Rubik Mono One", "Arial Black", sans-serif;
  --body: "Segoe UI", "Trebuchet MS", Tahoma, Verdana, sans-serif;
  --lights: 1; --spill: 200 220 255; --spillA: 0;
}
html:has(body.th) { background: #1a0509; }
body.th { background: var(--ink); color: var(--cream); font-family: var(--body); overflow: hidden; touch-action: manipulation; } /* (no double-tap page zoom: taps on the screen are the theater's own zoom) */
body.th button { font-family: inherit; }
[hidden] { display: none !important; }
.link { background: none; border: 0; padding: 0; color: var(--gold-l); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ================= the lobby ================= */
.lobby {
  position: fixed; inset: 0; overflow: auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 28px; padding: 24px 16px;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, #4a0d22 0%, #220611 45%, #0b0207 100%);
}
.lobby-night { position: fixed; inset: 0; pointer-events: none; }
.lobby > .marquee { margin-top: auto; } .lobby > .booth { margin-bottom: auto; } /* (centred when it fits; scrolls from the top when it doesn't) */
.lobby-night .stars {
  position: absolute; inset: 0; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 32% 8%, #ffe9a8, transparent), radial-gradient(1.5px 1.5px at 68% 14%, #fff, transparent),
    radial-gradient(1px 1px at 84% 30%, #fff, transparent), radial-gradient(1px 1px at 52% 26%, #cfe8ff, transparent), radial-gradient(1.5px 1.5px at 92% 6%, #fff, transparent), radial-gradient(1px 1px at 6% 40%, #ffe9a8, transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.lobby-night .beam {
  position: absolute; bottom: -10%; width: 26vw; height: 140vh; transform-origin: 50% 100%; opacity: .16; filter: blur(6px);
  background: linear-gradient(0deg, rgba(255,233,168,.9), rgba(255,233,168,0) 85%);
  clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0);
}
.lobby-night .beam.l { left: 4vw; animation: sweepL 9s ease-in-out infinite alternate; }
.lobby-night .beam.r { right: 4vw; animation: sweepR 11s ease-in-out infinite alternate; }
@keyframes sweepL { from { transform: rotate(-22deg); } to { transform: rotate(14deg); } }
@keyframes sweepR { from { transform: rotate(20deg); } to { transform: rotate(-12deg); } }
@keyframes twinkle { to { opacity: .35; } }

.marquee { position: relative; z-index: 1; width: min(920px, 100%); }
.marquee-sign {
  position: relative; border-radius: 18px; padding: 26px 22px 22px;
  background: linear-gradient(180deg, #8c1426, #5a0712 60%, #3a0410);
  border: 4px solid var(--gold); box-shadow: 0 0 0 4px #3a0410, 0 0 60px rgba(255,170,60,.35), inset 0 0 30px rgba(0,0,0,.5);
}
.bulbs { position: absolute; left: 14px; right: 14px; height: 12px; border-radius: 6px;
  background-image: radial-gradient(circle, #fff6c8 0 3px, #ffb84a 4px, rgba(255,184,74,0) 6px); background-size: 22px 12px;
  animation: chase .6s steps(2) infinite; filter: drop-shadow(0 0 6px #ffc35a); }
.bulbs.top { top: 6px; } .bulbs.bottom { bottom: 6px; animation-direction: reverse; }
@keyframes chase { to { background-position: 22px 0; } }
.marquee-title { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 20px); font-family: var(--display); line-height: 1; }
.marquee-title img { width: clamp(40px, 8vw, 78px); filter: drop-shadow(0 0 10px rgba(255,140,40,.8)); animation: bob 2.4s ease-in-out infinite; }
.marquee-title img.flip { transform: scaleX(-1); animation-delay: -1.2s; }
.marquee-title span, .marquee-title b { font-size: clamp(30px, 7.5vw, 72px); font-weight: 400; letter-spacing: 2px; }
.marquee-title span { color: #fff; text-shadow: 0 0 8px #ff8ab0, 0 0 24px #ff2a6a, 0 4px 0 #6a0820; animation: neon 4s infinite; }
.marquee-title b { color: var(--gold-l); text-shadow: 0 0 8px #ffd27a, 0 0 26px #ff9a1a, 0 4px 0 #6a3a08; }
@keyframes neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }
@keyframes bob { 50% { translate: 0 -6px; } }
.marquee-board {
  margin: 16px auto 0; max-width: 640px; padding: 10px 14px; border-radius: 6px; text-align: center;
  background: linear-gradient(180deg, #fffdf4, #f0e6cc); color: #1a0509; box-shadow: inset 0 0 0 3px #1a0509, 0 0 18px rgba(255,240,200,.5);
  display: grid; gap: 4px; font-family: var(--display);
}
.marquee-board span { font-size: 11px; letter-spacing: 3px; color: #8c1426; }
.marquee-board b { font-size: clamp(15px, 3vw, 24px); font-weight: 400; letter-spacing: 1px; }

.booth { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; width: min(560px, 100%); }
.lobby-home { color: var(--gold-l); font-size: 13px; opacity: .8; text-decoration: none; }
.lobby-home:hover { opacity: 1; text-decoration: underline; }
.ticket {
  position: relative; display: grid; grid-template-columns: 74px 1fr; width: 100%; border-radius: 14px; color: var(--ink);
  background: linear-gradient(180deg, #fff8e8, #f6e2b8);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 2px rgba(154,95,18,.4);
  -webkit-mask: radial-gradient(circle 12px at 74px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 12px at 74px 100%, transparent 98%, #000) bottom/100% 51% no-repeat;
          mask: radial-gradient(circle 12px at 74px 0, transparent 98%, #000) top/100% 51% no-repeat, radial-gradient(circle 12px at 74px 100%, transparent 98%, #000) bottom/100% 51% no-repeat;
  animation: ticketIn .6s cubic-bezier(.2,1.4,.4,1);
}
@keyframes ticketIn { from { transform: translateY(40px) rotate(-3deg); opacity: 0; } }
.ticket-stub {
  display: grid; place-content: center; gap: 4px; text-align: center; border-right: 3px dashed rgba(154,95,18,.5);
  background: linear-gradient(180deg, var(--velvet), var(--velvet-d)); color: var(--gold-l); font-family: var(--display); border-radius: 14px 0 0 14px;
  writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 3px; font-size: 13px;
}
.ticket-stub b { font-size: 26px; font-weight: 400; color: #fff; }
.ticket-main { padding: 22px 22px 18px; min-height: 260px; min-width: 0; display: grid; }
.tk-pane { display: none; align-content: center; gap: 10px; text-align: left; }
.tk-pane.on { display: grid; animation: fadeUp .35s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.tk-pane h2 { margin: 0; font: 400 22px var(--display); color: var(--velvet-d); }
.tk-small { margin: 0; font-size: 14px; color: #5a3a2a; line-height: 1.4; }
.tk-field { display: grid; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #8c1426; }
.tk-field input { font: 700 17px var(--body); padding: 11px 13px; border-radius: 10px; border: 2px solid #d9b77a; background: #fffdf6; color: var(--ink); outline: none; }
.tk-field input:focus { border-color: var(--fox); box-shadow: 0 0 0 3px rgba(255,122,26,.25); }
.tk-msg { margin: 0; min-height: 20px; font-size: 14px; font-weight: 700; color: #5a3a2a; }
.tk-msg.bad { color: #c62828; } .tk-msg.good { color: #2a7a2a; }
.tk-links { margin: 2px 0 0; font-size: 13px; color: #8a6a4a; text-align: center; }

/* ---------- the five theaters, in the lobby ---------- */
.rooms-say { margin: 4px 0 -2px; }
.rooms { display: grid; gap: 8px; }
.room-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; cursor: pointer;
  border-radius: 12px; border: 2px solid #cfc6ba; background: linear-gradient(180deg, #f4f1ec, #dedad3); color: #3a3530; font: inherit;
  box-shadow: 0 2px 0 #b9b2a7, 0 4px 10px rgba(0,0,0,.08); transition: transform .15s cubic-bezier(.2,1.6,.4,1), box-shadow .15s; }
.room-card:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #b9b2a7, 0 8px 16px rgba(0,0,0,.14); }
.room-card:active { transform: translateY(1px); }
.rc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: #c9c3ba; font-size: 24px; filter: grayscale(.35); }
.rc-main { min-width: 0; }
.rc-main b { display: block; font: 400 15px var(--display); letter-spacing: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-main small { display: block; font-size: 12px; color: #6e665d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-count { display: grid; justify-items: center; line-height: 1; min-width: 40px; }
.rc-count b { font: 400 22px var(--display); }
.rc-count small { font-size: 10px; font-weight: 800; text-transform: uppercase; color: #7a7268; }
.rc-tag { padding: 6px 10px; border-radius: 999px; background: #5a544d; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.room-card.locked .rc-tag { background: #8a6a2a; }
/* the Premium Fren Stage: gold, starred, and shining */
.room-card.premium { position: relative; overflow: hidden; border-color: var(--gold); color: #3a0a14;
  background: linear-gradient(180deg, #fff3c4, #f6cf6a 55%, #e9a93a); box-shadow: 0 2px 0 #a8701a, 0 0 0 3px rgba(242,179,61,.25), 0 6px 18px rgba(201,138,42,.45); }
.room-card.premium::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%) -150% 0 / 60% 100% no-repeat; animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 60%, 100% { background-position: 250% 0; } }
.room-card.premium .rc-icon { background: radial-gradient(circle at 35% 30%, #fff8d8, var(--gold) 60%, var(--gold-d)); filter: none; animation: bob 2.4s ease-in-out infinite; box-shadow: 0 0 12px rgba(255,200,80,.8); }
.room-card.premium .rc-main b { color: #8c1426; white-space: normal; }
.room-card.premium .rc-main b i { font: normal 800 9px var(--body); letter-spacing: 1px; padding: 2px 6px; border-radius: 999px; background: #8c1426; color: #ffe9a8; vertical-align: 2px; }
.room-card.premium .rc-main small, .room-card.premium .rc-count small { color: #7a4a10; }
.room-card.premium .rc-tag { background: linear-gradient(180deg, #e8263f, #8c1426); }
.room-card.premium.needs-pass .rc-tag { background: #3a0a14; color: #ffe9a8; }

/* the snoot check (the Premium Fren Stage's door) */
.snoot { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(8,1,3,.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fsDim .25s ease-out; }
.snoot-box { display: grid; gap: 10px; justify-items: center; width: min(400px, 100%); padding: 22px 22px 16px; border-radius: 18px; text-align: center; color: #3a0a14;
  background: linear-gradient(180deg, #fffaf0, #f6e7c8); border: 3px solid var(--gold); box-shadow: 0 0 0 6px rgba(242,179,61,.2), 0 20px 50px rgba(0,0,0,.6); }
.snoot-box h2 { margin: 0; font: 400 20px var(--display); color: #8c1426; letter-spacing: 1px; }
.snoot-star { font-size: 44px; animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,200,80,.9)); }
.snoot-box input { width: 100%; font: 700 17px var(--body); padding: 11px 13px; border-radius: 10px; border: 2px solid #d9b77a; background: #fff; color: var(--ink); outline: none; text-align: center; letter-spacing: 2px; }
.snoot-box input:focus { border-color: var(--fox); box-shadow: 0 0 0 3px rgba(255,122,26,.25); }
.snoot-btns { display: flex; align-items: center; justify-content: center; gap: 18px; }
.snoot-btns .link { color: #8c1426; }
.snoot-foot { margin: 0; font-size: 11px; color: #8a6a4a; }

/* in the theater: which one this is (the Premium stage's bar gets its gold) */
body.premium-room .topbar { background: linear-gradient(180deg, #7a4a0a, #4a1a04); border-bottom-color: var(--gold); }
body.premium-room .tb-room { background: linear-gradient(180deg, #ffe9a8, #f2b33d); color: #3a0a14; border-color: var(--gold); box-shadow: 0 0 14px rgba(255,200,80,.45); }
.tk-links .link { color: #8c1426; }
.tk-say { margin: 0; text-align: center; font-weight: 700; color: #5a3a2a; }
.tk-lock { font-size: 44px; text-align: center; animation: bob 2s ease-in-out infinite; }
.tk-spin { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; border: 5px solid rgba(179,23,47,.2); border-top-color: var(--velvet); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tk-me { display: flex; align-items: center; gap: 12px; }
.tk-me small { display: block; font-size: 12px; color: #8a6a4a; }
.tk-me b { font: 400 22px var(--display); color: var(--velvet-d); }
.tk-av { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: #2a0810; box-shadow: 0 0 0 3px var(--gold); image-rendering: pixelated; }
.tk-av img { width: 100%; height: 100%; object-fit: cover; }
.tk-av .critter-badge { width: 80%; height: 80%; fill: var(--gold-l); }
.gel.big { min-height: 54px; font-size: 18px; }
.ticket .gel { justify-self: stretch; }

.critter-pick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 18px 6px; margin-bottom: 18px; }
.critter-pick button {
  aspect-ratio: 1; border-radius: 10px; border: 2px solid #e2c48c; background: #fff4dc; cursor: pointer; padding: 4px; position: relative;
  transition: transform .15s cubic-bezier(.2,1.6,.4,1), background .15s;
}
.critter-pick button .critter-badge { width: 100%; height: 100%; fill: #3a0a14; }
.critter-pick button:hover { transform: translateY(-3px) rotate(-3deg); z-index: 2; }
.critter-pick button.on { z-index: 1; } /* (its name tag sits over the critter below, not under it) */
.critter-pick button.on { background: var(--velvet); border-color: var(--gold); transform: scale(1.08); }
.critter-pick button.on .critter-badge { fill: var(--gold-l); }
.critter-pick button::after { content: attr(data-name); position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; background: #fff4dc; box-shadow: 0 1px 3px rgba(60,10,20,.25); font-size: 10px; line-height: 1.3; font-weight: 800; color: #8c1426; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
.critter-pick button:hover::after, .critter-pick button.on::after { opacity: 1; }

/* ================= the hall ================= */
/* (one column, exactly the window's width: nothing inside, like a long unbroken file name, can widen it) */
.hall { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); background: radial-gradient(ellipse at 50% 30%, #2a0812, #0c0206 70%); }
.topbar {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 8px 14px; min-height: 56px; z-index: 5;
  background: linear-gradient(180deg, #5a0712, #34040c); border-bottom: 2px solid var(--gold-d); box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.tb-logo { display: flex; align-items: center; gap: 8px; font: 400 18px var(--display); color: #fff; white-space: nowrap; }
.tb-logo img { width: 34px; animation: bob 3s ease-in-out infinite; }
.tb-logo b { font-weight: 400; color: var(--gold-l); }
.tb-now {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 8px; overflow: hidden;
  background: #0d0205; box-shadow: inset 0 0 0 2px #2a0810, 0 0 12px rgba(255,180,80,.15);
}
.tb-now i { font: normal 400 10px var(--display); color: var(--gold); letter-spacing: 2px; white-space: nowrap; }
.tb-now b { font-size: 15px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-chips { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
/* the theater's name: a pill in the very middle of the bar, its text centred and cut short ("…") before it can spill */
.tb-room { justify-self: center; min-width: 0; max-width: min(380px, 34vw); padding: 7px 16px; border-radius: 999px; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 13px var(--display); letter-spacing: 1px;
  color: var(--gold-l); background: rgba(0,0,0,.35); border: 1px solid var(--gold-d); }
.tb-room:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  background: rgba(0,0,0,.35); color: var(--cream); border: 1px solid var(--line); }
.chip.lock { color: #ffd27a; border-color: #ffd27a; animation: pulse2 2s ease-in-out infinite; }
@keyframes pulse2 { 50% { box-shadow: 0 0 12px rgba(255,210,122,.6); } }
.chip.host::before { content: "👑"; }
.chip.vol input { width: 80px; accent-color: var(--gold); }
.chip.me { cursor: pointer; padding: 3px 10px 3px 3px; }
.chip.me .tk-av { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold); }
.me-menu { position: relative; }
.me-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; padding: 6px; border-radius: 12px; background: #2a0810; border: 1px solid var(--gold-d); box-shadow: 0 12px 30px rgba(0,0,0,.6); display: grid; z-index: 20; }
.me-pop button { text-align: left; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: var(--cream); font-size: 14px; cursor: pointer; }
.me-pop button:hover { background: rgba(242,179,61,.15); }

.hall-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; min-width: 0; }
.stage-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px 10px 10px 14px; gap: 8px; }
/* (overflow clip, not just hidden: a hidden box can still be scrolled sideways, by focus or by the browser, which
   leaves the stage stuck showing its left side; a clipped one can't be scrolled at all) */
.stage-wrap { position: relative; flex: 1; min-height: 200px; overflow: hidden; overflow: clip; border-radius: 14px; background: #0a0205; box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(242,179,61,.15); }

/* ---------- the auditorium: 1600 × 1080, scaled ---------- */
.aud { position: absolute; left: 0; top: 0; width: 1600px; height: 1080px; transform-origin: 0 0; overflow: hidden; overflow: clip; background: #14040a; }
.aud-walls, .aud-walls > * { position: absolute; }
.aud-walls { inset: 0; }
.ceiling { left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(180deg, #08020a, #1c0610); }
.ceiling .stars, .lobby-night .stars { position: absolute; inset: 0; }
.ceiling .stars {
  background-image: radial-gradient(2px 2px at 8% 30%, #ffe9a8, transparent), radial-gradient(2px 2px at 22% 60%, #fff, transparent), radial-gradient(2px 2px at 38% 20%, #ffe9a8, transparent),
    radial-gradient(2px 2px at 62% 40%, #fff, transparent), radial-gradient(2px 2px at 78% 18%, #ffe9a8, transparent), radial-gradient(2px 2px at 92% 56%, #fff, transparent), radial-gradient(2px 2px at 50% 70%, #ffe9a8, transparent);
  animation: twinkle 3.5s ease-in-out infinite alternate;
}
.wall { top: 0; bottom: 0; width: 240px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.5)) 0 0 / 80px 100%,
    linear-gradient(180deg, #4a0a18, #2a0510 60%, #160309); }
.wall.l { left: 0; } .wall.r { right: 0; }
.wall::after { content: ""; position: absolute; left: 0; right: 0; top: 470px; height: 14px; background: linear-gradient(180deg, var(--gold-l), var(--gold) 40%, var(--gold-d)); opacity: .7; }
.sconce { position: absolute; left: 50%; top: 250px; width: 46px; height: 70px; margin-left: -23px; border-radius: 50% 50% 8px 8px / 70% 70% 8px 8px;
  background: linear-gradient(180deg, #ffe9a8, #f2b33d 60%, #9a5f12); box-shadow: 0 0 0 3px #6a3a08; }
.sconce::before { content: ""; position: absolute; left: 50%; top: 40%; width: 360px; height: 420px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,200,110,.55), rgba(255,170,60,.15) 50%, rgba(255,170,60,0)); opacity: var(--lights); transition: opacity 1.2s; }
.sconce.low { top: 620px; }
.house-dark { position: absolute; inset: 0; background: #000; opacity: calc((1 - var(--lights)) * .78); transition: opacity 1.4s ease; pointer-events: none; }

/* the proscenium: gold frame, valance, curtains, the screen in the middle and the stage floor under it */
.pros { position: absolute; left: 200px; top: 6px; width: 1200px; height: 776px; }
.pros-frame { position: absolute; inset: 0 0 50px; border-radius: 46px 46px 0 0;
  background: linear-gradient(180deg, #ffe9a8, #f2b33d 12%, #c98a2a 50%, #8a5410);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.25), 0 0 40px rgba(0,0,0,.6); filter: brightness(calc(.4 + .6 * var(--lights))); transition: filter 1.4s; }
.pros-frame::after { content: ""; position: absolute; inset: 24px 24px 0; border-radius: 30px 30px 0 0; background: #050103; box-shadow: inset 0 0 40px #000; }
.screen { position: absolute; left: 56px; top: 95px; width: 1088px; height: 612px; overflow: hidden; overflow: clip; background: #000; border-radius: 4px; box-shadow: 0 0 0 4px #0a0a0a, 0 0 60px rgba(var(--spill) / calc(var(--spillA) * .9)); }
.screen > * { position: absolute; inset: 0; }
.screen-idle { display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 45%, #f4f6ff, #c8cfe0 60%, #8f97ad); }
.screen-idle::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: repeating-radial-gradient(circle at 30% 40%, #000 0 1px, transparent 1px 3px); animation: grain .3s steps(3) infinite; }
@keyframes grain { 33% { transform: translate(-2%, 1%); } 66% { transform: translate(1%, -2%); } }
.idle-card { display: grid; justify-items: center; gap: 10px; color: #3a0a14; text-align: center; animation: flicker 6s infinite; }
.idle-card img { width: 150px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); animation: bob 3s ease-in-out infinite; }
.idle-card b { font: 400 56px var(--display); letter-spacing: 3px; color: #8c1426; text-shadow: 0 3px 0 rgba(255,255,255,.6); }
.idle-card span { font: 400 20px var(--display); letter-spacing: 4px; color: #5a3a2a; }
@keyframes flicker { 0%, 97%, 100% { opacity: 1; } 98% { opacity: .85; } 99% { opacity: .95; } }
.yt-host { pointer-events: none; opacity: 0; transition: opacity .6s; }
.yt-host iframe { width: 100%; height: 100%; border: 0; }
#vid { width: 100%; height: 100%; object-fit: contain; background: #000; opacity: 0; transition: opacity .6s; pointer-events: none; }
.vid-frame { width: 100%; height: 100%; border: 0; background: #000; opacity: 0; transition: opacity .6s; pointer-events: none; }
.screen.mode-youtube .yt-host, .screen.mode-file #vid, .screen.mode-file .vid-frame.on { opacity: 1; }
.screen.mode-youtube .screen-idle, .screen.mode-file .screen-idle, .screen.mode-images .screen-idle { opacity: 0; transition: opacity .6s; }
.slides { opacity: 0; transition: opacity .6s; background: #000; }
.screen.mode-images .slides { opacity: 1; }
.screen-flash { pointer-events: none; opacity: 0; background: radial-gradient(circle, #fff, rgba(255,250,230,.6)); mix-blend-mode: screen; }
.screen-flash.go { animation: projOn .9s ease-out; }
@keyframes projOn { 0% { opacity: 0; } 10% { opacity: 1; } 20% { opacity: .3; } 30% { opacity: .8; } 100% { opacity: 0; } }
.screen-wait { display: grid; place-content: center; gap: 14px; background: rgba(0,0,0,.6); text-align: center; }
.screen-wait.soft .tk-spin { display: none; }
.screen-wait b { max-width: 820px; margin: 0 auto; font: 400 22px/1.6 var(--display); color: var(--gold-l); letter-spacing: 2px; }
.screen-tap { inset: auto !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); padding: 22px 40px; border-radius: 999px; border: 4px solid var(--gold);
  background: var(--velvet); color: #fff; font: 400 30px var(--display); cursor: pointer; pointer-events: auto; box-shadow: 0 0 40px rgba(255,180,80,.6); animation: pulse3 1.4s ease-in-out infinite; }
@keyframes pulse3 { 50% { transform: translate(-50%, -50%) scale(1.06); } }

/* the slideshow */
.slide { position: absolute; inset: 0; overflow: hidden; }
.slide .blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.55) saturate(1.3); }
.slide .pic { position: absolute; inset: 0; background-size: contain; background-repeat: no-repeat; background-position: center; }
.slide .pic.burns { animation: burns var(--every, 6s) ease-in-out forwards; }
@keyframes burns { from { transform: scale(1); } to { transform: scale(1.07) translate(var(--bx, 1%), var(--by, -1%)); } }
.slide.fx-fade { animation: fxFade 1.1s ease both; }
.slide.fx-slide { animation: fxSlide .9s cubic-bezier(.2,.9,.2,1) both; }
.slide.fx-zoom { animation: fxZoom 1.1s cubic-bezier(.2,.9,.2,1) both; }
.slide.fx-iris { animation: fxIris 1.2s ease-in-out both; }
.slide.fx-paw { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='66' rx='24' ry='20'/%3E%3Cellipse cx='24' cy='40' rx='10' ry='13'/%3E%3Cellipse cx='42' cy='26' rx='10' ry='13'/%3E%3Cellipse cx='60' cy='26' rx='10' ry='13'/%3E%3Cellipse cx='77' cy='40' rx='10' ry='13'/%3E%3C/svg%3E") center / 0% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='66' rx='24' ry='20'/%3E%3Cellipse cx='24' cy='40' rx='10' ry='13'/%3E%3Cellipse cx='42' cy='26' rx='10' ry='13'/%3E%3Cellipse cx='60' cy='26' rx='10' ry='13'/%3E%3Cellipse cx='77' cy='40' rx='10' ry='13'/%3E%3C/svg%3E") center / 0% no-repeat;
  animation: fxPaw 1.4s cubic-bezier(.6,0,.4,1) both; }
.slide.fx-flip { animation: fxFlip 1s cubic-bezier(.3,1.2,.5,1) both; transform-origin: 50% 50%; }
.slide.out { animation: fxOut 1.1s ease both; }
.slide.out.fx-slide { animation: fxSlideOut .9s cubic-bezier(.2,.9,.2,1) both; }
@keyframes fxFade { from { opacity: 0; } }
@keyframes fxSlide { from { transform: translateX(100%); } }
@keyframes fxSlideOut { to { transform: translateX(-35%); opacity: .2; } }
@keyframes fxZoom { from { transform: scale(1.8); opacity: 0; filter: blur(14px); } }
@keyframes fxIris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes fxPaw { from { -webkit-mask-size: 0%; mask-size: 0%; transform: rotate(-12deg); } 99% { -webkit-mask-size: 600%; mask-size: 600%; transform: rotate(0); } to { -webkit-mask: none; mask: none; } }
@keyframes fxFlip { from { transform: perspective(1600px) rotateY(-90deg); opacity: .4; } }
@keyframes fxOut { to { opacity: 0; } }
.slide canvas.pixel { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }

.spot { position: absolute; left: 50%; top: 80px; width: 900px; height: 640px; margin-left: -450px; border-radius: 50%; pointer-events: none; z-index: 3;
  background: radial-gradient(closest-side, rgba(255,240,200,.32), rgba(255,220,150,.08) 60%, rgba(255,220,150,0)); mix-blend-mode: screen;
  opacity: 0; transition: opacity 1.4s; }
.pros.closed .spot { opacity: calc(1 - var(--lights)); }

/* the curtains: velvet folds that gather up toward the sides when they open */
.curtain { position: absolute; top: 46px; width: 612px; height: 664px; z-index: 2; transition: filter 1.4s;
  filter: brightness(calc(.42 + .58 * var(--lights)));
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.45)),
    repeating-linear-gradient(90deg, #4a0510 0, #8c0f22 14px, #d42a40 26px, #b3172f 34px, #6a0a18 46px, #4a0510 54px); }
.curtain.l { left: 6px; transform-origin: 0 0; border-radius: 0 0 20px 0; }
.curtain.r { right: 6px; transform-origin: 100% 0; border-radius: 0 0 0 20px; }
.curtain .hem { position: absolute; left: 0; right: 0; bottom: -2px; height: 22px;
  background: repeating-linear-gradient(90deg, var(--gold-l) 0 3px, var(--gold) 3px 6px, var(--gold-d) 6px 8px); -webkit-mask: linear-gradient(180deg, #000 30%, rgba(0,0,0,.6)); }
.pros.closed .curtain.l { animation: swayL 5s ease-in-out infinite; }
.pros.closed .curtain.r { animation: swayR 5.6s ease-in-out infinite; }
@keyframes swayL { 50% { transform: skewX(.6deg); } }
@keyframes swayR { 50% { transform: skewX(-.6deg); } }
.pros.open .curtain.l { transform: scaleX(.13) skewX(-2deg); }
.pros.open .curtain.r { transform: scaleX(.13) skewX(2deg); }
.pros.moving .curtain { animation: none !important; }
/* the valance, inside the gold arch: a velvet pelmet with gold piping, gold-edged swags hanging from it, and a gold rail
   along the bottom that the screen's top edge meets (the screen's bottom edge meets the stage's lip, so it never floats) */
.valance { position: absolute; left: 20px; right: 20px; top: 20px; height: 76px; z-index: 4; border-radius: 26px 26px 0 0;
  filter: brightness(calc(.45 + .55 * var(--lights))); transition: filter 1.4s; box-shadow: 0 6px 14px rgba(0,0,0,.55);
  background:
    radial-gradient(ellipse 50% 125% at 50% 0, #e0354a, #a3142a 45%, #7a0a1c 60%, var(--gold-l) 62%, var(--gold) 65.5%, var(--gold-d) 68%, transparent 69.5%) 0 30px / calc(100% / 6) 46px repeat-x,
    linear-gradient(180deg, #a3142a, #d42a40 30%, #8c0f22 75%, #6a0a18) 0 0 / 100% 30px no-repeat,
    linear-gradient(180deg, #2a0408, #4a0612 70%, #2a0408) 0 30px / 100% 46px no-repeat; }
.valance::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 4px; background: linear-gradient(180deg, var(--gold-l), var(--gold) 50%, var(--gold-d)); }
.valance::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(180deg, var(--gold-l), var(--gold) 45%, var(--gold-d)); box-shadow: 0 1px 2px rgba(0,0,0,.6); }
.crest { position: absolute; z-index: 2; left: 50%; top: -14px; width: 78px; height: 78px; margin-left: -39px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--gold-l), var(--gold) 45%, var(--gold-d)); box-shadow: 0 0 0 4px #5a0712, 0 0 0 6px var(--gold-d), 0 6px 16px rgba(0,0,0,.6); }
.crest img { width: 54px; filter: sepia(1) saturate(2) hue-rotate(-12deg) brightness(.75) drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.apron { position: absolute; left: -40px; right: -40px; bottom: 0; height: 66px; z-index: 3;
  background: linear-gradient(180deg, #6a3a18, #3a1a08 60%, #1a0804); border-top: 4px solid var(--gold-d); filter: brightness(calc(.4 + .6 * var(--lights))); }
.footlights { position: absolute; left: 60px; right: 60px; top: 6px; height: 10px;
  background: radial-gradient(circle, #fff6c8 0 3px, #ffb84a 4px, transparent 6px) 0 0 / 40px 10px; filter: drop-shadow(0 0 8px #ffc35a); opacity: calc(.35 + .65 * var(--lights)); }

/* the screen's light falling on the audience */
/* the screen's glow on the audience: starts at the stage's lip (716), never over the picture (it ends at 710) */
.spill { position: absolute; left: 0; right: 0; top: 716px; bottom: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--spillA); transition: opacity 1s, background 1.2s;
  background: radial-gradient(ellipse 60% 70% at 50% 0%, rgb(var(--spill) / .45), rgb(var(--spill) / 0) 70%); }

/* ---------- the seats and who's in them ---------- */
.seats { position: absolute; inset: 0; pointer-events: none; z-index: 5; } /* (in front of the stage's apron: back-row heads stay whole) */
.row { position: absolute; left: 0; right: 0; top: 0; bottom: 0; }
.seat { position: absolute; width: 150px; height: 200px; margin-left: -75px; margin-top: -200px; transform-origin: 50% 100%; }
.seat .chair { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; z-index: 2; filter: brightness(calc(.35 + .65 * var(--lights))); transition: filter 1.4s; }
.seat .chair::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; bottom: 0; border-radius: 46px 46px 10px 10px;
  background: radial-gradient(ellipse 60% 40% at 50% 20%, #d42a40, rgba(212,42,64,0) 70%), linear-gradient(180deg, #a3142a, #6a0a18 70%, #3a0410);
  box-shadow: inset 0 0 0 3px #3a0410, inset 0 -10px 18px rgba(0,0,0,.45), inset 0 3px 0 rgba(255,140,160,.35); }
.seat .chair::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; border-radius: 8px;
  background: linear-gradient(90deg, #2a0408 0 12px, transparent 12px calc(100% - 12px), #2a0408 calc(100% - 12px)); }
.seat .plate { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 3; max-width: 120px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 400 10px "Press Start 2P", monospace; color: #2a0408; background: linear-gradient(180deg, var(--gold-l), var(--gold) 55%, var(--gold-d)); box-shadow: 0 1px 2px rgba(0,0,0,.6); opacity: 0; transition: opacity .4s; }
.seat.taken .plate { opacity: 1; }
/* (just the chair takes the click: the seat's box is twice its height, and its empty top overlaps the row behind) */
.row.chairs .seat:not(.taken) .chair { pointer-events: auto; cursor: pointer; }
.seat .sit { position: absolute; left: 50%; bottom: 100px; transform: translateX(-50%) scale(.6); z-index: 3; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font: 700 18px var(--body); color: #2a0408; background: var(--gold-l); box-shadow: 0 4px 12px rgba(0,0,0,.5); opacity: 0; transition: opacity .15s, transform .2s cubic-bezier(.2,1.6,.4,1); }
.row.chairs .seat:not(.taken):hover .sit { opacity: 1; transform: translateX(-50%) scale(1); }
.row.chairs .seat:not(.taken):hover .chair { filter: brightness(1.25) drop-shadow(0 0 10px rgba(255,200,80,.7)); }
.seat.me .plate { background: linear-gradient(180deg, #fff, #ffd2a8 55%, var(--fox)); }
.who { position: absolute; left: 0; right: 0; bottom: 56px; height: 190px; z-index: 1; }
.who .critter-svg { position: absolute; left: 7px; bottom: 0; width: 136px; height: 186px; fill: #0b0306; stroke: #0b0306; overflow: visible;
  filter: drop-shadow(0 -2px 2px rgb(var(--spill) / calc(.15 + var(--spillA) * .8))) drop-shadow(0 0 1px rgba(255,220,180,calc(.15 * var(--lights)))); }
.who .critter-svg .horns path { stroke: #0b0306; }
.who .tail-svg { position: absolute; bottom: 14px; width: 52px; height: 100px; fill: #0b0306; stroke: #0b0306; overflow: visible; }
.who .tail-svg .tip { fill: #e9dccb; stroke: none; opacity: calc(.25 + .5 * var(--lights)); }
.who .tail-svg .stripe { stroke: #e9dccb; fill: none; opacity: calc(.25 + .5 * var(--lights)); }
.who.tail-r .tail-svg { right: -18px; }
.who.tail-l .tail-svg { left: -18px; transform: scaleX(-1); }
.critter-svg .body, .critter-svg .head, .critter-svg .ear, .tail-g { transform-box: view-box; }
.critter-svg .head { transform-origin: 60px 124px; animation: tilt var(--tilt, 13s) ease-in-out infinite; animation-delay: var(--td, 0s); }
.critter-svg .body { transform-origin: 60px 160px; animation: breathe 4.2s ease-in-out infinite; animation-delay: var(--td, 0s); }
.critter-svg .el { transform-origin: 46px 70px; animation: twitchL var(--tw, 7s) infinite; }
.critter-svg .er { transform-origin: 74px 70px; animation: twitchR var(--tw2, 9s) infinite; }
.tail-g { transform-origin: 10px 90px; animation: sway 3.4s ease-in-out infinite; animation-delay: var(--td, 0s); }
@keyframes breathe { 50% { transform: scaleY(1.025); } }
@keyframes tilt { 0%, 40%, 100% { transform: rotate(0); } 46%, 56% { transform: rotate(5deg); } 62%, 72% { transform: rotate(-4deg); } 78% { transform: rotate(0); } }
@keyframes twitchL { 0%, 90%, 100% { transform: rotate(0); } 92% { transform: rotate(-14deg); } 94% { transform: rotate(2deg); } 96% { transform: rotate(-9deg); } }
@keyframes twitchR { 0%, 86%, 100% { transform: rotate(0); } 88% { transform: rotate(14deg); } 90% { transform: rotate(-2deg); } 92% { transform: rotate(8deg); } }
@keyframes sway { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.who.talking .critter-svg .head { animation: yap .22s ease-in-out infinite alternate; }
@keyframes yap { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-4px) rotate(2deg); } }
.who.hop { animation: hop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes hop { 40% { transform: translateY(-16px); } }
.who .crown { position: absolute; left: 50%; bottom: 178px; width: 40px; margin-left: -20px; z-index: 2; animation: bob 2.2s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(255,200,80,.8)); }
.who .bubble { position: absolute; left: 50%; bottom: 200px; transform: translateX(-50%) scale(0); transform-origin: 50% 100%; padding: 6px 10px; border-radius: 12px; background: #fff; color: #1a0509;
  font: 700 20px var(--body); white-space: nowrap; transition: transform .25s cubic-bezier(.2,1.6,.4,1); z-index: 3; }
.who .bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.who .bubble.on { transform: translateX(-50%) scale(1); }
.who .bubble i { display: inline-block; width: 8px; height: 8px; margin: 0 2px; border-radius: 50%; background: #8c1426; animation: dots 1s infinite; }
.who .bubble i:nth-child(2) { animation-delay: .15s; } .who .bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-5px); } }
.seat.me .who .critter-svg { filter: drop-shadow(0 -2px 2px rgb(var(--spill) / calc(.15 + var(--spillA) * .8))) drop-shadow(0 0 3px rgba(255,140,40,.9)); }

/* chat and voice pop-ups, just below the screen */
.pops { position: absolute; left: 50%; top: 792px; width: 1000px; margin-left: -500px; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; z-index: 6; }
.pop { display: flex; align-items: center; gap: 14px; max-width: 1000px; padding: 10px 22px 10px 10px; border-radius: 18px; font-size: 26px; line-height: 1.25;
  background: rgba(20,4,10,.88); border: 2px solid var(--gold-d); box-shadow: 0 8px 24px rgba(0,0,0,.6); animation: popIn .45s cubic-bezier(.2,1.5,.4,1); }
.pop.bye { animation: popOut .5s ease-in forwards; }
@keyframes popIn { from { transform: translateY(-24px) scale(.8); opacity: 0; } }
@keyframes popOut { to { transform: translateY(14px) scale(.9); opacity: 0; } }
.pop .tk-av { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 2px var(--gold); }
.pop .nm { font: 400 18px var(--display); color: var(--gold-l); margin-right: 4px; white-space: nowrap; }
.pop .tx { color: #fff; word-break: break-word; }
.pop.voice { border-color: var(--teal); }
.pop .wave { display: flex; align-items: center; gap: 3px; height: 44px; }
.pop .wave i { width: 6px; border-radius: 3px; background: rgba(62,224,208,.35); }
.pop .wave i.lit { background: var(--teal); box-shadow: 0 0 6px var(--teal); }
.pop .mic { font-size: 26px; animation: bob .5s ease-in-out infinite; }

/* reactions floating up from a seat */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 7; }

/* chat: comic-book speech bubbles beside whoever's talking (sized by --k: bigger in auditorium units on a small screen) */
.comics { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.comic-g { position: absolute; inset: 0; }
.comic-g.bye { animation: comicOut .4s ease-in forwards; }
.comic-tail { position: absolute; left: 0; top: 0; width: 1600px; height: 1080px; overflow: visible; filter: drop-shadow(calc(4px * var(--k)) calc(5px * var(--k)) 0 rgba(0,0,0,.4)); }
.comic-tail path { fill: #fff; stroke: #111; stroke-width: calc(4px * var(--k)); stroke-linejoin: round; }
.comic { position: absolute; max-width: calc(340px * var(--k)); padding: calc(9px * var(--k)) calc(18px * var(--k)) calc(11px * var(--k)); border: calc(4px * var(--k)) solid #111; border-radius: calc(28px * var(--k));
  background: radial-gradient(rgba(0,0,0,.07) 1px, transparent 1.6px) 0 0 / 6px 6px, #fff; color: #111; text-align: center; word-break: break-word;
  font: italic 800 calc(22px * var(--k)) / 1.15 var(--body); text-transform: uppercase; letter-spacing: .02em;
  box-shadow: calc(5px * var(--k)) calc(6px * var(--k)) 0 rgba(0,0,0,.45); animation: comicIn .35s cubic-bezier(.2,1.6,.4,1) both; }
.comic b { display: block; margin-bottom: calc(3px * var(--k)); font: normal 400 calc(11px * var(--k)) var(--display); letter-spacing: .08em; color: #c41a30; }
@keyframes comicIn { from { transform: scale(.2) rotate(-8deg); opacity: 0; } }
@keyframes comicOut { to { transform: translateY(-14px); opacity: 0; } }
.floater { position: absolute; font-size: 54px; animation: floatUp 2.6s cubic-bezier(.2,.6,.4,1) forwards; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
@keyframes floatUp { 0% { transform: translate(-50%, 0) scale(.3); opacity: 0; } 12% { transform: translate(-50%, -40px) scale(1.2); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), -240px) scale(.9) rotate(var(--rot, 0deg)); opacity: 0; } }

/* ---------- the transport (the projector's controls) ---------- */
.transport { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.transport:empty { display: none; }
.tp-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-d); cursor: pointer; font-size: 16px; color: #fff; flex: none;
  background: linear-gradient(180deg, #8c1426, #4a0510); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 6px rgba(0,0,0,.5); }
.tp-btn:hover { filter: brightness(1.2); }
.tp-btn.cc { font: 400 10px "Press Start 2P", monospace; color: rgba(255,244,230,.55); background: #2a0810; }
.tp-btn.cc.on { color: var(--ink); background: linear-gradient(180deg, #fff, var(--gold-l)); box-shadow: 0 0 10px rgba(255,210,120,.6); }
.tp-btn.big { width: 48px; height: 48px; font-size: 20px; background: linear-gradient(180deg, var(--gold-l), var(--gold) 50%, var(--gold-d)); color: var(--ink); }
.tp-time { font: 400 11px "Press Start 2P", monospace; color: var(--gold-l); white-space: nowrap; }
.tp-bar { position: relative; flex: 1; height: 14px; border-radius: 7px; background: #0a0205; box-shadow: inset 0 0 0 1px rgba(242,179,61,.25); cursor: pointer; min-width: 80px; touch-action: none; user-select: none; -webkit-user-select: none; }
.tp-bar:not(.ro)::before { content: ""; position: absolute; left: -8px; right: -8px; top: -14px; bottom: -14px; } /* (a fatter grip than it looks) */
.tp-bar.grab { cursor: grabbing; }
.tp-bar b { transition: transform .12s; }
.tp-bar.grab b { transform: scale(1.3); }
.tp-bar.ro { cursor: default; }
.tp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; background: linear-gradient(90deg, var(--fox), var(--gold)); box-shadow: 0 0 8px rgba(255,150,40,.6); }
.tp-bar b { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--gold)); box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.tp-vol { display: flex; align-items: center; gap: 6px; color: var(--gold-l); font-size: 14px; }
.tp-vol input { width: 90px; accent-color: var(--gold); }
.tp-loop { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 800; color: rgba(255,244,230,.75); flex: none; }
.tp-loop input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }
.tp-loop:has(input:checked) { border-color: var(--gold); background: rgba(242,179,61,.15); color: var(--gold-l); }
.tp-note { font-size: 13px; color: rgba(255,244,230,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-sel { background: #2a0810; color: var(--cream); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 13px; }

/* ---------- the chat bar ---------- */
.chatbar { display: flex; align-items: center; gap: 10px; }
.chatpane { display: contents; }
.chatlog, .mbar, .me-pop .m-only { display: none; }
.fs-fox { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 0; border: 0; cursor: pointer;
  background: rgba(8,1,3,.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fsDim .3s ease-out; } /* (the whole screen is the button) */
.fs-pill { display: flex; align-items: center; gap: 12px; padding: 10px 24px 10px 10px; border-radius: 999px; border: 3px solid var(--gold);
  background: linear-gradient(180deg, #ff8a3a, #d4501a); color: #fff; font: 400 17px var(--display); letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 30px rgba(255,140,40,.65); animation: fsFox 1.6s ease-in-out infinite; }
.fs-pill img { width: 52px; height: 52px; animation: bob 1.2s ease-in-out infinite; }
@keyframes fsFox { 50% { transform: scale(1.07); } }
@keyframes fsDim { from { opacity: 0; } }
.aud.zooming { transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.stage-wrap.zoomed { background: #000; }
.talk { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px 0 10px; border-radius: 23px; border: 2px solid #ff6a6a; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, #c62828, #6a0a0a); color: #fff; font: 400 11px var(--display); letter-spacing: 1px; user-select: none; -webkit-user-select: none; touch-action: none; }
.talk i { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle, #fff 0 5px, #ff9a9a 6px 8px, transparent 9px), #8a0a0a; box-shadow: 0 0 0 calc(var(--lvl, 0) * 10px) rgba(255,90,90,.35); transition: box-shadow .08s; }
.talk.rec { background: linear-gradient(180deg, #ff3a3a, #a80a0a); box-shadow: 0 0 18px rgba(255,60,60,.7); }
.talk.rec span::after { content: " · REC " attr(data-secs); }
.say { flex: 1; display: flex; gap: 8px; min-width: 0; }
.say input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 23px; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: #fff; font: 15px var(--body); outline: none; }
.say input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,179,61,.2); }
.reacts { display: flex; gap: 4px; }
.reacts button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0,0,0,.35); font-size: 20px; cursor: pointer; transition: transform .15s cubic-bezier(.2,1.8,.4,1); }
.reacts button:hover { transform: scale(1.2) rotate(-8deg); }
.reacts button:active { transform: scale(.9); }

/* ---------- the side panel ---------- */
.side { display: flex; flex-direction: column; min-height: 0; margin: 10px 14px 10px 0; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.side-tabs { display: flex; border-bottom: 1px solid var(--line); }
.side-tabs button { flex: 1; padding: 12px 8px; border: 0; background: none; color: rgba(255,244,230,.65); font-size: 13px; font-weight: 800; cursor: pointer; border-bottom: 3px solid transparent; }
.side-tabs button.on { color: #fff; border-bottom-color: var(--gold); background: rgba(242,179,61,.07); }
.side-tabs b { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--velvet); color: #fff; font-size: 12px; }
.side-pane { display: none; flex: 1; min-height: 0; overflow-y: auto; padding: 12px; }
.side-pane.on { display: block; }
.goers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.goer { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid transparent; animation: fadeUp .35s ease-out; }
.goer.host { border-color: rgba(242,179,61,.5); background: linear-gradient(90deg, rgba(242,179,61,.14), rgba(242,179,61,.02)); }
.goer .tk-av { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(242,179,61,.6); }
.goer .gi { flex: 1; min-width: 0; }
.goer .gn { font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goer .gs { font-size: 12px; color: rgba(255,244,230,.6); display: flex; align-items: center; gap: 4px; }
.goer .gs .critter-badge { width: 16px; height: 16px; fill: var(--gold-l); }
.goer .tag { font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.goer .tag.h { background: var(--gold); color: var(--ink); } .goer .tag.y { background: var(--fox); color: #fff; }
.goer .mk { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--gold-d); background: rgba(242,179,61,.12); color: var(--gold-l); font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.goer .mk:hover { background: rgba(242,179,61,.3); }
.knock { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 10px; border-radius: 12px; background: rgba(255,210,122,.12); border: 1px solid #ffd27a; animation: knockIn .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes knockIn { 0% { transform: translateX(30px); opacity: 0; } 60% { transform: translateX(-6px); } }
.knock span { flex: 1; font-size: 14px; }

/* the projection booth (the host's controls) */
.bt-sec { margin-bottom: 16px; }
.bt-h { margin: 0 0 8px; font: 400 12px var(--display); color: var(--gold); letter-spacing: 2px; }
.bt-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bt-btn { flex: 1; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--gold-d); background: linear-gradient(180deg, #6a0a18, #3a0410); color: #fff; font-size: 14px; font-weight: 800; cursor: pointer; }
.bt-btn:hover { filter: brightness(1.2); }
.bt-btn.on { background: linear-gradient(180deg, var(--gold-l), var(--gold) 50%, var(--gold-d)); color: var(--ink); }
.bt-btn:disabled { opacity: .5; cursor: not-allowed; }
.bt-lights { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 18px; }
.bt-lights input { width: 100%; accent-color: var(--gold); }
.bt-presets { display: flex; gap: 6px; margin-top: 6px; }
.bt-presets button { flex: 1; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--cream); font-size: 12px; cursor: pointer; }
.bt-presets button:hover { border-color: var(--gold); }
.mtabs { display: flex; gap: 4px; margin-bottom: 10px; }
.mtabs button { flex: 1; padding: 9px 4px; border-radius: 10px 10px 0 0; border: 1px solid var(--line); border-bottom: 0; background: rgba(0,0,0,.3); color: rgba(255,244,230,.7); font-size: 13px; font-weight: 800; cursor: pointer; }
.mtabs button.on { background: var(--velvet); color: #fff; border-color: var(--gold-d); }
.mpane { display: none; } .mpane.on { display: grid; gap: 10px; }
.bt-in { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.45); color: #fff; font-size: 14px; outline: none; }
.bt-in:focus { border-color: var(--gold); }
.bt-help { margin: 0; font-size: 12px; color: rgba(255,244,230,.6); line-height: 1.4; }
.drop { display: grid; place-items: center; gap: 6px; min-height: 120px; padding: 14px; border-radius: 14px; text-align: center; cursor: pointer; color: rgba(255,244,230,.75); font-size: 14px;
  border: 2px dashed rgba(242,179,61,.5); background: rgba(0,0,0,.25); transition: background .2s, border-color .2s, transform .2s; }
.drop b { font-size: 30px; }
.mpane.has-file #fileCard { order: -2; } .mpane.has-file #fileGo { order: -1; } /* (picked: the film and its button first) */
.mpane.has-file .drop { min-height: 0; padding: 10px; } .mpane.has-file .drop b, .mpane.has-file .drop small, .mpane.has-file .drop br { display: none; }
.drop.over { background: rgba(242,179,61,.15); border-color: var(--gold); transform: scale(1.02); }
.filecard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 13px; }
.filecard b { display: block; font-size: 14px; word-break: break-all; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--line); animation: fadeUp .3s; }
.thumb.now { box-shadow: 0 0 0 3px var(--gold); }
.thumb button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; cursor: pointer; }
.thumb i { position: absolute; left: 3px; bottom: 2px; font: normal 9px "Press Start 2P", monospace; color: #fff; text-shadow: 0 1px 2px #000; }
.booth-guest { text-align: center; padding: 30px 10px; color: rgba(255,244,230,.7); font-size: 14px; line-height: 1.5; }
.booth-guest b { display: block; font-size: 40px; margin-bottom: 8px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; top: 66px; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; z-index: 30; pointer-events: none; }
.toast { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; background: rgba(20,4,10,.92); border: 1px solid var(--gold-d); box-shadow: 0 6px 18px rgba(0,0,0,.5); animation: popIn .4s cubic-bezier(.2,1.5,.4,1); }
.toast.bye { animation: popOut .4s ease-in forwards; }

/* ---------- smaller screens: everything in one column ---------- */
/* ---------- phones and small tablets: the screen stays put up top, everything else in tabs under it ---------- */
@media (max-width: 980px) {
  .hall { height: 100vh; height: 100dvh; }
  .hall-main { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: "stage" "tabs" "pane";
    gap: 6px; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); min-height: 0; }
  .stage-col { display: contents; }
  .stage-wrap { grid-area: stage; flex: none; width: 100%; aspect-ratio: 1600 / 1080; min-height: 0; border-radius: 10px; }
  .mbar { grid-area: tabs; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .mbar button { flex: 1; min-width: 0; padding: 10px 4px; border: 0; border-radius: 9px; background: none; color: rgba(255,244,230,.65); font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap; }
  .mbar button.on { background: var(--velvet); color: #fff; box-shadow: inset 0 0 0 1px var(--gold-d); }
  .mbar b { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.35); font-size: 11px; }
  body.th:not(.am-host) .mbar [data-mt="booth"] { display: none; }
  /* the panes: one at a time, in the space left */
  .transport, .chatpane, .side { grid-area: pane; display: none !important; min-height: 0; margin: 0; }
  body[data-mt="show"] .transport { display: flex !important; flex-wrap: wrap; align-content: flex-start; overflow-y: auto; }
  body[data-mt="chat"] .chatpane { display: flex !important; flex-direction: column; gap: 6px; }
  body[data-mt="goers"] .side, body[data-mt="booth"] .side { display: flex !important; border-radius: 12px; }
  .side-tabs { display: none; }
  .me-pop .m-only { display: block; }
  body.kb .reacts { display: none; } /* (the keyboard's up: room for the chat, not the emoji row) */
  body.kb .topbar { padding-top: 3px; padding-bottom: 3px; }
  .say input, .ticket input { font-size: 16px; } /* (smaller and a phone zooms the page in when you type) */
  .transport:empty::before { content: "🍿 Nothing on the screen yet: the host picks the show."; margin: auto; padding: 16px; color: rgba(255,244,230,.6); font-size: 14px; text-align: center; }
  .transport .tp-bar { order: -1; flex-basis: 100%; height: 18px; margin: 4px 2px 8px; }
  .transport .tp-bar b { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
  .tp-btn { width: 46px; height: 46px; } .tp-btn.big { width: 54px; height: 54px; }
  .tp-time { font-size: 10px; }
  .tp-vol input { width: 80px; }
  .tp-note { flex-basis: 100%; white-space: normal; }
  .chatlog { display: flex; flex-direction: column; gap: 7px; flex: 1; min-height: 0; overflow-y: auto; padding: 10px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
  .chatlog:empty::before { content: "No chatter yet. Say hi! 👋"; margin: auto; color: rgba(255,244,230,.5); font-size: 14px; }
  .cl { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.35; word-break: break-word; }
  .cl .tk-av { width: 26px; height: 26px; border-radius: 8px; box-shadow: 0 0 0 2px var(--gold-d); }
  .cl b { color: var(--gold-l); white-space: nowrap; }
  .cl.mine b { color: #ffb36b; }
  .chatbar { flex-wrap: wrap; gap: 8px; }
  .talk span { display: none; } .talk { padding: 0 9px; flex: none; }
  .reacts { width: 100%; justify-content: space-between; overflow-x: auto; }
  .tb-logo span { display: none; }
  .chip.vol input { width: 60px; }
  .topbar { min-height: 0; padding: 6px 10px; gap: 6px 8px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .tb-left { display: contents; }
  .tb-room { max-width: 100%; font-size: 11px; letter-spacing: 0; padding: 6px 10px; }
  .tb-now { grid-column: 1 / -1; grid-row: 2; }
}
/* a phone on its side: the screen on the left, the tabs beside it */
@media (max-width: 980px) and (orientation: landscape) and (max-height: 600px) {
  .hall-main { grid-template-columns: minmax(0, 1fr) minmax(250px, 38%); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "stage tabs" "stage pane"; }
  .stage-wrap { aspect-ratio: auto; height: 100%; }
  .tb-now { display: none; }
}
@media (max-width: 560px) {
  .tb-now i { display: none; }
  .chip.host { display: none; }
  .talk span { display: none; }
  .talk { padding: 0 9px; }
  .critter-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tb-now { padding: 5px 8px; } .tb-now b { font-size: 13px; }
  .chip.vol, #meName2 { display: none; }
  .room-card { grid-template-columns: 38px minmax(0, 1fr) auto; } .rc-icon { width: 38px; height: 38px; font-size: 20px; } .rc-tag { grid-column: 2 / -1; justify-self: start; padding: 3px 9px; font-size: 11px; }
  .ticket { grid-template-columns: 44px 1fr; -webkit-mask: none; mask: none; }
  .ticket-stub { font-size: 10px; } .ticket-stub b { font-size: 18px; }
  .me-menu { position: static; } /* (the menu hangs from the bar's right edge, wherever the chip wrapped to) */
  .me-pop { right: 8px; left: auto; max-width: calc(100vw - 16px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
