/* Something About You: evening theme. Dark table for playing, cream paper for keeping. */
:root {
  --table: #14211C;
  --table-2: #1C2E27;
  --glow: #2B4639;
  --on-table: #FBF3EE;
  --on-table-soft: #B9C4BC;
  --table-line: rgba(251, 243, 238, 0.16);

  --card: #FFFAF4;
  --card-ink: #2A2320;
  --card-soft: #6E625C;
  --card-rule: #E9C9D1;
  --chip: #F1EAEA;
  --chip-ink: #5A4A50;
  --paper: #EFE6D8;

  --rose: #B8445E;
  --rose-ink: #FFFFFF;
  --rose-deep: #A8435A;
  --rose-light: #F2A7B8;
  --blush: #F2C9D3;

  --right: #3F6B4B;
  --nope: #9A6224;

  --pack-free: #2F4A3E;
  --pack-deeper: #8E3A50;
  --pack-engaged: #B88A3E;
  --pack-faith: #5F7A63;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--table); }
html:has(body.paper) { background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--on-table);
  font: 400 17px/1.55 var(--sans);
  background: radial-gradient(120% 55% at 50% -12%, var(--glow), transparent 62%) no-repeat, var(--table);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
body.paper { background: var(--paper); color: var(--card-ink); color-scheme: light; }

a { color: var(--rose-light); }
body.paper a { color: var(--rose-deep); }

:focus-visible { outline: 3px solid var(--rose-light); outline-offset: 3px; border-radius: 8px; }
body.paper :focus-visible { outline-color: var(--rose-deep); }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 30rem; margin: 0 auto; padding: 0 20px; }

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

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 12px 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 17px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--rose); color: var(--rose-ink); box-shadow: 0 10px 26px -12px rgba(184, 68, 94, 0.85); }
.btn--secondary { background: transparent; color: var(--on-table); border-color: var(--table-line); }
.btn--quiet { background: transparent; color: var(--on-table-soft); min-height: 46px; font-weight: 500; }
.btn--small { width: auto; min-height: 42px; padding: 8px 18px; font-size: 15px; }
body.paper .btn--quiet, .plan--all .btn--quiet { color: var(--card-soft); }

.linkbtn {
  background: none; border: 0; padding: 10px 4px; min-height: 44px;
  color: var(--on-table-soft); font: 500 15px var(--sans); text-decoration: underline; cursor: pointer;
}

/* ---------- Emblems ---------- */

.emblem { display: inline-flex; width: 1em; height: 1em; flex: none; }
.emblem svg { width: 100%; height: 100%; }

/* ---------- The playing card ---------- */

.pcard {
  position: relative;
  aspect-ratio: 5 / 7;
  background: var(--card); color: var(--card-ink);
  border-radius: 24px;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.7);
}
.pcard::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--card-rule); border-radius: 16px; pointer-events: none;
}
.corner {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--rose-deep); line-height: 1;
}
.corner--tl { top: 19px; left: 20px; }
.corner--br { bottom: 19px; right: 20px; transform: rotate(180deg); }
.corner__n { font-family: var(--serif); font-size: 19px; }
.corner .emblem { font-size: 14px; }
.pcard__body {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 50px 34px;
}
.pcard__tag { margin: 0 0 12px; font-size: 13px; color: var(--card-soft); }
.pcard__q {
  margin: 0; font-family: var(--serif); font-weight: 420;
  font-size: clamp(20px, 5.8vw, 25px); line-height: 1.28; text-wrap: balance;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 500; line-height: 1;
  background: var(--chip); color: var(--chip-ink);
  padding: 6px 10px; border-radius: 999px;
}

/* ---------- Card backs (packs) ---------- */

