/* Final presentation layer: an invitation folio with accessible, intent-aware motion. */
:root {
  --surface: rgba(255, 253, 252, .975);
  --surface-strong: #fffdfc;
  --surface-soft: color-mix(in srgb, var(--rose-soft) 62%, #fff);
  --line: color-mix(in srgb, var(--rose) 22%, #e8dde3);
  --shadow-color: rgba(12, 5, 10, .56);
  --focus: color-mix(in srgb, var(--rose) 68%, #fff);
  color-scheme: light;
}

* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--rose) 36%, transparent) transparent; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  cursor: auto;
  line-height: 1.5;
}

button,
input,
.choice,
.slot,
.btn { cursor: pointer; }

input { cursor: text; }

button,
input,
select { font: inherit; }

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  border-radius: 999px;
  background: #fff;
  padding: .65rem 1rem;
  color: #2b1224;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.stage {
  min-height: calc(100svh - 3.25rem);
  padding: clamp(1rem, 4vw, 3rem);
}

.experience-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(520px, 620px);
  width: min(940px, 100%);
  align-items: stretch;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, .4));
}

.story-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 650px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-right: 0;
  border-radius: 32px 0 0 32px;
  background:
    radial-gradient(120% 70% at 0 0, color-mix(in srgb, var(--world-c, #ff8fba) 32%, transparent), transparent 62%),
    linear-gradient(155deg, rgba(12,6,13,.72), rgba(12,6,13,.9));
  padding: 2.1rem 2rem;
  color: #fff;
  box-shadow: inset 0 1px rgba(255,255,255,.18);
  backdrop-filter: blur(24px) saturate(1.2);
}

.story-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .28;
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,.15) 46.2% 46.5%, transparent 46.7%),
    linear-gradient(25deg, transparent 0 67%, rgba(255,255,255,.11) 67.2% 67.45%, transparent 67.7%);
}

.story-panel::after {
  content: '';
  position: absolute;
  right: -3.5rem;
  bottom: 7rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 1.6rem rgba(255,255,255,.035), 0 0 0 3.2rem rgba(255,255,255,.025);
}

.story-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.story-brand > span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font: italic 700 1rem 'Playfair Display', Georgia, serif;
}

