/* Global Reset and Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-start: #fff0f3;
  --bg-end: #ffdeeb;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(255, 255, 255, 0.6);
  --text-dark: #6b2d3c;
  --text-muted: #9c5c6b;
  --color-yes: #ff527b;
  --color-yes-hover: #ff3c69;
  --color-yes-shadow: rgba(255, 82, 123, 0.35);
  --color-no: #fbc5d8;
  --color-no-hover: #ffaec9;
  --color-no-text: #8b3c4f;
  --accent-color: #ffd1dc;
  --font-cute: 'Fredoka', 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-cute);
  background: radial-gradient(circle, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

/* Floating background decoration */
.decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  font-size: 2rem;
  opacity: 0.65;
  filter: drop-shadow(0 2px 4px rgba(255, 100, 100, 0.15));
  animation: floatUp 8s ease-in-out infinite;
  bottom: -50px;
}

.h1 { left: 10%; animation-delay: 0s; font-size: 2.5rem; }
.h2 { left: 25%; animation-delay: 2s; font-size: 1.8rem; }
.h3 { left: 60%; animation-delay: 4s; font-size: 2.2rem; }
.h4 { left: 80%; animation-delay: 1s; font-size: 1.5rem; }
.h5 { left: 90%; animation-delay: 5s; font-size: 2.4rem; }

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Cards & Layout */
.container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 100%;
  background: var(--card-bg);
  border: 4px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 36px;
  padding: 40px 30px;
  box-shadow: 
    0 20px 40px rgba(255, 120, 150, 0.15),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mascot SVG Animation */
.mascot-container {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.bouncing-heart {
  animation: heartBeat 1.4s infinite alternate cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 8px 12px rgba(255, 82, 123, 0.2));
}

@keyframes heartBeat {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(2deg); }
}

.happy-heart {
  animation: dance 1s infinite alternate ease-in-out;
  filter: drop-shadow(0 8px 16px rgba(255, 82, 123, 0.3));
}

@keyframes dance {
  0% { transform: translateY(0) rotate(-5deg) scale(1.05); }
  100% { transform: translateY(-8px) rotate(5deg) scale(1.05); }
}

/* Text */
.question-text {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 35px;
  line-height: 1.2;
}

.success-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-yes);
  margin-bottom: 12px;
}

.success-message {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.4;
}

/* Buttons container */
.buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  position: relative;
  min-height: 120px; /* Space for magnetic movement */
}

/* Yes Button Styling */
.btn-yes {
  position: relative;
  padding: 16px 36px;
  font-family: var(--font-cute);
  font-size: 1.35rem;
  font-weight: 700;
  color: #white;
  background: var(--color-yes);
  color: white;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  box-shadow: 
    0 8px 0 #cc2b52,
    0 15px 25px var(--color-yes-shadow);
  transition: all 0.15s ease;
  outline: none;
  user-select: none;
}

.btn-yes:hover {
  background: var(--color-yes-hover);
  transform: translateY(-2px);
  box-shadow: 
    0 10px 0 #cc2b52,
    0 18px 28px var(--color-yes-shadow);
}

.btn-yes:active {
  transform: translateY(6px);
  box-shadow: 
    0 2px 0 #cc2b52,
    0 5px 10px var(--color-yes-shadow);
}

/* No Button & Magnetic Zone Styling */
.mag-zone {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  /* border: 1px dashed rgba(255, 82, 123, 0.2); /* Subtle guide for debugging, we can make it completely transparent later */
  background: transparent;
  transition: none;
  z-index: 15;
}

.mag-btn {
  position: absolute;
  padding: 14px 28px;
  font-family: var(--font-cute);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-no-text);
  background: var(--color-no);
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 
    0 6px 0 #d996ad,
    0 10px 20px rgba(255, 120, 150, 0.1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  outline: none;
  user-select: none;
  will-change: transform;
}

.mag-btn:hover {
  background: var(--color-no-hover);
}

/* Invisible buffer zone to catch the mouse before it actually touches the button */
.mag-btn::before {
  content: "";
  position: absolute;
  inset: -45px;
  border-radius: 999px;
  z-index: -1;
}

/* Reset Button (Success Card) */
.btn-reset {
  padding: 12px 28px;
  font-family: var(--font-cute);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 2px dashed var(--color-no-hover);
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-dark);
  border-color: var(--color-yes);
  transform: translateY(-1px);
}

.btn-reset:active {
  transform: translateY(1px);
}
