/* =============================================
   ROMANTIC BIRTHDAY — STYLE.CSS
   ============================================= */

:root {
  --pink-light: #ffd6ea;
  --pink-mid: #ff9fcf;
  --pink-deep: #f05f9d;
  --rose-gold: #f7c948;
  --rose-gold-light: #fff08a;
  --lavender: #9be7c5;
  --lavender-deep: #4fb477;
  --warm-white: #fffdf4;
  --cream: #fff8ca;
  --dark-bg: #07140d;
  --dark-mid: #0d2418;
  --dark-rose: #17381f;
  --gold: #ffd84f;
  --gold-light: #fff3a6;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 239, 196, 0.88);
  --glow-pink: rgba(255, 120, 190, 0.6);
  --glow-rose: rgba(255, 216, 79, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  cursor: none;
}

/* ===== GLOBAL STARS ===== */
.stars-canvas-global {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ===== CANVAS LAYERS ===== */
#cursorCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.petal-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ===== SCENES ===== */
.scene {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  overflow: hidden;
  z-index: 1;
}
.scene.active {
  opacity: 1;
  pointer-events: all;
}

/* ===== MUSIC BUTTON ===== */
.music-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 10000;
  transition: opacity 0.5s;
}
.music-btn button {
  background: rgba(155, 231, 197, 0.18);
  border: 1px solid rgba(255, 214, 234, 0.45);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
}
.music-btn button:hover {
  background: rgba(255, 216, 79, 0.24);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 120, 190, 0.5);
}

/* =============================================
   SCENE 1 — UNLOCK MY HEART
   ============================================= */
#scene-unlock {
  background: radial-gradient(
    ellipse at center,
    rgba(23, 56, 31, 0.76) 0%,
    rgba(13, 36, 24, 0.56) 60%,
    rgba(7, 20, 13, 0.48) 100%
  );
  z-index: 2;
}

.floating-hearts-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.unlock-container {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.unlock-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px;
}

.pre-text {
  font-family: "Parisienne", cursive;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  color: var(--pink-light);
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 0 30px rgba(255, 216, 79, 0.45);
  animation: floatText 3s ease-in-out infinite;
}

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

.lock-key-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  min-height: 200px;
}

.heart-lock {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.heart-lock-svg {
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 0 20px rgba(255, 120, 190, 0.7));
  animation: heartbeat 2s ease-in-out infinite;
  transition: filter 0.3s;
}

.heart-path {
  fill: url(#heartGrad);
}
.lock-body {
  fill: rgba(7, 20, 13, 0.86);
  stroke: var(--rose-gold-light);
  stroke-width: 1.5;
}
.lock-shackle {
  stroke: var(--rose-gold-light);
}
.keyhole {
  fill: var(--rose-gold-light);
}

.heart-glow-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(155, 231, 197, 0.36);
  animation: ringPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.07);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(1);
  }
}
@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.1;
  }
}

.heart-lock.near .heart-lock-svg {
  filter: drop-shadow(0 0 40px rgba(255, 120, 190, 0.95))
    drop-shadow(0 0 80px rgba(155, 231, 197, 0.55));
  animation: heartbeatFast 0.5s ease-in-out infinite;
}
@keyframes heartbeatFast {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.key-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.key-drag {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: grab;
  transition:
    transform 0.2s,
    filter 0.2s;
  user-select: none;
  animation: keyFloat 2.5s ease-in-out infinite;
}
@keyframes keyFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}
.key-drag:active {
  cursor: grabbing;
  animation: none;
}
.key-svg {
  width: 120px;
  filter: drop-shadow(0 0 12px rgba(255, 216, 79, 0.8));
}
.key-hint {
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255, 240, 138, 0.82);
  text-transform: uppercase;
}

.sub-text {
  font-family: "Parisienne", cursive;
  font-size: clamp(1.1rem, 2.8vw, 1.8rem);
  color: rgba(255, 248, 202, 0.86);
  text-align: center;
  letter-spacing: 0.06em;
}
.miss-text {
  font-family: "Parisienne", cursive;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  color: var(--pink-mid);
  text-align: center;
  min-height: 2em;
  opacity: 0;
  transition: opacity 0.5s;
  text-shadow: 0 0 15px rgba(255, 120, 190, 0.5);
}
.miss-text.show {
  opacity: 1;
}

