* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 192, 203, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 182, 193, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(255, 105, 180, 0.2) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff9a9e 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size:
    50px 50px,
    80px 80px;
  background-position:
    0 0,
    40px 40px;
  animation: twinkle 3s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 3rem 2rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  z-index: 1;
}

h1 {
  font-family: "Pacifico", cursive;
  color: #e91e63;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

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

.main-photos-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 1rem 0;
}

.main-photo {
  width: 120px;
  height: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 2px solid #f6a5c1;
  box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
  animation: photoFloat 3s ease-in-out infinite;
}

.main-photo-left {
  animation-delay: 0s;
}

.main-photo-right {
  animation-delay: 0.5s;
}

@keyframes photoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.05);
  }
}

.heart-image {
  font-size: 8rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
  font-weight: 300;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  position: relative;
  height: 150px;
  width: 100%;
}

button {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

#yesBtn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  transform-origin: center;
  font-size: 2rem;
}

#yesBtn:hover {
  box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

#noBtn {
  background: #e0e0e0;
  color: #666;
  position: fixed;
  transition: all 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-width: 70px;
  z-index: 1001;
  width: fit-content;
}

.hidden {
  display: none;
}

.celebration {
  text-align: center;
  color: white;
}

.celebration h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.celebration p {
  font-size: 1.5rem;
  color: white;
  font-weight: 400;
}

.heart {
  position: fixed;
  font-size: 2rem;
  pointer-events: none;
  animation: floatUp 3s ease-out forwards;
  opacity: 0;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg);
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  pointer-events: none;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    transform: translateY(-10vh) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(720deg);
  }
}

.particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  animation: particleFloat 4s ease-out forwards;
}

@keyframes particleFloat {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0);
  }
  50% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--tx) * 2), calc(var(--ty) * 2)) scale(0.5);
  }
}

.sparkle {
  position: fixed;
  pointer-events: none;
  font-size: 1rem;
  animation: sparkleFloat 2s ease-out forwards;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

@keyframes sparkleFloat {
  0% {
    opacity: 1;
    transform: translateY(0) scale(0);
  }
  50% {
    transform: translateY(-50px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-100px) scale(0);
  }
}

.continuous-heart {
  position: fixed;
  font-size: 1.5rem;
  pointer-events: none;
  animation: continuousFloat 8s ease-out forwards;
  opacity: 0;
}

@keyframes continuousFloat {
  0% {
    opacity: 0.8;
    transform: translateY(0) translateX(0) rotate(0deg) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-50vh) translateX(var(--drift)) rotate(180deg)
      scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(calc(var(--drift) * 1.5))
      rotate(360deg) scale(0.5);
  }
}

.petal {
  position: fixed;
  pointer-events: none;
  font-size: 1.2rem;
  animation: petalFall 10s ease-in forwards;
  opacity: 0;
}

@keyframes petalFall {
  0% {
    opacity: 0.9;
    transform: translateY(-20px) translateX(0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) translateX(var(--sway)) rotate(720deg);
  }
}

.twinkle-star {
  position: fixed;
  pointer-events: none;
  font-size: 1rem;
  animation: starTwinkle 2s ease-in-out;
  opacity: 0;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

.celebration h1 {
  animation: textGlow 2s ease-in-out infinite;
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 105, 180, 0.8),
      0 0 30px rgba(255, 192, 203, 0.6),
      2px 2px 10px rgba(0, 0, 0, 0.3);
  }
}

.music-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1rem;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.music-toggle.playing {
  animation: musicPulse 1s ease-in-out infinite;
}

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

.response-bubble {
  position: fixed;
  background: linear-gradient(
    135deg,
    rgba(255, 240, 245, 0.98) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
  padding: 2.5rem 3.5rem;
  border-radius: 35px;
  box-shadow:
    0 15px 50px rgba(233, 30, 99, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 3.6rem;
  color: #e91e63;
  font-weight: 700;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.3) translateY(20px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 650px;
  text-align: center;
  line-height: 1.7;
  border: 3px solid rgba(255, 192, 203, 0.5);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.3px;
}

.response-bubble.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.response-bubble.hide {
  opacity: 0;
  transform: scale(0.3) translateY(-20px);
  transition: all 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.response-bubble::before {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 18px solid rgba(255, 240, 245, 0.98);
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.1));
}

.response-bubble::after {
  content: "💕";
  position: absolute;
  top: -25px;
  right: 15px;
  font-size: 3rem;
  animation: heartBeat 1.2s ease-in-out infinite;
}

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

.cats-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInCats 1.2s ease-out 0.5s forwards;
}

