body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #ff9a9e);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  font-family: sans-serif;
}

@keyframes gradientBG {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

/* Kalp */
.heart-real {
  position: relative;
  width: clamp(100px, 25vw, 160px);
  height: clamp(90px, 23vw, 140px);
  background: linear-gradient(145deg, #ff4b5c, #ff1e3c);
  border-radius: 60px 60px 0 0;
  transform: rotate(-45deg);
  animation: beat 1s infinite;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3), inset 0 5px 10px rgba(255,255,255,0.3);
  z-index: 10;
}

.heart-real::before,
.heart-real::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ff4b5c, #ff1e3c);
  border-radius: 60px 60px 0 0;
}

.heart-real::before { top: -50%; left: 0; }
.heart-real::after { left: 50%; top: 0; }

@keyframes beat {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.3); }
}

/* Mesajlar */
#message-top, #message-bottom {
  position: absolute;
  width: 90%;
  text-align: center;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
  word-wrap: break-word;
  white-space: pre-wrap;
  z-index: 999;
}

#message-top.show, #message-bottom.show {
  opacity: 1;
  transform: scale(1.1);
}

/* 1. mesaj (sayfanın en üstünde) */
#message-top {
  top: 5%;
  font-size: clamp(18px, 5vw, 40px);
}

/* 2. mesaj (kalbin altında) */
#message-bottom {
  top: calc(50% + 20vh);
  font-size: clamp(14px, 3vw, 22px);
  line-height: 1.5;
}

/* Küçük kalpler */
.small-heart {
  position: absolute;
  width: 15px;
  height: 15px;
  background: pink;
  border-radius: 50%;
  transform: rotate(-45deg);
  animation: float linear forwards;
}

.small-heart::before,
.small-heart::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: pink;
  border-radius: 50%;
}

.small-heart::before { top: -50%; left: 0; }
.small-heart::after { top: 0; left: 50%; }

@keyframes float {
  0% { transform: translateY(0) rotate(-45deg); opacity: 1; }
  100% { transform: translateY(-50px) rotate(-45deg); opacity: 0; }
}
