/* ==========================================================================
   T10: CINEMATIC MOVIE PREMIERE STYLESHEET
   ========================================================================== */
:root {
  --bg-cinema: #0c0606;
  --card-cinema: rgba(30, 10, 10, 0.85);
  --curtain-red: #991b1b;
  --curtain-dark: #450a0a;
  --gold-marquee: #f59e0b;
  --gold-glow: #fde047;
  --text-main: #fef2f2;
  --text-muted: #fca5a5;
  --border-gold: rgba(245, 158, 11, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-cinema);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#projector-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1; pointer-events: none;
}
#confetti-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 100; pointer-events: none;
}

/* Audio control */
.audio-ctrl {
  position: fixed;
  top: 1.25rem; right: 1.25rem;
  z-index: 90;
}
.audio-btn {
  background: rgba(30, 10, 10, 0.9);
  border: 1px solid var(--border-gold);
  color: var(--gold-glow);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
  transition: all 0.3s;
}
.audio-btn:hover { background: rgba(245, 158, 11, 0.3); }

/* Golden Ticket Passcode Modal */
.passcode-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #2e0808 0%, #080303 100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.passcode-modal.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.ticket-card {
  background: linear-gradient(135deg, #1f0707 0%, #0d0404 100%);
  border: 2px solid var(--gold-marquee);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  max-width: 390px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9), 0 0 40px rgba(245, 158, 11, 0.25);
  position: relative;
}
.ticket-header {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-marquee);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.ticket-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.ticket-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.pin-row { display: flex; justify-content: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.pin-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  background: transparent;
  transition: all 0.2s;
}
.pin-dot.filled {
  background: var(--gold-marquee);
  box-shadow: 0 0 12px var(--gold-marquee);
}
.keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; max-width: 270px; margin: 0 auto;
}
.key-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fff;
  font-size: 1.3rem; font-weight: 700;
  border-radius: 14px;
  padding: 0.85rem 0;
  cursor: pointer;
  transition: all 0.2s;
}
.key-btn:hover { background: rgba(245, 158, 11, 0.25); }