@keyframes fadeInCats {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cat-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(255, 255, 255, 0.9);
  animation: catBounce 2s ease-in-out infinite;
}

.cat-image:nth-child(1) {
  animation-delay: 0s;
}

.cat-image:nth-child(2) {
  animation-delay: 0.3s;
}

.cat-image:nth-child(3) {
  animation-delay: 0.6s;
}

.cat-image:nth-child(4) {
  animation-delay: 0.9s;
}

@keyframes catBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.explosion-emoji {
  position: fixed;
  pointer-events: none;
  animation: emojiExplosion 2.5s ease-out forwards;
  z-index: 1000;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes emojiExplosion {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.3) rotate(0deg);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--tx) * 0.3), calc(var(--ty) * 0.3))
      scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.5) rotate(720deg);
  }
}

.heart-image {
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.heart-image:hover {
  transform: scale(1.1);
}

.heart-image:active {
  transform: scale(0.95);
}

.heart-image.heart-clicked {
  animation: heartBounceClick 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8))
    drop-shadow(0 0 40px rgba(255, 192, 203, 0.6))
    drop-shadow(0 0 60px rgba(255, 20, 147, 0.4));
  will-change: transform, filter;
}

@keyframes heartBounceClick {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-50px);
  }
  60% {
    transform: translateY(-45px);
  }
  75% {
    transform: translateY(-10px);
  }
  90% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Rapid click counter */
.rapid-click-counter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 8rem;
  font-weight: 900;
  color: #ff1744;
  text-shadow:
    0 0 20px rgba(255, 23, 68, 0.8),
    0 0 40px rgba(255, 23, 68, 0.6),
    0 0 60px rgba(255, 23, 68, 0.4),
    4px 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.1em;
}

.rapid-click-counter.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: counterPulse 0.5s ease-in-out infinite;
}

@keyframes counterPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Mega explosion emoji */
.mega-explosion-emoji {
  position: fixed;
  pointer-events: none;
  animation: megaEmojiExplosion 3s ease-out forwards;
  z-index: 9999;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
}

@keyframes megaEmojiExplosion {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.5) rotate(0deg);
  }
  15% {
    opacity: 1;
    transform: translate(calc(var(--tx) * 0.2), calc(var(--ty) * 0.2))
      scale(1.5) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0.8) rotate(1080deg);
  }
}

/* Mega text announcement */
.mega-text {
  position: fixed;
  font-size: 5rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow:
    0 0 20px rgba(255, 0, 255, 1),
    0 0 40px rgba(255, 0, 255, 0.8),
    0 0 60px rgba(255, 0, 255, 0.6),
    0 0 80px rgba(255, 0, 255, 0.4),
    5px 5px 15px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%) scale(0);
  animation: megaTextAppear 4.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  font-family: "Poppins", sans-serif;
  letter-spacing: 0.1em;
  background: linear-gradient(
    45deg,
    #ff006e,
    #8338ec,
    #3a86ff,
    #06ffa5,
    #ffbe0b,
    #ff006e
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    megaTextAppear 4.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards,
    rainbowShift 1s linear infinite;
  text-align: center;
}

@keyframes megaTextAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-360deg);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(0deg);
  }
  33% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(360deg);
  }
}

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

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  .main-photos-container {
    gap: 1rem;
  }

  .main-photo {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
  }

  .heart-image {
    font-size: 5rem;
  }

  button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .button-container {
    gap: 2rem;
  }

  #noBtn {
    right: 10%;
  }

  .response-bubble {
    font-size: 2rem;
    padding: 1.5rem 2rem;
    max-width: 90%;
    width: fit-content;
    min-width: 280px;
  }

  .response-bubble::after {
    font-size: 2.4rem;
    top: -20px;
    right: 12px;
  }

  .cat-image {
    width: 150px;
    height: 150px;
  }

  .cats-container {
    gap: 1rem;
  }

  .rapid-click-counter {
    font-size: 5rem;
  }

  .mega-text {
    font-size: 1.5rem;
  }
}
