/* ═══════════════════════════════════════════════════════════════
   BIRTHDAY WEBAPP — CINEMATIC LOVE STORY
   For: Anu | From: Prajwal
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gold: #c9a85c;
  --rose: #e8a0b0;
  --deep: #0a0812;
  --mid: #14102a;
  --card: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.1);
  --border: rgba(201,168,92,0.3);
  --text: #f5f0e8;
  --muted: rgba(245,240,232,0.6);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', sans-serif;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* ── PARTICLES CANVAS ── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; width: 100%; height: 100%;
}

/* ── SECTIONS ── */
.fullscreen {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.fullscreen.hidden,
section.hidden,
.hidden {
  display: none !important;
}

.fullscreen.active {
  display: flex !important;
}

.section-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(2px) brightness(0.4);
  transform: scale(1.05);
}
.section-overlay {
  position: absolute; inset: 0;
}
.section-overlay.dark { background: linear-gradient(180deg, rgba(10,8,18,0.7) 0%, rgba(10,8,18,0.85) 100%); }
.section-overlay.very-dark { background: linear-gradient(180deg, rgba(10,8,18,0.92) 0%, rgba(10,8,18,0.97) 100%); }

.scroll-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 480px;
  padding: 60px 20px 80px;
  margin: 0 auto;
  overflow-y: auto;
}

/* ── KNOCK KNOCK SCREEN ── */
#knock-screen {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0812 0%, #1a0e2e 50%, #0a0812 100%);
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}
#knock-screen.active {
  display: flex !important;
}
#knock-screen.hidden {
  display: none !important;
}
.knock-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; max-width: 420px;
  margin: auto;
  padding: 20px 24px;
  text-align: center;
}
.knock-door-wrap {
  cursor: pointer;
  animation: knock-float 2.5s ease-in-out infinite;
}
@keyframes knock-float {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
.knock-door {
  background: linear-gradient(135deg, #2a1e4a, #1a0e2e);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 0 60px rgba(201,168,92,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.door-icon { font-size: 80px; margin-bottom: 16px; }
.knock-hint {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 1.1rem;
  animation: pulse-opacity 1.5s ease-in-out infinite;
}
@keyframes pulse-opacity {
  0%,100% { opacity: 1; } 50% { opacity: 0.5; }
}
.knock-riddle { width: 100%; max-width: 400px; }
.knock-riddle.hidden { display: none; }
.riddle-q {
  font-family: var(--font-serif); font-size: 1.6rem;
  color: var(--gold); margin-bottom: 16px;
}
.riddle-text {
  font-size: 1.1rem; color: var(--muted);
  line-height: 1.7; margin-bottom: 32px;
  font-style: italic;
}
.riddle-options {
  display: flex; flex-direction: column; gap: 12px;
}
.riddle-btn {
  padding: 16px 24px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text); font-family: var(--font-sans);
  font-size: 1rem; cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.riddle-btn:hover { background: rgba(201,168,92,0.15); border-color: var(--gold); }
.riddle-btn.shake { animation: shake 0.4s ease; background: rgba(255,80,80,0.2); border-color: #ff5050; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.riddle-error {
  color: #ff8080; margin-top: 16px; font-size: 0.95rem;
}
.riddle-error.hidden { display: none; }

/* ── REVEAL SCREEN ── */
#reveal-screen { min-height: 100dvh; }
.reveal-bg-image {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  filter: brightness(0.35) saturate(0.8);
  transform: scale(1.05);
}
.reveal-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,18,0.5) 0%,
    rgba(10,8,18,0.3) 40%,
    rgba(10,8,18,0.8) 80%,
    rgba(10,8,18,0.95) 100%
  );
}
.reveal-content {
  position: relative; z-index: 2;
  text-align: center; padding: 60px 28px;
  display: flex; flex-direction: column;
  align-items: center; gap: 16px;
}
.reveal-from {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 0.95rem;
  letter-spacing: 0.08em;
  animation: fadeInUp 1s ease 0.2s both;
}
.reveal-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 50%, var(--rose) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.5s both;
}
.reveal-name {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  color: var(--rose);
  animation: fadeInUp 1s ease 0.8s both;
  text-shadow: 0 0 40px rgba(232,160,176,0.5);
}
.reveal-date {
  color: var(--gold); font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}