.cardback {
  position: relative; aspect-ratio: 5 / 7;
  display: flex; align-items: center; justify-content: center;
  background: var(--back, var(--pack-free));
  border: 4px solid var(--card); border-radius: 12px;
}
.cardback::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(255, 250, 244, 0.45); border-radius: 6px;
}
.cardback__seal {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--back, var(--pack-free));
}
.cardback__seal .emblem { width: 56%; height: 56%; }
.back--free { --back: var(--pack-free); }
.back--deeper { --back: var(--pack-deeper); }
.back--engaged { --back: var(--pack-engaged); }
.back--engaged .cardback__seal { color: #7A5A22; }
.back--faith { --back: var(--pack-faith); }

/* ---------- Landing ---------- */

.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--on-table); text-decoration: none; }
.topnav__links { display: flex; align-items: center; gap: 14px; }
.topnav__how { color: var(--on-table-soft); font-size: 15px; text-decoration: none; padding: 10px 0; }

.display {
  margin: 34px 0 14px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 12vw, 60px); line-height: 1; letter-spacing: -0.015em;
}
.display em { display: block; font-style: italic; color: var(--blush); font-size: 1.08em; }
.lede { margin: 0; font-size: 18px; color: var(--on-table-soft); max-width: 34ch; }

.dchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.dchips li {
  font-size: 14px; color: var(--on-table); padding: 7px 13px;
  border: 1px solid var(--table-line); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
}

.hero-flip {
  display: block; width: min(68vw, 264px); margin: 30px auto 6px; padding: 0;
  background: none; border: 0; cursor: pointer; perspective: 1400px;
  -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; text-align: inherit;
}
.hero-flip__tilt { transform: rotate(-2deg); }
.hero-flip__inner { display: grid; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.2, .7, .2, 1); }
.hero-flip__face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hero-flip__back { transform: rotateY(180deg); }
.hero-flip.is-flipped .hero-flip__inner { transform: rotateY(180deg); }
.flip-hint { margin: 8px 0 26px; text-align: center; font-size: 14px; color: var(--on-table-soft); }

.mini-reveal { width: 100%; display: grid; gap: 14px; text-align: left; }
.mini-reveal__who { display: block; font-size: 12.5px; font-weight: 600; color: var(--card-soft); }
.mini-reveal__a { display: block; margin-top: 3px; font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.mini-reveal__rule { display: block; border-top: 1px dashed var(--card-rule); }
.pcard__tag, .pcard__q { display: block; }

.section { margin-top: 76px; }
.h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 33px; line-height: 1.1; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 27px; line-height: 1.05; color: var(--rose-light); }
.steps strong { display: block; font-weight: 600; }
.steps span { color: var(--on-table-soft); }

.plans { display: grid; gap: 14px; }
.plan { border-radius: 26px; padding: 26px 22px 20px; }
.plan--free { border: 1px solid var(--table-line); background: rgba(255, 255, 255, 0.03); }
.plan--all { position: relative; background: var(--card); color: var(--card-ink); margin-top: 6px; }
.plan--all::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--card-rule); border-radius: 18px; pointer-events: none;
}
.plan > * { position: relative; }
.plan__name { margin: 0; font-weight: 600; }
.plan__price { margin: 8px 0 16px; font-family: var(--serif); font-size: 48px; line-height: 1; }
.plan__price span:last-child { font-family: var(--sans); font-size: 17px; color: var(--on-table-soft); }
.plan--all .plan__price span:last-child { color: var(--card-soft); }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 2px solid var(--rose-light); border-bottom: 2px solid var(--rose-light); transform: rotate(-45deg);
}
.plan--all .ticks li::before { border-color: var(--rose-deep); }
.plan__note { margin: 0 0 16px; font-size: 15px; color: var(--card-soft); }
.plan__fine { margin: 10px 0 0; font-size: 14px; color: var(--card-soft); text-align: center; }

.packlist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 30px; }
.pack { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; }
.pack .cardback { transform: rotate(-3deg); }
.pack:nth-child(2) .cardback { transform: rotate(2deg); }
.pack h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.15; }
.pack p { margin: 4px 0 0; color: var(--on-table-soft); }
.pack__meta { font-size: 14px; }
.peek summary {
  display: flex; align-items: center; min-height: 44px; margin-top: 6px;
  color: var(--rose-light); font-weight: 600; cursor: pointer; list-style: none;
}
.peek summary::-webkit-details-marker { display: none; }
.peek ol { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--on-table); }