/* ---- Smooth unlock overlay ---- */
.unlock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: radial-gradient(
    ellipse at center,
    rgba(255, 240, 138, 0) 0%,
    rgba(255, 159, 207, 0) 30%,
    rgba(7, 20, 13, 0) 100%
  );
}
.unlock-overlay.phase1 {
  opacity: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 240, 138, 0.36) 0%,
    rgba(255, 159, 207, 0.18) 40%,
    rgba(7, 20, 13, 0.95) 100%
  );
}
.unlock-overlay.phase2 {
  opacity: 1;
  background: rgba(7, 20, 13, 1);
  transition:
    opacity 1.2s ease,
    background 1.2s ease;
}
.unlock-overlay.phase3 {
  opacity: 0;
  background: rgba(7, 20, 13, 1);
  transition: opacity 1.5s ease;
}

/* =============================================
   SCENE 2 — BIRTHDAY REVEAL
   ============================================= */
#scene-birthday {
  background: radial-gradient(
    ellipse at 30% 40%,
    rgba(28, 78, 43, 0.82) 0%,
    rgba(25, 42, 22, 0.74) 50%,
    rgba(7, 20, 13, 0.58) 100%
  );
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.birthday-container {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.birthday-header {
  text-align: center;
  animation: fadeSlideUp 1.2s ease forwards;
  will-change: opacity, transform;
  padding: 20px;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.birthday-title {
  font-family: "Brittany Signature", "Parisienne", cursive;
  font-size: clamp(2rem, 6.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--warm-white);
  text-shadow:
    0 0 40px rgba(255, 120, 190, 0.56),
    0 0 80px rgba(155, 231, 197, 0.26);
  margin-bottom: 0;
}

.birthday-name {
  display: block;
  font-family: "Brittany Signature", "Parisienne", cursive;
  background: linear-gradient(135deg, #ff9fcf, #fff08a, #9be7c5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(1.8rem, 6vw, 4rem);
  line-height: 1.3;
}

.birthday-subtitle-spacer {
  height: clamp(16px, 3vh, 36px);
}

.birthday-subtitle {
  font-family: "Parisienne", cursive;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
  color: var(--pink-light);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(255, 240, 138, 0.46);
}

/* ---- Wish items (Nazz BD style) ---- */
.wish-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.wish-item {
  position: absolute;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem);
  font-style: italic;
  font-weight: 300;
  text-align: center;
  padding: 32px 40px;
  max-width: min(85%, 620px);
  color: var(--warm-white);
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(255, 240, 138, 0.26);
  background: rgba(155, 231, 197, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 214, 234, 0.18);
  border-radius: 8px;
  box-shadow:
    0 8px 40px rgba(155, 231, 197, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: scale(0.85) translateY(15px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.wish-item.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.wish-item.fading {
  opacity: 0;
  transform: scale(0.9) translateY(-20px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   SCENE 3 — ENDING (scrollable)
   ============================================= */
#scene-ending {
  background: radial-gradient(
    ellipse at center,
    rgba(23, 56, 31, 0.88) 0%,
    rgba(11, 30, 20, 0.82) 50%,
    rgba(4, 15, 9, 0.75) 100%
  );
  z-index: 2;
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-start;
}
.ending-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    #17381f 0%,
    #0b1e14 50%,
    #040f09 100%
  );
  z-index: 0;
}
.ending-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ending-scroll-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.ending-container {
  position: relative;
  z-index: 5;
  max-width: 720px;
  padding: 60px 30px 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: auto;
  min-height: 100%;
  justify-content: center;
  width: 100%;
}
.ending-ornament-top {
  font-size: 2.5rem;
  animation: floatText 3s ease-in-out infinite;
}
.ending-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.6vw, 1.75rem);
  font-style: italic;
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.85;
  letter-spacing: 0.025em;
  text-shadow:
    0 0 30px rgba(255, 159, 207, 0.38),
    0 0 60px rgba(155, 231, 197, 0.2);
  opacity: 0;
  transition: opacity 1.5s ease;
}
.ending-text.visible {
  opacity: 1;
}

.word-span {
  opacity: 0;
  display: inline-block;
  animation: fadeInWord 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  white-space: pre-wrap;
}

@keyframes fadeInWord {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ending-ornament-bottom {
  font-size: 1.1rem;
  color: var(--rose-gold-light);
  opacity: 0.6;
  letter-spacing: 0.4em;
}
.gallery-btn {
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(255, 159, 207, 0.18),
    rgba(155, 231, 197, 0.2)
  );
  border: 1px solid rgba(255, 240, 138, 0.42);
  border-radius: 50px;
  padding: 16px 44px;
  color: var(--pink-light);
  cursor: pointer;
  transition: all 0.4s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeSlideUp 1s ease forwards;
  margin-bottom: 40px;
}
.gallery-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 159, 207, 0.32),
    rgba(255, 216, 79, 0.34)
  );
  box-shadow: 0 0 30px rgba(255, 216, 79, 0.46);
  transform: translateY(-3px);
  color: white;
}

