/* ===== Base ===== */
* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #ffe1ea 0%, #ffb3c7 35%, #ff7aa8 70%, #ff4d7d 100%);
  overflow: hidden;
}

/* ===== Continuous hearts background ===== */
.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  transform: rotate(45deg);
  animation: floatUp linear infinite;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.heart::before { left: -50%; top: 0; }
.heart::after  { left: 0; top: -50%; }
.heart { background: rgba(255, 255, 255, 0.85); }

@keyframes floatUp {
  from { transform: translateY(30vh) rotate(45deg); }
  to   { transform: translateY(-120vh) rotate(45deg); }
}

/* ===== Play Area (bounded movement zone) ===== */
.playArea {
  position: relative;
  z-index: 2;

  /* This is the "limit window" */
  width: min(760px, 96vw);
  height: min(520px, 88vh);

  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Card ===== */
.container {
  position: relative;
  width: min(520px, 92vw);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 22px;
  padding: 34px 26px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.20);
  backdrop-filter: blur(6px);
}

h1 {
  margin: 0 0 14px;
  color: #ff2d6d;
  font-size: 28px;
}

/* ===== Buttons ===== */
.buttons {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 3;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

button:active { transform: scale(0.98); }

.yes {
  background: #ff2d6d;
  color: white;
  box-shadow: 0 10px 25px rgba(255,45,109,0.35);
  transform-origin: center;
  position: relative;
  z-index: 1;
}

/* NO is positioned inside playArea, never fixed on the whole page */
.no {
  background: #e9e9ee;
  color: #333;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);

  position: absolute;      /* important: absolute inside playArea */
  z-index: 9999;           /* always above YES */
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
}
