:root {
  --ink: #0b0b0c;
  --ink-2: #151517;
  --paper: #ece6da;
  --paper-dim: #b9b2a5;
  --mint: #2edb99;
  --cyan: #05eed2;
  --gold: #d8b56d;
  --gold-2: #f3dca3;
  --red: #8f1d2c;
  --display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: var(--paper); overflow: hidden; }
body { font-family: var(--ui); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: #000; }

/* ---------- Pantallas y escenas ---------- */
.screen { position: absolute; inset: 0; overflow: hidden; overflow: clip; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
#app[data-screen="lobby"] #lobby,
#app[data-screen="vestibule"] #vestibule,
#app[data-screen="hall"] #hall,
#app[data-screen="film"] #hall { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }

.scene { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.scene.animating { transition: transform var(--zoom-s, 2.5s) cubic-bezier(.55, 0, .25, 1); }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; }

.shade { position: absolute; inset: 0; pointer-events: none; }
.shade-lobby { background:
  radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%),
  linear-gradient(to bottom, rgba(0,0,0,.15), transparent 25%, transparent 60%, rgba(0,0,0,.55)); }
.shade-hall { background: radial-gradient(130% 100% at 50% 40%, transparent 50%, rgba(0,0,0,.6) 100%); }

/* ---------- Fachada: neón y bombillas ---------- */
.glow { position: absolute; pointer-events: none; mix-blend-mode: screen; }
.sign-glow {
  background: radial-gradient(50% 50% at 50% 50%, rgba(46,219,153,.55), rgba(46,219,153,.12) 55%, transparent 75%);
  filter: blur(8px);
  animation: neon 7s infinite steps(1, end);
}
@keyframes neon {
  0%, 18%, 22%, 24%, 61%, 63%, 100% { opacity: .75; }
  19%, 23% { opacity: .15; }
  62% { opacity: .35; }
}
.marquee-glow {
  background: radial-gradient(55% 60% at 50% 50%, rgba(255,205,130,.35), rgba(255,190,110,.08) 60%, transparent 80%);
  filter: blur(14px);
  animation: bulbs 3.2s ease-in-out infinite alternate;
}
@keyframes bulbs { from { opacity: .45; } to { opacity: .85; } }
.doors-light {
  position: absolute; width: 1px; height: 1px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,226,170,.95), rgba(255,210,140,.35) 45%, transparent 70%);
  opacity: 0; transform: translate(-50%, -50%) scale(0); transition: opacity 1.2s ease, transform 1.6s ease;
  mix-blend-mode: screen;
}
.doors-light.on { opacity: 1; }