.reveal-tagline {
  font-family: var(--font-serif); font-style: italic;
  color: var(--muted); font-size: 1.05rem;
  line-height: 1.7; margin: 8px 0;
  animation: fadeInUp 1s ease 1.2s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Floating hearts */
.floating-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.heart-particle {
  position: absolute; font-size: 1.5rem;
  animation: float-heart linear infinite;
  opacity: 0;
}
@keyframes float-heart {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-20vh) scale(1.2) rotate(20deg); opacity: 0; }
}

/* Confetti canvas */
#confetti-canvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none; width: 100%; height: 100%;
}

/* ── CTA BUTTON ── */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 36px; border-radius: 50px;
  background: linear-gradient(135deg, var(--gold), #a8835a);
  color: #0a0812; font-family: var(--font-sans);
  font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer;
  box-shadow: 0 4px 30px rgba(201,168,92,0.4);
  transition: var(--transition);
  letter-spacing: 0.04em;
  margin-top: 16px;
  animation: fadeInUp 1s ease 1.5s both;
}
.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 40px rgba(201,168,92,0.6);
}
.cta-btn:active { transform: scale(0.97); }

/* ── LOVE LETTER ── */
.letter-content { display: flex; flex-direction: column; align-items: center; }
.letter-envelope {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 60px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  animation: fadeInUp 0.8s ease both;
}
.letter-envelope:hover { transform: scale(1.05); border-color: var(--gold); }
.envelope-icon { font-size: 80px; }
.envelope-tap {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 1.1rem;
  animation: pulse-opacity 1.5s ease-in-out infinite;
}
.letter-paper {
  background: linear-gradient(135deg, rgba(245,240,232,0.08), rgba(201,168,92,0.05));
  border: 1px solid var(--border);
  border-radius: 16px; padding: 32px 28px;
  backdrop-filter: blur(10px);
  animation: letterOpen 0.6s ease both;
  width: 100%;
}
.letter-paper.hidden { display: none; }
@keyframes letterOpen {
  from { opacity: 0; transform: scaleY(0.5) translateY(-20px); }
  to { opacity: 1; transform: scaleY(1) translateY(0); }
}
.letter-greeting {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold); font-size: 1.3rem; margin-bottom: 20px;
}
.letter-body {
  font-size: 1rem; line-height: 1.9;
  color: var(--text); margin-bottom: 16px;
}
.letter-body em { color: var(--rose); font-style: italic; }
.letter-sign {
  font-family: var(--font-serif); margin-top: 24px;
  color: var(--gold); font-size: 1.1rem; line-height: 1.7;
}
.letter-cta.hidden { display: none; }

/* ── GALLERY ── */
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 7vw, 2.5rem);
  text-align: center; color: var(--text);
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; margin-bottom: 8px;
}
.section-subtitle {
  text-align: center; color: var(--muted);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1rem; margin-bottom: 28px;
}
.gallery-tabs {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 24px; flex-wrap: wrap;
}
.tab-btn {
  padding: 8px 20px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-family: var(--font-sans);
  font-size: 0.9rem; cursor: pointer; transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: linear-gradient(135deg, rgba(201,168,92,0.3), rgba(232,160,176,0.2));
  border-color: var(--gold); color: var(--text);
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; margin-bottom: 32px;
}
.gallery-item {
  border-radius: 14px; overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 3/4;
  border: 1px solid var(--border);
  transition: var(--transition);
  background: var(--mid);
}
.gallery-item.hidden { display: none; }
.gallery-item:hover { transform: scale(1.03); border-color: var(--gold); z-index: 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(10,8,18,0.9), transparent);
  color: var(--text); font-size: 0.75rem; padding: 20px 10px 10px;
  text-align: center;
}
/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.hidden { display: none; }
.lightbox img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; border-radius: 12px;
  border: 1px solid var(--border);
}
#lightbox-caption {
  color: var(--gold); margin-top: 16px;
  font-family: var(--font-serif); font-style: italic;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  font-size: 2rem; color: var(--text); cursor: pointer;
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
  background: var(--card); border-radius: 50%;
}

