*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Prompt','Poppins',sans-serif;
}

body{
  height:100vh;
  overflow:hidden;
  background:linear-gradient(135deg,#ffd6ec,#f3d6ff,#cdefff);
  display:flex;
  justify-content:center;
  align-items:center;
  color:white;
}

/* 🌸 Cute Intro Card */
#main{
  backdrop-filter:blur(20px);
  background:rgba(255,255,255,0.55);
  padding:50px 40px;
  border-radius:40px;
  box-shadow:0 20px 60px rgba(255,182,193,0.4);
  text-align:center;
  animation:popIn 1.2s ease forwards;
  position:relative;
}

@keyframes popIn{
  from{opacity:0;transform:scale(.8);}
  to{opacity:1;transform:scale(1);}
}

#main h1{
  color:#ff4fa3;
  font-size:2rem;
  animation:bounce 2s infinite;
}

@keyframes bounce{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-8px);}
}

#main p{
  color:#ff6fae;
  margin:20px 0;
  font-weight:600;
}

button{
  padding:14px 30px;
  border-radius:50px;
  border:none;
  font-size:1rem;
  cursor:pointer;
  margin:10px;
  transition:.3s;
}

#yes-btn{
  background:#ff6fae;
  color:white;
  box-shadow:0 0 20px #ff9ed2;
  padding:24px 70px;
  font-size:1.3rem;
  font-weight:600;
}

#yes-btn:hover{transform:scale(1.2);}

#no-btn{
  background:white;
  color:#ff69b4;
  position:relative;
  cursor:pointer;
  z-index:20;
}

/* 🎬 Cinematic Mode */
#cinematic{
  position:fixed;
  inset:0;
  display:none;
  overflow:hidden;
  background:linear-gradient(180deg,
    #1a0f2e 0%,
    #3d1e5c 15%,
    #7a3d5c 30%,
    #d46b6b 45%,
    #ff9d5c 60%,
    #ffb366 70%);
}

/* ☀️ Sun */
#cinematic::before{
  content:'';
  position:absolute;
  bottom:25%;
  left:50%;
  transform:translateX(-50%);
  width:220px;
  height:220px;
  background:radial-gradient(circle at 35% 35%, #ffed4e 0%, #ffc857 30%, #ff9500 70%, #ff6b00 100%);
  border-radius:50%;
  box-shadow:0 0 60px rgba(255,200,0,0.8), 
             0 0 100px rgba(255,149,0,0.6), 
             0 0 150px rgba(255,105,0,0.4);
  animation:sunGlow 4s ease-in-out infinite;
  z-index:1;
}

@keyframes sunGlow{
  0%, 100%{
    box-shadow:0 0 60px rgba(255,200,0,0.8), 
               0 0 100px rgba(255,149,0,0.6), 
               0 0 150px rgba(255,105,0,0.4);
  }
  50%{
    box-shadow:0 0 80px rgba(255,200,0,1), 
               0 0 130px rgba(255,149,0,0.8), 
               0 0 180px rgba(255,105,0,0.6);
  }
}

/* 🌊 Sea */
#cinematic::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:35%;
  background:linear-gradient(180deg, #1a4d5c 0%, #0d3a47 50%, #0a2f3a 100%);
  z-index:2;
}

/* 🌊 Waves */
.wave{
  position:absolute;
  bottom:0;
  left:0;
  width:200%;
  height:120px;
  background:url('data:image/svg+xml,<svg viewBox="0 0 1200 120" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23259ba5;stop-opacity:1" /><stop offset="100%" style="stop-color:%230a2f3a;stop-opacity:1" /></linearGradient></defs><path d="M0,40 Q150,10 300,40 T600,40 T900,40 T1200,40 L1200,120 L0,120 Z" fill="url(%23grad)"/><path d="M0,60 Q150,40 300,60 T600,60 T900,60 T1200,60 L1200,120 L0,120 Z" fill="%23186b7c" opacity="0.7"/></svg>');
  background-size:600px 120px;
  animation:wave 10s linear infinite;
  z-index:3;
}