/* ---------- Entrada (billete) ---------- */
.lobby-ui {
  position: absolute; left: 0; right: 0; bottom: calc(3.2vh + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 16px;
  transition: opacity .8s ease, transform .8s ease;
}
.lobby-ui.leaving { opacity: 0; transform: translateY(24px); pointer-events: none; }

.audience {
  margin: 0; font-size: 13px; letter-spacing: .04em; color: rgba(236,230,218,.85);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(10,10,12,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.audience::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.ticket {
  position: relative; display: flex; width: min(500px, 100%);
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.65));
  animation: ticket-in 1.2s cubic-bezier(.2,.8,.2,1) .4s both;
}
@keyframes ticket-in { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
.ticket-main, .ticket-stub {
  background:
    radial-gradient(circle at 0 50%, transparent 10px, var(--paper) 10.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 10px, var(--paper) 10.5px) right / 51% 100% no-repeat;
  color: #1b1712;
}
.ticket-main {
  flex: 1; padding: clamp(10px, 2vh, 18px) 22px clamp(10px, 2vh, 18px) 26px; border-radius: 6px 0 0 6px; text-align: center;
  background-color: transparent;
  position: relative;
}
.ticket-main::after {
  content: ''; position: absolute; inset: 7px 8px 7px 12px; border: 1.5px solid rgba(143,29,44,.55); border-radius: 3px; pointer-events: none;
}
.ticket-stub {
  width: 104px; flex: none; border-radius: 0 6px 6px 0;
  border-left: 2px dashed rgba(27,23,18,.35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px;
  font-family: var(--display); letter-spacing: .06em; color: var(--red);
  transform-origin: 0 100%;
}
.stub-row, .stub-seat { font-size: 22px; line-height: 1; }
.stub-code { font-family: var(--ui); font-size: 10px; letter-spacing: .12em; color: #6b5f50; text-transform: uppercase; }
.stub-code b { font-weight: 600; color: #3b3228; }
.ticket.torn .ticket-stub { animation: tear .9s cubic-bezier(.5,0,.8,.4) forwards; }
@keyframes tear {
  30% { transform: rotate(6deg) translateY(2px); }
  100% { transform: rotate(38deg) translate(40px, 140px); opacity: 0; }
}

.t-admit { margin: 0; font: 600 11px/1 var(--ui); letter-spacing: .38em; text-transform: uppercase; color: var(--red); }
.t-title { margin: clamp(4px, .9vh, 8px) 0 2px; font: 400 clamp(28px, min(5.2vh, 7vw), 44px)/0.95 var(--display); white-space: nowrap; letter-spacing: .03em; color: #1b1712; }
.t-sub { margin: 0; font: 600 12px/1.2 var(--ui); letter-spacing: .28em; text-transform: uppercase; color: var(--red); }
.t-when { margin: clamp(4px, .9vh, 8px) 0 clamp(6px, 1.3vh, 12px); font-size: 13px; color: #4a4136; }
.t-when b { font-weight: 600; color: #1b1712; }
.t-name { display: block; margin: 0 auto clamp(6px, 1.1vh, 10px); max-width: 280px; }
.t-name input {
  width: 100%; padding: clamp(7px, 1.1vh, 10px) 12px; border-radius: 4px; border: 1.5px solid rgba(27,23,18,.25);
  background: rgba(255,255,255,.55); color: #1b1712; text-align: center; font-size: 15px; outline: none;
}
.t-name input:focus { border-color: var(--red); background: #fff; }
.t-name input::placeholder { color: #857a6b; }
.t-enter {
  position: relative; width: min(280px, 100%); padding: clamp(9px, 1.5vh, 13px) 18px; border: 0; border-radius: 4px; cursor: pointer;
  background: #121212; color: var(--mint);
  font: 400 26px/1 var(--display); letter-spacing: .22em; text-indent: .22em;
  box-shadow: 0 0 0 1.5px rgba(46,219,153,.55) inset, 0 0 22px rgba(46,219,153,.25);
  text-shadow: 0 0 10px rgba(46,219,153,.8);
  transition: transform .15s ease, box-shadow .3s ease;
  animation: enter-glow 2.4s ease-in-out infinite;
}
.t-enter:hover { transform: translateY(-1px); box-shadow: 0 0 0 1.5px var(--mint) inset, 0 0 32px rgba(46,219,153,.45); }
.t-enter:active { transform: translateY(1px); }
.t-enter:disabled { cursor: default; opacity: .8; animation: none; }
@keyframes enter-glow { 50% { box-shadow: 0 0 0 1.5px rgba(46,219,153,.9) inset, 0 0 34px rgba(46,219,153,.45); } }
.t-ended { margin: 10px 0 0; font-size: 13px; color: #4a4136; }

@media (max-width: 480px) {
  .ticket-stub { width: 78px; }
  .stub-row, .stub-seat { font-size: 18px; }
  .ticket-main { padding: 16px 14px 16px 20px; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .lobby-ui { bottom: 10px; gap: 8px; }
  .t-when { margin: 4px 0 8px; }
  .t-title { font-size: 30px; }
}

/* ---------- Sala: telón ---------- */
.house-lights { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity 2s ease; pointer-events: none; }
.house-lights.down { opacity: .62; }
.house-lights.black { opacity: .9; transition-duration: 1.2s; }

.stage-window { position: absolute; overflow: hidden; }
.screen-surface {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 60% at 50% 105%, rgba(255,190,120,.16), transparent 70%),
    linear-gradient(#050506, #0d0d0f 60%, #141417);
  transition: filter 1.4s ease;
}
.screen-surface::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease;
  background:
    radial-gradient(70% 70% at 50% 50%, rgba(214,226,235,.28), rgba(170,185,200,.12) 60%, rgba(0,0,0,0) 100%);
}
.screen-surface.lit::after { opacity: 1; }

.curtain {
  position: absolute; top: 0; bottom: 0; width: 50.4%; overflow: hidden;
  background-repeat: no-repeat;
  transition: transform var(--curtain-s, 4s) cubic-bezier(.62, .02, .28, 1), filter var(--curtain-s, 4s) ease;
  will-change: transform;
}
.curtain-left { left: 0; transform-origin: 0 50%; }
.curtain-right { right: 0; transform-origin: 100% 50%; }
.curtain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .0; transition: opacity var(--curtain-s, 4s) ease;
}
.curtain-left::after { background: linear-gradient(to right, transparent 40%, rgba(0,0,0,.55)); }
.curtain-right::after { background: linear-gradient(to left, transparent 40%, rgba(0,0,0,.55)); }
.stage-window.open .curtain { transform: scaleX(.13); filter: brightness(.8) saturate(1.1); }
.stage-window.open .curtain::after { opacity: 1; }
.stage-window.instant .curtain, .stage-window.instant .curtain::after { transition: none; }

.hall-ui {
  position: absolute; left: 0; right: 0; bottom: calc(22px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 16px; text-align: center;
  transition: opacity 1.2s ease;
}
.hall-ui.hide { opacity: 0; pointer-events: none; }
.hall-hint { margin: 0; font-size: 14px; color: rgba(236,230,218,.8); text-shadow: 0 1px 8px rgba(0,0,0,.9); max-width: 520px; }
.ended-note {
  margin: 0; font: 400 clamp(22px, 3vw, 30px)/1.1 var(--display); letter-spacing: .06em; color: var(--paper);
  text-shadow: 0 2px 16px rgba(0,0,0,.9);
}

/* ---------- Película ---------- */
.film { position: absolute; inset: 0; background: #000; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; z-index: 5; }
#app[data-screen="film"] .film { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.film-label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0;
  font: 400 34px/1 var(--display); letter-spacing: .3em; text-indent: .3em; color: var(--paper);
  padding: 12px 22px; background: rgba(0,0,0,.55); border-radius: 4px;
}
.film-label.rotate { top: auto; bottom: 18%; font: 500 13px/1.3 var(--ui); letter-spacing: .02em; text-indent: 0; white-space: nowrap; }
.tap-to-watch {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 16px 28px; border: 0; border-radius: 6px; cursor: pointer; background: var(--mint); color: #0b0b0c;
  font: 400 28px/1 var(--display); letter-spacing: .16em; box-shadow: 0 0 40px rgba(46,219,153,.5);
}
.spinner {
  position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--mint);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Controles ---------- */
.dock {
  position: absolute; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--safe-b)); z-index: 8;
  display: flex; align-items: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .5s ease;
}
#app[data-screen="hall"] .dock, #app[data-screen="film"] .dock { opacity: .85; pointer-events: auto; }
#app[data-screen="film"].idle .dock { opacity: 0; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); cursor: pointer;
  background: rgba(12,12,14,.6) center / 20px 20px no-repeat; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.icon-btn:hover { border-color: rgba(46,219,153,.7); }
#btn-sound { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece6da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
#btn-sound.muted { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece6da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='m23 9-6 6M17 9l6 6'/%3E%3C/svg%3E"); }
#btn-fs { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ece6da' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H5a2 2 0 0 0-2 2v3M21 8V5a2 2 0 0 0-2-2h-3M3 16v3a2 2 0 0 0 2 2h3M16 21h3a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E"); }
.vol { display: none; align-items: center; height: 40px; padding: 0 12px; border-radius: 20px; background: rgba(12,12,14,.6); border: 1px solid rgba(255,255,255,.18); }
#app[data-screen="film"] .vol.can { display: flex; }
.vol input { width: 110px; accent-color: var(--mint); }

/* ---------- Avisos ---------- */
.banner {
  position: absolute; left: 50%; top: calc(18px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 9;
  max-width: min(680px, calc(100% - 32px)); padding: 12px 20px; border-radius: 6px; text-align: center;
  background: rgba(10,10,12,.82); border: 1px solid rgba(46,219,153,.45); box-shadow: 0 0 30px rgba(46,219,153,.18);
  font-size: 15px; line-height: 1.35; color: var(--paper);
  animation: banner-in .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes banner-in { from { opacity: 0; transform: translate(-50%, -12px); } }
.conn {
  position: absolute; left: 14px; bottom: calc(14px + var(--safe-b)); z-index: 9; font-size: 12px; padding: 6px 10px; border-radius: 4px;
  background: rgba(143,29,44,.85); color: #fff;
}
.blackout { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 7; transition: opacity .7s ease; }
.blackout.on { opacity: 1; }

/* ---------- Carga ---------- */
.loader { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #000; transition: opacity 1s ease, visibility 0s linear 1s; }
#app:not([data-screen="loading"]) .loader { opacity: 0; visibility: hidden; }
/* Logo oficial en neón: la máscara recorta el tubo y el resplandor va en el contenedor (drop-shadow sigue la silueta) */
.loader-neon {
  width: min(560px, 78vw); aspect-ratio: 1400 / 209;
  filter: drop-shadow(0 0 2px rgba(46,219,153,1)) drop-shadow(0 0 10px rgba(46,219,153,.75)) drop-shadow(0 0 28px rgba(46,219,153,.5)) drop-shadow(0 0 60px rgba(46,219,153,.3));
  animation: neon-on 2.4s steps(1, end) infinite;
}
.loader-logo {
  width: 100%; height: 100%; background: linear-gradient(180deg, #dffff2, #9ff5d2 50%, #dffff2);
  -webkit-mask: url(/assets/logo-mask.png) center / contain no-repeat;
  mask: url(/assets/logo-mask.png) center / contain no-repeat;
}
@keyframes neon-on { 0%, 8%, 12%, 100% { opacity: 1; } 9%, 11% { opacity: .2; } 10% { opacity: .7; } }

/* ---------- Grano de película ---------- */
.grain {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
#app[data-screen="film"] .grain { opacity: 0; }
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -37px 23px; } 40% { background-position: 29px -41px; }
  60% { background-position: -19px -13px; } 80% { background-position: 43px 31px; } 100% { background-position: 0 0; }
}

.debug {
  position: absolute; left: 8px; top: 8px; z-index: 30; margin: 0; padding: 8px 10px; max-width: 360px; white-space: pre-wrap;
  font: 11px/1.4 ui-monospace, Menlo, monospace; color: #9ff; background: rgba(0,0,0,.75); border-radius: 4px; pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .grain, .sign-glow, .marquee-glow, .t-enter, .loader-neon { animation: none; }
}

@media (max-width: 640px) {
  .hall-ui { bottom: calc(66px + var(--safe-b)); }
  .hall-hint { font-size: 13px; }
}


/* ---------- Logo METAKIZZ (máscara con el logo oficial) ---------- */
.t-logo, .stub-logo, .end-logo, .curtain-logo {
  -webkit-mask: url(/assets/logo-mask.png) center / contain no-repeat;
  mask: url(/assets/logo-mask.png) center / contain no-repeat;
}
.t-logo { width: min(190px, 60%); aspect-ratio: 1400 / 209; margin: 0 auto 8px; background: #1b1712; }
.stub-logo { width: 74px; aspect-ratio: 1400 / 209; margin-bottom: 4px; background: var(--red); }
@media (max-width: 480px) { .stub-logo { width: 58px; } }

/* Logo bordado en oro sobre el terciopelo: se parte en dos cuando se abre el telón */
.curtain-logo {
  position: absolute; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #fbe7ad 0%, #e2bd6a 38%, #b88a3e 62%, #f1d48d 100%);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.65)) drop-shadow(0 0 6px rgba(255,214,140,.25));
  opacity: .93;
}

/* ---------- Vestíbulo ---------- */
#vestibule { background: #000; }
.vest-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) brightness(.45); }
.vest-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#vest-still { transform: scale(1.02); transition: transform 6s ease-out; }
#vest-still.push { transform: scale(1.14); }
#vest-video { opacity: 0; transition: opacity .4s ease; }
#vest-video.on { opacity: 1; }

/* ---------- Mr Bunny en el escenario ---------- */
.bunny {
  position: absolute; pointer-events: none; user-select: none;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)) brightness(.97) saturate(.95);
  animation: bunny-idle 3.2s ease-in-out infinite;
  transition: transform 2.2s cubic-bezier(.5,0,.6,1), opacity 1.2s ease;
}
@keyframes bunny-idle {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 0 -1.5%; rotate: -1.5deg; }
  50% { translate: 0 0; rotate: 0deg; }
  75% { translate: 0 -1%; rotate: 1.5deg; }
}
.bunny.leave { transform: translateX(-260%); opacity: 0; transition: transform 2.4s cubic-bezier(.55,0,.75,.4), opacity 1s ease 1.4s; }
.bunny.instant { transition: none; }
.bunny-shadow {
  position: absolute; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  transition: opacity 1s ease;
}
.bunny-shadow.leave { opacity: 0; }

/* ---------- Cómo funciona (Zoom + sala) ---------- */
.how {
  position: absolute; left: calc(16px + env(safe-area-inset-left, 0px)); top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 8;
  width: min(340px, calc(100% - 32px)); padding: 14px 16px 12px; border-radius: 10px;
  background: rgba(10,10,12,.82); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--paper); font-size: 13.5px; line-height: 1.45;
  animation: banner-in .6s cubic-bezier(.2,.8,.2,1);
}
.how-title { margin: 0 0 6px; font: 400 20px/1 var(--display); letter-spacing: .08em; color: var(--mint); }
.how ol { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 6px; }
.how-ok, .how-again {
  border: 1px solid rgba(46,219,153,.6); background: transparent; color: var(--mint); border-radius: 999px; cursor: pointer;
  padding: 6px 14px; font: 600 12px/1 var(--ui); letter-spacing: .04em;
}
.how-again { position: absolute; left: 16px; top: 16px; z-index: 8; background: rgba(10,10,12,.6); }
.zoom-chip {
  position: absolute; right: calc(16px + env(safe-area-inset-right, 0px)); top: calc(16px + env(safe-area-inset-top, 0px)); z-index: 8;
  padding: 7px 14px; border-radius: 999px; text-decoration: none; font: 600 13px/1 var(--ui);
  color: #fff; background: #2d6cf6; box-shadow: 0 4px 16px rgba(45,108,246,.35);
}
#app[data-screen="film"] .how, #app[data-screen="film"] .how-again, #app[data-screen="film"] .zoom-chip { display: none; }

/* ---------- Cartel final ---------- */
.end-card {
  position: absolute; left: 50%; top: 50%; z-index: 8; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px)); padding: 26px 26px 24px; border-radius: 14px; text-align: center;
  background: rgba(8,8,10,.84); border: 1px solid rgba(216,181,109,.45); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: end-in 1.4s cubic-bezier(.2,.8,.2,1);
}
@keyframes end-in { from { opacity: 0; transform: translate(-50%, -46%); } }
.end-logo { width: 220px; max-width: 70%; aspect-ratio: 1400 / 209; margin: 0 auto 14px; background: linear-gradient(180deg, #fbe7ad, #d8b56d 55%, #a87c34); }
.end-title { margin: 0 0 10px; font: 400 clamp(30px, 5vw, 46px)/1 var(--display); letter-spacing: .04em; color: var(--paper); }
.end-body { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: rgba(236,230,218,.88); white-space: pre-line; }
.zoom-btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px; text-decoration: none;
  font: 400 24px/1 var(--display); letter-spacing: .14em; color: #fff; background: #2d6cf6; box-shadow: 0 0 30px rgba(45,108,246,.4);
}
.zoom-btn:hover { background: #3b78ff; }
@media (max-width: 640px) {
  .how { font-size: 13px; }
  .end-card { padding: 20px 18px; }
}


/* ---------- Billete: nombre + email y logo en vertical en el talón ---------- */
.t-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 400px; margin: 0 auto clamp(6px, 1.1vh, 10px); }
.t-fields .t-name { margin: 0; max-width: none; }
.t-fields input { font-size: 14px; }
.t-privacy { margin: -2px auto 8px; max-width: 380px; font-size: 11px; line-height: 1.35; color: #6b5f50; }
.ticket-stub { width: 124px; flex-direction: row; gap: 10px; padding: 12px 10px; }
.stub-logo-v {
  align-self: stretch; width: 24px; flex: none; background: var(--red);
  -webkit-mask: url(/assets/logo-mask-v.png) center / contain no-repeat;
  mask: url(/assets/logo-mask-v.png) center / contain no-repeat;
}
.stub-info { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
@media (max-width: 480px) {
  .t-fields { grid-template-columns: 1fr; gap: 6px; }
  .ticket-stub { width: 92px; gap: 6px; padding: 10px 6px; }
  .stub-logo-v { width: 18px; }
  .stub-code { display: none; }
}


/* ---------- Billete confirmado: Zoom primero, entrar cuando abran puertas ---------- */
.ticket.registered .t-fields, .ticket.registered .t-privacy, .ticket.registered #enter, .ticket.registered .t-ended { display: none; }
.t-pass { max-width: 400px; margin: 0 auto; }
.t-pass-ok { margin: 2px 0 6px; font: 400 clamp(22px, 3.2vh, 28px)/1.05 var(--display); letter-spacing: .06em; color: #1b1712; }
.t-pass-hint { margin: 0 auto 12px; max-width: 360px; font-size: 13.5px; line-height: 1.4; color: #4a4136; }
.t-zoom { display: block; width: min(280px, 100%); margin: 0 auto; padding: 12px 18px; font-size: 22px; box-sizing: border-box; text-align: center; }
.t-go { display: block; margin: 4px auto 0; }
/* Puertas abiertas: un único botón, más grande y latiendo, para que nadie dude */
.t-pass.open .t-pass-ok { color: var(--red); }
.t-pass.open .t-pass-hint { font-weight: 600; color: #1b1712; }
.t-pass.open .t-go {
  width: min(340px, 100%); padding: clamp(12px, 2vh, 16px) 14px; font-size: clamp(22px, 3.6vh, 30px);
  white-space: nowrap; letter-spacing: .14em; text-indent: .14em;
  animation: go-pulse 1.1s ease-in-out infinite;
}
.t-pass.open .t-go span::after { content: ' →'; letter-spacing: 0; }
@keyframes go-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(46,219,153,.8) inset, 0 0 22px rgba(46,219,153,.35), 0 0 0 0 rgba(46,219,153,.55); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 2px var(--mint) inset, 0 0 40px rgba(46,219,153,.6), 0 0 0 14px rgba(46,219,153,0); }
}
.ticket.doors-open { animation: ticket-nudge .6s ease-out 1; }
@keyframes ticket-nudge { 30% { transform: translateY(-6px) rotate(-.6deg); } 60% { transform: translateY(2px) rotate(.3deg); } }
@media (prefers-reduced-motion: reduce) { .t-pass.open .t-go, .ticket.doors-open { animation: none; } }

/* Cuenta atrás tras abrir puertas */
.countdown { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; }
.countdown-label { font: 600 12px/1 var(--sans, Inter, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: rgba(236,230,218,.85); text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.countdown-time { font: 400 clamp(54px, 9vh, 88px)/1 var(--display); letter-spacing: .04em; color: var(--mint); text-shadow: 0 0 18px rgba(46,219,153,.6), 0 2px 10px rgba(0,0,0,.9); font-variant-numeric: tabular-nums; }
.t-count { margin: -4px 0 10px; font: 400 22px/1 var(--display); letter-spacing: .08em; color: var(--red); }

/* 10, 9, 8… en grande (el público lo grita a la vez) */
.big-count { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none; }
.big-count span {
  font: 400 clamp(160px, 42vh, 420px)/1 var(--display); color: #fff; letter-spacing: 0;
  text-shadow: 0 0 40px rgba(46,219,153,.75), 0 0 120px rgba(46,219,153,.45), 0 8px 30px rgba(0,0,0,.8);
  font-variant-numeric: tabular-nums;
}
.big-count span.tick { animation: big-tick .95s cubic-bezier(.2,.8,.2,1) both; }
.big-count span.zero { color: var(--mint); animation: big-zero 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes big-tick { 0% { transform: scale(1.6); opacity: 0; } 18% { transform: scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(.88); opacity: .15; } }
@keyframes big-zero { 0% { transform: scale(1.8); opacity: 0; } 20% { transform: scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .big-count span.tick, .big-count span.zero { animation: none; } }
