* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background: linear-gradient(180deg, #ffe4ec, #fff5f8);
  color: #6d3c4a;
  overflow-x: hidden;
}

.hidden {
  display: none;
}

/* LOCK SCREEN */
#lockScreen {
  position: fixed;
  inset: 0;
  height: 100vh;
  background: linear-gradient(180deg, #ffd6e5, #fff0f5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  z-index: 9999;
}

#lockScreen.open {
  animation: unlockFade 1.2s ease forwards;
}

@keyframes unlockFade {
  to {
    opacity: 0;
    transform: scale(1.08);
  }
}

#lockScreen input {
  width: 220px;
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  text-align: center;
}

#lockScreen button {
  margin-top: 10px;
  padding: 10px 28px;
  border-radius: 30px;
  border: none;
  background: #ff8fb1;
  color: #fff;
}

#errorText {
  margin-top: 10px;
  font-size: 13px;
  color: #c94a6a;
}

/* OVERLAY */
#openingOverlay {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  z-index: 9000;
}

#openingOverlay.show {
  animation: overlayFade 1.2s ease forwards;
}

@keyframes overlayFade {
  40% { opacity: 0.9; }
  100% { opacity: 0; }
}

/* HEADER */
header {
  text-align: center;
  padding: 28px 16px;
}

.subtitle {
  font-size: 13px;
  opacity: 0.8;
}

/* MESSAGE */
.message {
  padding: 18px 22px;
  text-align: center;
  max-width: 520px;
  margin: auto;
  line-height: 1.7;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 22px 18px 40px;
}

.photo {
  background: rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 10px;
}

.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 16px;
}

.photo p {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FADE */
.fade-in {
  animation: fadeUp 1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* MUSIC BUTTON */
#musicToggle {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  z-index: 20;
}

/* HEARTS */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.heart {
  position: absolute;
  bottom: -20px;
  color: rgba(255,143,177,0.6);
  animation: floatHeart linear infinite;
}

@keyframes floatHeart {
  to {
    transform: translateY(-110vh) scale(1.3);
    opacity: 0;
  }
}
