:root {
  --pink: #ffdae9;
  --hot-pink: #ff85a1;
  --red: #ff4d6d;
  --white: #ffffff;
  --perforation: #e2e2e2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23ff4d6d'><path d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/></svg>"),
    auto;
}

body {
  background-color: var(--pink);
  font-family: "Gaegu", cursive;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
}

/* Paper Texture Overlay */
.texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  opacity: 0.15;
  filter: url(#paper-grain);
}

/* Stationery Container */
.stationery-card {
  background: var(--white);
  width: 380px;
  min-height: 500px;
  padding: 40px;
  position: relative;
  box-shadow: 20px 20px 0px rgba(255, 77, 109, 0.2);
  border: 2px solid var(--red);
  animation: cardReveal 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Perforated Edge Effect */
.stationery-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background-image: radial-gradient(circle, var(--pink) 6px, transparent 7px);
  background-size: 20px 20px;
  background-position: center;
}

.stationery-card::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 20px;
  background-image: radial-gradient(circle, var(--pink) 6px, transparent 7px);
  background-size: 20px 20px;
  background-position: center;
}

/* Typography */
.meta-data {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--hot-pink);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
  border-bottom: 1px dashed var(--perforation);
  width: 100%;
  padding-bottom: 10px;
}

h1 {
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 20px;
}

.heart-bloom {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 20px 0;
}

.heart-svg {
  fill: var(--red);
  width: 100%;
  height: 100%;
  animation: heartbeat 1.5s infinite, float 4s ease-in-out infinite;
}

.petal {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--hot-pink);
  border-radius: 50% 50% 0 50%;
  opacity: 0;
  transition: 0.5s;
}

/* Interaction Buttons */
.btn-group {
  margin-top: auto;
  display: flex;
  gap: 20px;
  position: relative;
  width: 100%;
  justify-content: center;
  min-height: 60px;
}

.btn {
  padding: 12px 25px;
  font-family: "Gaegu", cursive;
  font-size: 1.5rem;
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  outline: none;
}

.btn-yes {
  background: var(--red);
  color: white;
}

.btn-yes:hover {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 5px 5px 0px var(--hot-pink);
}

.btn-no {
  position: absolute;
  right: 40px;
}

/* Success State */
#success-message {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.stamp {
  border: 4px double var(--red);
  padding: 10px 20px;
  color: var(--red);
  text-transform: uppercase;
  font-weight: bold;
  transform: rotate(-15deg);
  font-size: 2rem;
  margin-top: 20px;
  opacity: 0;
}

/* Animations */
@keyframes cardReveal {
  0% {
    transform: translateY(100px) rotateX(45deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
  }
}

@keyframes heartbeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.1);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-500px) rotate(360deg);
    opacity: 0;
  }
}

.floating-petal {
  position: fixed;
  pointer-events: none;
  animation: floatUp 3s linear forwards;
}

.confetti {
  position: fixed;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.9;
  animation: confettiBurst 1.4s ease-out    forwards;
}

.bear {
  position: fixed;
  font-size: 70px;
  animation: none;
  user-select: none;
  pointer-events: none;
  z-index: 50;
  display: none;
}

.bear.left {
  left: 10%;
  top: 20%;
  animation: bearFloatLeft 8s ease-in-out infinite;
}

.bear.right {
  right: 10%;
  top: 30%;
  animation: bearFloatRight 7s ease-in-out infinite;
}

@keyframes bearFloatLeft {
  0% {
    transform: translate(0, 0) rotate(-5deg);
  }
  25% {
    transform: translate(40vw, -20vh) rotate(5deg);
  }
  50% {
    transform: translate(20vw, 30vh) rotate(0deg);
  }
  75% {
    transform: translate(-10vw, 10vh) rotate(-10deg);
  }
  100% {
    transform: translate(0, 0) rotate(-5deg);
  }
}

@keyframes bearFloatRight {
  0% {
    transform: translate(0, 0) rotate(5deg);
  }
  25% {
    transform: translate(-30vw, 20vh) rotate(-5deg);
  }
  50% {
    transform: translate(-15vw, -25vh) rotate(10deg);
  }
  75% {
    transform: translate(10vw, -10vh) rotate(0deg);
  }
  100% {
    transform: translate(0, 0) rotate(5deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes confettiBurst {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x), var(--y)) rotate(360deg) scale(0.9);
    opacity: 0;
  }
}

/* Floating Roses & Bouquets */
.rose {
  position: fixed;
  pointer-events: none;
  animation: floatUp 4s ease-in forwards;
}

/* Tiny floating hearts (ambient cute effect) */
.tiny-heart {
  position: fixed;
  font-size: 12px;
  opacity: 0.6;
  pointer-events: none;
  animation: floatUp 6s linear forwards;
}

/* Extra softness to the card */
.stationery-card {
  border-radius: 12px;
}

/* Make YES button extra lovable */
.btn-yes {
  box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.3);
}