.soon { color: var(--on-table-soft); }
.site-foot { margin-top: 76px; padding-bottom: 40px; font-size: 14px; color: var(--on-table-soft); }
.site-foot p { margin: 4px 0; }
.site-foot a { color: var(--on-table-soft); }

/* ---------- App screens ---------- */

.app { padding-bottom: 48px; min-height: 100vh; }

.bar { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.bar__back {
  background: none; border: 0; padding: 12px 4px; min-height: 44px;
  color: var(--on-table-soft); font: 500 16px var(--sans); cursor: pointer;
}
body.paper .bar__back { color: var(--card-soft); }
.bar__meta { font-size: 14px; color: var(--on-table-soft); font-variant-numeric: tabular-nums; }

.progress { height: 4px; background: var(--table-line); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.progress span { display: block; height: 100%; background: var(--rose-light); transition: width .3s ease; }

.deal { display: flex; justify-content: center; margin: 6px 0 18px; }
.deal .pcard { width: min(100%, 310px); animation: deal .3s ease-out; }
@keyframes deal { from { opacity: 0; transform: translateY(10px) rotate(-1deg); } to { opacity: 1; transform: none; } }

.hint { margin: 0 0 8px; color: var(--on-table-soft); }
.deal + .hint, .pass .hint, .tip { text-align: center; }
body.paper .hint { color: var(--card-soft); }

.step-title { margin: 22px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; }
.step-q {
  margin: 14px 0 6px; padding: 16px 18px;
  font-family: var(--serif); font-size: 20px; line-height: 1.35;
  background: var(--card); color: var(--card-ink); border-radius: 18px;
}

.field { margin: 16px 0 0; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--table-line); background: var(--table-2); color: var(--on-table);
  font: 400 18px/1.4 var(--sans);
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--rose-light); outline-offset: 1px; }
.field__err { min-height: 1.3em; margin: 6px 0 0; font-size: 14px; color: var(--rose-light); }

