:root {
  --bg: #160f14;
  --ink: #f4ebe6;
  --muted: rgba(244, 235, 230, 0.68);
  --muted-soft: rgba(244, 235, 230, 0.45);
  --wine: #8b2e44;
  --wine-deep: #5c1d2e;
  --blush: #c45a6c;
  --champagne: #d4b48c;
  --champagne-soft: rgba(212, 180, 140, 0.85);
  --cream: #fff4ee;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(212, 180, 140, 0.28);
  --panel: rgba(24, 16, 22, 0.72);
  --panel-strong: rgba(28, 19, 26, 0.92);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-warm: rgba(212, 180, 140, 0.16);
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-pill: 999px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 18% 12%, rgba(139, 46, 68, 0.38), transparent 58%),
    radial-gradient(ellipse 70% 50% at 88% 22%, rgba(212, 180, 140, 0.12), transparent 52%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(60, 20, 34, 0.7), transparent 60%),
    linear-gradient(170deg, #1d1319 0%, #160f14 48%, #100c10 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 45%, transparent 35%, rgba(8, 4, 6, 0.72) 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: drift 18s var(--ease-out) infinite alternate;
}

.glow-a {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  top: -12%;
  left: -10%;
  background: rgba(139, 46, 68, 0.55);
}

.glow-b {
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  bottom: 5%;
  right: -12%;
  background: rgba(212, 180, 140, 0.18);
  animation-delay: -6s;
  animation-duration: 22s;
}

.glow-c {
  width: min(30vw, 260px);
  height: min(30vw, 260px);
  top: 50%;
  left: 40%;
  background: rgba(196, 90, 108, 0.22);
  animation-delay: -10s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.spark-layer {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  overflow: hidden;
}

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(1.25rem, var(--safe-top))
    max(1.15rem, var(--safe-right))
    max(1.25rem, var(--safe-bottom))
    max(1.15rem, var(--safe-left));
  overflow: hidden;
}

.experience-shell {
  position: relative;
  width: min(100%, 31rem);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    linear-gradient(180deg, rgba(28, 19, 26, 0.9), rgba(20, 13, 18, 0.92));
  border: 1px solid var(--stroke);
  box-shadow:
    var(--shadow-xl),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: shell-in 0.9s var(--ease-out) both;
}

.experience-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.14),
    rgba(212,180,140,0.12),
    rgba(255,255,255,0.04)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.top-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0;
}

.meta-tag,
.step-index {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 235, 230, 0.58);
}

.meta-tag {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.screen {
  width: 100%;
  padding: 2rem 1.4rem 1.7rem;
  text-align: center;
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen[hidden] {
  display: none !important;
}

.screen.is-active .animate-in {
  animation: rise-in 0.9s var(--ease-out) both;
}

.delay-1 { animation-delay: 0.1s !important; }
.delay-2 { animation-delay: 0.2s !important; }
.delay-3 { animation-delay: 0.32s !important; }
.delay-4 { animation-delay: 0.44s !important; }

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(212, 180, 140, 0.9);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 8vw, 3.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.brand-sm {
  font-size: clamp(1.9rem, 7.5vw, 2.8rem);
}

.brand em,
.yes-title em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(120deg, #e8b4a0 0%, var(--blush) 45%, var(--champagne) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.15rem auto 0;
  max-width: 22rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 235, 230, 0.7);
}

.buildup {
  min-height: 9.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.line {
  margin: 0;
  max-width: 19rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(244, 235, 230, 0.82);
  animation: rise-in 0.85s var(--ease-out) both;
}

.line[hidden],
.question[hidden],
.choices[hidden] {
  display: none !important;
}

.question {
  margin: 0.6rem 0 0;
  max-width: 20rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 6vw, 2rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.26;
  color: var(--cream);
  animation: rise-in 0.9s var(--ease-out) both;
}

.choices {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 1.75rem;
  width: min(100%, 19rem);
  margin-left: auto;
  margin-right: auto;
}

.choices-tight {
  margin-top: 1.5rem;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition:
    transform 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-out),
    border-color 0.22s ease,
    background 0.22s ease,
    opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:focus-visible,
.choice-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(212,180,140,0.18),
    0 12px 30px rgba(92, 29, 46, 0.28);
}

.btn:active,
.choice-card:active {
  transform: scale(0.98);
}

.btn-primary {
  margin-top: 1.85rem;
  min-width: 12.5rem;
  background: linear-gradient(135deg, #7f2940 0%, #b04c60 55%, #cb7a78 100%);
  color: white;
  box-shadow:
    0 14px 34px rgba(68, 18, 33, 0.42),
    inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 42px rgba(68, 18, 33, 0.48),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-ghost {
  width: 100%;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(244, 235, 230, 0.88);
  backdrop-filter: blur(12px);
}

.choice-card {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1.25rem;
  text-align: left;
  background: linear-gradient(180deg, rgba(139,46,68,0.95), rgba(107,34,53,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.28);
  transition:
    transform 0.22s var(--ease-soft),
    box-shadow 0.22s var(--ease-out),
    border-color 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.choice-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.34);
}

.choice-card-soft {
  background: linear-gradient(180deg, rgba(139,46,68,0.75), rgba(107,34,53,0.78));
}

.choice-card-ghost {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.choice-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: white;
}

.choice-subtitle {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
}

.choice-card-ghost .choice-title {
  color: rgba(244, 235, 230, 0.88);
}

.choice-card-ghost .choice-subtitle {
  color: rgba(244, 235, 230, 0.55);
}

.yes-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
}

.payoff {
  margin: 1.5rem auto 0;
  max-width: 18rem;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4.5vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--champagne-soft);
}

.final-card {
  margin: 1.5rem auto 0;
  max-width: 21rem;
  padding: 1.15rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.final-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 180, 140, 0.85);
}

.final-text {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
}

.choice-tag {
  display: inline-flex;
  margin: 1.35rem auto 0;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(244,235,230,0.62);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spark {
  position: fixed;
  z-index: 15;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: var(--champagne);
  animation: spark-fly 0.75s var(--ease-out) forwards;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shell-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2.5%, 3%) scale(1.05); }
}

@keyframes spark-fly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.2);
  }
}

@media (max-width: 520px) {
  .stage {
    padding:
      max(1rem, var(--safe-top))
      max(1rem, var(--safe-right))
      max(1rem, var(--safe-bottom))
      max(1rem, var(--safe-left));
  }

  .experience-shell {
    width: 100%;
    border-radius: 1.75rem;
  }

  .screen {
    min-height: 28rem;
    padding: 1.75rem 1.1rem 1.4rem;
  }

  .brand {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .buildup {
    min-height: 8.5rem;
  }

  .choices {
    margin-top: 1.5rem;
  }

  .btn {
    min-height: 3.35rem;
  }
}

@media (max-height: 720px) {
  .eyebrow { margin-bottom: 0.7rem; }
  .lede { margin-top: 0.85rem; }
  .btn-primary { margin-top: 1.35rem; }
  .choices { margin-top: 1.2rem; gap: 0.55rem; }
  .buildup { min-height: 7.5rem; gap: 0.65rem; }
  .payoff { margin-top: 1.15rem; }
  .final-card { margin-top: 1.15rem; }
  .screen { min-height: 26rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
