:root {
  --rose: #e11d48;
  --rose-deep: #be123c;
  --rose-ink: #9f1239;
  --rose-soft: #fde8ee;
  --rose-softer: #fff1f4;
  --ink: #2a151c;
  --ink-2: #4b3239;
  --muted: #7b6169;
  --surface: #ffffff;
  --line: #f3e0e5;
  --line-strong: #e9ccd4;
  --good-bg: #e9f7ef;
  --good-ink: #17754a;
  --tint-pink: #fde8ee;
  --tint-amber: #fdf0dd;
  --tint-violet: #f1e9fd;
  --tint-mint: #e6f6ef;
  --tint-sky: #e7f1fd;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 6px rgba(42, 21, 28, 0.05);
  --shadow: 0 12px 34px rgba(190, 18, 60, 0.08);
  --shadow-lg: 0 26px 60px rgba(190, 18, 60, 0.14);
}

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

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: Outfit, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* Blush wash behind the top of every page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 820px;
  background:
    radial-gradient(680px 420px at 88% 6%, #fde2ea 0%, transparent 60%),
    linear-gradient(180deg, #fff2f5 0%, #fff7f9 46%, #ffffff 100%);
  pointer-events: none;
  z-index: 0;
}

.play-body,
.play-body #play-root {
  min-height: 100vh;
  overflow: hidden;
}

.play-body::before {
  height: 100%;
  background:
    radial-gradient(760px 460px at 12% 0%, #fde2ea 0%, transparent 62%),
    radial-gradient(680px 420px at 92% 96%, #fdeee3 0%, transparent 60%),
    linear-gradient(180deg, #fff4f7 0%, #fffafb 100%);
}

.bg-glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 200, 216, 0.55), transparent 65%);
  animation: pulse 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#app,
#play-root {
  position: relative;
  z-index: 1;
}

a {
  color: var(--rose);
  text-decoration: none;
}

