:root {
  --bg-1: #fff3ea;
  --bg-2: #ffd9c9;
  --bg-3: #f5b8c4;
  --bg-4: #dca0c0;
  --ink: #46262f;
  --ink-soft: #86636b;
  --paper: #fffaf6;
  --accent: #b4536f;
  --accent-strong: #8a3855;
  --accent-soft: #f3cdd4;
  --shadow: rgba(120, 55, 80, 0.22);
  --ring: rgba(180, 83, 111, 0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Karla', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2) 35%, var(--bg-3) 68%, var(--bg-4) 100%);
  background-size: 200% 200%;
  animation: driftBg 26s ease-in-out infinite;
  position: relative;
}

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

.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  will-change: transform, opacity;
  animation-name: floatUp;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 2px 6px rgba(140, 60, 90, 0.15));
}

@keyframes floatUp {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .6; }
  85% { opacity: .35; }
  100% { transform: translate(var(--drift, 30px), -115vh) rotate(20deg); opacity: 0; }
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
}

.dots {
  display: flex;
  gap: 8px;
  min-height: 9px;
}

.dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--ring);
  transition: all .35s ease;
}
.dots .dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.35);
}
.dots .dot.visited {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.card {
  width: min(560px, 94vw);
  background: var(--paper);
  border-radius: 26px;
  box-shadow: 0 24px 70px var(--shadow), 0 2px 8px rgba(120, 55, 80, .12);
  padding: clamp(28px, 6vw, 48px) clamp(24px, 6vw, 44px);
  cursor: pointer;
  position: relative;
  animation: cardIn .6s ease both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card.leaving {
  animation: cardOut .18s ease both;
}
@keyframes cardOut {
  to { opacity: 0; transform: translateY(-10px) scale(.98); }
}

.card.wide {
  width: min(680px, 94vw);
}

.dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  cursor: default;
}
@media (min-width: 640px) {
  .dual { grid-template-columns: 1fr 1fr; gap: 30px; }
}

.dual-col + .dual-col {
  border-top: 1px dashed var(--ring);
  padding-top: 22px;
}
@media (min-width: 640px) {
  .dual-col + .dual-col {
    border-top: none;
    border-left: 1px dashed var(--ring);
    padding-top: 0;
    padding-left: 30px;
  }
}

.dual-col h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--accent-strong);
  margin: 0 0 14px;
}

.dual-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dual-col li {
  font-size: .96rem;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}
.dual-col li::before {
  content: "♡";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: .85rem;
}

.eyebrow {
  font-family: 'Caveat', cursive;
  font-weight: 600;
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  color: var(--accent-strong);
  margin: 0 0 4px;
}

.title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 2.8rem);
  margin: 0 0 6px;
  line-height: 1.15;
}

.subtitle {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-size: clamp(1rem, 3vw, 1.1rem);
}

.body p {
  font-size: clamp(1.03rem, 2.6vw, 1.18rem);
  line-height: 1.75;
  margin: 0 0 16px;
  cursor: default;
}
.body p:last-child { margin-bottom: 0; }

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
}
.word.revealed {
  opacity: 1;
  transform: translateY(0);
}

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.nav-btn {
  background: none;
  border: none;
  font-family: 'Karla', sans-serif;
  font-size: .95rem;
  color: var(--accent-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.nav-btn:hover { opacity: 1; transform: translateX(2px); }
.nav-btn.back:hover { transform: translateX(-2px); }
.nav-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.tap-hint {
  font-size: .85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 22px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

.choice-prompt {
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  line-height: 1.7;
  margin-bottom: 24px;
  cursor: default;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  font-family: 'Karla', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  padding: 15px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  text-align: center;
}
.option-btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 10px 24px var(--shadow);
}
.option-btn.secondary {
  background: transparent;
  color: var(--accent-strong);
}
.option-btn:hover { transform: translateY(-2px); }
.option-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.outcome-mark {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.again-link {
  display: inline-block;
  margin-top: 26px;
  font-size: .85rem;
  color: var(--ink-soft);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 4px 0;
}

@media (max-width: 380px) {
  .options { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .heart { animation: none; display: none; }
  .card { animation: none; }
  .card.leaving { animation: none; }
  .word { transition: none; opacity: 1 !important; transform: none !important; }
  .tap-hint { animation: none; }
}
