* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0d0b16;
  font-family: Arial, sans-serif;
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

.app {
  width: 100%;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  padding: 30px 22px;
  text-align: center;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: linear-gradient(160deg, #0b1026, #1b0f2f, #070711);
  position: relative;
  overflow: hidden;
}

.screen.active {
  display: flex;
}

.heart, .envelope {
  font-size: 75px;
  animation: pulse 1.4s infinite;
  margin-bottom: 20px;
}

h1 {
  font-size: 34px;
  margin-bottom: 18px;
}

h2 {
  font-size: 28px;
  margin-bottom: 18px;
}

p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 370px;
  margin-bottom: 14px;
}

button {
  border: none;
  background: #ff4f8b;
  color: #fff;
  padding: 15px 24px;
  border-radius: 40px;
  font-size: 17px;
  margin-top: 24px;
  box-shadow: 0 0 25px rgba(255, 79, 139, 0.5);
}

.next-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-size: 28px;
  padding: 0;
}

.chapter {
  color: #ffb6d1;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.animation-box {
  height: 120px;
  margin-bottom: 25px;
  font-size: 70px;
}

.timeline {
  position: absolute;
  top: 25px;
  width: 80%;
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: #ff4f8b;
  transition: 0.5s;
}

.page-turn {
  animation: pageTurn 0.6s ease;
}

.game::before { content: "🎮🔥"; animation: bounce 1.6s infinite; display: block; }
.phone::before { content: "📱💬"; animation: bounce 1.6s infinite; display: block; }
.distance::before { content: "📍💔📍"; animation: float 2s infinite; display: block; }
.rain::before { content: "🌧️"; animation: float 2s infinite; display: block; }
.light::before { content: "✨"; animation: glow 1.5s infinite; display: block; }
.pulse-heart::before { content: "❤️"; animation: pulse 1.2s infinite; display: block; }
.travel::before { content: "✈️❤️"; animation: float 2s infinite; display: block; }
.final::before { content: "🤍❤️"; animation: pulse 1.2s infinite; display: block; }
.stars::before { content: "🌟"; animation: glow 1.5s infinite; display: block; }

.falling-heart {
  position: fixed;
  top: -20px;
  color: #ff4f8b;
  font-size: 22px;
  animation: fall linear forwards;
  z-index: 99;
}

@keyframes pulse {
  50% { transform: scale(1.18); }
}

@keyframes float {
  50% { transform: translateY(-14px); }
}

@keyframes glow {
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes bounce {
  40% { transform: translateY(-18px); }
}

@keyframes pageTurn {
  from {
    opacity: 0;
    transform: rotateY(50deg) scale(0.95);
  }
  to {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
}

@keyframes fall {
  to {
    transform: translateY(110vh);
    opacity: 0;
  }
}