/* ── VIDEOS ── */
.video-cards { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.video-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.video-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.video-label {
  padding: 12px 16px;
  font-family: var(--font-serif); font-size: 1rem;
  color: var(--gold); border-bottom: 1px solid var(--border);
}
.video-card video {
  width: 100%; display: block;
  max-height: 280px; object-fit: cover;
  background: #000;
}
.video-desc {
  padding: 10px 16px; font-size: 0.85rem;
  color: var(--muted); font-style: italic;
}
/* YouTube Section */
.yt-section {
  margin: 16px 0 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
  backdrop-filter: blur(10px);
}
.yt-label {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 1.05rem; margin-bottom: 4px; text-align: center;
}
.yt-sublabel {
  color: var(--muted); font-size: 0.8rem;
  text-align: center; margin-bottom: 16px;
}
.yt-embed-wrap {
  position: relative; padding-bottom: 56.25%;
  height: 0; overflow: hidden; border-radius: 10px;
  background: #000;
}
.yt-embed-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 10px;
}
.yt-note {
  text-align: center; color: var(--muted);
  font-size: 0.8rem; margin-top: 10px;
  font-family: var(--font-serif); font-style: italic;
}

/* ── REASONS ── */
.reasons-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.reason-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.6s ease calc(var(--i) * 0.08s) both;
  transition: var(--transition);
}
.reason-card:hover { border-color: var(--gold); transform: translateX(4px); }
.reason-num {
  font-family: var(--font-serif); font-size: 1.8rem;
  color: var(--gold); opacity: 0.6; flex-shrink: 0; line-height: 1;
}
.reason-card p { font-size: 1rem; line-height: 1.7; color: var(--text); }
.prajwal-img-wrap { text-align: center; margin: 32px 0; }
.prajwal-img {
  width: 180px; height: 180px; object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 40px rgba(201,168,92,0.3);
}
.prajwal-caption {
  color: var(--muted); font-family: var(--font-serif);
  font-style: italic; margin-top: 12px; font-size: 0.95rem;
}

/* ── CAKE ── */
.cake-content { text-align: center; }
.cake-scene {
  display: flex; justify-content: center;
  margin: 32px 0 24px;
}
.cake-wrapper {
  display: flex; flex-direction: column; align-items: center;
  gap: 0;
}
.candles-row {
  display: flex; gap: 16px; justify-content: center;
  margin-bottom: 4px;
}
.candle {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--transition);
}
.candle:hover { transform: scale(1.1); }
.flame {
  font-size: 1.6rem;
  animation: flicker 0.3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(255,200,50,0.8));
}
.flame.blown { font-size: 0; opacity: 0; }
@keyframes flicker {
  from { transform: scale(1) rotate(-3deg); }
  to { transform: scale(1.1) rotate(3deg); }
}
.wick {
  width: 3px; height: 8px;
  background: #888; border-radius: 2px;
}
.cake-top-tier {
  width: 120px; height: 55px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-radius: 60px 60px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 0.85rem;
  color: #fff; letter-spacing: 0.1em;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
}
.cake-top-tier::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #ff6b8a 0,#ff6b8a 8px, #fff 8px, #fff 16px);
}
.cake-mid-tier {
  width: 170px; height: 65px;
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
}
.cake-mid-tier::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #d7bde2 0,#d7bde2 8px, #fff 8px, #fff 16px);
}
.cake-base-tier {
  width: 220px; height: 70px;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1rem; color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
}
.cake-base-tier::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #f9e79f 0,#f9e79f 8px, #fff 8px, #fff 16px);
}
.cake-plate {
  width: 250px; height: 16px;
  background: linear-gradient(135deg, #d5dbdb, #a9cce3);
  border-radius: 50%; margin-top: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* Wish Reveal */
.wish-reveal {
  background: linear-gradient(135deg, rgba(201,168,92,0.1), rgba(232,160,176,0.1));
  border: 1px solid var(--gold); border-radius: 20px;
  padding: 32px 24px; margin: 24px 0 40px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease both;
}

/* ── FULL-SCREEN INTERACTIVE CAKE BLOCKER & ENGAGEMENT OVERLAY ── */
.cake-blocker-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 60;
  overflow: hidden;
  background: radial-gradient(circle at center, #220e38 0%, #0d0818 65%, #05030a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  cursor: pointer;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cake-blocker-overlay.dissolve {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.magic-tap-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.magic-tap-spark {
  position: absolute;
  font-size: 1.8rem;
  pointer-events: none;
  user-select: none;
  animation: float-spark 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

@keyframes float-spark {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 60px)) scale(1.3) rotate(var(--rot, 15deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 130px)) scale(1.8) rotate(var(--rot, 30deg));
  }
}

.blocker-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 420px;
  padding: 20px 24px;
}