/* =============================================
   SCENE 4 — HANGING GALLERY
   ============================================= */
#scene-gallery {
  background: radial-gradient(
    ellipse at 20% 20%,
    rgba(23, 56, 31, 0.86) 0%,
    rgba(11, 30, 20, 0.82) 40%,
    rgba(4, 15, 9, 0.74) 100%
  );
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 2;
}
.gallery-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 20% 20%,
    #17381f 0%,
    #0b1e14 40%,
    #040f09 100%
  );
  z-index: 0;
}
.gallery-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.gallery-scroll-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.gallery-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 30px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* ---- FEATURED FRAMES ---- */
.featured-frames {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 1000px;
  padding-top: 10px;
}

.featured-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swingHang 4s ease-in-out infinite;
  transform-origin: top center;
  flex: 1;
  max-width: 260px;
}

.featured-frame.tall {
  --rope-height: 110px;
}
.featured-frame.short {
  --rope-height: 65px;
}

.featured-frame .rope {
  width: 3px;
  height: var(--rope-height, 80px);
  border-radius: 2px;
  background: linear-gradient(to bottom, #fff08acc, #4fb47755);
  box-shadow: 0 0 6px rgba(255, 216, 79, 0.3);
  position: relative;
}
.featured-frame .rope::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -4px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose-gold-light);
  box-shadow: 0 0 8px rgba(255, 240, 138, 0.6);
}

.featured-frame .rope-ornament {
  font-size: 1rem;
  margin-top: -4px;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 4px rgba(255, 216, 79, 0.5));
  animation: ornamentSpin 8s linear infinite;
}

.featured-frame .hang-card {
  background: #fff;
  padding: 8px 8px 32px;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 2px 10px rgba(255, 159, 207, 0.22);
  border-radius: 3px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: default;
  width: 100%;
}
.featured-frame .hang-card:hover {
  transform: scale(1.04) rotate(0deg) !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 4px 20px rgba(155, 231, 197, 0.36);
}

.featured-frame .hang-media {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  background: linear-gradient(135deg, #ffd6ea, #fff8ca, #c9f6de);
}

.featured-frame.short .hang-media {
  aspect-ratio: 4/3;
}

.featured-frame .hang-caption {
  padding-top: 6px;
  text-align: center;
  font-family: "Parisienne", cursive;
  font-size: 0.85rem;
  color: #5d7b4c;
  letter-spacing: 0.03em;
}

/* Gallery header */
.gallery-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gallery-ornament {
  font-size: 1rem;
  color: var(--rose-gold-light);
  opacity: 0.55;
  letter-spacing: 0.5em;
}
.gallery-title {
  font-family: "Brittany Signature", "Parisienne", cursive;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--warm-white);
  text-shadow: 0 0 30px rgba(255, 159, 207, 0.46);
}
.gallery-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--pink-light);
  opacity: 0.85;
  max-width: 600px;
  line-height: 1.7;
}

/* ---- REMAINING GALLERY GRID ---- */
.remaining-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 900px;
}

.remaining-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  animation: remainingFadeIn 0.8s ease forwards;
}

