/* =================================
   RESET / GLOBAL
================================= */

* {
  box-sizing: border-box;
}

body {
  margin:0;
  height:100vh;
  background: linear-gradient(135deg,#ff9a9e,#fecfef);
  font-family: Arial, sans-serif;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

/* =================================
   ANIMATION PERFORMANCE BOOST
================================= */

/* Force GPU acceleration + smoother rendering */
.heart,
.heart-particle,
.final-screen,
.camera-zoom {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* =================================
   LAYOUT
================================= */

.container {
  text-align:center;
  background:white;
  padding:30px;
  border-radius:20px;
  box-shadow:0 20px 40px rgba(0,0,0,0.2);
  width:90%;
  max-width:400px;
}

h1 {
  font-size:24px;
}


/* =================================
   BUTTONS
================================= */

button {
  font-size:18px;
  padding:12px 20px;
  margin:10px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  transition: all 0.3s ease;
}

#yesBtn {
  background:#ff4d6d;
  color:white;
}

/* Hover interaction enhancement */

#yesBtn:not(.giant-heart):hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 77, 109, 0.6);
}

/* Mobile tap feedback */

#yesBtn:not(.giant-heart):active {
  transform: scale(0.95);
}

#noBtn {
  background:#adb5bd;
  color:white;
  position:relative;
  transition: left 0.25s ease, top 0.25s ease;
}


/* =================================
   FLOATING HEARTS
================================= */

.heart {
  position:absolute;
  font-size:22px;
  animation: floatUp 5s linear forwards;
  will-change: transform, opacity;
}

@keyframes floatUp {
  from { transform:translateY(0); opacity:1; }
  to { transform:translateY(-120vh); opacity:0; }
}


/* =================================
   GIANT HEART TRANSFORMATION
================================= */

.giant-heart {

  position: fixed;
  top: 50%;
  left: 50%;

  width: 65vmin;
  height: 65vmin;

  padding: 0;
  border: none;
  aspect-ratio: 1 / 1;

  background: #ff4d6d;

  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center center;

  display: block;

  z-index: 9999;

  animation: heartBeat var(--motion-medium) infinite;

  box-shadow:
    0 0 40px rgba(255,77,109,0.8),
    0 0 80px rgba(255,77,109,0.6);
}



/* heart circles */

.giant-heart::before,
.giant-heart::after {
  content: "";
  position: absolute;
  width: 65vmin;
  height: 65vmin;
  background: #ff4d6d;
  border-radius: 50%;
}

/* TOP circle */
.giant-heart::before {
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* RIGHT circle */
.giant-heart::after {
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
}


@keyframes heartBeat {
  0% { transform: translate(-50%, -50%) rotate(-45deg) scale(0.95); }
  50% { transform: translate(-50%, -50%) rotate(-45deg) scale(1.05); }
  100% { transform: translate(-50%, -50%) rotate(-45deg) scale(0.95); }
}


/* =================================
   TRANSITIONS & EFFECTS
================================= */

.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  to { opacity:0; }
}

.flash-overlay {
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:white;
  opacity:0;
  pointer-events:none;
  z-index:999999;
}

.flash-active {
  animation: flashAnim 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes flashAnim {
  0% { opacity:0; }
  40% { opacity:1; }
  100% { opacity:0; }
}


/* =================================
   FINAL SCREEN
================================= */

.final-screen {
  height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:white;
  animation: romanticFadeIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.final-text {
  font-size:32px;
  margin-bottom:20px;
}

.final-cat {
  margin-top:20px;
  width:200px;
}

@keyframes romanticFadeIn {
  from { opacity:0; transform:scale(0.9); }
  to { opacity:1; transform:scale(1); }
}

.final-mode {
  background: transparent !important;
  box-shadow: none !important;
  max-width: none !important;
  width: 100% !important;
}


/* =================================
   PARTICLES & CAMERA EFFECTS
================================= */

.heart-particle {
  position: fixed;
  font-size:28px;
  pointer-events:none;
  animation: heartExplode 1.5s ease-out forwards;
  z-index:99999;
}

@keyframes heartExplode {
  0% { transform:translate(0,0) scale(1); opacity:1; }
  100% { transform:translate(var(--x),var(--y)) scale(0.5); opacity:0; }
}

.camera-zoom {
  animation: cameraZoom 3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes cameraZoom {
  from { transform:scale(1); }
  to { transform:scale(1.08); }
}

.background-blur {
  backdrop-filter: blur(6px);
}

/* =================================
   VIRAL YES BUTTON MAGNET EFFECT
================================= */

/* Pulse ONLY before giant-heart activates */

#yesBtn:not(.giant-heart) {
  animation: subtlePulse 2s infinite;
  position: relative;
}

@keyframes subtlePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Emotional reaction shake */

.shake {
  animation: emotionalShake 0.3s;
}

@keyframes emotionalShake {

  0% { transform: translateX(0); }

  25% { transform: translateX(-4px); }

  50% { transform: translateX(4px); }

  75% { transform: translateX(-3px); }

  100% { transform: translateX(0); }

}