.blocker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  background: rgba(201, 168, 92, 0.15);
  border: 1px solid rgba(201, 168, 92, 0.35);
  border-radius: 30px;
  padding: 6px 18px;
  margin-bottom: 18px;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4070;
  box-shadow: 0 0 10px #ff4070;
  animation: pulse-dot-anim 1.4s infinite alternate;
}

@keyframes pulse-dot-anim {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* Vinyl visualizer */
.vinyl-disc-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.vinyl-disc {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #2b1d3d 0%, #150b22 60%, #09050e 100%);
  border: 3px solid rgba(201, 168, 92, 0.5);
  box-shadow: 0 0 35px rgba(201, 168, 92, 0.3), inset 0 0 15px rgba(0,0,0,0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-vinyl 5s linear infinite;
}

@keyframes spin-vinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.vinyl-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.vinyl-groove.g1 { width: 90px; height: 90px; }
.vinyl-groove.g2 { width: 70px; height: 70px; }
.vinyl-groove.g3 { width: 50px; height: 50px; }

.vinyl-center {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(201, 168, 92, 0.6);
}

.vinyl-heart {
  font-size: 1rem;
  animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.blocker-waves {
  margin-top: 10px;
  height: 18px;
}

.blocker-song-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-shadow: 0 0 20px rgba(232, 160, 176, 0.6);
}

.blocker-song-sub {
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 16px;
  font-style: italic;
}

/* Circular countdown */
.blocker-countdown-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
}

.countdown-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.countdown-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
  filter: drop-shadow(0 0 8px rgba(201, 168, 92, 0.8));
}

.countdown-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.countdown-unit {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Rotating quote box */
.blocker-quote-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 92, 0.3);
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
  margin-bottom: 16px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blocker-quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #fff;
  transition: opacity 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Interactive tap hint */
.blocker-tap-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(201, 168, 92, 0.4);
  animation: pulse-hint 2s infinite ease-in-out;
}

@keyframes pulse-hint {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.blocker-tap-hint strong {
  color: var(--gold);
}

.cake-ready-banner {
  margin: 14px auto 20px;
  max-width: 440px;
  animation: bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bounce-in {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ready-badge {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(201, 168, 92, 0.7);
  font-weight: 700;
}

.ready-sub {
  font-size: 0.92rem;
  color: #fff;
  margin-top: 4px;
}

.candle.locked .flame {
  transform: scale(0.7);
  opacity: 0.65;
  filter: drop-shadow(0 0 4px rgba(255, 200, 50, 0.5));
}

.candle.unlocked {
  cursor: pointer;
  animation: candle-wiggle 1.8s ease-in-out infinite;
}

.candle.unlocked .flame {
  transform: scale(1.25);
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.95));
  animation: flicker 0.25s ease-in-out infinite alternate;
}

@keyframes candle-wiggle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.wish-reveal.hidden { display: none; }
.wish-fireworks { font-size: 2rem; margin-bottom: 16px;
  animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wish-headline {
  font-family: var(--font-serif); font-size: 1.6rem;
  color: var(--gold); margin-bottom: 16px;
}
.wish-text p {
  font-size: 1rem; line-height: 1.8; color: var(--text);
  margin-bottom: 10px;
}
.wish-love {
  font-family: var(--font-serif); font-style: italic;
  color: var(--rose) !important; margin-top: 16px !important; font-size: 1.1rem !important;
}

/* ── TIMELINE ── */
.timeline-section { margin: 40px 0; }
.timeline-title {
  font-family: var(--font-serif); font-size: 1.5rem;
  color: var(--gold); text-align: center; margin-bottom: 32px;
}
.timeline { position: relative; padding: 0 20px; }
.timeline::before {
  content: ''; position: absolute;
  left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--rose));
  transform: translateX(-50%);
}
.tl-item {
  display: flex; align-items: flex-start;
  margin-bottom: 32px; position: relative;
}
.tl-item.tl-left { flex-direction: row; padding-right: calc(50% + 20px); }
.tl-item.tl-right { flex-direction: row-reverse; padding-left: calc(50% + 20px); }
.tl-dot {
  position: absolute; left: 50%; top: 4px;
  transform: translateX(-50%);
  font-size: 1.4rem;
  background: var(--mid); border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--gold);
}
.tl-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  backdrop-filter: blur(10px);
  flex: 1;
}
.tl-date {
  font-family: var(--font-serif); color: var(--gold);
  font-size: 0.85rem; margin-bottom: 6px;
}
.tl-text { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* ── FINAL CARD ── */
.final-card {
  border-radius: 20px; overflow: hidden;
  border: 2px solid var(--gold);
  margin-bottom: 40px;
  box-shadow: 0 0 60px rgba(201,168,92,0.2);
}
.final-img {
  width: 100%; height: 280px; object-fit: cover; display: block;
}
.final-msg {
  background: linear-gradient(135deg, var(--mid), #1a0e2e);
  padding: 28px 24px; text-align: center;
}
.final-msg p {
  font-family: var(--font-serif); font-size: 1.1rem;
  line-height: 1.8; color: var(--text); margin-bottom: 8px;
}
.final-sign {
  font-style: italic; color: var(--gold) !important;
  font-size: 1.2rem !important; margin-top: 8px !important;
}

/* ── NAV DOTS ── */
.nav-dots {
  position: fixed; right: 14px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  z-index: 100;
}
.nav-dots.hidden { display: none; }
.nav-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); backdrop-filter: blur(10px);
}
.nav-dot:hover, .nav-dot.active {
  background: linear-gradient(135deg, rgba(201,168,92,0.4), rgba(232,160,176,0.3));
  border-color: var(--gold);
  transform: scale(1.15);
}

