* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at top, #fde2e4, #1a1a2e);
  color: #fff;
  overflow: hidden;
  overflow-y: auto;
}

.container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

.scene {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.scene.active {
  display: flex;
  animation: fade 0.8s ease;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 15px;
}

button {
  padding: 14px 32px;
  border-radius: 30px;
  border: none;
  margin-top: 15px;
  cursor: pointer;
}

.primary {
  background: #f76c8c;
  color: #fff;
}

.secondary, .final {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}

textarea, input {
  width: 260px;
  padding: 12px;
  border-radius: 16px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.locked {
  background: rgba(0,0,0,0.6);
}

.confession {
  background: linear-gradient(180deg, #000, #1a1a2e);
}

.ending {
  background: radial-gradient(circle, #1a1a2e, #000);
}

.confess-line {
  opacity: 0;
  animation: reveal 1s forwards;
}

.delay { animation-delay: 1.2s; }
.delay2 { animation-delay: 2.4s; }

#musicBtn, #nightBtn {
  position: fixed;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

#musicBtn { right: 20px; }
#nightBtn { right: 80px; }

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes reveal {
  to { opacity: 1; }
}

/* ===== GALLERY ===== */
.gallery h2 {
  margin-bottom: 20px;
}

.photo-frame {
  width: 260px;
  height: 360px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  margin-bottom: 15px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: photoFade 0.6s ease;
}

.gallery-controls {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

.gallery-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 20px;
}

#photoCaption {
  font-style: italic;
  opacity: 0.85;
  margin-bottom: 10px;
}

@keyframes photoFade {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999; /* INI KUNCI */
}