@keyframes remainingFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.remaining-item .remaining-card {
  background: #fff;
  padding: 8px 8px 32px;
  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(255, 159, 207, 0.18);
  border-radius: 3px;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  cursor: default;
  width: 100%;
}
.remaining-item .remaining-card:hover {
  transform: scale(1.04);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.6),
    0 4px 16px rgba(155, 231, 197, 0.35);
}

.remaining-item .remaining-media {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  border-radius: 1px;
  background: linear-gradient(135deg, #ffd6ea, #fff8ca, #c9f6de);
}

.remaining-item .remaining-caption {
  padding-top: 6px;
  text-align: center;
  font-family: "Parisienne", cursive;
  font-size: 0.85rem;
  color: #5d7b4c;
  letter-spacing: 0.03em;
}

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

@keyframes ornamentSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.gallery-footer {
  text-align: center;
  padding: 20px 0 0;
}
.gallery-footer-text {
  font-family: "Parisienne", cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--pink-light);
  text-shadow: 0 0 20px rgba(255, 216, 79, 0.36);
  opacity: 0.9;
  line-height: 1.8;
}

/* Custom scrollbar */
.ending-scroll-wrapper::-webkit-scrollbar,
.gallery-scroll-wrapper::-webkit-scrollbar {
  width: 5px;
}
.ending-scroll-wrapper::-webkit-scrollbar-track,
.gallery-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}
.ending-scroll-wrapper::-webkit-scrollbar-thumb,
.gallery-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(155, 231, 197, 0.28);
  border-radius: 10px;
}
.ending-scroll-wrapper::-webkit-scrollbar-thumb:hover,
.gallery-scroll-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 159, 207, 0.45);
}

/* =============================================
   FLOATING HEARTS
   ============================================= */
.float-heart {
  position: absolute;
  pointer-events: none;
  animation: floatUp linear forwards;
  z-index: 2;
  user-select: none;
}
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-100vh) scale(0.3) rotate(30deg);
    opacity: 0;
  }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .featured-frames {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  .featured-frame {
    max-width: 45%;
    flex: 0 0 45%;
  }
  .featured-frame.tall {
    --rope-height: 70px;
  }
  .featured-frame.short {
    --rope-height: 45px;
  }
  .remaining-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .wish-item {
    padding: 24px 22px;
    font-size: clamp(1rem, 2.2vw, 1.4rem);
  }
}

@media (max-width: 600px) {
  .lock-key-area {
    flex-direction: column;
    gap: 30px;
  }
  .featured-frames {
    gap: 8px;
  }
  .featured-frame {
    max-width: 48%;
    flex: 0 0 48%;
  }
  .birthday-container {
    padding: 0 14px;
  }
  .remaining-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ending-container {
    padding: 40px 20px 80px;
  }
  .wish-item {
    padding: 20px 16px;
    max-width: 92%;
  }
}

@media (max-width: 400px) {
  .featured-frame {
    max-width: 46%;
    flex: 0 0 46%;
  }
  .remaining-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .birthday-title {
    font-size: clamp(1.6rem, 5.5vw, 3rem);
  }
  .birthday-name {
    font-size: clamp(1.4rem, 5vw, 2.5rem);
  }
}

/* ===== CURSOR DOT ===== */
.cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  background: rgba(255, 159, 207, 0.9);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(255, 216, 79, 0.75);
  transition:
    width 0.2s,
    height 0.2s;
}

/* ===== TYPEWRITER CURSOR ===== */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--pink-light);
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* =============================================
   SCENE 0 — COUNTDOWN
   ============================================= */
#scene-countdown {
  background: var(--dark-bg);
  z-index: 3;
}

.countdown-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at bottom,
    rgba(23, 56, 31, 0.82) 0%,
    rgba(7, 20, 13, 0.92) 60%,
    rgba(3, 10, 6, 1) 100%
  );
  z-index: 0;
}
.countdown-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
}

.countdown-fog {
  position: absolute;
  bottom: -20%;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(255, 216, 79, 0.12), transparent);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: fogDrift 15s infinite alternate ease-in-out;
}

@keyframes fogDrift {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  100% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.7;
  }
}

.countdown-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.countdown-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 20px;
}

