:root {
  --primary-color: #800f2f;
  --secondary-color: #c9184a;
  --text-color: #4a0419;
  --intro-bg: #0f0205;
  --white: #ffffff;
}

* {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
  box-sizing: border-box;
  touch-action: manipulation;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed; 
  font-family: 'Poppins', sans-serif;
}

.bg-wrapper {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ff8fa3 0%, #ffc2d1 50%, #ff8fa3 100%);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: 0;
}

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

#particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,255,255,0.9);
  animation: snowFall linear infinite;
  will-change: transform; 
}

@keyframes snowFall {
  0% { transform: translateY(-10vh) scale(0); opacity: 0; }
  10% { opacity: 1; transform: scale(1); }
  90% { opacity: 1; }
  100% { transform: translateY(110vh) scale(0.5); opacity: 0; }
}

#intro-screen {
  position: absolute;
  inset: 0;
  background: var(--intro-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: all 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

.intro-heart-svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  animation: heartbeatIntro 1.2s infinite;
  filter: drop-shadow(0 0 15px #ff0054) drop-shadow(0 0 30px #ff0054);
}

.intro-text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.5em;
  color: #ffb3c6;
  text-transform: uppercase;
  animation: pulseText 1.5s infinite;
}

@keyframes heartbeatIntro {
  0% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@keyframes pulseText {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 5px #ffb3c6); }
  50% { opacity: 0.4; filter: none; }
}

.intro-hidden {
  opacity: 0;
  transform: scale(1.5);
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 1;
  opacity: 0;
  animation: blobEntrance 2s ease forwards, floatBlob 10s infinite alternate ease-in-out 2s;
  will-change: transform;
}
.blob-1 { width: 400px; height: 400px; background: #800f2f; top: -15%; left: -10%; }
.blob-2 { width: 500px; height: 500px; background: #c9184a; bottom: -20%; right: -15%; animation-delay: 0.5s, -5s; }

@keyframes blobEntrance {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 0.6; }
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 70px) scale(1.1); }
}

.cute-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 15px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  z-index: 50;
  transform: translateY(-100%);
  animation: slideDown 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.5s;
  box-shadow: 0 10px 30px rgba(201, 24, 74, 0.1);
}

.cute-header h2 {
  margin: 0;
  font-family: 'Indie Flower', cursive;
  color: var(--primary-color);
  font-size: 1.8rem;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.8);
}

.cute-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  z-index: 50;
  transform: translateY(100%);
  animation: slideUp 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.5s;
  box-shadow: 0 -10px 30px rgba(201, 24, 74, 0.1);
}

.cute-footer p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 600;
}

@keyframes slideDown { to { transform: translateY(0); } }
@keyframes slideUp { to { transform: translateY(0); } }

.container {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none; 
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.45);
  padding: 2.5rem 1.5rem;
  border-radius: 40px;
  box-shadow: 0 30px 60px rgba(128, 15, 47, 0.3), inset 0 0 20px rgba(255,255,255,0.5);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 100%; 
  max-width: 380px; 
  opacity: 0;
  transform: scale(0.8) translateY(50px);
  transition: all 0.3s ease;
}

.card-active {
  animation: premiumOpen 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.title {
  font-family: 'Indie Flower', cursive;
  font-size: clamp(2.5rem, 8vw, 3.5rem); 
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 5px rgba(255,255,255,0.9);
  line-height: 1.1;
  text-align: center;
}

.gif-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cute-gif {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin-bottom: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(128, 15, 47, 0.2);
  pointer-events: none; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cute-gif:hover { transform: scale(1.08) rotate(3deg); }

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px; 
  flex-wrap: wrap;
  width: 100%;
  position: relative;
}

.btn {
  padding: 14px 38px;
  font-size: clamp(1rem, 4vw, 1.2rem); 
  font-weight: 800;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}

@keyframes heartbeatBtn {
  0% { transform: scale(1); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
  15% { transform: scale(1.08); box-shadow: 0 10px 35px rgba(16, 185, 129, 0.6); }
  30% { transform: scale(1); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }
  100% { transform: scale(1); }
}

.btn-yes {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  animation: heartbeatBtn 2s infinite;
  position: relative;
  z-index: 100;
}

.btn-no {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  box-shadow: 0 10px 25px rgba(128, 15, 47, 0.3);
  position: relative;
  z-index: 10;
}

.btn-yes:active, .btn-no:active { transform: scale(0.9) !important; }

.hidden { display: none !important; }

.fade-out { animation: fadeOut 0.5s ease forwards; }

@keyframes fadeOut {
  to { opacity: 0; transform: scale(0.8) translateY(-30px); }
}

.success-active {
  animation: premiumOpen 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-message {
  font-family: 'Indie Flower', cursive;
  font-size: clamp(2.5rem, 8vw, 3.8rem); 
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 5px rgba(255,255,255,0.9);
  text-align: center;
}

.sub-text {
  font-size: clamp(1rem, 4vw, 1.2rem); 
  color: var(--text-color);
  font-weight: 800;
  background: rgba(255,255,255,0.8);
  padding: 10px 30px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  text-align: center;
}

.heart {
  position: absolute;
  color: var(--primary-color);
  opacity: 0;
  animation: floatUp 4s ease-in infinite;
  z-index: 150; 
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(201, 24, 74, 0.5));
  will-change: transform;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
  20% { opacity: 1; transform: translateY(80vh) scale(1) rotate(15deg); }
  80% { opacity: 0.8; }
  100% { transform: translateY(-20vh) scale(0.6) rotate(-20deg); opacity: 0; }
}

@media (min-width: 768px) {
  .card { max-width: 500px; padding: 3.5rem 3rem; border-radius: 50px; }
  .cute-gif { max-width: 280px; }
  .cute-header h2 { font-size: 2.2rem; }
  .cute-footer p { font-size: 1.1rem; }
}