/* Main layout */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* 3D Red Velvet Curtains Unboxing */
.theater-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 240px;
  margin: 2rem auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  border: 2px solid var(--border-gold);
  cursor: pointer;
  background: #000;
}
.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: repeating-linear-gradient(90deg, #7f1d1d, #450a0a 20px, #991b1b 40px);
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 2;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}
.curtain-left { left: 0; transform-origin: left center; }
.curtain-right { right: 0; transform-origin: right center; }
.curtains-open .curtain-left { transform: scaleX(0.12); }
.curtains-open .curtain-right { transform: scaleX(0.12); }
.stage-content {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 1;
  background: radial-gradient(circle, #3b0707 0%, #000 90%);
}

/* Marquee Header */
.marquee-box {
  background: #180505;
  border: 3px solid var(--gold-marquee);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  margin-bottom: 3rem;
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.35);
  position: relative;
}
.marquee-chase-lights {
  position: absolute;
  top: 6px; left: 10px; right: 10px;
  display: flex; justify-content: space-between;
}
.chase-bulb {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-glow);
  box-shadow: 0 0 10px var(--gold-glow);
  animation: blinkBulb 1s infinite alternate;
}
.chase-bulb:nth-child(even) { animation-delay: 0.5s; background: #fff; }
@keyframes blinkBulb {
  0% { opacity: 0.3; } 100% { opacity: 1; }
}
.marquee-tag {
  font-size: 0.85rem; font-weight: 800; letter-spacing: 2px;
  color: var(--gold-marquee); text-transform: uppercase;
}
.marquee-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  margin: 0.5rem 0;
  color: #fff;
}
.marquee-title span {
  background: linear-gradient(135deg, #fff 20%, #fef08a 60%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marquee-desc { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* Film Strip Memories */
.memories-section { margin: 4rem 0; }
.filmstrip-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.film-frame {
  background: var(--card-cinema);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
  position: relative;
}
.film-frame:hover {
  transform: translateY(-6px);
  border-color: var(--gold-glow);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}
.film-sprocket {
  position: absolute;
  top: 10px; right: 12px;
  font-size: 0.8rem;
  color: var(--gold-marquee);
  font-family: monospace;
}
.mem-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.mem-era {
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase;
  color: var(--gold-marquee);
  letter-spacing: 1px;
}
.mem-title { font-family: 'Outfit'; font-size: 1.25rem; font-weight: 700; margin: 0.3rem 0 0.6rem; color: #fff; }
.mem-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* Cinema Letter */
.cinema-letter {
  background: linear-gradient(135deg, rgba(40, 10, 10, 0.9) 0%, rgba(15, 4, 4, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  margin: 4rem 0;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
}
.letter-date { color: var(--gold-marquee); font-weight: 700; font-size: 0.9rem; }
.letter-salutation { font-family: 'Outfit'; font-size: 1.8rem; font-weight: 800; margin: 1.5rem 0; color: #fff; }
.letter-body p { font-size: 1.1rem; line-height: 1.8; color: #fef2f2; margin-bottom: 1.5rem; }
.letter-ps {
  background: rgba(245, 158, 11, 0.15);
  border-left: 4px solid var(--gold-marquee);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 2rem;
  font-style: italic;
  color: #fde68a;
}
.letter-sig { text-align: right; margin-top: 2.5rem; }
.sig-name { font-family: 'Caveat', cursive; font-size: 2.4rem; color: var(--gold-glow); }

/* Apology */
.apology-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 3.5rem 0;
}

/* Premiere Cake */
.cake-card {
  background: var(--card-cinema);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 3.5rem 0;
}
.candles-row { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.5rem; }
.candle {
  width: 12px; height: 45px;
  background: linear-gradient(to bottom, #fde047, #dc2626);
  border-radius: 6px;
  position: relative;
}
.flame {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 14px; height: 22px;
  background: radial-gradient(circle, #fff 20%, #fde047 60%, #dc2626 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.8s infinite alternate;
  box-shadow: 0 0 15px #fde047;
  transition: opacity 0.4s;
}
.candle.blown .flame { opacity: 0; }
.cake-tier {
  width: 190px; height: 75px;
  margin: 0 auto;
  background: linear-gradient(135deg, #7f1d1d, #450a0a);
  border: 2px solid var(--gold-glow);
  border-radius: 16px 16px 8px 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit'; font-weight: 800; font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.blow-btn {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: #fff;
  font-size: 1rem; font-weight: 800;
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 1.5rem;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  transition: all 0.3s;
}
.blow-btn:hover { transform: scale(1.05); }

/* CTAs */
.cta-row {
  display: flex; justify-content: center; gap: 1.25rem;
  flex-wrap: wrap; margin-top: 2rem;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.9rem 1.8rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3); }
.btn-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); color: #fff; box-shadow: 0 8px 25px rgba(220, 39, 67, 0.3); }
.btn-cta:hover { transform: translateY(-3px); }

/* ====================================================================
   MOBILE & TABLET VIEWPORT RESPONSIVENESS
   ==================================================================== */
@media (max-width: 768px) {
  .stage-content, .container, .hero-section {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .hero-heading, .hero-title, .hero-giant-name {
    font-size: clamp(1.8rem, 6vw, 2.8rem) !important;
    line-height: 1.2 !important;
  }
  .hero-desc, .hero-sub {
    font-size: 1rem !important;
    padding: 0 0.5rem !important;
  }
  .letter-paper, .letter-card, .scroll-letter, .letter-parchment, .notebook-card, .boarding-pass, .manifesto-card, .mixtape-card {
    padding: 1.75rem 1.25rem !important;
  }
  .timeline-grid, .memories-grid, .grid-2 {
    grid-template-columns: 1fr !important;
  }
  .cta-row, .btn-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
  }
  .btn-cta, .btn-wa, .btn-ig {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 480px) {
  .hero-heading, .hero-title, .hero-giant-name {
    font-size: 1.75rem !important;
  }
  .heart-card, .passcode-card, .pin-card {
    padding: 1.75rem 1.25rem !important;
  }
  .cake-tier {
    width: 160px !important;
    height: 65px !important;
    font-size: 1rem !important;
  }
}