.story-brand small,
.story-overline,
.story-route small {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.story-brand small { color: rgba(255,255,255,.68); }

.story-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.story-overline { color: color-mix(in srgb, var(--world-c, #ff8fba) 72%, #fff); }

.story-copy blockquote {
  margin: 0;
  font: italic 600 clamp(1.65rem, 2.7vw, 2.25rem)/1.17 'Playfair Display', Georgia, serif;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.story-copy > p:last-child {
  max-width: 28ch;
  margin: 0;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  line-height: 1.65;
}

.story-route {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .8rem;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 1.2rem;
}

.story-route > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.12);
  color: color-mix(in srgb, var(--world-c, #ff8fba) 74%, #fff);
  font-size: 1.05rem;
}

.story-route div { display: grid; gap: .13rem; }
.story-route small { color: rgba(255,255,255,.48); }
.story-route strong { font-size: .88rem; font-weight: 700; }

.card {
  --progress: 0;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 650px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 0 32px 32px 0;
  background: var(--surface);
  padding: 5.1rem clamp(2rem, 4.5vw, 3.35rem) 2.6rem;
  box-shadow: none;
  backdrop-filter: blur(28px) saturate(1.08);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(80% 42% at 10% -5%, color-mix(in srgb, var(--rose-soft) 62%, #fff), transparent 78%),
    linear-gradient(155deg, rgba(255,255,255,.5), transparent 50%);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(280px circle at var(--pointer-x, 50%) var(--pointer-y, 30%), color-mix(in srgb, var(--rose) 10%, transparent), transparent 72%);
  opacity: .9;
  transition: opacity .3s ease;
}

.progress-shell {
  top: 1.25rem;
  left: clamp(1.5rem, 3vw, 2.2rem);
  right: 7.9rem;
  gap: .45rem;
}

.progress-copy {
  min-height: 1.25rem;
  color: color-mix(in srgb, var(--muted) 86%, #4b3d45);
  font-size: .75rem;
  font-weight: 600;
}

.progress-copy b {
  color: var(--rose-dark);
  font-size: .75rem;
  letter-spacing: .08em;
}

.progress-track { height: 3px; background: color-mix(in srgb, var(--border) 72%, #eee); }

.progress-track i {
  background: linear-gradient(90deg, color-mix(in srgb, var(--rose) 80%, #fff), var(--rose-dark));
  transition: transform .5s cubic-bezier(.2,.8,.3,1);
}

.language-switcher {
  position: absolute;
  top: .95rem;
  right: 1rem;
  z-index: 3;
  display: flex;
  gap: .1rem;
  min-height: 52px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  padding: .2rem;
  box-shadow: 0 6px 18px rgba(56,22,42,.06);
  backdrop-filter: blur(12px);
}

.language-option {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 .45rem;
  color: color-mix(in srgb, var(--muted) 90%, #50434b);
  font-size: .75rem;
}

.language-option.active {
  background: var(--rose-dark);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--rose) 30%, transparent);
}

.step {
  width: 100%;
  gap: 1.25rem;
}

.step.active { animation: step-forward .46s cubic-bezier(.2,.8,.25,1); }

.card[data-direction='backward'] .step.active { animation-name: step-backward; }

@keyframes step-forward {
  from { opacity: 0; transform: translateX(18px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes step-backward {
  from { opacity: 0; transform: translateX(-18px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}

.eyebrow {
  color: var(--rose-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .17em;
  line-height: 1.5;
}

h1 {
  max-width: 19ch;
  font-size: clamp(1.75rem, 3.1vw, 2.15rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.sub {
  max-width: 45ch;
  color: color-mix(in srgb, var(--muted) 90%, #5a4853);
  font-size: .96rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.emoji {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, var(--surface-soft));
  font-size: 1.9rem;
  filter: drop-shadow(0 10px 13px color-mix(in srgb, var(--rose) 18%, transparent));
  box-shadow: inset 0 1px #fff;
  animation: bob 3.2s ease-in-out infinite;
}

.invite-seal {
  position: relative;
  display: grid;
  width: 5.15rem;
  height: 5.15rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--rose) 34%, transparent);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff, var(--surface-soft) 68%);
  color: var(--rose-dark);
  font: italic 700 1.18rem 'Playfair Display', Georgia, serif;
  box-shadow: 0 15px 30px color-mix(in srgb, var(--rose-dark) 18%, transparent), inset 0 0 0 6px rgba(255,255,255,.72);
}

.invite-seal::before {
  content: '';
  position: absolute;
  inset: -.38rem;
  border: 1px dashed color-mix(in srgb, var(--rose) 28%, transparent);
  border-radius: 50%;
  animation: seal-spin 20s linear infinite;
}

.invite-seal i {
  position: absolute;
  right: -.15rem;
  bottom: -.05rem;
  font-style: normal;
  font-size: 1.25rem;
}

@keyframes seal-spin { to { transform: rotate(360deg); } }

.intent-sub { margin-top: -.55rem; }

.intent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .62rem;
  width: 100%;
}

.intent-choice {
  --intent-accent: var(--rose);
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0,1fr) 1.6rem;
  grid-template-rows: auto auto;
  align-items: center;
  gap: .1rem .85rem;
  min-height: 78px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  padding: .72rem 2.9rem .72rem .8rem;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 22px rgba(50,20,38,.055);
  transition: transform .2s cubic-bezier(.2,.8,.3,1.15), border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.intent-choice::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 3px 0 var(--intent-accent); opacity: .18; }

.intent-choice > span {
  grid-row: 1 / 3;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 15px;
  background: color-mix(in srgb, var(--intent-accent) 12%, #fff);
  font-size: 1.35rem;
}

.intent-choice strong { grid-column: 2; grid-row: 1; align-self: end; font-size: .94rem; line-height: 1.3; }
.intent-choice small { grid-column: 2; grid-row: 2; align-self: start; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.intent-choice > i {
  position: absolute;
  right: .9rem;
  top: 50%;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
  font-style: normal;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}
.intent-choice > i::before { content: '→'; color: color-mix(in srgb, var(--intent-accent) 72%, #8d7e86); font-size: 1rem; }
.intent-choice > b {
  position: absolute;
  right: .75rem;
  bottom: -.32rem;
  color: color-mix(in srgb, var(--intent-accent) 11%, transparent);
  font: italic 700 2.3rem 'Playfair Display', Georgia, serif;
  letter-spacing: -.08em;
}

.intent-choice.friendship { --intent-accent: #df9418; }
.intent-choice.mentor { --intent-accent: #7355d6; }
.intent-choice.romantic { --intent-accent: #d83a72; }

.intent-choice.selected {
  border-color: var(--intent-accent);
  background: color-mix(in srgb, var(--intent-accent) 6%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--intent-accent) 13%, transparent), 0 13px 28px rgba(55,20,40,.1);
}

.intent-choice.selected > i { background: var(--intent-accent); }
.intent-choice.selected > i::before { content: '✓'; color: #fff; font-size: .75rem; }

.intent-actions {
  display: grid;
  justify-items: center;
  gap: .5rem;
  width: 100%;
  margin-top: -.15rem;
}

.intent-actions p {
  min-height: 1.15rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.intent-actions .btn { width: min(340px,100%); }

.tiny-note {
  color: color-mix(in srgb, var(--muted) 78%, #8a7c84);
  font-size: .75rem;
  line-height: 1.55;
}

.intro-name {
  margin-top: -1.35rem;
  background: linear-gradient(115deg, var(--rose-dark), var(--rose) 58%, var(--rose-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font: italic 700 2.35rem 'Playfair Display', Georgia, serif;
  letter-spacing: -.04em;
}

.intro-copy { margin-top: -.5rem; }

.promise-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: -.35rem;
}

.promise-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  padding: .4rem .7rem;
  color: var(--rose-dark);
  font-size: .75rem;
  font-weight: 750;
  box-shadow: 0 5px 12px rgba(40,18,32,.045);
}

.btn {
  min-height: 52px;
  border-radius: 16px;
  padding: .9rem 1.45rem;
  font-size: .93rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
}

.btn.yes {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--rose) 84%, #fff), var(--rose-dark));
  box-shadow: 0 12px 26px color-mix(in srgb, var(--rose) 34%, transparent);
}

.btn.yes::after {
  content: '';
  position: absolute;
  inset: -80% auto -80% -36%;
  width: 24%;
  background: rgba(255,255,255,.38);
  transform: rotate(18deg);
  transition: left .55s ease;
}

.btn.yes:active,
.btn.back:active,
.btn.ghost:active { transform: scale(.98); }

.btn.back,
.btn.ghost {
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,.64);
  color: var(--ink);
  box-shadow: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .48;
  filter: grayscale(.12);
  box-shadow: none !important;
  transform: none !important;
}

.nav-row {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: .7rem;
  width: 100%;
  align-items: center;
}

.nav-row .btn.back { min-width: 112px; }
.nav-row .btn.yes { width: 100%; }

.intro-actions {
  position: relative;
  width: min(440px,100%);
  height: 118px;
  flex: none;
}

.intro-actions #btn-yes,
.intro-actions #btn-no {
  position: absolute;
  top: 0;
  min-height: 54px;
}

.intro-actions #btn-yes {
  left: 0;
  z-index: 2;
  width: 245px;
}

.intro-actions #btn-no {
  --no-x: 0px;
  --no-y: 0px;
  --no-rotate: 0deg;
  --no-scale: 1;
  right: 0;
  z-index: 6;
  width: 178px;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--muted);
  padding-inline: .75rem;
  font-size: .84rem;
  transform: translate(var(--no-x), var(--no-y)) rotate(var(--no-rotate)) scale(var(--no-scale));
  transition: transform .38s cubic-bezier(.18,.89,.32,1.35), background .22s ease, color .22s ease, box-shadow .22s ease;
  will-change: transform;
}

.intro-actions #btn-no[hidden] { display: none; }

.intro-actions .intent-back {
  position: absolute;
  left: 50%;
  bottom: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: .5rem .8rem;
  color: var(--muted);
  font-size: .76rem;
  transform: translateX(-50%);
  box-shadow: none;
}

html[data-intent]:not([data-intent="romantic"]) .intro-actions #btn-yes {
  left: 50%;
  width: min(280px,100%);
  transform: translateX(-50%);
}

.intro-actions #btn-no.nervous { animation: no-nervous .13s ease-in-out infinite alternate; }
.intro-actions #btn-no.escaping { box-shadow: 0 10px 24px rgba(50,20,38,.2); }
.intro-actions #btn-no.surrendered {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--rose) 48%, #fff);
  background: #fff;
  color: var(--rose-dark);
}
.intro-actions #btn-yes.extra-tempting { animation: tempting-pulse 1.25s ease-in-out infinite; }

@keyframes no-nervous {
  from { transform: translate(var(--no-x),var(--no-y)) rotate(-2deg) scale(var(--no-scale)); }
  to { transform: translate(var(--no-x),var(--no-y)) rotate(2deg) scale(var(--no-scale)); }
}

@keyframes tempting-pulse {
  0%,100% { box-shadow: 0 12px 26px color-mix(in srgb,var(--rose) 34%,transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb,var(--rose) 9%,transparent),0 16px 34px color-mix(in srgb,var(--rose) 42%,transparent); }
}

.no-poof {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  font-size: 1.25rem;
  transform: translate(-50%,-50%);
  animation: no-poof .68s ease-out forwards;
}

@keyframes no-poof {
  from { opacity: 1; transform: translate(-50%,-35%) scale(.65) rotate(-8deg); }
  to { opacity: 0; transform: translate(-50%,-135%) scale(1.35) rotate(12deg); }
}

.form {
  gap: .9rem;
  width: 100%;
}

.form label {
  gap: .42rem;
  color: color-mix(in srgb,var(--muted) 82%,#3e3038);
  font-size: .82rem;
  font-weight: 750;
  text-align: left;
}

.form input {
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.82);
  padding: .85rem 1rem;
  color: var(--ink);
  font-size: 1rem;
  box-shadow: inset 0 1px rgba(255,255,255,.8);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.form input:hover { border-color: color-mix(in srgb,var(--rose) 42%,#ddd); }
.form input:focus {
  border-color: var(--rose);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--rose) 12%,transparent);
}

.field-note {
  margin-top: -.55rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  text-align: left;
}

.slot-wrap { gap: .5rem; }
.slot-label { color: color-mix(in srgb,var(--muted) 86%,#3e3038); font-size: .82rem; font-weight: 750; text-align: left; }

.slots {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .5rem;
}

.slot {
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.8);
  color: var(--ink);
  font-size: .86rem;
  font-weight: 750;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.slot.selected,
.slot.selected:hover {
  border-color: var(--rose-dark);
  background: var(--rose-dark);
  color: #fff;
  box-shadow: 0 7px 17px color-mix(in srgb,var(--rose) 27%,transparent);
}

.slot.taken {
  background: color-mix(in srgb,var(--border) 32%,#fff);
  color: color-mix(in srgb,var(--muted) 62%,#bbb);
  text-decoration: line-through;
}

.slot-hint {
  grid-column: 1 / -1;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.48);
  color: var(--muted);
  font-size: .8rem;
}

.slot-hint.loading::before {
  content: '';
  width: .9rem;
  height: .9rem;
  border: 2px solid color-mix(in srgb,var(--rose) 22%,transparent);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.slot-retry {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: .35rem .75rem;
  color: var(--rose-dark);
  font-size: .75rem;
  font-weight: 800;
}

@keyframes spin { to { transform: rotate(360deg); } }

.grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .55rem;
}

.choice {
  position: relative;
  min-height: 76px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  padding: .62rem .4rem;
  font-size: .77rem;
  font-weight: 750;
  box-shadow: 0 6px 16px rgba(46,19,35,.04);
}

.choice .choice-emoji {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  font-size: 1.15rem;
  transition: transform .18s cubic-bezier(.2,.8,.3,1.25), background .18s ease;
}

.choice::after {
  content: none;
}

.choice-check {
  position: absolute;
  top: .38rem;
  right: .38rem;
  display: grid;
  width: 1.05rem;
  height: 1.05rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: transparent;
  font-size: .65rem;
  font-style: normal;
  transition: background .16s ease,color .16s ease,border-color .16s ease;
}

.choice.selected {
  border-color: var(--rose-dark);
  background: var(--rose-dark);
  color: #fff;
  box-shadow: 0 9px 20px color-mix(in srgb,var(--rose) 28%,transparent);
}

.choice.selected .choice-emoji { background: rgba(255,255,255,.16); }
.choice.selected .choice-check { border-color: #fff; background: #fff; color: var(--rose-dark); }

.choice.spicy {
  grid-column: auto;
  min-height: 76px;
  flex-direction: column;
  gap: .4rem;
  background: linear-gradient(145deg,#fff,#fff2f6);
}

.choice.on-fire { animation: spicy-shake .3s ease-in-out 4; }

.vibe-preview {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: .8rem;
  margin-top: -.4rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.5);
  padding: .8rem .9rem;
  color: var(--muted);
  text-align: left;
  transition: transform .2s ease,border-color .2s ease,background .2s ease;
}

.vibe-preview.chosen {
  border-style: solid;
  border-color: color-mix(in srgb,var(--rose) 42%,#fff);
  background: var(--surface-soft);
  transform: translateY(-2px);
}

.vibe-preview .vibe-spark { color: var(--rose); font-size: 1.1rem; line-height: 1.25; }
.vibe-preview strong { display: block; color: var(--rose-dark); font: italic 700 .95rem 'Playfair Display', Georgia, serif; }
.vibe-preview p { margin-top: .12rem; font-size: .76rem; line-height: 1.48; }

.summary {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: .55rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: .85rem;
  font-size: .78rem;
  line-height: 1.4;
  text-align: left;
}

.summary-row {
  position: relative;
  display: grid;
  gap: .13rem;
  min-height: 58px;
  border-radius: 12px;
  background: rgba(255,255,255,.66);
  padding: .58rem 2.1rem .58rem .65rem;
}

.summary-row.wide { grid-column: 1 / -1; }
.summary-row b { color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.summary-row span { overflow-wrap: anywhere; color: var(--ink); font-weight: 700; }
.summary-edit {
  position: absolute;
  top: .35rem;
  right: .35rem;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--rose-dark);
  font-size: .75rem;
}

.chemistry-card {
  display: grid;
  gap: .52rem;
  width: 100%;
  margin-top: -.35rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.65);
  padding: .82rem .9rem;
  text-align: left;
}

.chemistry-head {
  display: flex;
  justify-content: space-between;
  color: var(--rose-dark);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chemistry-head strong { color: #25734e; font-size: .75rem; }
.meter { display: grid; grid-template-columns: 112px 1fr 32px; align-items: center; gap: .5rem; color: #6f5865; font-size: .75rem; }
.meter i { position: relative; height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.meter i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg,var(--rose),var(--rose-dark)); transform: scaleX(var(--score)); transform-origin: left; animation: meter-in 1s .2s both cubic-bezier(.2,.8,.3,1); }
.meter b { color: var(--rose-dark); text-align: right; }
.chemistry-card small { color: var(--muted); font-size: .75rem; font-style: italic; }
@keyframes meter-in { from { transform: scaleX(0); } }

.payment-sub { margin-top: -.5rem; }

.bill-choices {
  display: grid;
  gap: .55rem;
  width: 100%;
}

.bill-choice {
  display: grid;
  grid-template-columns: 2.35rem minmax(0,1fr) 1.35rem;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 62px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.72);
  padding: .58rem .7rem;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 6px 16px rgba(45,18,34,.04);
  transition: transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}

.bill-choice .bill-icon {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  font-size: 1.1rem;
}

.bill-choice strong,
.bill-choice small { display: block; }
.bill-choice strong { font-size: .83rem; line-height: 1.3; }
.bill-choice small { margin-top: .1rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.bill-choice > i { display: grid; width: 1.25rem; height: 1.25rem; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; color: transparent; font-size: .65rem; font-style: normal; }
.bill-choice.selected { border-color: var(--rose); background: var(--surface-soft); box-shadow: 0 8px 19px color-mix(in srgb,var(--rose) 18%,transparent); }
.bill-choice.selected > i { border-color: var(--rose); background: var(--rose); color: #fff; }

.bill-trick-zone {
  position: relative;
  width: 100%;
  height: 74px;
}

.bill-trick-zone .bill-choice {
  --bill-x: 0px;
  --bill-y: 0px;
  --bill-rotate: 0deg;
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(100% - 96px);
  border-style: dashed;
  transform: translate(calc(-50% + var(--bill-x)),var(--bill-y)) rotate(var(--bill-rotate));
  will-change: transform;
}

.bill-trick-zone .bill-choice.escaping { box-shadow: 0 13px 26px rgba(50,20,38,.18); }
.bill-trick-zone .bill-choice.surrendered { border-style: solid; background: var(--surface-soft); animation: bill-surrender .52s cubic-bezier(.2,.8,.3,1.25); }
@keyframes bill-surrender { 45% { box-shadow: 0 0 0 7px color-mix(in srgb,var(--rose) 10%,transparent),0 13px 28px color-mix(in srgb,var(--rose) 20%,transparent); } }

.arrangement-note,
.consent-note { color: var(--muted); font-size: .75rem; line-height: 1.45; text-align: center; }
.arrangement-note { margin-top: -.25rem; }
.arrangement-status { min-height: 1rem; margin-top: -.4rem; color: #176d49; font-size: .75rem; font-weight: 800; line-height: 1.4; text-align: center; }
.consent-note { margin-top: -.6rem; }

.form-error {
  min-height: 1.2em;
  color: #a92822;
  font-size: .82rem;
  line-height: 1.45;
}

.success-step { padding-block: .5rem; }

.success-seal {
  position: relative;
  display: grid;
  width: 5.6rem;
  height: 5.6rem;
  place-items: center;
  border: 1px solid color-mix(in srgb,var(--rose) 32%,#fff);
  border-radius: 50%;
  background: linear-gradient(145deg,#fff,var(--surface-soft));
  color: var(--rose-dark);
  box-shadow: 0 0 0 9px color-mix(in srgb,var(--rose) 7%,transparent),0 18px 36px color-mix(in srgb,var(--rose) 20%,transparent);
  animation: success-arrive .7s cubic-bezier(.2,.9,.3,1.3) both;
}

.success-seal span { font-size: 2rem; font-weight: 800; }
.success-seal i { position: absolute; right: -.12rem; top: .2rem; color: var(--rose); font-style: normal; font-size: 1.2rem; }
@keyframes success-arrive { from { opacity: 0; transform: scale(.4) rotate(-16deg); } }

.done-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}

.done-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  padding: .42rem .72rem;
  color: var(--rose-dark);
  font-size: .75rem;
  font-weight: 750;
}

.request-journey {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  width: 100%;
  position: relative;
}

.request-journey::before { content: ''; position: absolute; top: 16px; left: 16%; right: 16%; height: 2px; background: var(--line); }
.request-journey span { position: relative; z-index: 1; display: grid; justify-items: center; gap: .4rem; color: var(--muted); font-size: .75rem; }
.request-journey i { display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: #fff; font-style: normal; font-weight: 800; }
.request-journey .complete { color: var(--rose-dark); }
.request-journey .complete i { border-color: var(--rose); background: var(--rose); color: #fff; box-shadow: 0 5px 12px color-mix(in srgb,var(--rose) 24%,transparent); }

.foot {
  position: relative;
  bottom: auto;
  width: 100%;
  min-height: 3.25rem;
  padding: .5rem 1rem 1.2rem;
  color: rgba(255,255,255,.48);
  font-size: .75rem;
}

@media (hover:hover) {
  .intent-choice:hover {
    transform: translateY(-2px);
    border-color: var(--intent-accent);
    background: #fff;
    box-shadow: 0 13px 28px rgba(53,20,40,.1);
  }
  .intent-choice:hover > i { transform: translate(3px,-50%); }
  .btn.yes:hover { transform: translateY(-2px); box-shadow: 0 16px 32px color-mix(in srgb,var(--rose) 42%,transparent); }
  .btn.yes:hover::after { left: 118%; }
  .btn.back:hover,
  .btn.ghost:hover,
  .intro-actions .intent-back:hover,
  .summary-edit:hover { border-color: var(--rose); background: var(--surface-soft); color: var(--rose-dark); }
  .slot:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--rose); background: var(--surface-soft); }
  .choice:hover { transform: translateY(-2px); border-color: var(--rose); background: var(--surface-soft); box-shadow: 0 8px 18px color-mix(in srgb,var(--rose) 14%,transparent); }
  .choice:hover .choice-emoji { transform: rotate(-4deg) scale(1.07); }
  .bill-choice:hover { transform: translateY(-2px); border-color: var(--rose); background: var(--surface-soft); box-shadow: 0 9px 20px color-mix(in srgb,var(--rose) 13%,transparent); }
}

@media (max-width: 880px) {
  .stage { align-items: start; padding: max(1rem,env(safe-area-inset-top)) 1rem 1rem; }
  .experience-shell { grid-template-columns: 1fr; width: min(620px,100%); }
  .story-panel {
    min-height: 0;
    border-right: 1px solid rgba(255,255,255,.22);
    border-bottom: 0;
    border-radius: 25px 25px 0 0;
    padding: 1rem 1.1rem;
  }
  .story-brand,
  .story-copy > p:last-child,
  .story-panel::before,
  .story-panel::after { display: none; }
  .story-copy { display: block; }
  .story-overline { margin: 0 0 .3rem; font-size: .75rem; }
  .story-copy blockquote { max-width: 34ch; font-size: 1.18rem; line-height: 1.28; }
  .story-route {
    position: absolute;
    right: 1rem;
    top: 50%;
    max-width: 42%;
    border: 0;
    padding: 0;
    transform: translateY(-50%);
  }
  .story-route > span { width: 2rem; height: 2rem; border-radius: 10px; }
  .story-route small { display: none; }
  .story-route strong { font-size: .75rem; }
  .card { min-height: 0; border-radius: 0 0 25px 25px; padding-top: 5rem; }
}

@media (max-width: 560px) {
  .stage { min-height: calc(100svh - 2.8rem); padding-inline: .7rem; }
  .story-panel { padding: .9rem 1rem; }
  .story-copy blockquote { max-width: 55%; font-size: 1.03rem; }
  .story-route { right: .75rem; max-width: 39%; gap: .45rem; }
  .story-route > span { display: none; }

  .card {
    padding: 4.75rem 1rem 1.25rem;
  }

  .progress-shell { top: 1.05rem; left: 1rem; right: 7.1rem; }
  .language-switcher { top: .78rem; right: .65rem; }
  .step { gap: 1rem; }
  h1 { max-width: 21ch; font-size: clamp(1.45rem,7vw,1.75rem); }
  .sub { font-size: .9rem; line-height: 1.55; }
  .invite-seal { width: 4.45rem; height: 4.45rem; }
  .emoji { width: 3.55rem; height: 3.55rem; font-size: 1.65rem; border-radius: 17px; }

  .intent-choice { min-height: 76px; padding-right: 2.65rem; }
  .intent-choice > span { width: 2.7rem; height: 2.7rem; }
  .intent-choice small { font-size: .75rem; }
  .intent-actions .btn { width: 100%; }

  .intro-actions { height: 166px; width: 100%; }
  .intro-actions #btn-yes,
  .intro-actions #btn-no {
    left: 0;
    right: auto;
    width: 100%;
  }
  .intro-actions #btn-no { top: 64px; }
  .intro-actions .intent-back { bottom: 0; }
  html[data-intent]:not([data-intent="romantic"]) .intro-actions {
    height: 108px;
  }
  html[data-intent]:not([data-intent="romantic"]) .intro-actions #btn-yes {
    left: 0;
    width: 100%;
    transform: none;
  }

  .nav-row { grid-template-columns: 1fr; }
  .nav-row .btn.yes { grid-row: 1; }
  .nav-row .btn.back { grid-row: 2; min-width: 0; }

  .slots { grid-template-columns: repeat(3,1fr); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .choice { min-height: 72px; }
  .vibe-preview { padding: .7rem .75rem; }

  .summary { grid-template-columns: 1fr; }
  .summary-row.wide { grid-column: auto; }
  .chemistry-card { margin-top: -.15rem; }
  .meter { grid-template-columns: minmax(86px,1fr) 1.1fr 30px; gap: .35rem; font-size: .75rem; }

  .bill-choice { min-height: 64px; }
  .bill-choice small { font-size: .75rem; }
  .bill-trick-zone { height: 76px; }
  .bill-trick-zone .bill-choice { width: calc(100% - 42px); }

  .success-seal { width: 5rem; height: 5rem; }
  .request-journey span { font-size: .75rem; }
  .foot { min-height: 2.8rem; padding-bottom: max(.8rem,env(safe-area-inset-bottom)); font-size: .75rem; }
}

@media (max-width: 370px) {
  .card { padding-inline: .8rem; }
  .slots { grid-template-columns: repeat(2,1fr); }
  .intent-choice { gap: .08rem .6rem; }
  .intent-choice > b { display: none; }
  .meter { grid-template-columns: 82px 1fr 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambience { transition: none; }
  .card[data-direction] .step.active,
  .step.active,
  .invite-seal::before,
  .intro-actions #btn-no,
  .intro-actions #btn-no.nervous,
  .intro-actions #btn-yes.extra-tempting,
  .bill-trick-zone .bill-choice,
  .bill-trick-zone .bill-choice.surrendered,
  .emoji,
  .success-seal,
  .heart-float,
  .confetti-piece,
  .meter i::after,
  .slot-hint.loading::before {
    animation: none !important;
    transition: none !important;
  }
  .hearts,
  .confetti { display: none; }
  .bill-trick-zone .bill-choice { width: 100%; transform: translateX(-50%) !important; }
}
