body {
  margin: 0;
  background: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scene {
  position: relative;
  width: 600px;
  height: 700px;
  text-align: center;
}

/* Envelope image with pumping animation */
.envelope {
  width: 300px;
  cursor: pointer;
  animation: pump 1s infinite;
  transition: opacity 0.5s ease;
}

@keyframes pump {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Bouncing arrow */
.arrow {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 22px;
  color: #d6336c;
  font-family: 'Comic Sans MS', cursive;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Message card */
.message {
  display: none;
  margin-top: 20px;
  background: #fff0f5;
  border: 2px solid #ff99cc;
  border-radius: 12px;
  padding: 20px;
  font-family: 'Comic Sans MS', cursive;
  color: #d6336c;
  box-shadow: 0 0 15px rgba(255, 153, 204, 0.6);
  opacity: 0;
}

.message-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.love-text {
  font-size: 28px;
  color: #d6336c;
  text-shadow: 2px 2px 6px rgba(255, 153, 204, 0.6);
}

.message-gif {
  width: 80px;
  border-radius: 12px;
}

@keyframes slideOut {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(50px); opacity: 0; }
}

/* Bubble text */
.text-bubble {
  position: absolute;
  left: 50%;
  bottom: 320px;
  transform: translateX(-50%);
  background: #ffccdd;
  color: #d6336c;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Comic Sans MS', cursive;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(255, 153, 204, 0.5);
  opacity: 0;
}

@keyframes bubbleFade {
  0% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1); }
}

/* Floating hearts */
#heartContainer {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.heart {
  position: absolute;
  font-size: 24px;
  color: red;
  animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-250px) scale(1.2); opacity: 0; }
}
