* { box-sizing: border-box; margin:0; padding:0; }

body {
  height: 100vh;
  background: linear-gradient(270deg,#12001f,#1a0033,#000);
  background-size: 600% 600%;
  animation: bg 12s ease infinite;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

@keyframes bg { 50% { background-position: 100% 50%; } }

.heart-container {
  width: 200px;
  height: 180px;
  cursor: pointer;
  animation: pulse 1.4s infinite;
  z-index: 3;
}

.heart {
  width: 100px;
  height: 160px;
  background: #ff2f6d;
  position: absolute;
  left: 50px;
  border-radius: 50px 50px 0 0;
  transform: rotate(-45deg);
}

.heart::after {
  content: "";
  width: 100px;
  height: 160px;
  background: #ff2f6d;
  position: absolute;
  left: 50px;
  border-radius: 50px 50px 0 0;
  transform: rotate(90deg);
  transform-origin: 0 100%;
}

.open-text {
  text-align: center;
  position: absolute;
  top: 70px;
  width: 100%;
  font-weight: bold;
}

@keyframes pulse { 50% { transform: scale(1.15); } }

.content {
  display: none;
  height: 100vh;
  width: 100vw;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.content img {
  width: 70vw;
  max-width: 320px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 0 45px rgba(255,0,120,0.8);
}

.name {
  font-size: 2.6em;
  margin: 10px 0;
  background: linear-gradient(45deg,#ff5fa2,#fff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 30px hotpink;
}

.note {
  font-family: 'Courier New', cursive;
  max-width: 90vw;
  font-size: 1.1em;
  margin: 10px 0;
}

.flower {
  font-size: 60px;
  margin-top: 15px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
}

.flower:active { transform: scale(1.2); }

.petal {
  z-index: 5;
  will-change: transform, opacity;
}