.countdown-msg-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.countdown-message {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-style: italic;
  font-weight: 300;
  color: var(--pink-light);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(255, 240, 138, 0.46);
  opacity: 0;
  transition: opacity 2s ease-in-out;
}
.countdown-message.visible {
  opacity: 1;
}

.countdown-timer {
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--warm-white);
  letter-spacing: 0.1em;
  text-shadow:
    0 0 30px rgba(255, 159, 207, 0.56),
    0 0 10px rgba(255, 255, 255, 0.4);
  margin-bottom: 50px;
}

.enter-btn-wrapper {
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.5s ease,
    transform 1.5s ease;
  z-index: 6;
}
.enter-btn-wrapper.show {
  opacity: 1;
  transform: translateY(0);
}

.enter-btn {
  font-family: "Cinzel", serif;
  font-size: clamp(0.95rem, 2.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    rgba(255, 159, 207, 0.18),
    rgba(155, 231, 197, 0.22)
  );
  border: 1.5px solid rgba(255, 240, 138, 0.48);
  border-radius: 50px;
  padding: 18px 52px;
  color: var(--pink-light);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(155, 231, 197, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  outline: none;
  animation: enterBtnPulse 2.5s infinite alternate ease-in-out;
}

.enter-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 159, 207, 0.35),
    rgba(255, 216, 79, 0.36)
  );
  border-color: rgba(255, 240, 138, 0.86);
  box-shadow:
    0 0 35px rgba(255, 216, 79, 0.56),
    0 0 15px rgba(255, 255, 255, 0.25);
  transform: translateY(-4px) scale(1.03);
  color: #fff;
}

.enter-btn:active {
  transform: translateY(-1px) scale(0.98);
}

@keyframes enterBtnPulse {
  0% {
    box-shadow:
      0 8px 32px rgba(155, 231, 197, 0.16),
      0 0 0 0 rgba(255, 240, 138, 0);
  }
  100% {
    box-shadow:
      0 8px 32px rgba(255, 159, 207, 0.24),
      0 0 18px 6px rgba(255, 240, 138, 0.3);
  }
}

.open-sooner-wrapper {
  position: absolute;
  bottom: 40px;
}

.open-sooner-btn {
  background: none;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 248, 202, 0.58);
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 10px 20px;
}
.open-sooner-btn:hover {
  color: rgba(255, 248, 202, 1);
  text-shadow: 0 0 10px rgba(255, 216, 79, 0.7);
}

/* Password Modal */
.password-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 20, 13, 0.74);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 10;
}
.password-modal.show {
  opacity: 1;
  pointer-events: all;
}

.password-modal-content {
  background: rgba(155, 231, 197, 0.07);
  border: 1px solid rgba(255, 240, 138, 0.22);
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 159, 207, 0.11);
  max-width: 400px;
  width: 90%;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}
.password-modal.show .password-modal-content {
  transform: translateY(0);
}

.password-prompt {
  font-family: "Parisienne", cursive;
  font-size: 1.8rem;
  color: var(--pink-light);
  margin-bottom: 25px;
  text-shadow: 0 0 15px rgba(255, 216, 79, 0.35);
}

.password-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 159, 207, 0.34);
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--warm-white);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  text-align: center;
  outline: none;
  margin-bottom: 20px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.password-input:focus {
  border-color: rgba(255, 240, 138, 0.78);
  box-shadow: 0 0 15px rgba(255, 216, 79, 0.26);
}

.password-submit {
  background: linear-gradient(
    135deg,
    rgba(255, 159, 207, 0.23),
    rgba(155, 231, 197, 0.3)
  );
  border: 1px solid rgba(255, 240, 138, 0.42);
  border-radius: 30px;
  padding: 10px 30px;
  color: var(--warm-white);
  font-family: "Cinzel", serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 15px;
}
.password-submit:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 159, 207, 0.42),
    rgba(255, 216, 79, 0.42)
  );
  box-shadow: 0 0 20px rgba(255, 216, 79, 0.38);
}

.password-error {
  font-family: "Parisienne", cursive;
  font-size: 1.2rem;
  color: var(--pink-deep);
  min-height: 1.5em;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 159, 207, 0.4);
}

.close-modal-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.3s;
}
.close-modal-btn:hover {
  color: rgba(255, 255, 255, 0.8);
}