/* ── GALLERY CTA / LETTER CTA margin ── */
.gallery-cta { margin-top: 8px; animation: none; }
.letter-cta { margin-top: 24px; animation: none; }

/* ── RESPONSIVE ── */
@media (max-width: 380px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cake-base-tier { width: 200px; }
  .cake-mid-tier { width: 150px; }
  .cake-top-tier { width: 105px; }
  .cake-plate { width: 220px; }
}

@media (min-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── MUSIC TOGGLE BUTTON ── */
.music-toggle {
  position: fixed; bottom: 24px; left: 20px; z-index: 200;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,92,0.25), rgba(232,160,176,0.2));
  border: 1px solid var(--gold);
  font-size: 1.3rem; cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(201,168,92,0.3);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  animation: pulse-glow 2s ease-in-out infinite;
}
.music-toggle:hover { transform: scale(1.12); box-shadow: 0 6px 30px rgba(201,168,92,0.5); }
.music-toggle.hidden { display: none; }
.music-toggle.muted { opacity: 0.5; }
@keyframes pulse-glow {
  0%,100% { box-shadow: 0 4px 20px rgba(201,168,92,0.3); }
  50% { box-shadow: 0 4px 35px rgba(201,168,92,0.6); }
}

/* ── CINEMATIC SLIDESHOW ── */
#gallery-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #08060d;
}

.slideshow-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-item.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(35px) brightness(0.35);
  transform: scale(1.12);
  z-index: 1;
}