.wave:nth-child(1){
  bottom:5px;
  opacity:0.9;
  animation:wave 10s linear infinite;
}

.wave:nth-child(2){
  bottom:15px;
  opacity:0.7;
  animation:wave 12s linear infinite reverse;
}

.wave:nth-child(3){
  bottom:25px;
  opacity:0.5;
  animation:wave 14s linear infinite;
}

@keyframes wave{
  0%{transform:translateX(0);}
  100%{transform:translateX(600px);}
}

/* 🌌 Stars */
.star{
  position:absolute;
  width:2px;
  height:2px;
  background:white;
  border-radius:50%;
  opacity:.7;
  animation:twinkle 3s infinite ease-in-out, sparkle 0.6s infinite ease-in-out;
  box-shadow:0 0 8px rgba(255,255,255,0.8);
}

@keyframes twinkle{
  0%,100%{opacity:.2;}
  50%{opacity:1;}
}

@keyframes sparkle{
  0%,100%{transform:scale(1);}
  50%{transform:scale(1.3);}
}

/* 💎 Floating 3D Hearts */
.heart3d{
  position:absolute;
  font-size:24px;
  animation:float3d 8s infinite ease-in-out;
}

@keyframes float3d{
  0%{transform:translateY(100vh) rotateY(0deg);}
  50%{transform:translateY(40vh) rotateY(180deg);}
  100%{transform:translateY(-10vh) rotateY(360deg);}
}

/* 📸 Photo Container - Carousel */
#photo-container{
  position:absolute;
  top:50px;
  left:50%;
  transform:translateX(-50%);
  width:100vw;
  height:300px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:200px;
  padding:0 50px;
  overflow:visible;
  z-index:5;
}

/* 📸 Card Slideshow */
.polaroid{
  position:absolute;
  width:140px;
  height:180px;
  background:white;
  padding:10px 10px 25px 10px;
  border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
  animation:moveCircle 120s linear infinite;
  cursor:pointer;
  transition:box-shadow 0.3s ease;
  opacity:0.85;
}

.polaroid:hover{
  transform:translateY(-12px) scale(1.1);
  box-shadow:0 20px 45px rgba(255,105,180,0.4);
  opacity:1;
}

.polaroid img{
  width:100%;
  height:120px;
  object-fit:cover;
  border-radius:6px;
  display:block;
}

/* Semicircle motion animation - Fixed spacing and disappearing bug */
@keyframes moveCircle{
  0%{
    left:115vw;
    top:0;
    opacity:0.7;
    pointer-events:none;
  }
  10%{
    opacity:0.85;
  }
  25%{
    left:50vw;
    top:-60px;
    opacity:1;
    pointer-events:auto;
  }
  40%{
    opacity:0.85;
  }
  50%{
    left:-15vw;
    top:0;
    opacity:0.85;
    pointer-events:none;
  }
  100%{
    left:-115vw;
    top:0;
    opacity:0.7;
    pointer-events:none;
  }
}

/* Stagger animation - Equal spacing every 7.5s */
.polaroid:nth-child(1){ animation-delay:0s; }
.polaroid:nth-child(2){ animation-delay:-7.5s; }
.polaroid:nth-child(3){ animation-delay:-15s; }
.polaroid:nth-child(4){ animation-delay:-22.5s; }
.polaroid:nth-child(5){ animation-delay:-30s; }
.polaroid:nth-child(6){ animation-delay:-37.5s; }
.polaroid:nth-child(7){ animation-delay:-45s; }
.polaroid:nth-child(8){ animation-delay:-52.5s; }
.polaroid:nth-child(9){ animation-delay:-60s; }
.polaroid:nth-child(10){ animation-delay:-67.5s; }
.polaroid:nth-child(11){ animation-delay:-75s; }
.polaroid:nth-child(12){ animation-delay:-82.5s; }
.polaroid:nth-child(13){ animation-delay:-90s; }
.polaroid:nth-child(14){ animation-delay:-97.5s; }
.polaroid:nth-child(15){ animation-delay:-105s; }
.polaroid:nth-child(16){ animation-delay:-112.5s; }

