:root {
  color-scheme: light;
  --pink-1: #ffedf4;
  --pink-2: #ffd6e8;
  --pink-3: #ff8ab2;
  --pink-4: #ff5f9a;
  --text: #6a2d4a;
  --shadow: 0 18px 35px rgba(255, 95, 154, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--pink-1), var(--pink-2));
  min-height: 100vh;
}

.page-shell {
  width: 100%;
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  text-align: center;
}

.landing-screen {
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.floating-heart {
  font-size: 3rem;
  animation: bob 2.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.8;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
}

.subtitle {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 3.2vw, 1.08rem);
  line-height: 1.7;
}

.surprise-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  background: linear-gradient(135deg, var(--pink-3), var(--pink-4));
  color: white;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.surprise-btn:hover,
.surprise-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 95, 154, 0.28);
}

.memory-screen {
  gap: 12px;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}

h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4.5vw, 1.8rem);
}

.video-card {
  width: min(92vw, 430px);
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff6fa;
  border: 1px solid rgba(255, 95, 154, 0.18);
}

.memory-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #ffeaf2;
}

.video-caption {
  margin: 0;
  max-width: 32rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

.letter-screen {
  padding-top: 12px;
  padding-bottom: 36px;
}

.letter-card {
  width: min(92vw, 540px);
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 95, 154, 0.18);
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition: all 0.7s ease;
}

.letter-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.letter-label {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--pink-4);
}

.letter-card p {
  margin: 0 0 12px;
  line-height: 1.75;
  font-size: 1rem;
}

.signoff {
  margin-top: 16px;
  font-weight: 600;
  color: var(--pink-4);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 480px) {
  .screen {
    padding: 20px 14px;
  }

  .video-card {
    width: min(96vw, 390px);
    border-radius: 22px;
  }

  .letter-card {
    padding: 18px;
    border-radius: 22px;
  }
}
