:root {
  --bg-void: #04060e;
  --text-main: #f7f8ff;
  --text-soft: #d2d8f5;
  --text-muted: #919bc7;
  --accent-gold: #f6cf7d;
  --accent-violet: #b195ff;
  --accent-blue: #6f8cff;
  --accent-rose: #ff9eb5;
  --audio-pulse: 0;
  --sunrise-progress: 0;
  --font-instrument: 'Instrument Serif', Georgia, serif;
  --font-syne: 'Syne', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-hand: 'Caveat', cursive;
  --font-mono: 'Space Mono', monospace;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-void);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  line-height: 1.68;
}

body.locked {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* ==========================================================================
   MOTOR ATMOSFÉRICO GLOBAL DE CINEMA (ILUMINAÇÃO VIVA + ÁUDIO-REATIVIDADE)
   ========================================================================== */
#atmosphere-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 20%, #10183a 0%, #04060e 75%);
  transition: background 1.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 1s ease;
}

body[data-mood="amber"] .sky-backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 172, 82, 0.34), transparent 56%),
    radial-gradient(circle at 82% 82%, rgba(145, 88, 42, 0.24), transparent 56%),
    linear-gradient(180deg, #191119 0%, #07060c 100%);
}

body[data-mood="time-corridor"] .sky-backdrop {
  background:
    radial-gradient(circle at 65% 22%, rgba(92, 138, 255, 0.32), transparent 60%),
    linear-gradient(180deg, #0b1436 0%, #040714 100%);
}

body[data-mood="blackout"] .sky-backdrop {
  background: radial-gradient(circle at 50% 45%, rgba(50, 62, 88, 0.16), #020307 68%);
  animation: powerFlicker 3.1s infinite;
}

@keyframes powerFlicker {
  0%, 89%, 93%, 100% { opacity: 1; }
  91% { opacity: 0.46; }
  92% { opacity: 0.86; }
}

body[data-mood="aurora"] .sky-backdrop,
body[data-mood="aurora-warm"] .sky-backdrop {
  background:
    radial-gradient(ellipse at 50% 14%, rgba(168, 120, 255, 0.4), transparent 60%),
    radial-gradient(ellipse at 18% 78%, rgba(86, 144, 255, 0.3), transparent 55%),
    radial-gradient(circle at 84% 65%, rgba(246, 207, 125, 0.22), transparent 52%),
    linear-gradient(180deg, #15113d 0%, #050818 100%);
}

body[data-mood="playful"] .sky-backdrop {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 136, 188, 0.28), transparent 55%),
    radial-gradient(circle at 18% 76%, rgba(162, 124, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #1a1034 0%, #060716 100%);
}

body[data-mood="royal-gold"] .sky-backdrop {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(246, 207, 125, 0.42), transparent 62%),
    linear-gradient(180deg, #1b150b 0%, #05060f 86%);
}

body[data-mood="midnight"] .sky-backdrop {
  background:
    radial-gradient(circle at 80% 18%, rgba(110, 152, 255, 0.25), transparent 50%),
    linear-gradient(180deg, #07112e 0%, #030613 75%, #02040b 100%);
}

body[data-mood="stare-dark"] .sky-backdrop {
  background: radial-gradient(circle at 50% 45%, rgba(246, 207, 125, 0.13), #020308 66%);
}

body[data-mood="gray-fog"] .sky-backdrop,
body[data-mood="gray-deep"] .sky-backdrop {
  background: linear-gradient(180deg, #272b34 0%, #171a21 62%, #0e1015 100%);
}

body[data-mood="color-bloom"] .sky-backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(246, 207, 125, 0.42), transparent 54%),
    radial-gradient(circle at 18% 24%, rgba(111, 140, 255, 0.42), transparent 58%),
    radial-gradient(circle at 84% 72%, rgba(255, 145, 185, 0.36), transparent 58%),
    linear-gradient(180deg, #1c1f54 0%, #090d26 100%);
}

body[data-mood="warm-heart"] .sky-backdrop {
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 132, 168, 0.26), transparent 58%),
    radial-gradient(circle at 78% 80%, rgba(246, 207, 125, 0.2), transparent 52%),
    linear-gradient(180deg, #1e1026 0%, #070714 100%);
}

body[data-mood="gallery"] .sky-backdrop {
  background:
    radial-gradient(circle at 50% 10%, rgba(246, 198, 114, 0.28), transparent 56%),
    radial-gradient(circle at 15% 60%, rgba(134, 114, 238, 0.2), transparent 56%),
    linear-gradient(180deg, #17132c 0%, #060814 100%);
}

body[data-mood="nois-dois"] .sky-backdrop {
  background:
    radial-gradient(ellipse at 50% 24%, rgba(246, 207, 125, 0.36), transparent 58%),
    radial-gradient(circle at 22% 68%, rgba(255, 152, 188, 0.3), transparent 56%),
    radial-gradient(circle at 82% 72%, rgba(235, 165, 92, 0.25), transparent 54%),
    linear-gradient(180deg, #241428 0%, #120c1d 58%, #070612 100%);
}

body[data-mood="sunrise"] .sky-backdrop {
  background: linear-gradient(180deg, #0d173c 0%, #2b2763 38%, #7b4664 72%, #dc9258 100%);
}

body[data-mood="sacred-book"] .sky-backdrop {
  background:
    radial-gradient(ellipse at 50% 90%, rgba(246, 207, 125, 0.36), transparent 60%),
    linear-gradient(180deg, #060816 0%, #120f1f 100%);
}

body[data-mood="projector"] .sky-backdrop {
  background: linear-gradient(180deg, #070912 0%, #04050b 100%);
}

body[data-mood="finale"] .sky-backdrop {
  background:
    radial-gradient(ellipse at 50% 35%, rgba(246, 207, 125, 0.32), transparent 62%),
    radial-gradient(circle at 50% 95%, rgba(167, 139, 250, 0.3), transparent 58%),
    linear-gradient(180deg, #131840 0%, #050713 100%);
}

.aurora-layer {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 90deg at 50% 50%, rgba(111, 140, 255, 0.16), rgba(246, 207, 125, 0.12), rgba(177, 149, 255, 0.18), rgba(111, 140, 255, 0.16));
  opacity: calc(0.3 + var(--audio-pulse) * 0.5);
  transform: scale(calc(1 + var(--audio-pulse) * 0.1));
  animation: slowAuroraSpin 26s linear infinite;
}

body[data-mood="blackout"] .aurora-layer,
body[data-mood="gray-fog"] .aurora-layer,
body[data-mood="gray-deep"] .aurora-layer { opacity: 0.03; }

@keyframes slowAuroraSpin { to { transform: rotate(360deg) scale(1.08); } }

.god-rays {
  position: absolute;
  top: -15%;
  left: -10%;
  right: -10%;
  height: 85%;
  background: repeating-linear-gradient(108deg, rgba(255, 255, 255, 0) 0%, rgba(246, 207, 125, 0.068) 7%, rgba(255, 255, 255, 0) 15%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  opacity: 0.62;
  animation: swayRays 14s ease-in-out infinite alternate;
}

@keyframes swayRays {
  from { transform: translate3d(-3%, 0, 0) skewX(-4deg); }
  to { transform: translate3d(3%, 0, 0) skewX(4deg); }
}

.ceiling-spotlight {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 110vh;
  background: conic-gradient(from 164deg at 50% 0%, transparent 0deg, rgba(246, 207, 125, 0.34) 16deg, transparent 32deg);
  opacity: 0;
  transition: opacity 0.9s ease;
}

body[data-mood="royal-gold"] .ceiling-spotlight { opacity: 1; }

/* Lua + Relógio da Madrugada */
.moon-rig {
  position: absolute;
  top: calc(74px + var(--safe-top));
  right: 6%;
  width: 102px;
  height: 102px;
  opacity: 0;
  transform: translate3d(0, -28px, 0) scale(0.86);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-mood="midnight"] .moon-rig { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.moon-halo { position: absolute; inset: -45%; border-radius: 50%; background: radial-gradient(circle, rgba(246, 207, 125, 0.34), transparent 68%); }
.moon-disc-svg { width: 100%; height: 100%; position: relative; z-index: 1; }
.night-cloud { position: absolute; height: 24px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(165, 190, 245, 0.24), transparent); z-index: 2; }
.cloud-1 { width: 160px; top: 52px; left: -40px; animation: driftCloud 11s ease-in-out infinite alternate; }
.cloud-2 { width: 130px; top: 74px; left: -16px; animation: driftCloud 15s ease-in-out infinite alternate-reverse; }
@keyframes driftCloud { from { transform: translate3d(-20px, 0, 0); } to { transform: translate3d(24px, 0, 0); } }

.bg-night-clock {
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translate3d(-50%, -50%, 0);
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  width: 92%;
}

body[data-mood="midnight"] .bg-night-clock,
body[data-mood="stare-dark"] .bg-night-clock { opacity: 1; }

#bg-clock-time {
  display: block;
  font-family: var(--font-instrument);
  font-size: clamp(3.4rem, 14vw, 6.4rem);
  color: rgba(246, 207, 125, 0.13);
  line-height: 1;
}

#bg-clock-caption {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 207, 125, 0.48);
}

/* Neblina + Onda de Choque */
.gray-fog-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
body[data-mood="gray-fog"] .gray-fog-layer,
body[data-mood="gray-deep"] .gray-fog-layer { opacity: 1; }
.fog-band { position: absolute; left: -30%; width: 160%; height: 45%; background: radial-gradient(ellipse at 50% 50%, rgba(150, 158, 175, 0.24), transparent 70%); }
.fog-1 { bottom: 8%; animation: fogMove 13s ease-in-out infinite alternate; }
.fog-2 { top: 18%; animation: fogMove 17s ease-in-out infinite alternate-reverse; }
@keyframes fogMove { from { transform: translate3d(-8%, 0, 0); } to { transform: translate3d(8%, 0, 0); } }

.color-shockwave {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0) scale(0);
  background: radial-gradient(circle, rgba(246, 207, 125, 0.72) 0%, rgba(177, 149, 255, 0.52) 45%, transparent 72%);
  opacity: 0;
}

.color-shockwave.boom { animation: shockwaveExpand 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes shockwaveExpand {
  0% { transform: translate3d(-50%, -50%, 0) scale(0.2); opacity: 1; }
  100% { transform: translate3d(-50%, -50%, 0) scale(50); opacity: 0; }
}

/* Sol Nascendo + Livro + Projetor */
.sunrise-rig { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
body[data-mood="sunrise"] .sunrise-rig { opacity: 1; }
.rising-sun {
  position: absolute;
  left: 50%;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffdf0 0%, #fbd682 42%, rgba(246, 150, 75, 0) 74%);
  box-shadow: 0 0 105px rgba(251, 214, 130, 0.75);
  transform: translate3d(-50%, calc((1 - var(--sunrise-progress)) * 130px), 0);
}
.horizon-glow { position: absolute; bottom: 0; left: 0; right: 0; height: 40%; background: linear-gradient(0deg, rgba(251, 198, 112, 0.46), transparent); }
.horizon-silhouette { position: absolute; bottom: 0; left: -5%; right: -5%; height: 46px; background: #060711; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }

.sacred-book-rig {
  position: absolute;
  bottom: calc(14px + var(--safe-bottom));
  left: 50%;
  transform: translate3d(-50%, 24px, 0);
  width: 160px;
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
}
body[data-mood="sacred-book"] .sacred-book-rig { opacity: 1; transform: translate3d(-50%, 0, 0); }
.book-light-pillar { position: absolute; bottom: 30px; left: 50%; width: 290px; height: 68vh; transform: translate3d(-50%, 0, 0); background: radial-gradient(ellipse at 50% 100%, rgba(246, 207, 125, 0.38), rgba(177, 149, 255, 0.09) 54%, transparent 78%); }
.sacred-book-svg { width: 138px; height: 86px; position: relative; z-index: 2; filter: drop-shadow(0 0 26px rgba(246, 207, 125, 0.65)); animation: floatBook 4s ease-in-out infinite; }
@keyframes floatBook { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -6px, 0); } }
.sacred-book-svg .wing-l { fill: rgba(246, 207, 125, 0.22); stroke: var(--accent-gold); stroke-width: 2.2; }
.sacred-book-svg .wing-r { fill: rgba(177, 149, 255, 0.22); stroke: var(--accent-gold); stroke-width: 2.2; }

.projector-beam {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 110vh;
  background: conic-gradient(from 166deg at 50% 0%, transparent 0deg, rgba(246, 207, 125, 0.2) 14deg, transparent 28deg);
  opacity: 0;
  transition: opacity 0.9s ease;
}
body[data-mood="projector"] .projector-beam { opacity: 1; animation: projectorFlicker 4s infinite; }
@keyframes projectorFlicker { 0%, 100% { opacity: 0.96; } 50% { opacity: 0.78; } 52% { opacity: 1; } }

#cinema-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 48%, rgba(2, 3, 9, 0.82) 100%); }
.cinema-letterbox-top, .cinema-letterbox-bottom { position: absolute; left: 0; right: 0; height: 12px; background: rgba(1, 2, 6, 0.78); }
.cinema-letterbox-top { top: 0; }
.cinema-letterbox-bottom { bottom: 0; }
.film-grain {
  position: absolute;
  inset: 0;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   BARRA DE PROGRESSO, TRILHO LATERAL E PLAYER DO TOPO
   ========================================================================== */
#scroll-progress { position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet), var(--accent-gold)); z-index: 150; opacity: 0; }
body.story-started #scroll-progress { opacity: 1; }

/* Véu atmosférico no topo para o texto derreter suave antes de encostar no Player da Anita! */
.top-player-veil {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(96px + var(--safe-top));
  z-index: 125;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 18, 0.96) 0%,
    rgba(5, 7, 18, 0.82) 56%,
    rgba(5, 7, 18, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.story-started .top-player-veil {
  opacity: 1;
}

.chapter-rail { position: fixed; right: 10px; top: 50%; transform: translate3d(0, -50%, 0); z-index: 120; display: flex; flex-direction: column; gap: 8px; opacity: 0; pointer-events: none; transition: opacity 0.6s ease; }
body.story-started .chapter-rail { opacity: 0.88; pointer-events: auto; }
.chapter-rail button { width: 7px; height: 7px; border-radius: 999px; border: none; background: rgba(255, 255, 255, 0.25); cursor: pointer; transition: height 0.3s ease, background 0.3s ease; }
.chapter-rail button.active { height: 20px; background: var(--accent-gold); box-shadow: 0 0 10px var(--accent-gold); }

/* Entrada Grandiosa: Nebulosa Viva, Anéis Celestiais, Filigrana Dourada e Veludo */
.spotlight-cone { position: absolute; top: -12%; left: 0; width: 100%; height: 95vh; background: conic-gradient(from 164deg at 50% 0%, transparent 0deg, rgba(246, 207, 125, 0.22) 16deg, transparent 32deg); pointer-events: none; }
.spotlight-cone.strong { background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(246, 207, 125, 0.28) 20deg, transparent 40deg); }

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(20px + var(--safe-top)) 16px calc(22px + var(--safe-bottom));
  /* Semi-transparente para mostrar as estrelas, partículas e micro-corações vivos do canvas atrás! */
  background: radial-gradient(ellipse at 50% 25%, rgba(28, 22, 58, 0.62) 0%, rgba(5, 7, 18, 0.84) 76%);
  transition: opacity 0.85s ease, visibility 0.85s;
  overflow-x: hidden;
  overflow-y: auto;
}

.lock-screen.hidden-screen { opacity: 0; visibility: hidden; pointer-events: none; }

.gate-nebula {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 26% 22%, rgba(246, 207, 125, 0.28), transparent 44%),
    radial-gradient(circle at 76% 20%, rgba(177, 149, 255, 0.3), transparent 46%),
    radial-gradient(circle at 50% 80%, rgba(255, 150, 188, 0.2), transparent 48%);
  animation: nebulaBreathe 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes nebulaBreathe {
  0% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  100% { transform: scale(1.12) rotate(5deg); opacity: 1; }
}

.gate-godrays {
  position: fixed;
  top: -18%;
  left: -10%;
  right: -10%;
  height: 92%;
  background:
    conic-gradient(from 154deg at 50% 0%, transparent 0deg, rgba(246, 207, 125, 0.28) 14deg, transparent 26deg, rgba(177, 149, 255, 0.2) 38deg, transparent 52deg);
  animation: swayGateBeam 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes swayGateBeam {
  from { transform: rotate(-3deg) scale(1.02); }
  to { transform: rotate(3deg) scale(1.06); }
}

.celestial-rings {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(124vw, 620px);
  height: min(124vw, 620px);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  opacity: 0.92;
}

.ring-spin-slow {
  transform-origin: 300px 300px;
  animation: spinSlow 52s linear infinite;
}

.ring-spin-reverse {
  transform-origin: 300px 300px;
  animation: spinSlowReverse 36s linear infinite;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes spinSlowReverse { to { transform: rotate(-360deg); } }

.grand-royal-card {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 446px;
  background:
    radial-gradient(circle at 50% 0%, rgba(246, 207, 125, 0.16), transparent 58%),
    linear-gradient(168deg, rgba(23, 28, 64, 0.82) 0%, rgba(11, 14, 34, 0.9) 55%, rgba(8, 10, 24, 0.94) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(246, 207, 125, 0.44);
  outline: 1px solid rgba(246, 207, 125, 0.16);
  outline-offset: -8px;
  border-radius: 32px;
  padding: 34px 24px 30px;
  box-shadow:
    0 32px 95px rgba(0, 0, 0, 0.82),
    0 0 60px rgba(246, 207, 125, 0.14),
    inset 0 1px 0 rgba(255, 248, 220, 0.25);
  text-align: center;
  overflow: hidden;
  animation: grandGateCardReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes grandGateCardReveal {
  0% { opacity: 0; transform: translate3d(0, 34px, 0) scale(0.94); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* Textura sutil de papel/veludo nobre dentro do convite */
.grand-royal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='t'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23t)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Reflexo diagonal dourado vivo atravessando o convite */
.card-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -130%;
  width: 75%;
  height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 245, 210, 0.09) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: royalCardSweep 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes royalCardSweep {
  0%, 55% { left: -130%; }
  100% { left: 165%; }
}

/* Cantoneiras Imperiais Douradas */
.filigree {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(246, 207, 125, 0.72);
  border-style: solid;
  pointer-events: none;
}

.filigree.tl { top: 13px; left: 13px; border-width: 2px 0 0 2px; border-top-left-radius: 10px; }
.filigree.tr { top: 13px; right: 13px; border-width: 2px 2px 0 0; border-top-right-radius: 10px; }
.filigree.bl { bottom: 13px; left: 13px; border-width: 0 0 2px 2px; border-bottom-left-radius: 10px; }
.filigree.br { bottom: 13px; right: 13px; border-width: 0 2px 2px 0; border-bottom-right-radius: 10px; }

/* Sequência coreografada de entrada dos elementos internos */
.gate-entrance-seq > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: gateItemRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gate-entrance-seq > *:nth-child(1) { animation-delay: 0.18s; }
.gate-entrance-seq > *:nth-child(2) { animation-delay: 0.34s; }
.gate-entrance-seq > *:nth-child(3) { animation-delay: 0.52s; }
.gate-entrance-seq > *:nth-child(4) { animation-delay: 0.68s; }
.gate-entrance-seq > *:nth-child(5) { animation-delay: 0.84s; }
.gate-entrance-seq > *:nth-child(6) { animation-delay: 1.0s; }

@keyframes gateItemRise {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.crest-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ribbon-line {
  height: 1px;
  width: 28px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.eyebrow { display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 12px; }

/* Brasão com Coroa Vetorial se Desenhando e Flutuando */
.royal-crest-medallion {
  position: relative;
  width: 88px;
  height: 78px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.royal-crest-medallion.small {
  width: 68px;
  height: 62px;
}

@keyframes crownLevitate {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}

.medallion-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 207, 125, 0.42), rgba(177, 149, 255, 0.16) 52%, transparent 72%);
  animation: haloPulse 2.8s ease-in-out infinite alternate;
}

@keyframes haloPulse {
  from { transform: scale(0.92); opacity: 0.72; }
  to { transform: scale(1.14); opacity: 1; }
}

.crest-crown-svg {
  width: 80px;
  height: 60px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 6px 20px rgba(246, 207, 125, 0.65));
  animation: crownLevitate 3.4s ease-in-out infinite;
}

.crest-crown-path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: drawGateCrown 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

@keyframes drawGateCrown {
  to { stroke-dashoffset: 0; }
}

.grand-gate-title {
  font-family: var(--font-instrument);
  font-size: clamp(3.15rem, 12vw, 4.2rem);
  font-weight: 400;
  line-height: 0.96;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

.grand-gate-title em {
  font-style: italic;
  background: linear-gradient(110deg, #fae2a4 0%, #ffffff 38%, #e5aa49 62%, #fff6d6 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidShine 4.5s linear infinite;
}

.gate-sweet-whisper {
  font-family: var(--font-hand);
  font-size: 1.38rem;
  line-height: 1.2;
  color: #ffd6e4;
  margin-bottom: 16px;
}

.riddle-parchment-box {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 248, 225, 0.06), rgba(167, 139, 250, 0.06));
  border: 1px solid rgba(246, 207, 125, 0.28);
  border-radius: 20px;
  padding: 16px 16px 15px;
  margin-bottom: 18px;
}

.parchment-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 7px;
  opacity: 0.9;
}

.lock-title { font-family: var(--font-instrument); font-size: 2.75rem; font-weight: 400; line-height: 1.05; color: #ffffff; margin-bottom: 14px; }
.lock-riddle { font-size: 0.94rem; color: #e8ecff; line-height: 1.62; margin-bottom: 0; }
.lock-form { display: flex; flex-direction: column; gap: 12px; }

.royal-input-wrap {
  position: relative;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(120deg, rgba(246, 207, 125, 0.5), rgba(177, 149, 255, 0.35), rgba(246, 207, 125, 0.5));
}

.lock-input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 16.5px;
  border: none;
  background: rgba(6, 9, 22, 0.94);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  text-align: center;
  outline: none;
  transition: box-shadow 0.25s, background 0.25s;
}

.lock-input::placeholder { color: rgba(210, 216, 245, 0.48); }
.lock-input:focus { background: rgba(9, 13, 32, 0.98); box-shadow: 0 0 24px rgba(246, 207, 125, 0.22); }
.lock-input.shake { animation: gentleShake 0.42s ease; box-shadow: 0 0 0 2px var(--accent-rose); }
@keyframes gentleShake { 0%, 100% { transform: translate3d(0, 0, 0); } 25% { transform: translate3d(-7px, 0, 0); } 50% { transform: translate3d(6px, 0, 0); } 75% { transform: translate3d(-4px, 0, 0); } }

.btn-primary {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 16px 22px;
  border-radius: 18px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 700;
  color: #090c1c;
  background: linear-gradient(135deg, #fff0be 0%, #f3c46b 48%, #df9f39 100%);
  box-shadow: 0 14px 36px rgba(246, 207, 125, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-imperial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: pulseGlow 2.8s ease-in-out infinite;
}

.btn-primary:active { transform: scale(0.97); }
.spark-icon { display: inline-block; animation: spinSlow 8s linear infinite; }

.silent-mode-tip {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(246, 207, 125, 0.86);
  letter-spacing: 0.02em;
}

.lock-feedback { margin-top: 12px; font-size: 0.88rem; color: var(--accent-rose); min-height: 20px; }
.hints-stack { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; text-align: left; }
.hint-pill { background: rgba(111, 140, 255, 0.13); border: 1px solid rgba(246, 207, 125, 0.26); border-radius: 14px; padding: 11px 14px; font-size: 0.86rem; color: #e8ecff; }
.hint-pill strong { color: var(--accent-gold); }
.first-try-box { display: none; }
.first-try-box.active { display: block; animation: grandGateCardReveal 0.55s ease both; }
.first-try-crown { font-size: 2.6rem; margin-bottom: 6px; }
.first-try-note { font-size: 0.93rem; color: var(--text-soft); margin: 8px 0 16px; }

.player-stage { position: fixed; inset: 0; z-index: 180; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(24px + var(--safe-top)) 20px calc(28px + var(--safe-bottom)); background: rgba(4, 6, 14, 0.92); overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.65s ease, visibility 0.65s; }
.player-stage.visible { opacity: 1; visibility: visible; pointer-events: auto; }
.player-stage.docking { opacity: 0; pointer-events: none; }
.player-stage.docked-away { opacity: 0; visibility: hidden; pointer-events: none; display: none; }
.stage-intro { position: relative; z-index: 2; text-align: center; max-width: 400px; margin-bottom: 24px; }
.stage-title { font-family: var(--font-instrument); font-size: 2.9rem; font-weight: 400; color: #ffffff; margin-bottom: 8px; line-height: 1.05; }
.stage-sub { font-size: 0.96rem; color: var(--text-soft); }
.hero-player-card { position: relative; z-index: 2; width: 100%; max-width: 380px; background: linear-gradient(165deg, rgba(22, 30, 68, 0.92), rgba(9, 12, 30, 0.96)); border: 1px solid rgba(246, 207, 125, 0.34); border-radius: 30px; padding: 26px 22px 24px; box-shadow: 0 32px 90px rgba(0, 0, 0, 0.82); text-align: center; transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease; }
.player-stage.docking .hero-player-card { transform: translate3d(0, -44vh, 0) scale(0.42); opacity: 0; }
.player-badge { display: inline-flex; padding: 5px 13px; border-radius: 999px; background: rgba(246, 207, 125, 0.14); border: 1px solid rgba(246, 207, 125, 0.35); color: var(--accent-gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.vinyl-showcase { position: relative; width: 192px; height: 168px; margin: 0 auto 18px; display: flex; align-items: center; }
.vinyl-aura { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 207, 125, 0.26), transparent 68%); transform: scale(calc(1 + var(--audio-pulse) * 0.26)); }
.album-sleeve { width: 148px; height: 148px; border-radius: 18px; position: relative; z-index: 2; background: linear-gradient(135deg, #322156 0%, #15265a 55%, #0b1129 100%); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; text-align: left; }
.sleeve-tag { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-gold); font-weight: 700; }
.sleeve-art-title { font-family: var(--font-serif); font-size: 1.32rem; line-height: 1.08; color: #ffffff; font-weight: 700; }
.sleeve-art-artist { font-size: 0.74rem; color: var(--text-soft); margin-top: 3px; }
.vinyl-disc { width: 138px; height: 138px; border-radius: 50%; position: absolute; right: 2px; top: 15px; z-index: 1; background: radial-gradient(circle, #0b0e1c 0 14%, #eab657 15% 28%, #141829 29% 32%, #1e243d 33% 50%, #101425 51% 68%, #1d2239 69% 84%, #0d101f 85% 100%); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75); animation: spinVinyl 7s linear infinite; animation-play-state: paused; }
body.music-playing .vinyl-disc, body.music-playing .mini-vinyl { animation-play-state: running; }
@keyframes spinVinyl { to { transform: rotate(360deg); } }
.hero-song-title { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 700; color: #ffffff; }
.hero-song-artist { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }
.hero-song-caption { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-violet); margin-bottom: 20px; }
.hero-play-btn { width: 100%; padding: 16px 24px; border-radius: 999px; border: none; cursor: pointer; font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: #080c1e; background: linear-gradient(135deg, #fae19f 0%, #e8b350 100%); box-shadow: 0 12px 38px rgba(246, 207, 125, 0.4); display: inline-flex; align-items: center; justify-content: center; gap: 10px; animation: pulseGlow 2.4s ease-in-out infinite; }
@keyframes pulseGlow { 0%, 100% { transform: scale(1); box-shadow: 0 12px 34px rgba(246, 207, 125, 0.34); } 50% { transform: scale(1.02); box-shadow: 0 16px 48px rgba(246, 207, 125, 0.56); } }

.top-player { position: fixed; top: calc(14px + var(--safe-top)); left: 50%; transform: translate3d(-50%, -150%, 0); width: calc(100% - 28px); max-width: 450px; z-index: 135; background: rgba(10, 14, 32, 0.84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(246, 207, 125, 0.26); border-radius: 22px; padding: 9px 13px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 calc(16px + var(--audio-pulse) * 32px) rgba(246, 207, 125, 0.2); transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1); }
body.story-started .top-player { transform: translate3d(-50%, 0, 0); }
.top-player-bar { display: flex; align-items: center; gap: 11px; }
.mini-vinyl { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: radial-gradient(circle, #090d1f 0 16%, #eab657 17% 34%, #181f38 35% 68%, #0d1226 69% 100%); border: 1px solid rgba(246, 207, 125, 0.45); animation: spinVinyl 6s linear infinite; animation-play-state: paused; }
.top-track-meta { flex: 1; min-width: 0; cursor: pointer; }
.top-player-label { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-gold); }
.eq-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq-bars i { display: block; width: 2px; height: 3px; background: var(--accent-gold); border-radius: 2px; }
body.music-playing .eq-bars i:nth-child(1) { animation: eqBounce 0.55s ease-in-out infinite alternate; }
body.music-playing .eq-bars i:nth-child(2) { animation: eqBounce 0.42s ease-in-out 0.1s infinite alternate; }
body.music-playing .eq-bars i:nth-child(3) { animation: eqBounce 0.62s ease-in-out 0.2s infinite alternate; }
body.music-playing .eq-bars i:nth-child(4) { animation: eqBounce 0.48s ease-in-out 0.15s infinite alternate; }
@keyframes eqBounce { from { height: 2px; } to { height: 10px; } }
.top-track-name { font-size: 0.86rem; font-weight: 600; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08); color: #ffffff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.86rem; flex-shrink: 0; }
.icon-btn.gold { background: linear-gradient(135deg, #f8d98f, #eab657); color: #090d20; border: none; font-weight: 700; }
.top-player-drawer { display: none; padding-top: 12px; margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.top-player.expanded .top-player-drawer { display: block; }
.seek-row, .vol-row { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.time-txt { font-size: 0.72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.range-slider { flex: 1; accent-color: var(--accent-gold); height: 5px; cursor: pointer; }
.playlist-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.track-tab { padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); color: var(--text-soft); font-family: var(--font-sans); font-size: 0.76rem; text-align: left; cursor: pointer; }
.track-tab strong { display: block; color: #ffffff; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-tab.active { background: rgba(246, 207, 125, 0.15); border-color: rgba(246, 207, 125, 0.5); color: var(--accent-gold); }

/* ==========================================================================
   FLUXO CONTÍNUO E ORGÂNICO DE CENAS (ZERO VÃOS VAZIOS ENTRE MUDANÇAS DE FASE!)
   ========================================================================== */
#cinema-story {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.9s ease;
  padding-top: calc(96px + var(--safe-top));
  padding-bottom: calc(64px + var(--safe-bottom));
}

body.story-started #cinema-story { opacity: 1; }

.cinema-shot {
  position: relative;
  min-height: auto;
  width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 42px 22px 46px;
}

/* Primeira cena e grande final ganham respiro nobre sem criar buraco */
#cap-01 > .cinema-shot:first-child {
  min-height: calc(78dvh - 80px);
  padding-top: 24px;
}

.layout-oscar-finale {
  padding-top: 56px;
}

.shot-with-book {
  padding-bottom: 54px;
}

/* Fio luminoso conector vivo entre cada cena (desenha junto com o dedo!) */
.story-thread {
  position: relative;
  width: 2px;
  height: 54px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: visible;
}

.story-thread-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(180deg, rgba(177, 149, 255, 0.75), rgba(246, 207, 125, 0.9));
  box-shadow: 0 0 12px rgba(246, 207, 125, 0.55);
}

.story-thread-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  font-size: 0.65rem;
  color: rgba(246, 207, 125, 0.68);
  text-shadow: 0 0 10px rgba(246, 207, 125, 0.65);
}

/* Esconder botões antigos de pulo brusco para privilegiar o fluxo líquido contínuo */
.next-shot-cue {
  display: none !important;
}

/* Textos dourados líquidos em movimento contínuo! */
.liquid-gold-text,
.shimmer-inline {
  background: linear-gradient(110deg, #f3ca74 0%, #fffbe6 32%, #e0a145 55%, #fff5cc 78%, #f3ca74 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidShine 4.5s linear infinite;
}

@keyframes liquidShine {
  to { background-position: 220% center; }
}

/* Letras com flutuação contínua viva (nunca ficam congeladas!) */
.wave-char {
  display: inline-block;
  animation: gentleCharFloat 3.6s ease-in-out infinite;
  animation-delay: var(--cd, 0ms);
}

@keyframes gentleCharFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}

.mono-stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-violet);
  margin-bottom: 14px;
}

.mono-stamp.gold { color: var(--accent-gold); }

.glow-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 calc(18px + var(--audio-pulse) * 20px) rgba(246, 207, 125, 0.55);
}

.hand-note {
  font-family: var(--font-hand);
  font-size: 1.42rem;
  color: var(--accent-gold);
}

.next-shot-cue {
  margin-top: 26px;
  appearance: none;
  border: 1px solid rgba(246, 207, 125, 0.3);
  background: rgba(246, 207, 125, 0.08);
  color: var(--accent-gold);
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.next-shot-cue.align-left { align-self: flex-start; }
.next-shot-cue i { font-style: normal; display: inline-block; animation: bobArrow 1.7s ease-in-out infinite; }
@keyframes bobArrow { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, 5px, 0); } }

/* ==========================================================================
   ATO I — IDENTIDADE EXCLUSIVA: CADERNO ASSIMÉTRICO ESQUERDO + TINTA À MÃO
   ========================================================================== */
.bleed-num-left {
  position: absolute;
  left: -18px;
  top: 16%;
  font-family: var(--font-instrument);
  font-size: clamp(9rem, 36vw, 16rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(246, 207, 125, 0.14);
  pointer-events: none;
}

.editorial-margin-line {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  padding-left: 22px;
  border-left: 2px solid rgba(246, 207, 125, 0.45);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.poster-serif-left {
  font-family: var(--font-instrument);
  font-size: clamp(2.85rem, 10.5vw, 4.7rem);
  font-weight: 400;
  line-height: 0.98;
  color: #ffffff;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.poster-serif-left em {
  color: var(--accent-gold);
  font-style: italic;
}

.ink-body-left {
  font-size: clamp(1.06rem, 3.7vw, 1.24rem);
  color: #eef1ff;
  text-align: left;
  line-height: 1.72;
}

.ink-sub-left {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--text-soft);
  text-align: left;
}

.hand-underline {
  position: relative;
  color: #fff6dc;
  font-weight: 600;
  border-bottom: 2px wavy var(--accent-gold);
  padding-bottom: 2px;
}

.doodle-grid {
  width: 100%;
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 680px) {
  .doodle-grid { grid-template-columns: 1.35fr 0.85fr; }
}

.hand-shoutout {
  font-family: var(--font-hand);
  font-size: clamp(2rem, 7vw, 2.75rem);
  color: var(--accent-rose);
  line-height: 1.1;
  margin: 12px 0;
  transform: rotate(-1.8deg);
  animation: floatNote 3.5s ease-in-out infinite;
}

@keyframes floatNote {
  0%, 100% { transform: rotate(-1.8deg) translate3d(0, 0, 0); }
  50% { transform: rotate(1.2deg) translate3d(0, -5px, 0); }
}

.tilted-sketch-note {
  background: rgba(255, 158, 181, 0.08);
  border: 1.5px dashed rgba(255, 158, 181, 0.42);
  border-radius: 24px;
  padding: 22px 18px;
  text-align: center;
  transform: rotate(3.2deg);
  animation: floatSketch 4.2s ease-in-out infinite;
}

@keyframes floatSketch {
  0%, 100% { transform: rotate(3.2deg) translate3d(0, 0, 0); }
  50% { transform: rotate(1.4deg) translate3d(0, -7px, 0); }
}

.sad-heart-svg { width: 84px; height: 76px; filter: drop-shadow(0 0 18px rgba(255, 158, 181, 0.5)); }
.sad-heart-svg .draw-stroke { fill: none; stroke: var(--accent-rose); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 280; stroke-dashoffset: 280; transition: stroke-dashoffset 1.6s ease 0.25s; }
.sad-heart-svg .draw-stroke.delay { transition-delay: 0.85s; }
.cinema-shot.in-frame .sad-heart-svg .draw-stroke { stroke-dashoffset: 0; }
.sketch-label { display: block; margin-top: 8px; font-family: var(--font-hand); font-size: 1.32rem; color: #ffc8d6; }

/* Confissão alinhada à direita */
.confession-right-wrap {
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  padding-right: 18px;
  border-right: 2px solid rgba(177, 149, 255, 0.48);
  text-align: right;
}

.syne-side-title {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 800;
  line-height: 1.06;
  color: #ffffff;
  margin-bottom: 18px;
}

.ink-body-right {
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.72;
}

.hand-quote-large {
  margin-top: 20px;
  font-family: var(--font-hand);
  font-size: clamp(1.7rem, 5.8vw, 2.3rem);
  line-height: 1.2;
  color: var(--accent-gold);
}

.stamp-centerpiece { width: 100%; max-width: 620px; text-align: center; }
.script-whisper { display: block; font-family: var(--font-hand); font-size: 1.65rem; color: var(--accent-violet); margin-bottom: 4px; }
.monument-instrument {
  font-family: var(--font-instrument);
  font-size: clamp(3.2rem, 12vw, 5.6rem);
  font-weight: 400;
  line-height: 0.96;
  color: #ffffff;
  margin-bottom: 22px;
}
.monument-instrument em { color: var(--accent-gold); font-style: italic; }
.editorial-narrow { max-width: 530px; margin: 0 auto; font-size: 1.06rem; color: #e8ecff; line-height: 1.72; }

/* ==========================================================================
   ATO II — IDENTIDADE EXCLUSIVA: MARQUEE GIGANTE + GLITCH + TELA DE IPHONE
   ========================================================================== */
.bg-kinetic-marquee,
.chat-stream-band {
  position: absolute;
  left: 0;
  right: 0;
  top: 14%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.12;
}

.marquee-track {
  display: flex;
  width: max-content;
  font-family: var(--font-syne);
  font-size: clamp(3.4rem, 13vw, 6.8rem);
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px #9cb4ff;
  animation: marqueeRoll 24s linear infinite;
}

.marquee-track.fast {
  font-size: clamp(2rem, 8vw, 4rem);
  animation-duration: 18s;
}

@keyframes marqueeRoll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.diagonal-content { width: 100%; max-width: 620px; position: relative; z-index: 2; }

.insta-follow-toast {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 18px;
  background: rgba(16, 24, 58, 0.85);
  border: 1px solid rgba(111, 140, 255, 0.42);
  margin-bottom: 22px;
  text-align: left;
  animation: floatSketch 4.6s ease-in-out infinite;
}

.insta-dot { width: 11px; height: 11px; border-radius: 50%; background: #4f8bff; box-shadow: 0 0 12px #4f8bff; flex-shrink: 0; }
.insta-follow-toast strong { color: #fff; font-size: 0.92rem; }
.insta-follow-toast small { display: block; font-size: 0.74rem; color: var(--text-muted); }

.syne-display-left {
  font-family: var(--font-syne);
  font-size: clamp(2.45rem, 8.6vw, 4.2rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-align: left;
  color: #ffffff;
  margin-bottom: 20px;
}

.syne-display-left span {
  color: var(--accent-gold);
  font-family: var(--font-instrument);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
}

.editorial-right-offset {
  margin-left: auto;
  max-width: 490px;
  text-align: left;
  font-size: 1.05rem;
  color: #dfe5ff;
  padding-left: 16px;
  border-left: 1px solid rgba(111, 140, 255, 0.4);
}

/* Terminal Glitch no Bloqueio */
.blackout-terminal {
  width: 100%;
  max-width: 580px;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(5, 8, 18, 0.86);
  border: 1px solid rgba(255, 110, 140, 0.35);
  text-align: left;
}

.mono-glitch-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #ff8fa8;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.glitch-heading {
  font-family: var(--font-syne);
  font-size: clamp(2.1rem, 7.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.02;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  text-shadow: -2px 0 rgba(255, 90, 130, 0.75), 2px 0 rgba(80, 180, 255, 0.75);
  animation: glitchJitter 2.8s infinite;
}

@keyframes glitchJitter {
  0%, 90%, 100% { transform: translate3d(0, 0, 0); }
  92% { transform: translate3d(-3px, 1px, 0) skewX(-3deg); }
  94% { transform: translate3d(3px, -1px, 0) skewX(3deg); }
  96% { transform: translate3d(-1px, 0, 0); }
}

.mono-cold-body {
  font-family: var(--font-sans);
  font-size: 1.03rem;
  color: #c6d0e8;
  line-height: 1.72;
}

.aurora-poster { width: 100%; max-width: 640px; text-align: center; }

.instrument-huge {
  font-family: var(--font-instrument);
  font-size: clamp(3.1rem, 11.5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.96;
  color: #ffffff;
}

.instrument-huge em { font-style: italic; color: #e2d4ff; }

.phone-wakeup-grid {
  width: 100%;
  max-width: 660px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 680px) {
  .phone-wakeup-grid { grid-template-columns: 1fr 1.05fr; }
}

.glowing-lockscreen-card {
  background: linear-gradient(160deg, rgba(24, 30, 68, 0.9), rgba(10, 14, 34, 0.95));
  border: 1px solid rgba(246, 207, 125, 0.45);
  border-radius: 30px;
  padding: 24px 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 40px rgba(177, 149, 255, 0.22);
  text-align: center;
}

.lockscreen-time {
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  margin-bottom: 16px;
}

.notif-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 15px 16px;
  display: flex;
  gap: 12px;
  text-align: left;
}

.notif-heart {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-violet));
  color: #080b1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.notif-bubble strong { display: block; font-size: 0.88rem; color: var(--accent-gold); margin-bottom: 4px; }
.notif-bubble p { font-size: 0.94rem; line-height: 1.56; color: #f2f4ff; }

/* ==========================================================================
   ATO III — IDENTIDADE EXCLUSIVA: COLAGEM ZIGUE-ZAGUE + LETRAS DANÇANTES
   ========================================================================== */
.collage-canvas {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collage-header-left { text-align: left; }

.syne-quirk-title {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 7vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
}

.syne-quirk-title em {
  font-family: var(--font-instrument);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2em;
  color: var(--accent-gold);
}

.sticker-card {
  background: rgba(22, 18, 48, 0.82);
  border: 1px solid rgba(255, 165, 205, 0.34);
  border-radius: 26px;
  padding: 20px 22px;
  text-align: left;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.sticker-card.tilt-pos-1 {
  transform: rotate(-1.6deg);
  align-self: flex-start;
  max-width: 540px;
}

.dancing-letters {
  font-family: var(--font-hand);
  font-size: clamp(1.9rem, 6.5vw, 2.5rem);
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.dance-char {
  display: inline-block;
  animation: shoulderWave 1.6s ease-in-out infinite;
  animation-delay: var(--dd, 0ms);
}

@keyframes shoulderWave {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -6px, 0) rotate(4deg); }
}

.sticker-card.pendulum-swing {
  align-self: flex-end;
  max-width: 520px;
  border-color: rgba(177, 149, 255, 0.42);
  transform-origin: top center;
  animation: headTiltPendulum 3.8s ease-in-out infinite;
}

@keyframes headTiltPendulum {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.4deg); }
}

.pendulum-heading {
  font-family: var(--font-instrument);
  font-style: italic;
  font-size: clamp(1.75rem, 5.8vw, 2.3rem);
  color: #ffd3e2;
  margin-bottom: 6px;
}

.rage-tease-wrap {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.rage-banner {
  background: linear-gradient(145deg, rgba(52, 18, 38, 0.82), rgba(20, 14, 38, 0.9));
  border: 1px solid rgba(255, 130, 165, 0.4);
  border-radius: 26px;
  padding: 22px;
  text-align: left;
}

.rage-jitter {
  display: inline-block;
  font-family: var(--font-syne);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ff9eb5;
  margin-bottom: 8px;
  animation: tinyRageTremble 2.2s infinite;
}

@keyframes tinyRageTremble {
  0%, 84%, 100% { transform: translate3d(0, 0, 0); }
  88% { transform: translate3d(-3px, -1px, 0) rotate(-1.5deg); }
  92% { transform: translate3d(3px, 1px, 0) rotate(1.5deg); }
  96% { transform: translate3d(-2px, 0, 0); }
}

.tease-contrast-box {
  background: rgba(15, 20, 46, 0.85);
  border: 1px solid rgba(246, 207, 125, 0.3);
  border-radius: 26px;
  padding: 22px;
  text-align: left;
}

.sweet-side {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: #dcd4ff;
  margin-bottom: 6px;
}

.strike-tease {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.crossed-word {
  font-family: var(--font-syne);
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: line-through;
  text-decoration-color: var(--accent-rose);
  text-decoration-thickness: 3px;
}

.arrow-hand {
  font-family: var(--font-hand);
  font-size: 1.55rem;
  color: var(--accent-gold);
}

.throne-center { width: 100%; max-width: 600px; text-align: center; }
.royal-crown-svg { width: 104px; height: 74px; margin: 0 auto 6px; display: block; filter: drop-shadow(0 0 28px rgba(246, 207, 125, 0.7)); }
.royal-crown-svg .crown-path { fill: rgba(246, 207, 125, 0.16); stroke: var(--accent-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 320; stroke-dashoffset: 320; transition: stroke-dashoffset 1.6s ease 0.25s; }
.cinema-shot.in-frame .royal-crown-svg .crown-path { stroke-dashoffset: 0; }

.liquid-queen-display {
  font-family: var(--font-instrument);
  font-size: clamp(4rem, 15vw, 6.8rem);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 14px;
  background: linear-gradient(110deg, #f3ca74 0%, #fffdf2 35%, #d69332 55%, #fff5cc 80%, #f3ca74 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidShine 4s linear infinite;
  filter: drop-shadow(0 8px 30px rgba(246, 207, 125, 0.35));
}

.secret-trigger-btn {
  appearance: none;
  background: rgba(246, 207, 125, 0.12);
  border: 1px dashed rgba(246, 207, 125, 0.55);
  color: #fff2cf;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   ATO IV — IDENTIDADE EXCLUSIVA: INTERFACE DE CALL AO VIVO + VÃO DA ENCARADA
   ========================================================================== */
.night-split-card {
  width: 100%;
  max-width: 600px;
  text-align: left;
}

.curfew-struck {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  opacity: 0.78;
}

.old-curfew {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: #ff9eb5;
  text-decoration: line-through;
}

.curfew-struck small { font-size: 0.84rem; color: var(--text-muted); }

.live-call-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #a7f3d0;
  margin-bottom: 18px;
}

.call-green-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: blinkCall 1.2s ease-in-out infinite;
}

@keyframes blinkCall { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.instrument-night-title {
  font-family: var(--font-instrument);
  font-size: clamp(2.8rem, 10vw, 4.6rem);
  font-weight: 400;
  line-height: 0.98;
  color: #ffffff;
  margin-bottom: 18px;
}

.instrument-night-title em { color: var(--accent-gold); font-style: italic; }
.night-constellation-text { font-size: 1.05rem; color: #dce3ff; line-height: 1.74; }

.stare-composition { width: 100%; max-width: 600px; text-align: center; }
.stare-arc-top { font-size: 1.08rem; color: #eef1ff; margin-bottom: 28px; }
.stare-arc-bottom { font-size: 1.02rem; color: var(--text-soft); margin-top: 28px; }

.staring-stage { display: flex; align-items: center; justify-content: center; gap: 52px; }
.soul-orb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-gold); box-shadow: 0 0 32px var(--accent-gold), 0 0 65px rgba(246, 207, 125, 0.55); animation: blinkOrb 3.1s ease-in-out infinite; }
.soul-orb.right { background: var(--accent-violet); box-shadow: 0 0 32px var(--accent-violet), 0 0 65px rgba(177, 149, 255, 0.55); animation-delay: 0.55s; }
@keyframes blinkOrb { 0%, 84%, 100% { transform: scale(1); } 90% { transform: scaleY(0.12) scaleX(1.15); } }
.soul-beam { width: 84px; height: 1.5px; background: linear-gradient(90deg, var(--accent-gold), var(--accent-violet)); opacity: 0.6; }

.hand-giant-thought {
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: clamp(1.85rem, 6.4vw, 2.55rem);
  line-height: 1.18;
  color: var(--accent-gold);
}

.whisper-night-box { width: 100%; max-width: 560px; margin-left: auto; text-align: left; }

/* ==========================================================================
   ATO V — IDENTIDADE EXCLUSIVA: GRID ASSIMÉTRICO + PÔSTER GIGANTE DE CORES
   ========================================================================== */
.chat-ease-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

@media (min-width: 680px) {
  .chat-ease-grid { grid-template-columns: 0.95fr 1.25fr; }
}

.chat-ease-copy p { font-size: 1.02rem; color: #e2e6f3; margin-bottom: 14px; text-align: left; }

.gray-rain-card { width: 100%; max-width: 540px; text-align: center; }

.cinema-story-card {
  margin: 18px auto 0;
  max-width: 350px;
  background: rgba(8, 10, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.cinema-story-header { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 11px; }
.cinema-story-pill { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.06); }
.story-typed-word { font-family: var(--font-mono); font-weight: 700; color: #ffffff; font-size: 1.05rem; }
.story-send-chip { font-size: 0.78rem; font-weight: 700; color: var(--accent-gold); }

.color-poster-typo {
  width: 100%;
  max-width: 680px;
  text-align: center;
  transform: scale(calc(1 + var(--audio-pulse) * 0.04));
}

.poster-line-1 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.poster-line-2 {
  font-family: var(--font-instrument);
  font-size: clamp(3.3rem, 12vw, 5.8rem);
  line-height: 0.94;
  color: #ffffff;
}

.poster-line-2 em { font-style: italic; color: #ffd4e4; }

.poster-line-3 {
  font-family: var(--font-syne);
  font-size: clamp(2.4rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 1.04;
  margin: 4px 0;
}

.poster-line-4 {
  font-family: var(--font-instrument);
  font-size: clamp(3rem, 11vw, 5.2rem);
  line-height: 1;
  color: #ffffff;
}

.poster-line-4 span {
  font-family: var(--font-hand);
  font-size: 0.72em;
  color: var(--accent-gold);
  display: inline-block;
  margin-left: 8px;
}

/* ==========================================================================
   ATO VI — IDENTIDADE EXCLUSIVA: REVISTA EDITORIAL + CAPITULAR + BILHETE
   ========================================================================== */
.magazine-spread { width: 100%; max-width: 600px; text-align: left; }

.instrument-editorial-head {
  font-family: var(--font-instrument);
  font-size: clamp(2.7rem, 9.6vw, 4.4rem);
  font-weight: 400;
  line-height: 0.98;
  color: #ffffff;
  margin-bottom: 22px;
}

.dropcap-paragraph {
  font-size: 1.07rem;
  color: #eaeeff;
  line-height: 1.78;
}

.giant-dropcap {
  float: left;
  font-family: var(--font-instrument);
  font-size: 5.1rem;
  line-height: 0.78;
  padding-right: 14px;
  padding-top: 6px;
  color: var(--accent-gold);
  text-shadow: 0 0 24px rgba(246, 207, 125, 0.45);
}

.woman-split {
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.woman-manifesto { text-align: left; max-width: 520px; }

.syne-manifesto {
  font-family: var(--font-syne);
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  color: #ffffff;
  margin-bottom: 16px;
}

.syne-manifesto span { color: var(--accent-gold); font-family: var(--font-instrument); font-style: italic; font-size: 1.15em; }

.pinned-corner-note {
  align-self: flex-end;
  max-width: 440px;
  position: relative;
  padding: 22px 22px 20px;
  background: linear-gradient(155deg, rgba(255, 158, 181, 0.16), rgba(246, 207, 125, 0.1));
  border: 1px solid rgba(255, 158, 181, 0.42);
  border-radius: 6px 24px 24px 24px;
  transform: rotate(2.1deg);
  text-align: left;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  animation: floatSketch 4.8s ease-in-out infinite;
}

.pin-dot {
  position: absolute;
  top: -7px;
  left: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 14px var(--accent-gold);
}

.pinned-corner-note p { font-size: 0.97rem; color: #f4f6ff; line-height: 1.64; }

/* ==========================================================================
   ATO VII — EXPOSIÇÃO DE MEMÓRIAS: BARALHO 3D + VARAL + TO AQUI + NOIS DOIS
   ========================================================================== */
.fairy-lights-string {
  position: absolute;
  top: calc(18px + var(--safe-top));
  left: 3%;
  right: 3%;
  display: flex;
  justify-content: space-around;
  border-top: 1.5px solid rgba(246, 207, 125, 0.34);
  border-radius: 50% 50% 0 0 / 8px 8px 0 0;
  pointer-events: none;
}

.fairy-lights-string i {
  width: 9px;
  height: 12px;
  border-radius: 50%;
  background: #ffeaad;
  box-shadow: 0 0 18px 5px rgba(246, 207, 125, 0.72);
  margin-top: -2px;
  animation: twinkleBulb 2.2s ease-in-out infinite alternate;
}

.fairy-lights-string i:nth-child(even) { animation-delay: 0.9s; }
@keyframes twinkleBulb { from { opacity: 0.48; transform: scale(0.86); } to { opacity: 1; transform: scale(1.15); } }

.gallery-opener-asym { width: 100%; max-width: 600px; }

.gallery-intro-pills {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-tip-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(246, 207, 125, 0.12);
  border: 1px solid rgba(246, 207, 125, 0.34);
  color: var(--accent-gold);
}

.gallery-tip-pill.rose {
  background: rgba(255, 158, 181, 0.12);
  border-color: rgba(255, 158, 181, 0.38);
  color: #ffc2d4;
}

.gallery-flow-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 16px 48px;
}

/* Barra de Modos + Favoritas */
.gallery-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border-radius: 20px;
  background: rgba(12, 16, 36, 0.76);
  border: 1px solid rgba(246, 207, 125, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-mode-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gallery-mode-btn {
  appearance: none;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gallery-mode-btn.active {
  background: linear-gradient(135deg, rgba(246, 207, 125, 0.28), rgba(177, 149, 255, 0.24));
  border-color: rgba(246, 207, 125, 0.65);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(246, 207, 125, 0.24);
}

.liked-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 158, 181, 0.14);
  border: 1px solid rgba(255, 158, 181, 0.36);
  color: #ffd0de;
  font-size: 0.76rem;
  font-weight: 700;
}

.liked-heart-icon {
  color: #ff7aa2;
  font-size: 0.9rem;
}

/* 1. PALCO DO BARALHO INTERATIVO 3D */
.deck-3d-stage {
  position: relative;
  margin: 0 auto 38px;
  max-width: 440px;
  padding: 22px 16px 20px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 25%, rgba(246, 207, 125, 0.14), rgba(10, 13, 30, 0.84) 76%);
  border: 1px solid rgba(246, 207, 125, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.62);
  text-align: center;
  overflow: hidden;
}

.deck-3d-stage.hidden-mode,
.varal-wall-wrap.hidden-mode {
  display: none;
}

.deck-stage-header {
  margin-bottom: 16px;
}

.deck-counter-line {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.deck-counter-line strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

.deck-swipe-hint {
  color: var(--accent-gold);
  font-size: 0.8rem;
}

.polaroid-deck-stack {
  position: relative;
  width: 100%;
  max-width: 266px;
  height: 416px;
  margin: 0 auto 18px;
  perspective: 1100px;
  touch-action: pan-y;
  user-select: none;
}

.deck-card-3d {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fdfbf7 0%, #f4efe4 100%);
  border-radius: 16px;
  padding: 10px 10px 14px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(246, 207, 125, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-origin: 50% 85%;
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.45s ease;
  cursor: grab;
  overflow: hidden;
}

.deck-card-3d.is-top {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotate(-1.1deg) scale(1);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.82), 0 0 28px rgba(246, 207, 125, 0.24);
}

.deck-card-3d.depth-1 {
  z-index: 4;
  transform: translate3d(11px, 8px, -30px) rotate(3.4deg) scale(0.955);
  opacity: 0.92;
  pointer-events: none;
}

.deck-card-3d.depth-2 {
  z-index: 3;
  transform: translate3d(-12px, 14px, -60px) rotate(-4.2deg) scale(0.91);
  opacity: 0.78;
  pointer-events: none;
}

.deck-card-3d.depth-3 {
  z-index: 2;
  transform: translate3d(6px, 20px, -90px) rotate(1.8deg) scale(0.87);
  opacity: 0.52;
  pointer-events: none;
}

.deck-card-3d.is-hidden-card {
  z-index: 1;
  transform: translate3d(0, 22px, -110px) scale(0.84);
  opacity: 0;
  pointer-events: none;
}

.deck-card-3d.fly-left {
  z-index: 6;
  pointer-events: none;
  transform: translate3d(-135%, -14px, 30px) rotate(-20deg) !important;
  opacity: 0 !important;
}

.deck-card-3d.fly-right {
  z-index: 6;
  pointer-events: none;
  transform: translate3d(135%, -14px, 30px) rotate(20deg) !important;
  opacity: 0 !important;
}

.deck-photo-box {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1824;
}

.deck-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-orientation: from-image;
}

.deck-card-3d .polaroid-caption {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 4px;
  font-size: 1.08rem;
  line-height: 1.16;
  color: #1c2136;
}

/* Sem clarão nem piscada ao passar as fotos pro lado */
.deck-gold-glint {
  display: none;
}

.deck-action-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
}

.deck-nav-btn,
.deck-heart-action,
.deck-zoom-action {
  appearance: none;
  padding: 9px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.25s ease;
}

.deck-nav-btn.gold {
  background: linear-gradient(135deg, #fae19f, #e8b350);
  color: #0b0f24;
  border: none;
}

.deck-heart-action.liked {
  background: rgba(255, 122, 162, 0.24);
  border-color: rgba(255, 122, 162, 0.65);
  color: #ff9ebc;
}

/* 2. VARAL ILUMINADO EM ZIGUE-ZAGUE COM FITINHAS E PREGADORES */
.varal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 24px;
}

.varal-wire-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 207, 125, 0.48), transparent);
}

.varal-divider-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  white-space: nowrap;
}

.zigzag-varal-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 14px;
  align-items: start;
}

@media (min-width: 700px) {
  .zigzag-varal-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px 22px;
  }
}

/* Polaroid de destaque que cruza o varal em zigue-zague no celular! */
@media (max-width: 699px) {
  .polaroid-card.varal-feature {
    grid-column: 1 / -1;
    max-width: 268px;
    justify-self: center;
    margin-top: 6px;
    margin-bottom: 6px;
  }

  .polaroid-card.zigzag-down {
    margin-top: 22px;
  }
}

.polaroid-card {
  position: relative;
  background: linear-gradient(180deg, #fcfaf4 0%, #f3ede0 100%);
  color: #1a1e30;
  padding: 10px 9px 15px;
  border-radius: 13px;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.68);
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 28px, 0) rotate(var(--rot, 0deg));
  transition: opacity 0.6s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.polaroid-card.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
}

.polaroid-card.liked-card {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.72), 0 0 24px rgba(255, 145, 182, 0.42);
}

/* Fitinha Washi Tape Dourada / Rosé e Pregador de Luz no topo das Polaroids */
.washi-tape {
  position: absolute;
  top: -9px;
  left: 50%;
  width: 58px;
  height: 18px;
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  background: linear-gradient(135deg, rgba(246, 207, 125, 0.78), rgba(255, 224, 158, 0.56));
  border-left: 1px dashed rgba(255, 255, 255, 0.45);
  border-right: 1px dashed rgba(255, 255, 255, 0.45);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.26);
  z-index: 4;
  pointer-events: none;
}

.washi-tape.rose-tape {
  background: linear-gradient(135deg, rgba(255, 166, 194, 0.76), rgba(246, 207, 125, 0.58));
}

.varal-pin-bulb {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, #d79f43, #9e6b1f);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 5;
  pointer-events: none;
}

.varal-pin-bulb::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff2be;
  box-shadow: 0 0 14px 4px rgba(246, 207, 125, 0.85);
}

/* IDEIA 2: Efeito "Revelação de Câmara Escura" ao entrar na tela! */
.polaroid-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #221c18;
}

.polaroid-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  image-orientation: from-image;
}

.polaroid-card:not(.developed) img {
  filter: sepia(0.76) brightness(1.16) contrast(0.84) saturate(0.38) blur(2px);
}

.polaroid-card.developed img {
  filter: sepia(0) brightness(1) contrast(1) saturate(1) blur(0px);
  transition: filter 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.polaroid-caption {
  margin-top: 9px;
  font-family: var(--font-hand);
  font-size: 1.14rem;
  line-height: 1.2;
  color: #1d2238;
  text-align: center;
}

/* Legenda surgindo como tinta escrita à caneta! */
.polaroid-card:not(.developed) .polaroid-caption {
  opacity: 0;
  transform: translateY(5px);
}

.polaroid-card.developed .polaroid-caption {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease 0.32s, transform 0.65s ease 0.32s;
}

/* IDEIA 3: Botãozinho e Explosão de Coração no Duplo-Toque */
.polaroid-like-corner {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 6;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(10, 13, 28, 0.56);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.92rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.polaroid-like-corner.liked {
  background: rgba(255, 98, 148, 0.9);
  border-color: #ffd6e4;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 110, 158, 0.75);
}

.polaroid-heart-pop {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3.6rem;
  color: #ff7ba6;
  text-shadow: 0 0 26px rgba(246, 207, 125, 0.95), 0 6px 20px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 8;
  opacity: 0;
}

.polaroid-heart-pop.bursting {
  animation: heartPopBurst 0.82s cubic-bezier(0.18, 1.25, 0.4, 1) forwards;
}

@keyframes heartPopBurst {
  0% { transform: translate(-50%, -50%) scale(0.2) rotate(-12deg); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1.22) rotate(6deg); opacity: 1; }
  65% { transform: translate(-50%, -56%) scale(1) rotate(-3deg); opacity: 1; }
  100% { transform: translate(-50%, -72%) scale(0.75); opacity: 0; }
}

/* IDEIA 4: PALCO DA FIGURINHA HOLOGRÁFICA "TO AQUI" */
.toaqui-split {
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

@media (min-width: 680px) { .toaqui-split { grid-template-columns: 0.98fr 1.12fr; } }

.toaqui-sticker-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.toaqui-chat-Simulation {
  width: 100%;
  max-width: 295px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-msg-out {
  align-self: flex-end;
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, rgba(111, 140, 255, 0.28), rgba(177, 149, 255, 0.22));
  border: 1px solid rgba(177, 149, 255, 0.36);
  color: #eef2ff;
  font-size: 0.8rem;
  line-height: 1.38;
  text-align: left;
}

.mini-msg-in-label {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  padding-left: 4px;
}

.holo-sticker-card {
  position: relative;
  width: 100%;
  max-width: 262px;
  padding: 10px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 226, 0.96));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.78),
    0 0 0 4px rgba(255, 255, 255, 0.22),
    0 0 34px rgba(246, 207, 125, 0.36);
  transform: rotate(-2.4deg);
  cursor: pointer;
  overflow: hidden;
  animation: stickerFloatBounce 4.4s ease-in-out infinite;
}

@keyframes stickerFloatBounce {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2.4deg); }
  50% { transform: translate3d(0, -8px, 0) rotate(1.4deg); }
}

.sticker-diecut-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
}

.sticker-diecut-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  image-orientation: from-image;
}

.holo-foil-sheen {
  position: absolute;
  inset: -30%;
  z-index: 4;
  background: linear-gradient(
    120deg,
    transparent 24%,
    rgba(255, 168, 212, 0.34) 38%,
    rgba(246, 224, 138, 0.42) 49%,
    rgba(130, 218, 255, 0.34) 60%,
    transparent 74%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: holoSweep 4.2s ease-in-out infinite;
}

@keyframes holoSweep {
  0%, 100% { transform: translateX(-48%) rotate(8deg); }
  50% { transform: translateX(48%) rotate(8deg); }
}

.holo-sparkle {
  position: absolute;
  z-index: 5;
  color: #fff6cf;
  text-shadow: 0 0 12px rgba(246, 207, 125, 0.95);
  font-size: 1.1rem;
  pointer-events: none;
}

.holo-sparkle.s1 { top: 14px; left: 16px; animation: twinkleBulb 1.6s infinite alternate; }
.holo-sparkle.s2 { bottom: 54px; right: 16px; animation: twinkleBulb 1.9s 0.6s infinite alternate; }

.sticker-speech-tag {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 6px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #15192c;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  border: 2px solid #f6cf7d;
}

.toaqui-story { text-align: left; }

.sticker-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(246, 207, 125, 0.14);
  border: 1px solid rgba(246, 207, 125, 0.42);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sticker-badge.holo {
  background: linear-gradient(135deg, rgba(246, 207, 125, 0.18), rgba(255, 158, 181, 0.18));
  border-color: rgba(246, 207, 125, 0.55);
}

/* IDEIA 5: PALCO DOURADO EM RELEVO DO "NOIS DOIS" */
.noisdois-showcase {
  width: 100%;
  max-width: 630px;
  text-align: center;
}

.noisdois-gold-seal {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(246, 207, 125, 0.24), rgba(255, 166, 194, 0.18));
  border: 1px solid rgba(246, 207, 125, 0.58);
  color: #ffe9b3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  box-shadow: 0 0 24px rgba(246, 207, 125, 0.24);
}

.noisdois-relic-wrap {
  position: relative;
  max-width: 312px;
  margin: 0 auto;
}

.noisdois-warm-aura {
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 207, 125, 0.36) 0%, rgba(255, 152, 188, 0.22) 48%, transparent 74%);
  filter: blur(12px);
  transform: scale(calc(1 + var(--audio-pulse) * 0.18));
  pointer-events: none;
}

.noisdois-relic-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(165deg, #fffdf8 0%, #f7efe0 55%, #efe2ca 100%);
  padding: 15px 15px 20px;
  border-radius: 20px;
  border: 2px solid #e7be6b;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.82),
    0 0 38px rgba(246, 207, 125, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  transform: rotate(1.3deg);
  cursor: pointer;
}

.relic-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #c99235;
  border-style: solid;
  z-index: 5;
  pointer-events: none;
}

.relic-corner.tl { top: 7px; left: 7px; border-width: 2.5px 0 0 2.5px; border-radius: 5px 0 0 0; }
.relic-corner.tr { top: 7px; right: 7px; border-width: 2.5px 2.5px 0 0; border-radius: 0 5px 0 0; }
.relic-corner.bl { bottom: 7px; left: 7px; border-width: 0 0 2.5px 2.5px; border-radius: 0 0 0 5px; }
.relic-corner.br { bottom: 7px; right: 7px; border-width: 0 2.5px 2.5px 0; border-radius: 0 0 5px 0; }

.noisdois-photo-window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 146, 53, 0.45);
}

.noisdois-photo-window img {
  width: 100%;
  height: auto;
  display: block;
  image-orientation: from-image;
}

.noisdois-gold-caption {
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.75rem;
  font-weight: 700;
  color: #7d5213;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}

.ink-body-center { font-size: 1.06rem; color: #eef1ff; line-height: 1.7; }
.ink-sub-center { font-size: 0.98rem; color: var(--text-soft); line-height: 1.66; }

/* IDEIA 6: AS 3 MOLDURAS DO FUTURO INTERATIVAS */
.future-hint-line {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.future-frames-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 450px;
  margin: 0 auto;
}

.future-frame-slot {
  appearance: none;
  position: relative;
  min-height: 146px;
  border-radius: 16px;
  border: 1.5px dashed rgba(246, 207, 125, 0.52);
  background: rgba(246, 207, 125, 0.06);
  padding: 10px 8px;
  color: var(--accent-gold);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
  animation: futurePulse 3.2s ease-in-out infinite;
}

.future-frame-slot:nth-child(2) { animation-delay: 0.8s; }
.future-frame-slot:nth-child(3) { animation-delay: 1.6s; }

@keyframes futurePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(246, 207, 125, 0); }
  50% { box-shadow: 0 0 18px rgba(246, 207, 125, 0.2); }
}

.future-slot-front,
.future-slot-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: opacity 0.32s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.future-slot-icon { font-size: 1.45rem; }
.future-slot-title { font-family: var(--font-hand); font-size: 1.08rem; line-height: 1.15; color: #ffe7ac; }
.future-slot-tap { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(246, 207, 125, 0.72); }

.future-slot-back {
  position: absolute;
  inset: 8px;
  opacity: 0;
  transform: scale(0.86) rotateY(25deg);
  pointer-events: none;
}

.future-back-badge {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(246, 207, 125, 0.25);
  color: #fff3cc;
}

.future-slot-back p {
  font-family: var(--font-hand);
  font-size: 1rem;
  line-height: 1.16;
  color: #ffffff;
}

.future-frame-slot.reserved {
  border-style: solid;
  border-color: rgba(246, 207, 125, 0.85);
  background: linear-gradient(155deg, rgba(246, 207, 125, 0.24), rgba(255, 158, 181, 0.2));
  box-shadow: 0 12px 28px rgba(246, 207, 125, 0.26);
  transform: translateY(-3px);
}

.future-frame-slot.reserved .future-slot-front {
  opacity: 0;
  transform: scale(0.85);
}

.future-frame-slot.reserved .future-slot-back {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

/* ==========================================================================
   ATO VIII — IDENTIDADE EXCLUSIVA: ESCADA DIAGONAL RUMO AO NASCER DO SOL
   ========================================================================== */
.staircase-wrap {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.instrument-sunrise-head {
  font-family: var(--font-instrument);
  font-size: clamp(2.9rem, 10.5vw, 4.9rem);
  font-weight: 400;
  line-height: 0.96;
  color: #ffffff;
}

.instrument-sunrise-head em { color: #ffe39f; font-style: italic; }

.stair-step { max-width: 480px; text-align: left; }
.stair-step.step-1 { align-self: flex-start; }
.stair-step.step-2 {
  align-self: center;
  padding: 18px 20px;
  border-left: 2px solid rgba(251, 214, 130, 0.55);
  background: rgba(16, 14, 34, 0.45);
  border-radius: 0 20px 20px 0;
}
.stair-step.step-3 {
  align-self: flex-end;
  padding: 18px 20px;
  border-left: 2px solid rgba(251, 214, 130, 0.75);
  background: rgba(24, 16, 32, 0.52);
  border-radius: 0 20px 20px 0;
}

/* ==========================================================================
   ATO IX — IDENTIDADE EXCLUSIVA: PÁGINAS DE LIVRO SAGRADO COM LUZ RESPIRANDO
   ========================================================================== */
#cap-09 {
  padding-bottom: calc(118px + var(--safe-bottom));
}

.book-folio-frame {
  width: 100%;
  max-width: 590px;
  padding: 32px 24px;
  border: 1px solid rgba(246, 207, 125, 0.32);
  outline: 1px solid rgba(246, 207, 125, 0.14);
  outline-offset: -7px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 100%, rgba(246, 207, 125, 0.12), rgba(8, 10, 24, 0.78) 75%);
  text-align: center;
}

.roman-numeral {
  font-family: var(--font-instrument);
  font-size: 2.6rem;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.cormorant-folio-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 7vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px;
}

.breathing-sacred-quote {
  font-family: var(--font-instrument);
  font-style: italic;
  font-size: clamp(2.25rem, 7.8vw, 3.6rem);
  line-height: 1.06;
  color: #fff6dc;
  margin-bottom: 18px;
  text-shadow: 0 0 calc(22px + var(--audio-pulse) * 28px) rgba(246, 207, 125, 0.55);
}

.folio-body { font-size: 1.04rem; color: #e8ecff; line-height: 1.72; }

/* ==========================================================================
   ATO X — IDENTIDADE EXCLUSIVA: BILHETE / ROLO DE PROJEÇÃO DE CINEMA
   ========================================================================== */
.film-ticket-frame {
  width: 100%;
  max-width: 560px;
  background: rgba(9, 12, 26, 0.88);
  border: 1px solid rgba(246, 207, 125, 0.3);
  border-radius: 24px;
  padding: 26px 22px;
  text-align: left;
}

.ticket-top-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-gold);
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(246, 207, 125, 0.3);
}

.btn-outline-soft { width: 100%; margin-top: 20px; padding: 15px 20px; border-radius: 16px; border: 1px solid rgba(246, 207, 125, 0.48); background: rgba(246, 207, 125, 0.12); color: var(--accent-gold); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.videos-drawer { display: none; margin-top: 18px; flex-direction: column; gap: 12px; }
.videos-drawer.open { display: flex; }
.video-slot-card { background: rgba(5, 7, 18, 0.92); border: 1px solid rgba(177, 149, 255, 0.28); border-radius: 18px; padding: 16px; }
.video-slot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.video-slot-title { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: #ffffff; }
.video-status-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: rgba(177, 149, 255, 0.16); color: #ded4ff; border: 1px solid rgba(177, 149, 255, 0.34); }
.video-slot-desc { font-size: 0.88rem; color: var(--text-muted); }
.video-embed-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; border: none; margin-top: 12px; background: #000; }

/* ==========================================================================
   ATO XI — IDENTIDADE EXCLUSIVA: PÔSTER DE CRÉDITOS DE OSCAR ("AINDA.")
   ========================================================================== */
.finale-poster, .credits-finale-box { width: 100%; max-width: 640px; text-align: center; position: relative; }

.anamorphic-flare {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 96%;
  max-width: 580px;
  height: 3px;
  transform: translate3d(-50%, -50%, 0);
  background: linear-gradient(90deg, transparent 0%, rgba(111, 140, 255, 0.6) 28%, #fffbe6 50%, rgba(246, 207, 125, 0.7) 72%, transparent 100%);
  box-shadow: 0 0 36px 7px rgba(246, 207, 125, 0.48);
  pointer-events: none;
}

.ainda-liquid-monument {
  font-family: var(--font-instrument);
  font-size: clamp(5rem, 23vw, 9.4rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  background: linear-gradient(110deg, #ffffff 0%, #fae09e 30%, #ffffff 52%, #d89b3c 74%, #ffffff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquidShine 5s linear infinite;
  filter: drop-shadow(0 0 calc(28px + var(--audio-pulse) * 35px) rgba(246, 207, 125, 0.55));
}

.ainda-hand-sub {
  font-family: var(--font-hand);
  font-size: clamp(1.85rem, 6.5vw, 2.6rem);
  color: var(--accent-gold);
  margin-top: 6px;
}

.finale-lead { font-size: clamp(1.06rem, 3.7vw, 1.24rem); color: #f2f4ff; line-height: 1.72; margin-top: 22px; }

.final-eye-btn {
  padding: 17px 28px;
  border-radius: 999px;
  border: 1px solid rgba(246, 207, 125, 0.65);
  background: linear-gradient(135deg, rgba(246, 207, 125, 0.25), rgba(177, 149, 255, 0.25));
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 44px rgba(246, 207, 125, 0.32);
  animation: pulseGlow 2.6s ease-in-out infinite;
}

.footer-whisper { margin-top: 28px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase; }

/* Modais */
.cinema-modal { position: fixed; inset: 0; z-index: 320; background: rgba(3, 5, 13, 0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center; padding: calc(20px + var(--safe-top)) 20px calc(24px + var(--safe-bottom)); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.4s ease, visibility 0.4s ease; }
.cinema-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-card { width: 100%; max-width: 460px; background: linear-gradient(165deg, rgba(22, 30, 68, 0.96), rgba(8, 11, 26, 0.98)); border: 1px solid rgba(246, 207, 125, 0.4); border-radius: 30px; padding: 34px 24px 28px; text-align: center; position: relative; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85); max-height: 88dvh; overflow-y: auto; }
.modal-close-btn { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.08); color: #ffffff; font-size: 1.05rem; cursor: pointer; }
.helena-hands { font-size: 2.8rem; margin-bottom: 10px; }
.helena-title { font-family: var(--font-instrument); font-size: 2.6rem; color: var(--accent-gold); margin-bottom: 8px; }
.eye-to-eye-text p { font-size: 1.08rem; color: #eef1ff; margin-bottom: 18px; line-height: 1.72; }
.eye-signoff { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(246, 207, 125, 0.24); font-family: var(--font-instrument); font-size: 1.8rem; color: var(--accent-gold); }

.smile-reaction-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(246, 207, 125, 0.2);
}

.smile-burst-btn {
  appearance: none;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 175, 200, 0.45);
  background: rgba(255, 175, 200, 0.1);
  color: #ffe2ec;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background 0.25s;
}

.smile-burst-btn:active { transform: scale(0.96); }

.smile-burst-reply {
  display: none;
  margin-top: 12px;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--accent-gold);
}

.smile-burst-reply.visible {
  display: block;
  animation: gateItemRise 0.5s ease forwards;
}
.lightbox-inner { width: 100%; max-width: 440px; text-align: center; }
.lightbox-img { max-width: 100%; max-height: 70dvh; border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.88); border: 4px solid #fcfaf5; image-orientation: from-image; }
.lightbox-caption { margin-top: 14px; font-family: var(--font-hand); font-size: 1.48rem; color: #ffffff; min-height: 28px; }
.lightbox-nav { margin-top: 14px; display: flex; justify-content: center; gap: 14px; }