.opts { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.opts legend { padding: 0; margin-bottom: 8px; font-weight: 600; }
.opts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt {
  min-height: 56px; padding: 10px 12px; border-radius: 16px;
  border: 1px solid var(--table-line); background: var(--table-2); color: var(--on-table);
  font: 500 16px/1.25 var(--sans); cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.opt[aria-pressed="true"] { background: var(--card); color: var(--card-ink); border-color: var(--card); box-shadow: 0 0 0 2px var(--rose-light); }

.actions { display: grid; gap: 8px; margin-top: 22px; }

.pass { padding-top: 44px; text-align: center; }
.pass .cardback { width: 150px; margin: 0 auto 28px; transform: rotate(-3deg); }

.stage { position: relative; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.flip { perspective: 900px; }
.flip__inner { display: grid; min-height: 214px; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.flip__front, .flip__back { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip__front { aspect-ratio: auto; }
.flip__back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px 14px; border-radius: 16px; background: var(--card); color: var(--card-ink);
}
.pair.is-revealed .flip__inner { transform: rotateY(180deg); }
.flip__name { font-size: 13px; font-weight: 600; color: var(--card-soft); }
.flip__text { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.flip__guess { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--card-rule); font-size: 13.5px; line-height: 1.35; color: var(--card-soft); }
.right { color: var(--right); }
.nope { color: var(--nope); }

.score { margin: 0 0 6px; text-align: center; font-size: 15px; color: var(--on-table-soft); }
.score b { color: var(--on-table); font-weight: 600; }
.score--left { text-align: left; margin-top: 4px; }

.bit { position: absolute; top: -6px; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; animation: fall 1.4s ease-in forwards; }
@keyframes fall { from { transform: translateY(0) rotate(0); opacity: 1; } to { transform: translateY(260px) rotate(var(--r)); opacity: 0; } }

.end { padding-top: 24px; }
.end .lede { margin-bottom: 4px; }

.home__head { padding-top: 18px; }
.home__head .brand { font-size: 17px; color: var(--on-table-soft); }
.app-h2 { margin: 34px 0 2px; font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; }
.app-sub { margin: 0; font-size: 15px; color: var(--on-table-soft); }

.units { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.unit {
  width: 100%; min-height: 76px;
  display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 16px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--card-ink); border: 0; border-radius: 20px; font: inherit;
}
.unit__num { font-family: var(--serif); font-size: 27px; color: var(--rose-deep); text-align: center; }
.unit .cardback { width: 42px; border-width: 3px; border-radius: 8px; }
.unit .cardback::before { inset: 3px; border-radius: 4px; }
.unit__name { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.25; }
.unit__blurb { display: block; font-size: 14px; line-height: 1.35; color: var(--card-soft); }
.unit__count { font-size: 13px; color: var(--card-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.unit__lock { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--card-soft); white-space: nowrap; }
.unit__lock .emblem { font-size: 15px; }

.tip { margin: 18px 0 0; font-size: 14px; color: var(--on-table-soft); }
.footlinks { display: flex; justify-content: center; gap: 18px; margin-top: 8px; }

.pack-head { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; margin: 14px 0 18px; }
.pack-head .cardback { transform: rotate(-3deg); }
.pack-head .step-title { margin: 0 0 4px; }
.peeklist { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 10px; }
.peeklist li { background: var(--card); color: var(--card-ink); border-radius: 18px; padding: 14px 16px; }
.peeklist__q { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.peeklist__type { font-size: 13px; color: var(--card-soft); }

/* ---------- Keepsake (cream paper) ---------- */

.reveals { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.reveal { position: relative; background: var(--card); border-radius: 20px; padding: 20px 18px; box-shadow: 0 1px 0 rgba(42, 35, 32, 0.08); }
.reveal::before {
  content: ""; position: absolute; top: -10px; left: 22px; width: 64px; height: 20px;
  background: rgba(214, 190, 150, 0.6); transform: rotate(-4deg);
}
.reveal__q { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.reveal__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.reveal__pair p { margin: 2px 0 0; overflow-wrap: anywhere; }
.reveal__name { font-size: 13px; font-weight: 600; color: var(--card-soft); }
.reveal__guess { font-size: 13.5px; }
.reveal__date { margin: 14px 0 0; font-size: 13px; color: var(--card-soft); }

/* ---------- Legal ---------- */

.legal h1 { margin: 30px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 36px; }
.legal h2 { margin: 32px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 23px; }
.legal p { color: var(--on-table-soft); }
.legal .draft { background: var(--card); color: var(--card-ink); padding: 12px 16px; border-radius: 14px; font-size: 15px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .deal .pcard { animation: none; }
  .btn, .progress span { transition: none; }
  .flip__inner, .hero-flip__inner { transition: none; transform: none !important; }
  .flip__back, .hero-flip__back { transform: none; opacity: 0; transition: opacity .3s ease; }
  .pair.is-revealed .flip__back, .hero-flip.is-flipped .hero-flip__back { opacity: 1; }
  .pair.is-revealed .flip__front, .hero-flip.is-flipped .hero-flip__front { opacity: 0; }
}

/* ---------- Countdown ---------- */
.countdown {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 128px; line-height: 1; color: var(--on-table);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55); pointer-events: none;
}
.countdown.pop { animation: pop .75s ease-out; }
@keyframes pop { from { transform: scale(1.5); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: .95; } }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* ---------- Ways to play ---------- */
.unit--mode .mode__icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--rose-deep); color: var(--card);
}
.unit--mode .mode__icon .emblem { font-size: 21px; }

/* ---------- Recap card ---------- */
.recap {
  position: relative; margin: 20px 0 6px; padding: 30px 24px 26px;
  background: var(--card); color: var(--card-ink); border-radius: 26px; text-align: center;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.7);
}
.recap::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--card-rule); border-radius: 18px; pointer-events: none; }
.recap > * { position: relative; }
.recap__brand { margin: 0; font-size: 13px; color: var(--card-soft); }
.recap__name { margin: 10px 0 4px; font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.recap__meta { margin: 0; font-family: var(--serif); font-style: italic; color: var(--rose-deep); }
.recap__stats { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.recap__stats li { font-size: 13px; background: var(--chip); color: var(--chip-ink); padding: 6px 10px; border-radius: 999px; }
.recap__score { margin: 10px 0 0; font-size: 14px; color: var(--card-soft); }
.recap__item { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--card-rule); text-align: left; }
.recap__q { margin: 0 0 10px; font-family: var(--serif); font-size: 19px; line-height: 1.3; }
.recap__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recap__pair p { margin: 2px 0 0; font-family: var(--serif); font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.recap__who { font-size: 12.5px; font-weight: 600; color: var(--card-soft); }
.recap__more { margin: 14px 0 0; font-size: 13px; color: var(--card-soft); }
.recap__foot { margin: 20px 0 0; font-size: 12.5px; color: var(--card-soft); }
.recap__note { text-align: center; font-size: 14px; margin-top: 10px; }
.recap__status { text-align: center; min-height: 1.4em; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .countdown.pop { animation: none; }
}

.thread { list-style: none; padding: 0; margin: 0 0 0 7px; border-left: 2px dashed var(--table-line); }
.thread li { position: relative; padding: 0 0 22px 24px; }
.thread li:last-child { padding-bottom: 0; }
.thread li::before {
  content: ""; position: absolute; left: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--table); border: 2px solid var(--rose-light);
}
.thread b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
.thread span { color: var(--on-table-soft); }

/* ---------- Photos ---------- */
.polaroid {
  margin: 0; padding: 12px 12px 14px; background: #FFFFFF; border-radius: 6px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.55); transform: rotate(-2.5deg);
}
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; background: #EDE6DC; }
.polaroid figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--card-soft); text-align: center; }
.polaroid--big { width: min(78vw, 300px); margin: 22px auto 10px; }
.polaroid--recap { width: 62%; margin: 16px auto 10px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.35); }
.polaroid--list { width: 46%; margin: 0 0 14px; padding: 8px 8px 10px; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.4); }
.polaroid__missing { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 10px; text-align: center; font-size: 13px; color: var(--card-soft); background: #EDE6DC; }
.reveal--photo .reveal__q { margin-bottom: 0; }

/* ---------- Keep your story safe ---------- */
.keep {
  margin: 18px 0 4px; padding: 18px 18px 10px;
  border: 1px solid var(--rose-light); border-radius: 20px; background: rgba(242, 167, 184, 0.08);
}
.keep__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.keep__why { margin: 0 0 10px; color: var(--on-table-soft); font-size: 15px; }
.keep__steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.keep__note { margin: 10px 0 0; font-size: 14px; color: var(--blush); }
.keep__later { padding-left: 0; }
.end .keep { margin-top: 28px; }

/* ---------- Deal to two ---------- */
.dealer {
  position: fixed; inset: 0; z-index: 50; cursor: pointer;
  background: radial-gradient(120% 55% at 50% -12%, var(--glow), transparent 62%) no-repeat, var(--table);
}
.dealer__deck { position: absolute; left: 50%; top: 34%; width: 96px; aspect-ratio: 5 / 7; transform: translate(-50%, -50%); }
.dealer__card { position: absolute; inset: 0; width: 100%; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.7); }
.dealer__card--deck { transform: translate(3px, 4px); }
.dealer__name {
  position: absolute; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--serif); font-size: 20px; color: var(--on-table);
  opacity: 0; animation: dealer-name .3s ease-out .45s forwards;
}
@keyframes dealer-name { to { opacity: 1; } }
.dealer__skip { position: absolute; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); margin: 0; text-align: center; font-size: 13px; color: var(--on-table-soft); }

