/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  overflow: hidden;
  background: radial-gradient(circle at top, #ffb6c1, #ff4d6d);
  height: 100vh;
  color: white;
}

/* BACKGROUND PARTICLES */
.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(pink 1px, transparent 1px);
  background-size: 40px 40px;
  animation: sparkle 20s linear infinite;
  opacity: 0.3;
}

@keyframes sparkle {
  from { background-position: 0 0; }
  to { background-position: 200px 400px; }
}

/* CONTAINER */
.container {
  position: relative;
  z-index: 2;
  height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* TEXT */
.main-text {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.4;
  animation: fadeScale 1.2s ease forwards;
}

.main-text span {
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.dynamic-text {
  margin-bottom: 15px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* BUTTONS */
.buttons {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.btn {
  border: none;
  padding: 14px 22px;
  font-size: 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.yes {
  background: linear-gradient(45deg, #ff5fa2, #ff85b3);
  box-shadow: 0 0 15px rgba(255, 100, 180, 0.8);
}

.no {
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
}

/* FINAL SCREEN */
.final {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, #ff4d6d, #c9184a);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  animation: fadeIn 1s ease forwards;
}

.hidden {
  display: none;
}

.final h2 {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  margin-top: 20px;
}

/* HEART BEAT */
.heart-beat {
  font-size: 4rem;
  animation: beat 1s infinite;
}

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

/* ANIMATIONS */
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 500px) {
  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* CANVAS */
#magicCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
}

/* SECRET MESSAGE */
.secret {
  margin-top: 20px;
  font-size: 1rem;
  opacity: 0.85;
  animation: fadeIn 1.5s ease forwards;
}