a:hover {
  color: var(--rose-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  color: var(--rose);
  font-size: 1.2rem;
  line-height: 1;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav nav a,
.text-btn {
  color: var(--muted);
  background: none;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.text-btn:hover,
.nav nav a:hover {
  color: var(--ink);
}

.nav .nav-cta {
  color: #fff;
  background: linear-gradient(180deg, #ec2c58 0%, var(--rose-deep) 100%);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.nav .nav-cta:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* ---------- Layout blocks ---------- */

.hero,
.page-head,
.block,
.pricing-note,
.create,
.activity-hero {
  position: relative;
  padding: 30px 6vw 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  padding-top: 54px;
  padding-bottom: 26px;
}

.eyebrow {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 14px;
}

h1,
.display {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero h1 {
  max-width: 14ch;
}

.accent {
  color: var(--rose);
  font-style: italic;
  font-weight: 500;
}

.accent .heart {
  display: inline-block;
  margin-left: 0.18em;
  font-style: normal;
  font-size: 0.55em;
  vertical-align: 0.35em;
  animation: bob 3.6s ease-in-out infinite;
}

.display span {
  display: inline-block;
  animation: crown 2.4s ease-in-out infinite;
}

.lede,
.proposal {
  margin-top: 18px;
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}

.proposal {
  max-width: 26ch;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
}

.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Buttons ---------- */

.btn {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 13px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.gold,
.yes,
.yes-slot {
  color: #fff;
  background: linear-gradient(180deg, #ec2c58 0%, var(--rose-deep) 100%);
  box-shadow: var(--shadow);
}

.btn.gold:hover {
  color: #fff;
}

.btn.rose,
.no-float {
  color: var(--rose-ink);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn.ghost {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn.ghost:hover,
.btn.rose:hover {
  border-color: var(--rose);
}

.btn.block {
  width: 100%;
  margin-top: 10px;
}

.btn.mini {
  pointer-events: none;
  padding: 9px 16px;
  font-size: 0.85rem;
}

.btn .arrow {
  font-size: 1.05em;
  line-height: 1;
}

/* ---------- Hero visual ---------- */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.hero-visual .blob {
  position: absolute;
  width: 90%;
  height: 90%;
  right: -4%;
  top: 2%;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: linear-gradient(150deg, #fdd7e2, #fbe4ea 55%, #fdeee3);
  filter: blur(2px);
}

.preview-stack {
  position: relative;
  width: min(360px, 92%);
  min-height: 280px;
}

.ui-card {
  position: relative;
  z-index: 2;
  width: 86%;
  padding: 22px 20px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-3deg);
  animation: float-card 5.5s ease-in-out infinite;
}

.ui-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
}

.ui-title {
  margin-top: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.ui-field {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--rose-softer);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.ui-btn {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ec2c58 0%, var(--rose-deep) 100%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.envelope-card {
  position: absolute;
  right: -4%;
  bottom: 8%;
  z-index: 3;
  width: 148px;
  height: 108px;
  border-radius: 18px;
  background: linear-gradient(160deg, #ff8aa8, #e11d48);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  animation: float-env 6.2s ease-in-out infinite;
}

.envelope-card::before {
  content: "";
  position: absolute;
  inset: 12px 14px auto;
  height: 42px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ffe0e8, #ffb3c6);
  clip-path: polygon(0 100%, 50% 18%, 100% 100%);
}

.env-seal {
  position: relative;
  z-index: 1;
  margin-top: -6px;
  font-size: 1.6rem;
  color: #fff;
  filter: drop-shadow(0 4px 8px rgba(120, 10, 40, 0.25));
}

.env-label {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-visual .spark {
  position: absolute;
  color: rgba(225, 29, 72, 0.42);
  font-size: 1.1rem;
  animation: bob 4.5s ease-in-out infinite;
}

.hero-visual .spark:nth-child(3) {
  left: 0%;
  top: 22%;
}

.hero-visual .spark:nth-child(4) {
  right: 2%;
  bottom: 18%;
  animation-delay: 1.4s;
}

.hero-visual .spark:nth-child(5) {
  right: 18%;
  top: 6%;
  font-size: 0.85rem;
  animation-delay: 2.2s;
}

/* ---------- Steps ---------- */

.how-wrap {
  padding: 8px 6vw 34px;
}

.how {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 18px;
  border-right: 1px solid var(--line);
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
}

.step:last-child {
  border-right: 0;
}

.icon-chip {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint-pink);
  color: var(--rose);
}

.icon-chip.tone-pink {
  background: #fde2ea;
  color: #e11d48;
}

.icon-chip.tone-mint {
  background: #d9f5ea;
  color: #0f8a62;
}

.icon-chip.tone-violet {
  background: #ebe4fd;
  color: #6d4ad4;
}

.icon-chip.tone-amber {
  background: #fdeed0;
  color: #c47a10;
}

.icon-chip svg {
  width: 20px;
  height: 20px;
}

.step strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
}

.step p {
  margin-top: 5px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Cards ---------- */

.step,
.cat,
.card,
.preview,
.form,
.share-box,
.rather-card,
.letter,
.win-card,
.modal-card,
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.how .step {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border-color: transparent;
  border-right: 1px solid var(--line);
}

.block-head {
  margin-bottom: 20px;
}

.block-head h2,
.pricing-note h2,
.create h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  font-weight: 600;
}

.block-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
}

.cats,
.grid {
  display: grid;
  gap: 16px;
}

.cats {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.grid {
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  padding: 0 6vw 26px;
}

.block .grid {
  padding: 0;
}

.cat,
.card-link {
  color: inherit;
}

.cat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 0;
  box-shadow: none;
}

.cat.tint-1 {
  background: var(--tint-pink);
}

.cat.tint-2 {
  background: var(--tint-amber);
}

.cat.tint-3 {
  background: var(--tint-violet);
}

.cat.tint-4 {
  background: var(--tint-mint);
}

.cat.tint-5 {
  background: var(--tint-sky);
}

.cat,
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat:hover,
.card-link:hover .card {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-emoji,
.card-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.tint-1 .card-emoji {
  background: var(--tint-pink);
}

.tint-2 .card-emoji {
  background: var(--tint-amber);
}

.tint-3 .card-emoji {
  background: var(--tint-violet);
}

.tint-4 .card-emoji {
  background: var(--tint-mint);
}

.tint-5 .card-emoji {
  background: var(--tint-sky);
}

.cat h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
}

.cat p,
.card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 5px;
  line-height: 1.5;
}

.cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.cat-tags {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cat-arrow {
  color: var(--muted);
  font-size: 1.05rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cat:hover .cat-arrow {
  color: var(--rose);
  transform: translateX(3px);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

.tiny {
  margin-top: 14px;
  font-size: 0.78rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 186px;
  height: 100%;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.04rem;
  font-weight: 600;
}

/* ---------- Pills ---------- */

.pill {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill.free {
  background: var(--good-bg);
  color: var(--good-ink);
}

.pill.paid {
  background: var(--rose-soft);
  color: var(--rose-ink);
}

.pill.unlocked {
  background: var(--tint-sky);
  color: #1b5e91;
}

/* ---------- Pricing ---------- */

.pricing-note {
  padding-bottom: 24px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.price-card {
  padding: 22px 20px;
}

.price-card .price-lg {
  font-size: 2.1rem;
  margin: 6px 0 10px;
}

.price-card p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.price-lg {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Footer ---------- */

.foot {
  position: relative;
  margin-top: 22px;
  padding: 30px 6vw 44px;
  border-top: 1px solid var(--line);
  background: #fffafb;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.legal-nav a,
.legal-nav span {
  color: var(--muted);
}

.legal-nav a:hover {
  color: var(--rose);
}

/* ---------- Legal / long-form ---------- */

.legal {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 34px 6vw 28px;
}

.legal h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.legal h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  margin: 30px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.legal ul {
  padding-left: 18px;
}

.legal b {
  color: var(--ink);
}

.report-line {
  margin-top: 28px;
  font-size: 0.82rem;
}

.report-line a {
  color: var(--muted);
}

.report-line a:hover {
  color: var(--rose);
}

/* ---------- Forms ---------- */

.form,
.share-box {
  padding: 24px;
  margin-top: 20px;
  max-width: 560px;
}

.form label,
.code-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-2);
}

input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fffdfd;
  color: var(--ink);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #b49aa3;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--rose);
  outline: none;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.share-box input {
  margin: 10px 0 4px;
}

.form.is-locked input,
.form.is-locked textarea {
  background: #f7f1f3;
  color: var(--ink-2);
}

.preview-note {
  margin-top: 16px;
}

/* ---------- Category / activity pages ---------- */

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.back:hover {
  color: var(--rose);
}

.page-head {
  padding-top: 40px;
}

.activity-hero {
  padding-top: 40px;
}

.activity-layout {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.facts {
  margin-top: 24px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.preview {
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.preview-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  margin: 8px 0;
}

.preview-q {
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.preview-btns {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.preview-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  background: rgba(255, 247, 249, 0.86);
  backdrop-filter: blur(3px);
  color: var(--rose-ink);
  font-weight: 600;
  font-size: 0.94rem;
}

.preview-live {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 16px 16px;
}

.preview-stage {
  position: relative;
  flex: 1;
  min-height: 380px;
  height: min(52vh, 460px);
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    radial-gradient(circle at 20% 10%, rgba(253, 200, 216, 0.45), transparent 55%),
    radial-gradient(circle at 85% 90%, rgba(253, 230, 180, 0.35), transparent 50%),
    #fffafb;
  border: 1px solid rgba(190, 18, 60, 0.08);
}

.preview-stage.is-preview-root,
.preview-stage[data-preview] {
  isolation: isolate;
}

.preview-live .preview-note {
  margin: 0;
}

.preview-live .stage {
  min-height: 100%;
  height: auto;
  padding: 18px 14px 20px;
  box-sizing: border-box;
  justify-content: flex-start;
}

.preview-live .stage .display {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.2;
  margin: 6px 0 8px;
}

.preview-live .stage .eyebrow,
.preview-live .stage-badge {
  font-size: 0.68rem;
}

.preview-live .stage .proposal,
.preview-live .stage .sub,
.preview-live .stage .letter-body,
.preview-live .stage .dodge-note {
  font-size: 0.88rem;
  line-height: 1.45;
}

.preview-live .actions {
  width: 100%;
  margin-top: 18px;
  gap: 10px;
}

.preview-live .actions .btn {
  font-size: 0.86rem;
  padding: 0.65rem 1rem;
}

.preview-live .floaters {
  inset: 0;
  height: 100%;
}

.preview-live .floaters .floater {
  font-size: 10px !important;
  opacity: 0.45;
}

.preview-live #confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 6;
}

.preview-live .win-overlay,
.preview-live .win-overlay-preview {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: 12px;
  border-radius: inherit;
}

.preview-live .win-card {
  width: min(100%, 320px);
  padding: 22px 16px 16px;
  max-height: 100%;
  overflow: auto;
}

.preview-live .win-card h2 {
  font-size: 1.25rem;
}

.preview-live .win-card .win-copy,
.preview-live .win-card .fine-print {
  font-size: 0.82rem;
}

.preview-live .envelope,
.preview-live .letter-sheet,
.preview-live .calendar-card,
.preview-live .contract-card {
  transform: scale(0.92);
  transform-origin: top center;
}

/* ---------- Play stage ---------- */

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  text-align: center;
}

.stage .proposal {
  max-width: 30ch;
}

.stage-badge {
  display: inline-flex;
  margin: 0 auto 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.16);
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stage-kiss {
  background:
    radial-gradient(520px 320px at 50% 18%, rgba(253, 200, 216, 0.55), transparent 70%);
}

.stage-kiss .display {
  text-shadow: 0 10px 40px rgba(225, 29, 72, 0.12);
}

.stage-kiss .proposal {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
}

.yes-kiss {
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.28);
}

.yes-kiss.yes-growing {
  animation: yes-pulse 1.1s ease-in-out infinite;
}

.no-kiss {
  border-color: rgba(225, 29, 72, 0.22);
}

.sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.98rem;
  min-height: 1.5em;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: min(560px, 92vw);
  margin-top: 34px;
}

.yes-slot {
  position: static;
  z-index: 3;
}

.no-float {
  position: relative;
  z-index: 4;
}

.no-float.is-fleeing {
  position: fixed;
  will-change: left, top, transform;
}

.no-float.is-pop {
  animation: flee-pop 0.18s ease;
}

.no-float.shake {
  animation: no-shake 0.28s ease;
}

.dodge-note {
  margin-top: 22px;
  min-height: 2.8em;
  color: var(--rose-ink);
  font-size: 0.94rem;
}

.dodge-note:empty {
  visibility: hidden;
}

.floaters {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floater {
  position: absolute;
  bottom: -40px;
  color: rgba(236, 44, 88, 0.28);
  animation: float-up linear infinite;
  user-select: none;
}

.trail-bit {
  position: fixed;
  z-index: 5;
  pointer-events: none;
  font-size: 0.95rem;
  color: rgba(225, 29, 72, 0.72);
  transform: translate(-50%, -50%);
  animation: trail-fade 0.85s ease forwards;
  animation-delay: var(--delay, 0s);
}

/* ---------- Envelope ---------- */

.envelope {
  position: relative;
  width: min(280px, 70vw);
  height: 170px;
  margin-top: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 16px 30px rgba(190, 18, 60, 0.16));
}

.flap,
.env-body {
  position: absolute;
  inset: 0;
  border-radius: 8px;
}

.env-body {
  background: linear-gradient(180deg, #fbd9e2 0%, #f6b8c9 100%);
  clip-path: polygon(0 38%, 50% 68%, 100% 38%, 100% 100%, 0 100%);
}

.flap {
  background: linear-gradient(180deg, #fdeaf0 0%, #f9cbd8 100%);
  clip-path: polygon(0 0, 100% 0, 50% 52%);
  transform-origin: top center;
  transition: transform 0.3s ease;
}

.envelope:hover .flap {
  transform: rotateX(22deg);
}

.env-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  color: var(--rose-ink);
  font-weight: 600;
}

.letter {
  max-width: 480px;
  padding: 28px 26px;
  margin-top: 24px;
  text-align: left;
  box-shadow: var(--shadow);
  animation: pop 0.45s ease;
}

.letter-kicker {
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.letter-body {
  font-family: Caveat, "Playfair Display", cursive;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.after-ask {
  width: min(560px, 92vw);
}

.letter {
  position: relative;
}

.letter-stamp-mark {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 10px;
  border: 3px solid rgba(190, 18, 60, 0.75);
  border-radius: 8px;
  color: rgba(190, 18, 60, 0.85);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-12deg) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

.letter-stamp-mark.is-stamped {
  opacity: 1;
  transform: rotate(-12deg) scale(1);
  transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.3, 1), opacity 0.2s ease;
}

.letter-toss {
  animation: letter-toss 0.55s ease;
}

.keep-trash {
  margin-top: 18px;
}

.trash-slot:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.letter-stamp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 18px 22px;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7f9, #ffe4e6);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: transform 0.15s ease;
}

.letter-stamp-btn:hover {
  transform: translateY(-2px);
}

.letter-stamp-btn.is-pressed {
  transform: scale(0.96);
}

.letter-stamp-ink {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(190, 18, 60, 0.7);
  color: #9f1239;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 35% 30%, rgba(251, 113, 133, 0.2), transparent 60%);
}

.letter-stamp-btn.is-pressed .letter-stamp-ink {
  animation: stamp-thud 0.4s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.letter-stamp-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rose-deep);
}

.sign-pad {
  width: min(420px, 92vw);
  margin: 18px auto 0;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  text-align: left;
}

.sign-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sign-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: Caveat, "Playfair Display", cursive;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--ink);
  padding: 4px 2px 2px;
  outline: none;
}

.sign-input.is-signed {
  color: var(--rose-deep);
}

.sign-rule {
  height: 1px;
  margin: 0 0 14px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.45), transparent);
}

.sign-pad .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Contract engine ---------- */

.stage-contract-scroll {
  background:
    radial-gradient(480px 280px at 50% 8%, rgba(255, 237, 213, 0.55), transparent 68%),
    radial-gradient(400px 240px at 20% 90%, rgba(253, 200, 216, 0.28), transparent 70%);
}

.stage-contract-form {
  background:
    radial-gradient(460px 260px at 50% 6%, rgba(226, 232, 240, 0.75), transparent 68%),
    radial-gradient(380px 220px at 80% 90%, rgba(254, 205, 211, 0.25), transparent 70%);
}

.stage-contract-kitchen {
  background:
    radial-gradient(480px 280px at 50% 8%, rgba(254, 215, 170, 0.55), transparent 68%),
    radial-gradient(400px 240px at 20% 90%, rgba(253, 186, 116, 0.28), transparent 70%),
    linear-gradient(180deg, #fff7ed 0%, #fffbeb 55%, #fff7ed 100%);
}

.contract-doc {
  width: min(560px, 94vw);
  margin: 20px auto 0;
  padding: 24px 22px 20px;
  text-align: left;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contract-doc-scroll {
  background:
    linear-gradient(180deg, #fffaf3 0%, #fff 45%, #fff7f9 100%);
  border-color: rgba(180, 83, 9, 0.18);
  box-shadow: 0 16px 40px rgba(120, 53, 15, 0.1);
}

.contract-doc-form {
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.28);
  box-shadow: 0 12px 32px rgba(71, 85, 105, 0.1);
}

.contract-doc-kitchen {
  border-radius: 16px;
  background:
    linear-gradient(180deg, #fffbeb 0%, #fff 42%, #fff7ed 100%);
  border: 1px solid rgba(194, 65, 12, 0.22);
  box-shadow: 0 14px 36px rgba(154, 52, 18, 0.12);
}

.contract-doc-kitchen .contract-parties {
  color: #c2410c;
}

.contract-doc-kitchen .contract-initial-btn {
  border-color: rgba(194, 65, 12, 0.28);
  color: #9a3412;
}

.contract-doc-kitchen .contract-clause.is-initialed .contract-initial-mark {
  background: #ea580c;
  color: #fff7ed;
}

.win-kitchen {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffedd5, #fed7aa);
  border: 1px solid rgba(194, 65, 12, 0.28);
  box-shadow: 0 10px 24px rgba(154, 52, 18, 0.18);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-kitchen-mark {
  font-size: 2rem;
}

.win-card-kitchen {
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.stage-contract-rules {
  background:
    radial-gradient(480px 280px at 50% 8%, rgba(191, 219, 254, 0.55), transparent 68%),
    radial-gradient(400px 240px at 80% 90%, rgba(226, 232, 240, 0.45), transparent 70%),
    linear-gradient(180deg, #f8fafc 0%, #eff6ff 55%, #f8fafc 100%);
}

.contract-doc-rules {
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #eff6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: 0 14px 36px rgba(30, 64, 175, 0.1);
}

.contract-doc-rules .contract-parties {
  color: #1d4ed8;
}

.contract-doc-rules .contract-initial-btn {
  border-color: rgba(37, 99, 235, 0.28);
  color: #1e40af;
}

.contract-doc-rules .contract-clause.is-initialed .contract-initial-mark {
  background: #2563eb;
  color: #eff6ff;
}

.win-rules {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  border: 1px solid rgba(37, 99, 235, 0.28);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.15);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-rules-mark {
  font-size: 2rem;
}

.win-card-rules {
  background: linear-gradient(180deg, #eff6ff, #fff);
}

.contract-parties {
  margin-bottom: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contract-clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contract-clause {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contract-clause.is-initialed {
  border-style: solid;
  border-color: rgba(225, 29, 72, 0.35);
  background: rgba(255, 241, 242, 0.9);
}

.contract-doc-form .contract-clause {
  border-radius: 8px;
  border-style: solid;
  border-color: rgba(148, 163, 184, 0.35);
}

.contract-clause-main {
  display: flex;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.contract-num {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--rose);
}

.contract-text {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.contract-initial-btn {
  flex: 0 0 auto;
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(225, 29, 72, 0.28);
  background: #fff;
  color: var(--rose-deep);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.contract-initial-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: rgba(255, 241, 242, 0.95);
}

.contract-initial-btn:disabled {
  cursor: default;
  border-color: rgba(225, 29, 72, 0.45);
  background: rgba(255, 228, 230, 0.7);
}

.contract-initial-mark {
  font-family: Caveat, "Playfair Display", cursive;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #9f1239;
}

.contract-hint {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.contract-sign {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  animation: pop 0.4s ease;
}

.contract-sign .sign-input {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: Caveat, "Playfair Display", cursive;
  font-size: 1.8rem;
  line-height: 1.2;
  color: var(--ink);
  padding: 4px 2px 2px;
  outline: none;
}

.contract-sign .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.win-contract {
  width: 92px;
  height: 72px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(190, 18, 60, 0.75);
  border-radius: 10px;
  transform: rotate(-6deg);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-contract-mark {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #9f1239;
}

.win-card-contract {
  background: linear-gradient(180deg, #fffaf3, #fff);
}

/* ---------- Meter engine ---------- */

.stage-meter-forgive {
  background:
    radial-gradient(480px 280px at 50% 10%, rgba(253, 200, 216, 0.45), transparent 68%),
    radial-gradient(400px 240px at 80% 90%, rgba(255, 241, 242, 0.5), transparent 70%);
}

.stage-meter-jealous {
  background:
    radial-gradient(460px 260px at 50% 8%, rgba(254, 215, 170, 0.4), transparent 68%),
    radial-gradient(380px 220px at 20% 90%, rgba(253, 200, 216, 0.3), transparent 70%);
}

.stage-meter-fries {
  background:
    radial-gradient(480px 280px at 50% 8%, rgba(253, 230, 138, 0.5), transparent 68%),
    radial-gradient(400px 240px at 80% 90%, rgba(254, 215, 170, 0.4), transparent 70%),
    linear-gradient(180deg, #fffbeb 0%, #fff7ed 55%, #fffbeb 100%);
}

.meter-card {
  width: min(520px, 94vw);
  margin: 22px auto 0;
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}

.meter-card-forgive {
  background: linear-gradient(180deg, #fff7f9, #fff);
  border-color: rgba(225, 29, 72, 0.14);
}

.meter-card-jealous {
  background: linear-gradient(180deg, #fffaf5, #fff);
  border-color: rgba(217, 119, 6, 0.2);
}

.meter-card-fries {
  background: linear-gradient(180deg, #fffbeb 0%, #fff 50%, #fff7ed 100%);
  border-color: rgba(217, 119, 6, 0.28);
}

.meter-card.is-hot .meter-fill {
  filter: saturate(1.15);
}

.meter-card.is-cracking {
  animation: meter-crack 0.45s ease-in-out infinite alternate;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.meter-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: visible;
  touch-action: none;
}

.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fda4af, #e11d48);
  transition: width 0.08s linear;
}

.meter-card-jealous .meter-fill {
  background: linear-gradient(90deg, #fde68a, #f97316, #e11d48);
}

.meter-card-fries .meter-fill {
  background: linear-gradient(90deg, #fde68a, #fbbf24, #ea580c);
}

.meter-card-fries .meter-thumb {
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.meter-thumb {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(190, 18, 60, 0.28);
  transform: translateY(-50%);
  cursor: grab;
  touch-action: none;
}

.meter-thumb:active {
  cursor: grabbing;
  transform: translateY(-50%) scale(1.06);
}

.meter-status {
  margin-top: 14px;
  min-height: 1.4em;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-2);
}

.meter-hint {
  margin-top: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.meter-hold-btn {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff7ed);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: #9a3412;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.meter-hold-btn:hover {
  transform: translateY(-1px);
}

.meter-hold-btn.is-pressed {
  transform: scale(0.98);
  box-shadow: inset 0 2px 10px rgba(154, 52, 18, 0.12);
  background: linear-gradient(180deg, #ffedd5, #fff7ed);
}

.win-meter {
  font-size: 2.6rem;
  animation: bob 1.2s ease-in-out infinite;
}

.win-card-forgive,
.win-card-jealous,
.win-card-fries {
  background: linear-gradient(180deg, #fff7f9, #fff);
}

.win-card-fries {
  background: linear-gradient(180deg, #fffbeb, #fff);
}

.win-meter-fries {
  filter: drop-shadow(0 6px 12px rgba(217, 119, 6, 0.25));
}

@keyframes meter-crack {
  from { transform: translateX(0); }
  to { transform: translateX(1px); }
}

/* ---------- Calendar engine ---------- */

.stage-calendar {
  background:
    radial-gradient(480px 280px at 50% 8%, rgba(253, 230, 138, 0.4), transparent 68%),
    radial-gradient(400px 240px at 80% 90%, rgba(253, 200, 216, 0.28), transparent 70%);
}

.calendar-card {
  width: min(520px, 94vw);
  margin: 22px auto 0;
  padding: 22px 18px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: left;
}

.calendar-kicker {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
}

.calendar-month {
  margin-bottom: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 8px;
}

.cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.cal-day:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.35);
  background: #fff7f9;
}

.cal-wd {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

.cal-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.cal-slot:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 29, 72, 0.35);
  background: #fff7f9;
}

.cal-slot-time {
  flex: 0 0 auto;
  min-width: 3.2rem;
  font-weight: 700;
  color: var(--rose-deep);
}

.cal-slot-label {
  flex: 1;
  color: var(--ink-2);
}

.cal-back {
  margin-top: 14px;
}

.calendar-confirm .calendar-pick {
  margin: 10px 0 6px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-2);
}

.win-calendar {
  font-size: 2.6rem;
  animation: bob 1.2s ease-in-out infinite;
}

.win-card-calendar {
  background: linear-gradient(180deg, #fffbeb, #fff);
}

.stage-calendar-morning {
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(253, 224, 71, 0.35), transparent 70%),
    radial-gradient(420px 260px at 15% 100%, rgba(251, 113, 133, 0.18), transparent 72%),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 50%, #fef3c7 100%);
}

.calendar-card-morning {
  border-color: rgba(234, 88, 12, 0.22);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 45%, #fff7ed 100%);
  box-shadow: 0 14px 36px rgba(234, 88, 12, 0.12);
}

.calendar-card-morning .calendar-kicker {
  color: #c2410c;
}

.stage-calendar-morning .cal-day:hover,
.stage-calendar-morning .cal-slot:hover {
  border-color: rgba(234, 88, 12, 0.4);
  background: #fff7ed;
}

.stage-calendar-morning .cal-slot-time {
  color: #c2410c;
}

.cal-today {
  margin-top: 2px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ea580c;
}

.win-morning {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fde047, #fb923c 70%);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.28);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-morning-sun {
  font-size: 2rem;
}

.win-card-morning {
  background: linear-gradient(180deg, #fff7ed, #fff);
}

.letter-body-redacted {
  position: relative;
}

.letter-body-redacted .redact-text {
  filter: blur(5px);
  opacity: 0.35;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

.letter-body-redacted .redact-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.2em;
  bottom: 0.2em;
  background: repeating-linear-gradient(
    180deg,
    #1e293b 0 1.1em,
    transparent 1.1em 1.55em
  );
  opacity: 0.92;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform-origin: left center;
}

.letter-reveal.is-revealed .redact-text {
  filter: none;
  opacity: 1;
}

.letter-reveal.is-revealed .redact-bar {
  opacity: 0;
  transform: scaleX(0);
}

@keyframes letter-toss {
  0% { transform: translate(0, 0) rotate(0); }
  35% { transform: translate(28px, 18px) rotate(8deg); }
  70% { transform: translate(-10px, -6px) rotate(-3deg); }
  100% { transform: translate(0, 0) rotate(0); }
}

.cake-btn {
  margin-top: 30px;
  padding: 26px 36px;
  border: 0;
  border-radius: 26px;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ec2c58 0%, var(--rose-deep) 100%);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* ---------- Tap skins: cake + stamps ---------- */

.stage-cake {
  background:
    radial-gradient(480px 280px at 50% 12%, rgba(255, 228, 180, 0.45), transparent 68%),
    radial-gradient(420px 260px at 70% 80%, rgba(253, 200, 216, 0.35), transparent 70%);
}

.stage-stamps {
  background:
    radial-gradient(440px 260px at 50% 10%, rgba(226, 232, 240, 0.7), transparent 70%),
    radial-gradient(380px 240px at 30% 85%, rgba(254, 205, 211, 0.35), transparent 70%);
}

.wish-whisper {
  width: min(420px, 90vw);
  margin: 18px auto 8px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(225, 29, 72, 0.22);
  font-family: Caveat, "Playfair Display", cursive;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.wish-label {
  display: block;
  margin-bottom: 4px;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}

.birthday-cake {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 22px auto 0;
  padding: 18px 20px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease;
}

.birthday-cake:hover {
  transform: translateY(-2px);
}

.birthday-cake:active,
.birthday-cake.cake-smear {
  transform: scale(0.98) rotate(-1deg);
}

.cake-candles {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  height: 52px;
  margin-bottom: -4px;
  z-index: 2;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 10px;
}

.candle-stick {
  width: 7px;
  height: 22px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(180deg, #fff7ed, #fdba74 70%, #f59e0b);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.15);
}

.candle-flame {
  position: absolute;
  bottom: 20px;
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 40% 60%, #fff7ed 0%, #fbbf24 35%, #f97316 75%, transparent 76%);
  animation: flame-flicker 0.35s ease-in-out infinite alternate;
  transform-origin: 50% 100%;
}

.candle-smoke {
  position: absolute;
  bottom: 24px;
  width: 4px;
  height: 0;
  opacity: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.35);
}

.candle.is-out .candle-flame {
  animation: none;
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.candle.is-out .candle-smoke {
  height: 18px;
  opacity: 1;
  animation: smoke-rise 0.7s ease-out forwards;
}

.cake-layer {
  display: block;
  border-radius: 10px 10px 6px 6px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.06);
}

.cake-frost {
  width: min(220px, 58vw);
  height: 28px;
  background:
    radial-gradient(circle at 20% 100%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 40% 100%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 60% 100%, #fff 0 6px, transparent 7px),
    radial-gradient(circle at 80% 100%, #fff 0 6px, transparent 7px),
    linear-gradient(180deg, #ffe4e6, #fda4af);
  border-radius: 14px 14px 8px 8px;
  z-index: 1;
}

.cake-mid {
  width: min(200px, 52vw);
  height: 26px;
  margin-top: -2px;
  background: linear-gradient(180deg, #fecdd3, #fb7185);
}

.cake-base {
  width: min(240px, 64vw);
  height: 34px;
  margin-top: -2px;
  background: linear-gradient(180deg, #fda4af, #e11d48);
  border-radius: 10px 10px 12px 12px;
}

.cake-plate {
  width: min(270px, 72vw);
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  box-shadow: 0 6px 16px rgba(42, 21, 28, 0.12);
}

.cake-cta {
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.1);
  color: var(--rose-deep);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.frost-bit {
  position: fixed;
  z-index: 20;
  width: var(--size, 8px);
  height: var(--size, 8px);
  border-radius: 50% 40% 50% 40%;
  pointer-events: none;
  animation: frost-splat 0.65s ease-out forwards;
}

.loyalty-card {
  position: relative;
  display: block;
  width: min(360px, 92vw);
  margin: 22px auto 0;
  padding: 22px 20px 18px;
  border: 0;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  background:
    linear-gradient(145deg, #fffefb 0%, #f8fafc 55%, #fff1f2 100%);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1px rgba(148, 163, 184, 0.35);
  overflow: hidden;
  transition: transform 0.15s ease;
}

.loyalty-card:hover {
  transform: translateY(-2px);
}

.loyalty-card:active {
  transform: scale(0.99);
}

.loyalty-edge {
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  pointer-events: none;
}

.loyalty-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-right: 8px;
}

.loyalty-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9f1239;
}

.loyalty-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.stamp-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.stamp-slot {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed rgba(148, 163, 184, 0.55);
  background: rgba(255, 255, 255, 0.65);
}

.stamp-ink {
  opacity: 0;
  transform: scale(0.4) rotate(-12deg);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #be123c;
  text-transform: uppercase;
}

.stamp-slot.is-stamped {
  border-style: solid;
  border-color: rgba(190, 18, 60, 0.45);
  background:
    radial-gradient(circle at 35% 30%, rgba(251, 113, 133, 0.2), transparent 60%),
    rgba(255, 241, 242, 0.9);
}

.stamp-slot.is-stamped .stamp-ink {
  opacity: 0.88;
  transform: scale(1) rotate(-8deg);
  transition: transform 0.28s cubic-bezier(0.2, 1.4, 0.3, 1), opacity 0.2s ease;
}

.stamp-slot.stamp-pop {
  animation: stamp-thud 0.4s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.loyalty-cta {
  position: relative;
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(225, 29, 72, 0.1);
  color: var(--rose-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.loyalty-msg {
  margin-top: 18px;
  max-width: 36ch;
}

.ink-seal {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fb7185, #9f1239 70%);
  box-shadow: 0 10px 28px rgba(159, 18, 57, 0.3);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.ink-seal-text {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  transform: rotate(-8deg);
}

.ink-seal-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
}

.win-cake {
  width: 78px;
  margin: 0 auto 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-cake-top,
.win-cake-mid,
.win-cake-base {
  display: block;
  border-radius: 6px;
}

.win-cake-top {
  width: 48px;
  height: 12px;
  background: linear-gradient(180deg, #ffe4e6, #fda4af);
  border-radius: 8px 8px 4px 4px;
}

.win-cake-mid {
  width: 56px;
  height: 14px;
  margin-top: -2px;
  background: linear-gradient(180deg, #fecdd3, #fb7185);
}

.win-cake-base {
  width: 68px;
  height: 16px;
  margin-top: -2px;
  background: linear-gradient(180deg, #fda4af, #e11d48);
  border-radius: 6px 6px 10px 10px;
  box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25);
}

@keyframes flame-flicker {
  from { transform: scaleY(1) rotate(-3deg); }
  to { transform: scaleY(1.12) rotate(4deg); }
}

@keyframes smoke-rise {
  from { opacity: 0.7; transform: translateY(0) scaleX(1); }
  to { opacity: 0; transform: translateY(-18px) scaleX(1.6); }
}

@keyframes frost-splat {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.4); }
}

@keyframes stamp-thud {
  0% { transform: scale(1.25); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.rather-card {
  width: min(480px, 92vw);
  padding: 26px 24px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

.rather-q {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.progress-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.progress-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.progress-dots span.on {
  background: var(--rose);
}

/* ---------- Rather skins: loot / soft / night ---------- */

.rather-opt {
  margin-top: 10px;
}

.rather-opt-loot {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.rather-opt-icon {
  flex: 0 0 auto;
  width: 2rem;
  font-size: 1.35rem;
  line-height: 1;
}

.rather-opt-text {
  flex: 1;
}

.stage-loot {
  background:
    radial-gradient(460px 280px at 50% 8%, rgba(253, 230, 138, 0.45), transparent 68%),
    radial-gradient(400px 240px at 80% 90%, rgba(251, 113, 133, 0.2), transparent 70%);
}

.rather-card-loot {
  border-color: rgba(217, 119, 6, 0.22);
  background:
    linear-gradient(180deg, #fffbeb 0%, #fff 55%);
  box-shadow: 0 16px 40px rgba(180, 83, 9, 0.12);
}

.rather-card-loot .rather-q {
  color: #9a3412;
}

.loot-summary {
  margin: 16px auto 4px;
  width: min(100%, 360px);
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 251, 235, 0.95);
  border: 1px solid rgba(217, 119, 6, 0.2);
  text-align: left;
}

.loot-summary-title {
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}

.loot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loot-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.loot-icon {
  flex: 0 0 auto;
  width: 1.4rem;
  text-align: center;
}

.win-loot {
  font-size: 2.6rem;
  animation: bob 1.4s ease-in-out infinite;
}

.win-card-loot {
  background: linear-gradient(180deg, #fffbeb, #fff);
}

.stage-soft {
  background:
    radial-gradient(520px 300px at 50% 10%, rgba(253, 200, 216, 0.55), transparent 70%),
    radial-gradient(380px 240px at 20% 90%, rgba(251, 207, 232, 0.4), transparent 70%);
}

.rather-card-soft {
  border-radius: 28px;
  border-color: rgba(225, 29, 72, 0.14);
  background:
    linear-gradient(165deg, #fff5f7 0%, #ffffff 45%, #fdf2f8 100%);
  box-shadow: 0 18px 44px rgba(225, 29, 72, 0.12);
}

.rather-card-soft .rather-q {
  color: #9f1239;
}

.rather-opt-soft.btn.gold {
  background: linear-gradient(180deg, #fb7185, #e11d48);
  border-color: transparent;
  color: #fff;
}

.rather-opt-soft.btn.rose {
  background: #fff;
  border: 1px solid rgba(225, 29, 72, 0.28);
  color: #9f1239;
}

.win-soft {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 2rem;
  color: #e11d48;
  animation: smoosh 1.1s ease-in-out infinite;
}

.win-soft span:last-child {
  animation-delay: 0.15s;
}

.win-card-soft {
  background: linear-gradient(180deg, #fff5f7, #fff);
}

.win-overlay-soft {
  background: rgba(88, 28, 48, 0.35);
}

.stage-night .stage-badge {
  background: rgba(248, 250, 252, 0.08);
  border-color: rgba(248, 250, 252, 0.16);
  color: #f9a8d4;
}

.stage-loot .stage-badge {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(217, 119, 6, 0.22);
  color: #b45309;
}


.stage-night .eyebrow,
.stage-night .sub,
.stage-night .dodge-note {
  color: #cbd5e1;
}

.stage-night .display {
  color: #fce7f3;
  text-shadow: 0 10px 40px rgba(244, 114, 182, 0.2);
}

.stage-night .progress-dots span {
  background: rgba(148, 163, 184, 0.35);
}

.stage-night .progress-dots span.on {
  background: #f9a8d4;
}

.night-clock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 8px auto 4px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: inset 0 0 0 1px rgba(244, 114, 182, 0.08);
}

.night-time {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fce7f3;
  animation: pulse 2.4s ease-in-out infinite;
}

.night-meta {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rather-card-night {
  background: rgba(30, 27, 46, 0.92);
  border: 1px solid rgba(248, 250, 252, 0.12);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  color: #f8fafc;
}

.rather-card-night .rather-q {
  color: #fce7f3;
}

.rather-opt-night.btn.gold {
  background: linear-gradient(180deg, #f9a8d4, #db2777);
  border: 0;
  color: #fff;
}

.rather-opt-night.btn.rose {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.theme-night {
  background: #0f172a;
}

.theme-night .bg-glow {
  opacity: 0.35;
  filter: hue-rotate(40deg) saturate(0.7);
}

.win-overlay-night {
  background: rgba(2, 6, 23, 0.72);
}

.win-card-night {
  background: linear-gradient(180deg, #1e1b2e, #0f172a);
  border: 1px solid rgba(248, 250, 252, 0.12);
  color: #f8fafc;
}

.win-card-night .stamp {
  color: #f9a8d4;
}

.win-card-night h2 {
  color: #fce7f3;
}

.win-card-night .win-copy,
.win-card-night .fine-print,
.win-card-night .win-foot {
  color: #cbd5e1;
}

.win-card-night .win-foot a {
  color: #f9a8d4;
}

.win-moon {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fce7f3, #f9a8d4 45%, #be185d 100%);
  box-shadow: 0 0 28px rgba(244, 114, 182, 0.45);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
  position: relative;
}

.win-moon-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 42%, #0f172a 0 14px, transparent 15px);
  opacity: 0.25;
}

.stage-guess {
  background:
    radial-gradient(460px 280px at 50% 8%, rgba(226, 232, 240, 0.7), transparent 68%),
    radial-gradient(400px 240px at 75% 90%, rgba(253, 200, 216, 0.28), transparent 70%);
}

.stage-guess .stage-badge {
  background: rgba(71, 85, 105, 0.08);
  border-color: rgba(71, 85, 105, 0.18);
  color: #475569;
}

.rather-card-guess {
  border-radius: 18px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #fff7f9 100%);
  box-shadow: 0 14px 36px rgba(71, 85, 105, 0.1);
}

.guess-kicker {
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.rather-card-guess .rather-q {
  color: #334155;
}

.rather-opt-guess.btn.gold {
  background: linear-gradient(180deg, #64748b, #334155);
  border: 0;
  color: #fff;
}

.rather-opt-guess.btn.rose {
  background: #fff;
  border: 1px solid rgba(100, 116, 139, 0.35);
  color: #334155;
}

.guess-disclaimer {
  margin: 14px auto 4px;
  max-width: 36ch;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px dashed rgba(100, 116, 139, 0.35);
  font-size: 0.86rem;
  line-height: 1.4;
  color: #475569;
}

.win-guess {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border: 1px solid rgba(100, 116, 139, 0.28);
  box-shadow: 0 10px 24px rgba(71, 85, 105, 0.15);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-guess-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #475569;
}

.win-card-guess {
  background: linear-gradient(180deg, #f8fafc, #fff);
}

/* ---------- Quiz engine ---------- */

.stage-quiz {
  background:
    radial-gradient(460px 280px at 50% 8%, rgba(196, 181, 253, 0.45), transparent 68%),
    radial-gradient(400px 240px at 75% 90%, rgba(253, 200, 216, 0.28), transparent 70%);
}

.stage-quiz .stage-badge {
  background: rgba(91, 33, 182, 0.08);
  border-color: rgba(91, 33, 182, 0.18);
  color: #5b21b6;
}

.quiz-card {
  margin-top: 18px;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid rgba(91, 33, 182, 0.22);
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 42%, #fff7f9 100%);
  box-shadow: 0 14px 36px rgba(91, 33, 182, 0.1);
}

.quiz-kicker {
  margin-bottom: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7c3aed;
}

.quiz-card .quiz-q {
  margin-bottom: 14px;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #312e81;
}

.quiz-opt {
  margin-top: 10px;
}

.quiz-opt.btn.gold {
  background: linear-gradient(180deg, #7c3aed, #5b21b6);
  border: 0;
}

.quiz-opt.btn.rose {
  background: #fff;
  border: 1px solid rgba(91, 33, 182, 0.28);
  color: #312e81;
}

.quiz-score {
  margin: 16px auto 6px;
  max-width: 38ch;
}

.quiz-score-big {
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: #5b21b6;
}

.quiz-score-big span {
  font-size: 1.4rem;
  color: #7c3aed;
}

.quiz-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.quiz-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid rgba(91, 33, 182, 0.12);
  font-size: 0.88rem;
  line-height: 1.35;
}

.quiz-row.is-right .quiz-mark {
  color: #059669;
}

.quiz-row.is-wrong .quiz-mark {
  color: #e11d48;
}

.quiz-mark {
  flex: 0 0 auto;
  font-weight: 700;
}

.quiz-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quiz-line .quiz-q {
  color: #475569;
  font-size: 0.8rem;
}

.quiz-line .quiz-a {
  color: #1e1b4b;
}

.win-quiz {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ede9fe, #ddd6fe);
  border: 1px solid rgba(91, 33, 182, 0.28);
  box-shadow: 0 10px 24px rgba(91, 33, 182, 0.15);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-quiz-mark {
  font-size: 2rem;
}

.win-card-quiz {
  background: linear-gradient(180deg, #faf5ff, #fff);
}

.quiz-key {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quiz-key-row {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid rgba(91, 33, 182, 0.16);
  border-radius: 12px;
  background: rgba(250, 245, 255, 0.6);
}

.quiz-key-row legend {
  padding: 0 4px;
  font-weight: 600;
  color: #312e81;
}

.quiz-key-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* ---------- Stage engine ---------- */

.stage-cinema {
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(251, 191, 36, 0.18), transparent 70%),
    radial-gradient(400px 260px at 20% 100%, rgba(15, 23, 42, 0.35), transparent 72%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
  color: #f8fafc;
}

.stage-cinema .eyebrow,
.stage-cinema .sub {
  color: rgba(248, 250, 252, 0.72);
}

.stage-cinema .display {
  color: #fff;
}

.stage-cinema .stage-badge {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}

.stage-cinema .progress-dots span {
  background: rgba(248, 250, 252, 0.2);
}

.stage-cinema .progress-dots span.on {
  background: #fbbf24;
}

.stage-card {
  margin-top: 18px;
  padding: 22px 20px 20px;
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  text-align: left;
}

.stage-finale {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 18px 44px rgba(251, 191, 36, 0.12);
}

.stage-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.stage-direction {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fbbf24;
}

.stage-body {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.stage-cue {
  margin-top: 4px;
}

.stage-cinema .stage-cue.btn.gold {
  background: linear-gradient(180deg, #fbbf24, #d97706);
  border: 0;
  color: #1e293b;
  font-weight: 700;
}

.win-cinema {
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-cinema-clap {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(180deg, #1e293b 0 38%, #f8fafc 38% 42%, #1e293b 42% 100%);
  position: relative;
}

.win-cinema-clap::before {
  content: "SCENE";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fbbf24;
}

.win-card-cinema {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #f8fafc;
}

.win-card-cinema .stamp {
  color: #fbbf24;
}

.win-card-cinema .win-copy,
.win-card-cinema .fine-print {
  color: rgba(248, 250, 252, 0.82);
}

.stage-voice {
  background:
    radial-gradient(480px 280px at 50% 0%, rgba(45, 212, 191, 0.22), transparent 68%),
    radial-gradient(400px 240px at 80% 100%, rgba(99, 102, 241, 0.16), transparent 70%),
    linear-gradient(180deg, #ecfeff 0%, #f0f9ff 55%, #eef2ff 100%);
}

.stage-voice .stage-badge {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.28);
  color: #0f766e;
}

.stage-voice .progress-dots span.on {
  background: #14b8a6;
}

.stage-voice .stage-card {
  border-color: rgba(13, 148, 136, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 55%, #ecfeff 100%);
  box-shadow: 0 14px 36px rgba(13, 148, 136, 0.12);
}

.stage-voice .stage-direction {
  color: #0f766e;
}

.stage-voice .stage-body {
  color: #134e4a;
}

.stage-voice .stage-cue.btn.gold {
  background: linear-gradient(180deg, #2dd4bf, #0d9488);
  border: 0;
  color: #042f2e;
  font-weight: 700;
}

.win-voice {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
  border: 1px solid rgba(13, 148, 136, 0.28);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.18);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
  overflow: hidden;
}

.win-voice-mic {
  font-size: 1.8rem;
  z-index: 1;
}

.win-voice-wave {
  position: absolute;
  inset: auto 10px 12px;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    90deg,
    #0d9488 0 3px,
    transparent 3px 6px
  );
  opacity: 0.45;
}

.win-card-voice {
  background: linear-gradient(180deg, #f0fdfa, #fff);
}

/* ---------- Reveal engine ---------- */

.stage-banner {
  background:
    radial-gradient(480px 280px at 50% 0%, rgba(251, 113, 133, 0.22), transparent 68%),
    radial-gradient(420px 260px at 80% 100%, rgba(251, 191, 36, 0.2), transparent 72%),
    linear-gradient(180deg, #fff7ed 0%, #fff1f2 55%, #fff7ed 100%);
}

.reveal-stage {
  margin: 20px auto 12px;
  max-width: 420px;
}

.reveal-banner {
  margin: 0 auto 16px;
  padding: 18px 16px 14px;
  border-radius: 14px;
  border: 2px dashed rgba(225, 29, 72, 0.35);
  background: linear-gradient(180deg, #fff, #fff7f9);
  box-shadow: 0 12px 30px rgba(225, 29, 72, 0.12);
  transform: scaleY(0.72);
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.2, 1.1, 0.3, 1), box-shadow 0.35s ease;
}

.reveal-step-1 .reveal-banner { transform: scaleY(0.8); }
.reveal-step-2 .reveal-banner { transform: scaleY(0.88); }
.reveal-step-3 .reveal-banner { transform: scaleY(0.96); }
.reveal-step-4 .reveal-banner,
.reveal-step-5 .reveal-banner,
.reveal-banner.is-open {
  transform: scaleY(1);
  border-style: solid;
  box-shadow: 0 16px 36px rgba(225, 29, 72, 0.18);
}

.reveal-banner-line {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #be123c;
}

.reveal-banner-note {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #9f1239;
}

.reveal-balloons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 52px;
}

.reveal-balloon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.25s ease;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.15);
}

.reveal-balloon:hover:not(:disabled) {
  transform: translateY(-4px) scale(1.06);
}

.reveal-balloon.is-popping,
.reveal-balloon.is-popped {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.35);
}

.reveal-hide.is-shake {
  animation: banner-shake 0.42s ease;
}

@keyframes banner-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

.win-banner {
  position: relative;
  width: 80px;
  height: 72px;
  margin: 0 auto 8px;
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-banner-balloon,
.win-banner-cake {
  position: absolute;
  font-size: 2rem;
}

.win-banner-balloon {
  left: 4px;
  top: 0;
  transform: rotate(-12deg);
}

.win-banner-cake {
  right: 2px;
  bottom: 0;
  transform: rotate(8deg);
}

.win-card-banner {
  background: linear-gradient(180deg, #fff7f9, #fff);
}

/* ---------- Decree engine ---------- */

.stage-royal {
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(251, 191, 36, 0.28), transparent 70%),
    radial-gradient(420px 260px at 15% 100%, rgba(127, 29, 29, 0.18), transparent 72%),
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 45%, #fff7ed 100%);
}

.stage-royal .stage-badge {
  background: rgba(146, 64, 14, 0.1);
  border-color: rgba(146, 64, 14, 0.28);
  color: #92400e;
}

.decree-scroll {
  margin: 18px auto 0;
  max-width: 420px;
  padding: 24px 22px 20px;
  border-radius: 6px 6px 14px 14px;
  border: 1px solid rgba(146, 64, 14, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 251, 235, 0.95) 0%, #fff7ed 40%, #fef3c7 100%);
  box-shadow:
    0 16px 40px rgba(120, 53, 15, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  text-align: left;
}

.decree-ribbon {
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}

.decree-body {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.45;
  color: #7c2d12;
}

.decree-body-sm {
  font-size: 1rem;
  opacity: 0.9;
}

.decree-aside {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #92400e;
}

.decree-scroll-seal,
.decree-scroll-accept {
  text-align: center;
}

.decree-seal {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px auto 14px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.decree-seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#b91c1c calc(var(--p, 0) * 1%), rgba(185, 28, 28, 0.15) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}

.decree-seal-core {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b 70%);
  box-shadow:
    inset 0 2px 8px rgba(255, 255, 255, 0.25),
    0 10px 24px rgba(153, 27, 27, 0.35);
  color: #fef3c7;
}

.decree-seal-label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: #92400e;
}

.decree-wax-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b 70%);
  box-shadow: 0 10px 24px rgba(153, 27, 27, 0.3);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-royal {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-royal-crown {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 1.8rem;
  z-index: 1;
}

.win-royal-wax {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ef4444, #991b1b 70%);
  box-shadow: 0 8px 20px rgba(153, 27, 27, 0.35);
}

.win-card-royal {
  background: linear-gradient(180deg, #fffbeb, #fff);
}

/* ---------- Cards engine ---------- */

.stage-cards-roast {
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(251, 146, 60, 0.35), transparent 70%),
    radial-gradient(420px 260px at 80% 100%, rgba(225, 29, 72, 0.22), transparent 72%),
    linear-gradient(180deg, #1c1917 0%, #292524 48%, #1c1917 100%);
  color: #fafaf9;
}

.stage-cards-roast .eyebrow,
.stage-cards-roast .sub,
.stage-cards-roast .cards-wait {
  color: rgba(250, 250, 249, 0.72);
}

.stage-cards-roast .display {
  color: #fff;
}

.stage-cards-roast .stage-badge {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.35);
  color: #fdba74;
}

.stage-cards-roast .progress-dots span {
  background: rgba(250, 250, 249, 0.2);
}

.stage-cards-roast .progress-dots span.on {
  background: #f97316;
}

.cards-stack {
  position: relative;
  width: min(340px, 88vw);
  height: 280px;
  margin: 22px auto 18px;
  perspective: 1000px;
}

.cards-stack::before,
.cards-stack::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: #44403c;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.stage-cards-wish .cards-stack::before,
.stage-cards-wish .cards-stack::after {
  background: #e0e7ff;
  border-color: rgba(129, 140, 248, 0.35);
}

.cards-stack::before {
  transform: translate(calc(var(--stack, 0) * 4px), calc(var(--stack, 0) * 4px));
  opacity: 0.45;
}

.cards-stack::after {
  transform: translate(calc(var(--stack, 0) * 2px), calc(var(--stack, 0) * 2px));
  opacity: 0.7;
}

.flip-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
  cursor: default;
}

.flip-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 22px;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.flip-card-back {
  background:
    linear-gradient(145deg, #7c2d12 0%, #9a3412 40%, #c2410c 100%);
  border: 1px solid rgba(253, 186, 116, 0.35);
  color: #ffedd5;
}

.flip-card-front {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 55%, #ffedd5 100%);
  border: 1px solid rgba(234, 88, 12, 0.28);
  color: #7c2d12;
  transform: rotateY(180deg);
  text-align: center;
}

.flip-card-label {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.flip-card-hint {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.flip-card-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c2410c;
}

.flip-card-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.4;
}

.cards-next {
  width: min(340px, 88vw);
  margin: 0 auto;
}

.stage-cards-roast .cards-next.btn.gold {
  background: linear-gradient(180deg, #fb923c, #ea580c);
  border: 0;
  color: #1c1917;
  font-weight: 700;
}

.cards-wait {
  margin-top: 4px;
  font-size: 0.9rem;
}

.win-roast {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fed7aa, #fb923c);
  border: 1px solid rgba(234, 88, 12, 0.35);
  box-shadow: 0 10px 24px rgba(194, 65, 12, 0.25);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-roast-mark {
  font-size: 2rem;
}

.win-card-roast {
  background: linear-gradient(180deg, #1c1917, #292524);
  color: #fafaf9;
}

.win-card-roast .stamp {
  color: #fb923c;
}

.win-card-roast .win-copy,
.win-card-roast .fine-print {
  color: rgba(250, 250, 249, 0.82);
}

.stage-cards-wish {
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(196, 181, 253, 0.45), transparent 70%),
    radial-gradient(420px 260px at 20% 100%, rgba(253, 224, 71, 0.2), transparent 72%),
    linear-gradient(180deg, #eef2ff 0%, #faf5ff 50%, #fff7ed 100%);
}

.stage-cards-wish .stage-badge {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4338ca;
}

.stage-cards-wish .progress-dots span.on {
  background: #818cf8;
}

.stage-cards-wish .flip-card-back {
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 45%, #7c3aed 100%);
  border-color: rgba(199, 210, 254, 0.45);
  color: #eef2ff;
}

.stage-cards-wish .flip-card-front {
  background: linear-gradient(180deg, #faf5ff 0%, #fff 55%, #eef2ff 100%);
  border-color: rgba(129, 140, 248, 0.35);
  color: #312e81;
}

.stage-cards-wish .flip-card-kicker {
  color: #6366f1;
}

.stage-cards-wish .cards-next.btn.gold {
  background: linear-gradient(180deg, #a78bfa, #6366f1);
  border: 0;
  color: #fff;
  font-weight: 700;
}

.win-wish {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e0e7ff, #c4b5fd);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.2);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-wish-mark {
  font-size: 2rem;
}

.win-card-wish {
  background: linear-gradient(180deg, #eef2ff, #fff);
}

.stage-cards-archive {
  background:
    radial-gradient(520px 300px at 50% 0%, rgba(148, 163, 184, 0.35), transparent 70%),
    radial-gradient(420px 260px at 80% 100%, rgba(100, 116, 139, 0.2), transparent 72%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #e2e8f0;
}

.stage-cards-archive .eyebrow,
.stage-cards-archive .sub,
.stage-cards-archive .cards-wait {
  color: rgba(226, 232, 240, 0.72);
}

.stage-cards-archive .display {
  color: #f8fafc;
}

.stage-cards-archive .stage-badge {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.stage-cards-archive .progress-dots span {
  background: rgba(226, 232, 240, 0.2);
}

.stage-cards-archive .progress-dots span.on {
  background: #94a3b8;
}

.stage-cards-archive .cards-stack::before,
.stage-cards-archive .cards-stack::after {
  background: #334155;
  border-color: rgba(148, 163, 184, 0.25);
}

.stage-cards-archive .flip-card-back {
  background:
    repeating-linear-gradient(
      -12deg,
      #1e293b,
      #1e293b 10px,
      #0f172a 10px,
      #0f172a 20px
    );
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.stage-cards-archive .flip-card-front {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 50%, #e2e8f0 100%);
  border-color: rgba(100, 116, 139, 0.35);
  color: #1e293b;
}

.stage-cards-archive .flip-card-kicker {
  color: #64748b;
}

.stage-cards-archive .cards-next.btn.gold {
  background: linear-gradient(180deg, #94a3b8, #475569);
  border: 0;
  color: #f8fafc;
  font-weight: 700;
}

.win-archive {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #334155, #1e293b);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.35);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.win-archive-mark {
  font-size: 1.8rem;
}

.win-card-archive {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #e2e8f0;
}

.win-card-archive .stamp {
  color: #94a3b8;
}

.win-card-archive .win-copy,
.win-card-archive .fine-print {
  color: rgba(226, 232, 240, 0.82);
}

/* ---------- Overlays ---------- */

.win-overlay,
.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(42, 21, 28, 0.42);
  backdrop-filter: blur(6px);
}

.overlay-modal[hidden],
[hidden] {
  display: none !important;
}

.win-card,
.modal-card {
  width: min(520px, 92vw);
  padding: 36px 28px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: pop 0.5s cubic-bezier(0.2, 1.2, 0.3, 1);
}

.kiss {
  font-size: 3.2rem;
  animation: smoosh 0.9s ease-in-out infinite;
}

.win-card-seal {
  padding-top: 42px;
}

.wax-seal {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ff6b8a, #be123c 62%, #9f1239 100%);
  box-shadow:
    0 10px 28px rgba(190, 18, 60, 0.35),
    inset 0 0 0 6px rgba(255, 255, 255, 0.12);
  animation: seal-drop 0.55s cubic-bezier(0.2, 1.4, 0.3, 1);
  display: grid;
  place-items: center;
}

.wax-kiss {
  font-size: 2rem;
  filter: drop-shadow(0 2px 0 rgba(120, 10, 40, 0.2));
  animation: smoosh 0.9s ease-in-out infinite;
}

.wax-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.35);
}

.win-seal .stamp {
  letter-spacing: 0.18em;
  color: var(--rose);
  font-weight: 700;
}

.stamp {
  margin-top: 10px;
  color: var(--rose);
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 700;
}

.win-card h2,
.modal-card h2 {
  margin-top: 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.95rem;
  font-weight: 600;
}

.win-copy {
  margin-top: 12px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.fine-print,
.win-foot {
  margin: 16px auto 18px;
  max-width: 40ch;
  font-size: 0.82rem;
  color: var(--muted);
}

.win-foot a {
  color: var(--rose);
}

.replay {
  position: static;
}

.modal-card {
  position: relative;
}

.modal-card .price-lg {
  margin: 8px 0 18px;
}

.close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.close:hover {
  color: var(--ink);
}

.pay-actions,
.code-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.pay-error {
  margin: 12px 0 0;
  color: #e11d48;
}

#confetti {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Animations ---------- */

@keyframes float-up {
  from {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: translateY(-110vh) rotate(220deg);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

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

@keyframes crown {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-6px);
  }
}

@keyframes pop {
  from {
    transform: scale(0.9) translateY(16px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes smoosh {
  0%,
  100% {
    transform: scale(1) rotate(-8deg);
  }
  50% {
    transform: scale(1.16) rotate(8deg);
  }
}

@keyframes no-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-7px) rotate(-3deg);
  }
  75% {
    transform: translateX(7px) rotate(3deg);
  }
}

@keyframes flee-pop {
  0% {
    transform: scale(0.92);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes trail-fade {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(1) translateX(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6) translateX(var(--dx, 12px)) translateY(-28px);
  }
}

@keyframes seal-drop {
  0% {
    transform: translateY(-28px) scale(0.7);
    opacity: 0;
  }
  70% {
    transform: translateY(4px) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes yes-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@keyframes float-env {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-10px) rotate(10deg);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 280px;
    order: 2;
  }

  .how {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2) {
    border-right: 0;
  }

  .step:nth-child(1),
  .step:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 800px) {
  .activity-layout,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    padding: 12px 5vw;
  }

  .nav nav {
    gap: 12px;
  }

  .nav nav a:not(.nav-cta) {
    font-size: 0.88rem;
  }

  .nav .nav-cta {
    padding: 9px 16px;
  }
}

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

  .step {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .nav nav a:not(.nav-cta) {
    display: none;
  }

  .yes-slot,
  .no-float {
    font-size: 0.95rem;
    padding: 13px 22px;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
