@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background:
    radial-gradient(
      1200px 600px at 20% 10%,
      rgba(255, 255, 255, 0.55),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 80% 30%,
      rgba(255, 214, 232, 0.65),
      transparent 55%
    ),
    linear-gradient(135deg, #ffe0ef, #d8b4fe);
  font-family: "Poppins", serif;
  color: #4a4a4a;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: absolute;
  inset: -20vmax;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    radial-gradient(
      circle at 10% 20%,
      rgba(255, 105, 180, 0.35),
      transparent 40%
    ),
    radial-gradient(
      circle at 70% 10%,
      rgba(255, 255, 255, 0.45),
      transparent 45%
    ),
    radial-gradient(
      circle at 80% 75%,
      rgba(255, 105, 180, 0.25),
      transparent 45%
    );
  filter: blur(2px);
  animation: floatGlow 10s ease-in-out infinite;
}

body::after {
  opacity: 0.18;
  animation-duration: 14s;
  transform: rotate(10deg);
}

@keyframes floatGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -1.2rem, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 50px rgba(88, 28, 135, 0.18);
  max-width: min(92vw, 56rem);
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  body {
    padding: 1.6rem;
  }

  .container {
    padding: 2.4rem 2rem;
    max-width: 100%;
  }

  .img {
    height: 22rem;
  }
}

.container::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 105, 180, 0.45),
    rgba(168, 85, 247, 0.35),
    rgba(255, 255, 255, 0.2)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.img {
  width: auto;
  height: 28rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.img:hover {
  transform: scale(1.03);
}

.title {
  font-size: clamp(2.2rem, 2.4vw, 3.1rem);
  font-weight: 700;
  font-family: "Playfair Display", serif;
  color: #db2777;
  margin-bottom: 2.6rem;
  letter-spacing: 0.2px;
}

.buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.buttons.center-yes {
  justify-content: center;
}

.btn {
  padding: 1.6rem 3rem;
  border: none;
  border-radius: 30px;
  font-size: 1.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  will-change: transform;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0px) scale(0.98);
}

.btn:focus-visible {
  outline: 3px solid rgba(219, 39, 119, 0.35);
  outline-offset: 3px;
}

.btn-yes {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.btn-no {
  background: linear-gradient(135deg, #fb7185, #db2777);
  color: white;
  transition:
    background-color 0.3s,
    transform 0.2s;
}

.btn-no.throwing {
  animation: throwAway 850ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes throwAway {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
    filter: blur(0);
  }
  50% {
    transform: translate3d(9rem, -8rem, 0) rotate(35deg) scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(18rem, 18rem, 0) rotate(120deg) scale(0.15);
    opacity: 0;
    filter: blur(1.2px);
  }
}

.hidden {
  display: none;
}

.hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  bottom: -12vh;
  width: 14px;
  height: 14px;
  background: rgba(255, 105, 180, 0.55);
  transform: rotate(45deg);
  filter: drop-shadow(0 6px 10px rgba(219, 39, 119, 0.15));
  animation: floatUp linear forwards;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
}

.heart::before {
  left: -7px;
}

.heart::after {
  top: -7px;
}

@keyframes floatUp {
  0% {
    transform: translate3d(0, 0, 0) rotate(45deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(0, -120vh, 0) rotate(45deg);
    opacity: 0;
  }
}