.slide-img-box {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 85px 16px 125px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-img {
  max-width: 94%;
  max-height: 82vh;
  max-height: 82dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(201, 168, 92, 0.15);
  border: 1px solid rgba(201, 168, 92, 0.25);
  transition: transform 0.6s ease;
}

/* Ken Burns cinematic movements */
.slide-item.active .ken-burns-1 {
  animation: kb1 8s ease-in-out infinite alternate;
}
.slide-item.active .ken-burns-2 {
  animation: kb2 8s ease-in-out infinite alternate;
}
.slide-item.active .ken-burns-3 {
  animation: kb3 8s ease-in-out infinite alternate;
}

@keyframes kb1 {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

@keyframes kb2 {
  0% { transform: scale(1.06) translate(1.5%, -1%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes kb3 {
  0% { transform: scale(1) translate(-1%, 1%); }
  100% { transform: scale(1.05) translate(1%, -1%); }
}

/* Fireworks / Crackers canvas */
.fireworks-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: screen;
}

/* Top bar */
.slideshow-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 26px;
  background: linear-gradient(to bottom, rgba(8, 6, 13, 0.88) 0%, rgba(8, 6, 13, 0.4) 65%, transparent 100%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.slideshow-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  letter-spacing: 0.5px;
}

.slideshow-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

/* Bottom bar */
.slideshow-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 26px 20px 22px;
  background: linear-gradient(to top, rgba(8, 6, 13, 0.94) 0%, rgba(8, 6, 13, 0.6) 70%, transparent 100%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.slide-caption {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  text-align: center;
  font-weight: 400;
  min-height: 1.4rem;
}

.slide-dots-row {
  display: flex;
  gap: 6px;
  max-width: 86vw;
  overflow-x: auto;
  padding: 4px 6px;
  scrollbar-width: none;
}
.slide-dots-row::-webkit-scrollbar { display: none; }

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.slide-dot.active {
  width: 22px;
  border-radius: 6px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.slideshow-cta {
  margin-top: 4px;
  font-size: 0.9rem;
  padding: 10px 26px;
}

/* Navigation arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 12, 28, 0.65);
  border: 1px solid rgba(201, 168, 92, 0.45);
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  user-select: none;
}

.slide-prev { left: 14px; padding-right: 3px; }
.slide-next { right: 14px; padding-left: 3px; }

.slide-arrow:hover {
  background: rgba(201, 168, 92, 0.35);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 480px) {
  .slide-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .slide-prev { left: 8px; }
  .slide-next { right: 8px; }
}

/* ── 0. INTRO / HEADPHONES / LOCK-IN SCREEN ── */
#intro-screen {
  background: #08060e;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(201, 168, 92, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(232, 160, 176, 0.12) 0%, transparent 50%),
              radial-gradient(circle at 20% 70%, rgba(142, 68, 173, 0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  padding: 40px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(201, 168, 92, 0.12);
  border: 1px solid rgba(201, 168, 92, 0.35);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(201, 168, 92, 0.15);
}

.headphones-card {
  position: relative;
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.headphones-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 168, 92, 0.5);
  animation: rotate-ring 12s linear infinite;
}

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

.headphones-icon {
  font-size: 3.2rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(201, 168, 92, 0.5));
  animation: bounce-subtle 2.5s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.sound-wave-bars {
  position: absolute;
  bottom: -6px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 20px;
}

.sound-wave-bars span {
  width: 3px;
  background: linear-gradient(to top, var(--gold), var(--rose));
  border-radius: 3px;
  animation: wave 1.2s ease-in-out infinite alternate;
}

.sound-wave-bars span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.sound-wave-bars span:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.sound-wave-bars span:nth-child(3) { height: 18px; animation-delay: 0.5s; }
.sound-wave-bars span:nth-child(4) { height: 10px; animation-delay: 0.2s; }
.sound-wave-bars span:nth-child(5) { height: 19px; animation-delay: 0.6s; }
.sound-wave-bars span:nth-child(6) { height: 12px; animation-delay: 0.4s; }
.sound-wave-bars span:nth-child(7) { height: 7px; animation-delay: 0.15s; }

@keyframes wave {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1.2); opacity: 1; }
}

.intro-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.intro-subtitle {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.intro-checklist {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.checklist-item {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(201, 168, 92, 0.2);
  border-radius: 14px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.checklist-item:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 92, 0.45);
}

.chk-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.chk-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chk-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2px;
}

.chk-desc {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.intro-btn {
  width: 100%;
  max-width: 320px;
  font-size: 1.05rem;
  padding: 14px 28px;
  box-shadow: 0 6px 30px rgba(201, 168, 92, 0.35);
  animation: pulse-gold 2s ease-in-out infinite;
}

/* ── COUNTDOWN BUTTON STYLES ── */
.cta-btn:disabled,
.cta-btn.countdown-active {
  opacity: 0.65;
  cursor: not-allowed !important;
  pointer-events: none !important;
  background: linear-gradient(135deg, rgba(201, 168, 92, 0.4), rgba(232, 160, 176, 0.3)) !important;
  border-color: rgba(201, 168, 92, 0.35) !important;
  box-shadow: none !important;
  transform: none !important;
}

.cta-btn.pulse-btn {
  animation: pulse-gold 1.8s ease-in-out infinite;
  box-shadow: 0 0 35px rgba(201, 168, 92, 0.7);
  border-color: var(--gold);
}

@keyframes pulse-gold {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(201, 168, 92, 0.4);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(201, 168, 92, 0.75);
  }
}

/* ── 5. CINEMATIC VIDEO SLIDESHOW ── */
#videos-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #06040a;
}

.video-slideshow-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-slide-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-slide-item.active {
  opacity: 1;
  pointer-events: auto;
}

.video-box {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 85px 16px 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide-video {
  max-width: 94%;
  max-height: 80vh;
  max-height: 80dvh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85), 0 0 30px rgba(232, 160, 176, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
  cursor: pointer;
}

.video-sound-pill {
  position: absolute;
  top: 98px;
  right: 20px;
  z-index: 15;
  background: rgba(18, 12, 28, 0.75);
  border: 1px solid rgba(201, 168, 92, 0.4);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}