/* ---------- Coming next ---------- */
.back--repair { --back: #4E5F72; }
.unit--soon { cursor: default; opacity: .78; }
.unit--soon .unit__count { color: var(--rose-deep); font-weight: 600; }
.pack--soon { opacity: .8; }
.pack__soon { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blush); }

/* ---------- Landing: deal to two before the hero card ---------- */
.hero-deal { position: relative; width: min(68vw, 264px); margin: 30px auto 6px; }
.hero-deal .hero-flip { position: relative; z-index: 1; width: 100%; margin: 0; animation: hero-land .45s cubic-bezier(.2, .7, .2, 1) .55s both; }
.hero-deal__back { position: absolute; top: 34px; left: 23%; width: 54%; z-index: 0; }
.hero-deal__back--l { animation: hero-deal-l .42s cubic-bezier(.2, .7, .2, 1) .05s both; }
.hero-deal__back--r { animation: hero-deal-r .42s cubic-bezier(.2, .7, .2, 1) .22s both; }
@keyframes hero-deal-l { from { transform: translateY(-60px) scale(.9); opacity: 0; } to { transform: translateX(-56%) rotate(-11deg); opacity: 1; } }
@keyframes hero-deal-r { from { transform: translateY(-60px) scale(.9); opacity: 0; } to { transform: translateX(56%) rotate(11deg); opacity: 1; } }
@keyframes hero-land { from { transform: translateY(-70px) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero-deal .hero-flip { animation: none; }
  .hero-deal__back--l { animation: none; transform: translateX(-56%) rotate(-11deg); }
  .hero-deal__back--r { animation: none; transform: translateX(56%) rotate(11deg); }
}
main, .app { overflow-x: clip; }

/* ---------- Closer pack and "for you" tags ---------- */
.back--closer { --back: #A0573C; }
.fit-tag {
  display: inline-block; margin-bottom: 4px; padding: 3px 9px; border-radius: 999px;
  background: var(--rose-deep); color: var(--card); font: 600 11.5px/1.4 var(--sans); letter-spacing: .01em;
}
.pack .fit-tag { margin-bottom: 6px; }

.fitask {
  display: block; width: 100%; margin: 18px 0 0; padding: 16px 18px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--card-ink); border: 0; border-radius: 20px; font: inherit;
  box-shadow: inset 0 0 0 2px var(--rose-light);
}
.fitask__title { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.25; }
.fitask__sub { display: block; font-size: 14px; color: var(--card-soft); }

/* ---------- Editions and add-ons ---------- */
.offers { margin-top: 6px; }
.plan__line { margin: 0 0 16px; color: var(--card-soft); }
.plan--all .fit-tag { margin-bottom: 8px; }
.offer-rows { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.offer-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 18px; text-decoration: none;
  border: 1px solid var(--table-line); background: rgba(255, 255, 255, 0.03); color: var(--on-table);
}
.offer-row__name { display: block; font-family: var(--serif); font-size: 19px; line-height: 1.25; }
.offer-row__line { display: block; font-size: 14px; color: var(--on-table-soft); }
.offer-row__price { font-weight: 600; white-space: nowrap; }
.offers__note { margin: 12px 0 0; font-size: 14px; color: var(--on-table-soft); }
.offers__code { display: block; margin: 6px auto 0; }
a.unit--soon { text-decoration: none; opacity: .9; }
.unit__notify { color: var(--rose-deep); font-weight: 600; white-space: normal; text-align: right; max-width: 92px; line-height: 1.3; }
a.pack__soon { text-decoration: underline; }
.plan__save { margin: -8px 0 16px; font-size: 14px; font-weight: 600; color: var(--right); }
.offer-row__save { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--blush); }

/* ---------- Gift a copy ---------- */
.gift { margin: 28px 0 0; padding: 20px 18px 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--table-line); }
.gift__title { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 23px; }
.gift__line { margin: 0 0 14px; color: var(--on-table-soft); }

/* Longer brand name: keep the top bar on one line on small phones */
.topnav .brand { white-space: nowrap; font-size: 20px; }
.btn--small { white-space: nowrap; }
@media (max-width: 480px) { .topnav__how { display: none; } }
.topnav__how { white-space: nowrap; }
