:root {
  --cream: #f6efe4;
  --cream-2: #efe4d3;
  --paper: #fbf7f0;
  --brown: #6b4a36;
  --brown-soft: #8a6a55;
  --brown-deep: #4a3125;
  --gold: #b8955a;
  --gold-soft: #d8c09a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 0%, #fdf9f2 0%, transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--brown);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ambient light and stars */
.glow {
  position: fixed;
  top: -20vh; left: 50%;
  width: 90vw; max-width: 640px; aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(216, 192, 154, 0.35) 0%, transparent 65%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
  z-index: 0;
}
.stars {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.star {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  animation: twinkle var(--d, 6s) ease-in-out var(--delay, 0s) infinite;
}

.wrap {
  position: relative; z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: max(2.75rem, env(safe-area-inset-top)) 1.4rem max(2.5rem, env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  min-height: 100dvh;
}

/* Hero */
.hero { text-align: center; animation: rise 1.1s ease both; }
.emblem { width: 92px; color: var(--gold); margin-bottom: 0.9rem; }
.brand {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.38em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--brown-deep);
  margin-left: 0.38em;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 9vw, 2.9rem);
  line-height: 1.08;
  margin-top: 0.7rem;
  color: var(--brown-deep);
}
h1 em { font-style: italic; color: var(--brown); }

.divider {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
  margin: 1.6rem auto;
  color: var(--gold);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: ""; width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft));
}
.divider::after { transform: scaleX(-1); }

/* Views */
.view { animation: rise 0.8s ease both; }
.view[hidden] { display: none; }

.question {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.6rem;
  color: var(--brown);
}

.options { display: grid; gap: 0.8rem; }

.option {
  display: flex; align-items: center; gap: 1rem;
  width: 100%;
  padding: 1rem 1.3rem;
  border: 1px solid rgba(184, 149, 90, 0.35);
  border-radius: 999px;
  background: rgba(251, 247, 240, 0.7);
  backdrop-filter: blur(4px);
  color: var(--brown-deep);
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 20px -14px rgba(107, 74, 54, 0.45);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  animation: rise 0.7s ease both;
  -webkit-tap-highlight-color: transparent;
}
.option:hover, .option:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: var(--paper);
  box-shadow: 0 10px 28px -14px rgba(184, 149, 90, 0.7);
  outline: none;
}
.option:active { transform: scale(0.98); }
.option .ico {
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem; flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fffaf1 0%, #f1e5d0 100%);
  border: 1px solid rgba(184, 149, 90, 0.3);
  font-size: 1.1rem;
}
.option .arrow { margin-left: auto; color: var(--gold); font-size: 0.9rem; }

/* Card */
.card {
  position: relative;
  text-align: center;
  padding: 2.4rem 1.6rem 2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.95), rgba(248, 240, 228, 0.92));
  border: 1px solid rgba(184, 149, 90, 0.35);
  box-shadow: 0 24px 50px -30px rgba(107, 74, 54, 0.55), inset 0 0 0 6px rgba(251, 247, 240, 0.6);
}
.card::before {
  content: ""; position: absolute; inset: 10px;
  border-radius: 20px;
  border: 1px solid rgba(216, 192, 154, 0.45);
  pointer-events: none;
}
.card.appear { animation: bloom 0.9s cubic-bezier(.2,.7,.2,1) both; }
.card.appear .card-text { animation: fade 1.2s ease 0.25s both; }

.card-icon { font-size: 1.9rem; display: block; }
.card-label {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.2;
  margin-top: 0.9rem;
  color: var(--brown-deep);
}
.card-title:empty { display: none; }
.card-text {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 1rem;
  color: var(--brown);
  white-space: pre-line;
}
.card-sign { display: block; margin-top: 1.4rem; color: var(--gold-soft); font-size: 0.7rem; letter-spacing: 0.5em; }

.actions { display: grid; gap: 0.7rem; margin-top: 1.4rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.1rem; height: 1.1rem; }
.btn:active { transform: scale(0.98); }
.btn-gold {
  background: linear-gradient(135deg, #cfb07a, var(--gold));
  color: #fffaf2;
  box-shadow: 0 10px 24px -14px rgba(184, 149, 90, 0.9);
}
.btn-gold:hover { box-shadow: 0 14px 30px -14px rgba(184, 149, 90, 1); }
.btn-ghost {
  background: transparent;
  color: var(--brown);
  border-color: rgba(184, 149, 90, 0.45);
}
.btn-ghost:hover { background: rgba(251, 247, 240, 0.8); border-color: var(--gold); }
.btn-solid {
  background: var(--brown);
  color: #fbf3e6;
  box-shadow: 0 12px 26px -16px rgba(74, 49, 37, 0.9);
}
.btn-solid:hover { background: var(--brown-deep); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Closing */
.closing { margin-top: auto; padding-top: 2.6rem; text-align: center; }
.closing-q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--brown-deep);
  margin-bottom: 1.2rem;
}
.closing .btn + .btn { margin-top: 0.7rem; }
.insta { text-transform: none; letter-spacing: 0.06em; font-size: 0.92rem; }
.signature { margin-top: 1.8rem; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--brown-soft); }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: none; } }
@keyframes bloom {
  from { opacity: 0; transform: translateY(18px) scale(0.96); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.6); } 50% { opacity: 0.55; transform: scale(1); } }

@media (min-width: 640px) {
  .wrap { padding-top: 4rem; }
  .card { padding: 3rem 2.6rem 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