/* 🎵 Karaoke */
.lyric{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:85%;
  text-align:center;
  font-size:2.5rem;
  color:white;
  text-shadow:0 0 20px rgba(255,157,210,0.8), 0 0 40px rgba(255,105,180,0.6);
  background:rgba(0,0,0,0.75);
  padding:20px 35px;
  border-radius:15px;
  backdrop-filter:blur(10px);
  z-index:10;
  box-shadow:0 0 40px rgba(255,105,180,0.5);
}


.word{
  opacity:.3;
  transition:.3s;
}

.word.active{
  opacity:1;
  color:#ff9ed2;
  text-shadow:0 0 10px #ff9ed2;
}

/* 💍 Proposal */
#proposal{
  display:none;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:100%;
  text-align:center;
  z-index:10;
}

#ring-btn{
  padding:25px 60px;
  font-size:1.8rem;
  border-radius:50px;
  border:none;
  background:linear-gradient(45deg,#ff6fae,#ffb6e6);
  color:white;
  box-shadow:0 0 30px #ff8cc6;
  animation:pulse 2s infinite;
  font-weight:600;
}

@keyframes pulse{
  0%{box-shadow:0 0 10px #ff8cc6;}
  50%{box-shadow:0 0 40px #ffb6e6;}
  100%{box-shadow:0 0 10px #ff8cc6;}
}

/* 🎆 Fireworks */
#fireworks{
  position:fixed;
  inset:0;
  pointer-events:none;
  display:none;
}

/* 💖 Ending */
#ending{
  display:none;
  position:fixed;
  inset:0;
  background:linear-gradient(135deg, #1a0f2e 0%, #3d1e5c 25%, #8b3a62 50%, #d46b6b 75%, #ff9d5c 100%);
  justify-content:center;
  align-items:center;
  flex-direction:column;
  font-size:2rem;
  overflow:hidden;
  z-index:100;
}

#ending::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:radial-gradient(circle at 20% 50%, rgba(255,182,193,0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,105,180,0.15) 0%, transparent 50%);
  pointer-events:none;
}

#ending > div:first-child{
  position:relative;
  z-index:2;
  font-size:4rem;
  font-weight:700;
  color:white;
  text-shadow:0 0 30px rgba(255,105,180,0.8),
              0 0 60px rgba(255,182,193,0.6),
              0 20px 40px rgba(0,0,0,0.5);
  animation:fadeInScale 1.2s ease-out;
  letter-spacing:2px;
  margin-bottom:30px;
}

#ending > div:last-child{
  position:relative;
  z-index:2;
  font-size:1.4rem;
  font-weight:500;
  color:#ffe5f0;
  text-shadow:0 0 20px rgba(255,182,193,0.6);
  animation:fadeInScale 1.5s ease-out 0.3s both;
  letter-spacing:1px;
  text-align:center;
  line-height:1.8;
}

@keyframes fadeInScale{
  from{
    opacity:0;
    transform:scale(0.8);
  }
  to{
    opacity:1;
    transform:scale(1);
  }
}

/* Floating hearts in ending */
#ending::after{
  content:'💖';
  position:absolute;
  font-size:3rem;
  animation:floatHeart 4s ease-in-out infinite;
  z-index:1;
}

@keyframes floatHeart{
  0%{
    transform:translateY(100vh) scale(0);
    opacity:0;
  }
  10%{
    opacity:1;
    transform:translateY(80vh) scale(1);
  }
  50%{
    transform:translateY(30vh) scale(1);
    opacity:1;
  }
  90%{
    opacity:1;
    transform:translateY(-20vh) scale(1);
  }
  100%{
    opacity:0;
    transform:translateY(-100vh) scale(0);
  }
}

/* Falling hearts animation */
@keyframes fallHeart{
  to{
    transform:translateY(100vh) rotateZ(360deg);
    opacity:0;
  }
}
