:root {
  --bg: #0b0b10;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.18);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --red: #ff2d55;
  --pink: #ff6b9b;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  overflow: hidden;

  /* Heart cursor (inline SVG). Hotspot near center. */
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 64 64'><path fill='%23ff2d55' d='M47.5 8c-5.1 0-9.4 2.7-11.5 6.6C33.9 10.7 29.6 8 24.5 8 17 8 11 14.2 11 21.9c0 14.5 25 30.1 25 30.1s25-15.6 25-30.1C61 14.2 55 8 47.5 8z'/></svg>")
      16 16,
    auto;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 20% 10%, #1b0a10 0%, #0b0b10 55%, #07070b 100%);
}

.app {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.screen {
  width: min(760px, 100%);
  display: none;
}

.screen--active {
  display: block;
}

.intro {
  text-align: center;
  padding: 30px 18px;
}

.intro__tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 45, 85, 0.08);
  border-radius: 999px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
}

.intro__line {
  margin: 18px 0 8px;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(255, 45, 85, 0.35);
}

.intro__sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.intro__cta {
  margin-top: 18px;
  display: none;
}

.card {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: 18px;
}

.card__title {
  margin: 14px 0 6px;
  text-align: center;
  font-size: clamp(22px, 3.4vw, 34px);
}

.card__subtitle {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
}

.meme {
  display: grid;
  place-items: center;
}

.meme img {
  width: min(360px, 90%);
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;

  /* Anchor for evasive "No" */
  position: relative;
  min-height: 96px;
}

.buttons .btn {
  padding: 16px 24px;
  font-size: 20px;
  border-radius: 16px;
  min-width: 150px;
  min-height: 60px;
}

.btn--no.evasive {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  will-change: left, top;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.18s ease,
    border-color 0.18s ease, opacity 0.18s ease;
}

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

.btn--primary {
  background: linear-gradient(135deg, var(--red), var(--pink));
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--yes {
  background: rgba(34, 197, 94, 0.85);
  color: white;
}

.btn--no {
  background: rgba(255, 45, 85, 0.85);
  color: white;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.message {
  margin-top: 14px;
  text-align: center;
}

.message__text {
  margin: 10px 0 14px;
  color: var(--muted);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--red), var(--pink));
  transition: width 0.25s ease;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

@media (max-width: 520px) {
  .choices {
    grid-template-columns: 1fr;
  }
}

.choice {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  user-select: none;
}

.choice--selected {
  border-color: rgba(255, 45, 85, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 45, 85, 0.25);
}

.choice__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choice__name {
  font-weight: 800;
}

.choice__pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.22);
  color: var(--muted);
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.nav--stack {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.summary {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.18);
}

.fineprint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  min-height: 18px;
}

.countdown {
  margin: 6px 0 0;
}

/* Defensive: ensure countdown always centers like titles */
#countdown {
  display: block;
  width: 100%;
  text-align: center;
}

.card--final {
  text-align: center;
  padding-top: 22px;
}

.flowers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: clamp(34px, 7vw, 56px);
  margin-bottom: 8px;
}

.flowers span {
  display: inline-block;
  animation: flowerFloat 2.8s ease-in-out infinite;
}

.flowers span:nth-child(2) { animation-delay: 0.2s; }
.flowers span:nth-child(3) { animation-delay: 0.4s; }
.flowers span:nth-child(4) { animation-delay: 0.6s; }
.flowers span:nth-child(5) { animation-delay: 0.8s; }

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

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  padding: 0 14px;
}

.footer__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-align: center;
  text-wrap: balance;
}

.mute {
  font-size: 14px;
  position: absolute;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 20px;
  cursor: pointer;
  pointer-events: auto;
}
