/* ═══════════════════════════════════════════════════════════════
   MAISON · a birthday surprise
   noir, ivory and champagne gold · Cormorant Garamond / Newsreader / Jost
   ═══════════════════════════════════════════════════════════════ */

:root {
  --noir: #0e0d0c;
  --noir-2: #1a1816;
  --ivory: #f4efe6;
  --paper: #faf7f1;
  --ink: #1a1816;
  --ink-2: #4f4842;
  --gold: #b08d4f;
  --gold-dk: #8a6a30;
  --gold-lt: #dcc38c;
  --light: #f3eee4;

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", system-ui, sans-serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --foil: linear-gradient(115deg, #a37a33 0%, #f2dea6 20%, #b98e44 36%, #fcecbd 52%, #ad8338 68%, #ead18f 84%, #9b722e 100%);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --vh: 1vh;
}
@supports (height: 100svh) {
  :root { --vh: 1svh; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noir); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-locked, html.is-locked body { overflow: hidden; height: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }

.caps { font-family: var(--sans); text-transform: uppercase; }
.script { font-family: var(--script); font-weight: 400; }
.gold-text { background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── wax seal (shared) ─────────────────────────────────────────── */
.seal, .loader__seal, .seal__half {
  --s: 64px;
  position: relative;
  display: grid; place-items: center;
  width: var(--s); height: var(--s);
  border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 38% 32%, #fbeab9, #d6b36b 38%, #a77d36 70%, #7d5a22 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 -4px 10px rgba(90, 60, 20, 0.6), inset 0 3px 6px rgba(255, 245, 210, 0.5);
}
.seal::before, .loader__seal::before, .seal__half::before {
  content: ""; position: absolute; inset: 12%;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(90, 60, 20, 0.55), 0 1px 1px rgba(255, 240, 200, 0.5);
}
.seal i, .loader__seal i, .seal__half i {
  position: relative;
  margin-top: -6%;
  font: italic 600 calc(var(--s) * 0.5)/1 var(--display);
  color: #86622a;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.7), 0 -1px 0 rgba(80, 55, 15, 0.5);
}
.seal--mini { --s: 46px; margin: 0 auto; }
.seal--mid { --s: 64px; margin: 0 auto; }

/* ── shared type ───────────────────────────────────────────────── */
.page { position: relative; padding: calc(64px + var(--safe-t)) 26px 80px; text-align: center; }
.lab { font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: 0.3em; color: var(--gold-dk); padding-left: 0.3em; }
.lab--light { color: var(--gold-lt); }
.hair { display: block; width: 44px; height: 1px; margin: 14px auto 0; background: var(--gold); }
.title { margin-top: 22px; font: italic 500 clamp(42px, 12.2vw, 56px)/1.02 var(--display); letter-spacing: -0.01em; }
.title em { color: var(--gold-dk); }
.title--light { color: var(--light); }
.title--light em { color: var(--gold-lt); }
.dek { margin: 14px auto 0; max-width: 30ch; font: italic 400 18.5px/1.45 var(--text); color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 17px 26px 16px;
  font: 500 12.5px/1 var(--sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn--noir { background: var(--noir); color: var(--gold-lt); }
.btn--gold { background: linear-gradient(115deg, #b38b45, #f1dda4 45%, #c39a52); color: var(--ink); font-weight: 600; }
.btn--gold-line { border: 1px solid rgba(220, 195, 140, 0.7); color: var(--gold-lt); }
.link-btn {
  padding: 10px;
  font: italic 400 17px/1.4 var(--text);
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgba(26, 24, 22, 0.35);
  text-underline-offset: 4px;
}
.link-btn--light { color: rgba(243, 238, 228, 0.78); text-decoration-color: rgba(243, 238, 228, 0.35); }

/* ── loader ───────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-content: center; justify-items: center; gap: 20px;
  background: var(--noir);
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__seal { --s: 56px; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.loader__text { font-weight: 500; font-size: 11.5px; letter-spacing: 0.32em; color: var(--gold-lt); padding-left: 0.32em; }

/* ═══════════ GATE: the sealed envelope ═══════════ */
.gate {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--light);
  background: radial-gradient(80% 55% at 50% 42%, #1f1d1a, #0b0a09 75%);
  touch-action: none;
}
.gate__top { position: absolute; left: 0; right: 0; top: calc(62px + var(--safe-t)); font-weight: 500; font-size: 12px; letter-spacing: 0.42em; padding-left: 0.42em; }
.gate__hair { position: absolute; left: 50%; top: calc(88px + var(--safe-t)); width: 46px; height: 1px; margin-left: -23px; background: var(--gold); opacity: 0.75; }
.env {
  --ew: min(84vw, 340px);
  --eh: calc(var(--ew) * 0.66);
  position: relative;
  width: var(--ew); height: var(--eh);
  margin-top: -24px;
  visibility: hidden;
}
.env__back {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #1f1d1a, #151412);
  box-shadow: 0 44px 64px -26px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(200, 169, 106, 0.18);
}
.env__slot { position: absolute; left: 1px; right: 1px; bottom: 2px; top: calc(var(--eh) * -2.6); z-index: 2; overflow: hidden; pointer-events: none; }
.inv {
  position: absolute; left: 7%; width: 86%;
  top: calc(var(--eh) * 2.68);
  height: calc(var(--ew) * 1.18);
  padding: 22px 16px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(160deg, #faf6ee, #f0e9dc);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.35);
}
.inv::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176, 141, 79, 0.6); }
.inv .seal--mini { --s: 38px; }
.inv__house { margin-top: 12px; font-weight: 500; font-size: 9.5px; letter-spacing: 0.36em; color: var(--gold-dk); padding-left: 0.36em; }
.inv__line { margin-top: 10px; font: italic 500 21px/1.15 var(--display); }
.env__pocket {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, #24221e, #1b1a17);
  -webkit-clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
}
.env__pocket svg, .env__flap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.env__flap {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  height: 62%;
  transform-origin: 50% 0;
  background: linear-gradient(180deg, #2b2823, #201e1a);
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.env__flap.is-open { z-index: 1; background: linear-gradient(0deg, #3b362d, #2a2722); }
.seal--big {
  --s: 92px;
  position: absolute; left: 50%; top: calc(62% - 46px); z-index: 5;
  margin-left: -46px;
  background: none; box-shadow: none;
}
.seal--big::before { display: none; }
.seal--big::after {
  content: ""; position: absolute; inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(200, 169, 106, 0.55);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(0.85); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.seal--big.is-broken::after, .seal--big.is-broken .seal__glint { display: none; }
.seal__half { position: absolute; inset: 0; --s: 92px; }
.seal__half--l { -webkit-clip-path: polygon(0 0, 53% 0, 47% 28%, 54% 52%, 46% 78%, 51% 100%, 0 100%); clip-path: polygon(0 0, 53% 0, 47% 28%, 54% 52%, 46% 78%, 51% 100%, 0 100%); }
.seal__half--l, .seal__half--r { opacity: 0; }
.seal--big.is-broken .seal__half--l, .seal--big.is-broken .seal__half--r { opacity: 1; }
.seal--big.is-broken .seal__whole { opacity: 0; }
.seal__half--r { -webkit-clip-path: polygon(53% 0, 100% 0, 100% 100%, 51% 100%, 46% 78%, 54% 52%, 47% 28%); clip-path: polygon(53% 0, 100% 0, 100% 100%, 51% 100%, 46% 78%, 54% 52%, 47% 28%); }
.seal__glint { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.seal__glint::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 252, 235, 0.55), transparent);
  transform: skewX(-18deg);
  animation: glint 3.6s ease-in-out infinite 1.2s;
}
@keyframes glint { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.gate__for { margin-top: 70px; font: italic 500 44px/1.1 var(--display); }
.gate__for small { display: block; margin-bottom: 12px; font: 500 11.5px/1 var(--sans); font-style: normal; letter-spacing: 0.3em; color: var(--gold-lt); padding-left: 0.3em; }
.gate__hint { position: absolute; left: 0; right: 0; bottom: calc(46px + var(--safe-b)); font-weight: 500; font-size: 12px; letter-spacing: 0.28em; padding-left: 0.28em; color: rgba(243, 238, 228, 0.8); opacity: 0; }

/* ═══════════ THE INVITATION ═══════════ */
.invite {
  position: fixed; inset: 0; z-index: 62;
  display: grid; place-items: center;
  padding: calc(22px + var(--safe-t)) 18px calc(22px + var(--safe-b));
  background: radial-gradient(80% 55% at 50% 42%, #1f1d1a, #0b0a09 75%);
}
.invite__card {
  position: relative;
  width: min(100%, 420px);
  min-height: min(calc(100 * var(--vh) - 44px), 660px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 48px 28px;
  text-align: center;
  color: var(--ink);
  background: linear-gradient(160deg, #faf6ee, #f0e9dc);
  box-shadow: 0 34px 64px -24px rgba(0, 0, 0, 0.8);
}
.invite__card::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(176, 141, 79, 0.6); pointer-events: none; }
.invite__house { margin-top: 24px; font-weight: 500; font-size: 12px; letter-spacing: 0.4em; color: var(--gold-dk); padding-left: 0.4em; }
.invite__line { margin-top: 18px; font: italic 500 clamp(25px, 7.4vw, 34px)/1.18 var(--display); text-wrap: balance; }
.invite__hair { width: 46px; height: 1px; margin: 26px auto; background: var(--gold); }
.invite__date { font: 400 18px/1.55 var(--text); color: var(--ink-2); }
.invite__date em { font-style: italic; }
.invite__enter { margin-top: 36px; min-width: 180px; }

/* ═══════════ WELCOME ═══════════ */
.welcome { min-height: calc(100 * var(--vh)); display: flex; flex-direction: column; align-items: center; }
.welcome__hi { margin-top: 30px; font: italic 500 44px/1 var(--display); }
.welcome__name { margin-top: 4px; font: 600 clamp(60px, 17.5vw, 78px)/1 var(--display); letter-spacing: -0.01em; }
.welcome__prog-lab { margin-top: 42px; }
.prog { list-style: none; width: min(100%, 330px); margin: 14px 0 0; padding: 0; border-top: 1px solid rgba(176, 141, 79, 0.5); }
.prog a { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; padding: 13px 4px; border-bottom: 1px solid rgba(176, 141, 79, 0.28); text-align: left; text-decoration: none; }
.prog b { font: italic 600 19px/1 var(--display); color: var(--gold-dk); }
.prog span { font: 500 23px/1.2 var(--display); }
.cue { margin: auto 0 0; padding-top: 28px; font-weight: 500; font-size: 11.5px; letter-spacing: 0.3em; color: var(--gold-dk); padding-left: 0.3em; }

/* ═══════════ I · MOMENTS ═══════════ */
.arches { display: grid; justify-items: center; gap: 58px; margin-top: 44px; }
.arch { margin: 0; width: min(76vw, 300px); }
.arch__wrap { position: relative; aspect-ratio: 0.8; }
.arch__photo { position: absolute; inset: 0; overflow: hidden; border-radius: 50% 50% 3px 3px / 40% 40% 3px 3px; background: #e6dfd2; }
.arch__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; }
.arch__frame { position: absolute; inset: -10px; border: 1px solid var(--gold); border-radius: 50% 50% 6px 6px / 40.5% 40.5% 6px 6px; pointer-events: none; }
.arch figcaption { margin-top: 26px; }
.arch__cap { font: italic 500 27px/1.1 var(--display); }
.arch__cap::first-letter { text-transform: uppercase; }
.arch__no { margin-top: 8px; font: 500 11px/1 var(--sans); letter-spacing: 0.3em; color: var(--gold-dk); text-transform: uppercase; padding-left: 0.3em; }

/* ═══════════ II · LETTER ═══════════ */
.letter { padding-left: 18px; padding-right: 18px; background: var(--noir); color: var(--light); }
.note {
  position: relative;
  max-width: 460px;
  margin: 28px auto 0;
  padding: 40px 28px 34px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 34px 64px -26px rgba(0, 0, 0, 0.85);
}
.note::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(176, 141, 79, 0.6); pointer-events: none; }
.note__hi { margin: 22px 0 16px; font-size: 50px; line-height: 1.1; }
.note__body p { margin: 0 0 16px; font: 400 18.5px/1.62 var(--text); color: #2a2622; text-wrap: pretty; }
.note__body mark { padding: 0 2px; color: inherit; background: linear-gradient(transparent 58%, rgba(200, 169, 106, 0.5) 58%) no-repeat 0 0 / 0% 100%; }
.note__sign { margin-top: 26px; text-align: right; }
.note__love { font-size: 44px; line-height: 1.1; }
.note__name { margin-top: 6px; font-weight: 500; font-size: 12px; letter-spacing: 0.3em; color: var(--gold-dk); }

/* ═══════════ III · A GIFT ═══════════ */
.scratch-wrap { position: relative; width: min(100%, 350px); margin: 34px auto 18px; }
.rays {
  position: absolute; left: 50%; top: 50%;
  width: 170%; aspect-ratio: 1;
  margin: -85% 0 0 -85%;
  background: repeating-conic-gradient(from 0deg, rgba(200, 169, 106, 0.2) 0deg 4deg, rgba(200, 169, 106, 0) 4deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 22%, transparent 60%);
  mask: radial-gradient(circle, #000 22%, transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.scratch {
  position: relative;
  aspect-ratio: 1.36;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 26px 46px -22px rgba(60, 40, 10, 0.55), 0 0 0 1px rgba(176, 141, 79, 0.4);
  -webkit-user-select: none; user-select: none;
}
.scratch__prize {
  position: absolute; inset: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid rgba(176, 141, 79, 0.75);
  outline: 1px solid rgba(176, 141, 79, 0.4);
  outline-offset: 3px;
}
.scratch__prize .seal--mini { --s: 40px; }
.prize__kicker { margin-top: 10px; font-weight: 500; font-size: 11.5px; letter-spacing: 0.32em; color: var(--gold-dk); padding-left: 0.32em; }
.prize__title { margin: 2px 0 4px; font: italic 600 clamp(52px, 15vw, 64px)/1 var(--display); }
.prize__line { max-width: 25ch; font: 400 15.5px/1.38 var(--text); color: var(--ink-2); }
.prize__line em { color: var(--ink); }
.scratch__foil, .scratch__dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.scratch__foil { touch-action: none; cursor: crosshair; }
.scratch__dust { pointer-events: none; }
.hint { font-weight: 500; font-size: 12px; letter-spacing: 0.28em; color: var(--gold-dk); padding-left: 0.28em; }
.gift .link-btn { display: block; margin: 2px auto 0; }
.gift__cta { display: flex; width: max-content; margin: 18px auto 0; opacity: 0; visibility: hidden; }

/* ═══════════ IV · THE COLLECTION ═══════════ */
.pick { display: inline-block; margin-top: 16px; padding: 9px 12px 8px; border: 1px solid var(--gold); font-weight: 500; font-size: 11.5px; letter-spacing: 0.18em; color: var(--gold-dk); }
.rail {
  --cw: min(80vw, 320px);
  position: relative;
  display: flex; gap: 14px;
  margin: 26px -26px 0;
  padding: 8px calc((100vw - var(--cw)) / 2) 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  text-align: left;
}
.rail::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  flex: 0 0 var(--cw);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex; flex-direction: column;
  padding: 12px 12px 16px;
  background: var(--paper);
  box-shadow: 0 22px 38px -24px rgba(60, 40, 10, 0.55);
  transform-origin: 50% 60%;
}
.card__top { display: flex; justify-content: space-between; gap: 10px; padding: 2px 2px 10px; font: 500 10.5px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dk); }
.card__img { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1.04; overflow: hidden; background: #ece4d6; }
.card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; }
.card__img img.is-cover { object-fit: cover; mix-blend-mode: normal; padding: 0; }
.card__badge {
  position: absolute; left: 10px; top: 10px;
  padding: 7px 10px 6px;
  background: var(--noir);
  color: var(--gold-lt);
  font: 500 10px/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card.is-picked .card__badge { opacity: 1; transform: scale(1); }
.card__nick { margin: 14px 2px 0; font: italic 400 16px/1.2 var(--text); color: var(--ink-2); }
.card__name { margin: 4px 2px 0; font: 600 25px/1.12 var(--display); }
.card__meta { margin: 6px 2px 0; font: 500 10.5px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: #7c736a; }
.card__feats { list-style: none; margin: 10px 2px 0; padding: 0; font: 400 16px/1.5 var(--text); color: #2a2622; }
.card__feats li::before { content: "— "; color: var(--gold); }
.card__actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.card__details { flex: 1; padding: 15px 0 14px; border: 1px solid var(--ink); font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; }
.card__choose { flex: 1.4; padding: 15px 0 14px; font-size: 11px; }
.card.is-picked .card__choose { background: linear-gradient(115deg, #b38b45, #f1dda4 45%, #c39a52); color: var(--ink); font-weight: 600; }
.rail__meta { display: flex; align-items: center; justify-content: center; gap: 14px; font-weight: 500; font-size: 11.5px; letter-spacing: 0.24em; color: var(--gold-dk); }
.rail__bar { position: relative; width: 84px; height: 1px; overflow: hidden; background: rgba(176, 141, 79, 0.35); }
.rail__bar i { position: absolute; inset: 0; background: var(--gold-dk); transform-origin: left; transform: scaleX(0.1); transition: transform 0.25s ease; }

/* ═══════════ V · A WISH ═══════════ */
.wish {
  min-height: calc(100 * var(--vh));
  display: flex; flex-direction: column; align-items: center;
  padding-bottom: calc(34px + var(--safe-b));
  background: var(--noir);
  color: var(--light);
}
.candle { position: relative; width: 140px; height: 250px; margin: 26px 0 6px; }
.candle__halo { position: absolute; left: 50%; bottom: 176px; width: 300px; height: 300px; margin-left: -150px; margin-bottom: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 110, 0.3), rgba(255, 196, 110, 0) 62%); animation: halo 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }
.candle__body {
  position: absolute; left: 50%; bottom: 0; width: 30px; height: 150px; margin-left: -15px;
  border-radius: 5px 5px 4px 4px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.28), rgba(255, 255, 255, 0.28) 32%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.4)), repeating-linear-gradient(-36deg, #f6f1e7 0 11px, #c8a96a 11px 17px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.candle__body::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 9px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fffaf0, #e2d4ba); }
.candle__wick { position: absolute; left: 50%; bottom: 148px; width: 2.5px; height: 14px; margin-left: -1.25px; border-radius: 2px; background: linear-gradient(#1d1512, #4a3a2a); }
.candle__flame { position: absolute; left: 50%; bottom: 158px; width: 26px; height: 58px; margin-left: -13px; transform-origin: 50% 92%; animation: flame 1.5s ease-in-out infinite; }
.candle__flame::before { content: ""; position: absolute; inset: -30px -40px -20px; }
.candle__flame i { position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; background: radial-gradient(ellipse 42% 56% at 50% 72%, #fff 0, #fff4c8 28%, #ffcc5e 52%, #ff8f24 74%, rgba(255, 120, 20, 0) 100%); box-shadow: 0 0 20px 6px rgba(255, 170, 60, 0.45), 0 0 60px 20px rgba(255, 150, 50, 0.18); }
.candle__flame i::after { content: ""; position: absolute; left: 32%; right: 32%; bottom: 7%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, rgba(90, 130, 255, 0.6), rgba(90, 130, 255, 0) 70%); }
@keyframes flame { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 20% { transform: scale(0.95, 1.05) skewX(1.6deg); } 45% { transform: scale(1.04, 0.96) skewX(-1.2deg); } 70% { transform: scale(0.97, 1.04) skewX(2.2deg); } }
.candle__smoke { position: absolute; left: 50%; bottom: 162px; width: 0; height: 0; }
.candle__smoke i { position: absolute; left: -9px; bottom: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(205, 195, 185, 0.45); filter: blur(6px); opacity: 0; }
.wish__cta { margin-top: 10px; padding: 16px 18px 15px; font-size: 11.5px; letter-spacing: 0.16em; white-space: nowrap; }
.wish__cta.is-listening { animation: listen 1.2s ease-in-out infinite; }
@keyframes listen { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 195, 140, 0.45); } 50% { box-shadow: 0 0 0 12px rgba(220, 195, 140, 0); } }
.wish__hint { min-height: 1.4em; margin-top: 14px; font: italic 400 17px/1.4 var(--text); color: rgba(243, 238, 228, 0.85); }
.wish__after { margin-top: 2px; opacity: 0; visibility: hidden; }
.wish__hb { margin-top: 14px; font: 600 40px/1.06 var(--display); }
.wish__hb em { font-style: italic; color: var(--gold-lt); }
.wish__sign { margin: 8px 0 22px; font-size: 42px; color: rgba(243, 238, 228, 0.85); }
.wish__foot { margin: auto 0 0; padding-top: 36px; font-weight: 500; font-size: 10.5px; letter-spacing: 0.24em; color: rgba(243, 238, 228, 0.45); }

/* ═══════════ SHEET ═══════════ */
.sheet { position: fixed; inset: 0; z-index: 70; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(14, 13, 12, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); touch-action: none; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(90 * var(--vh));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(18px + var(--safe-b));
  border-radius: 18px 18px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4);
}
.sheet__grab { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; height: 28px; touch-action: none; }
.sheet__grab i { width: 42px; height: 4px; border-radius: 2px; background: rgba(26, 24, 22, 0.25); }
.sheet__x { position: absolute; right: 14px; top: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(26, 24, 22, 0.08); font: 300 24px/1 var(--sans); }
.sheet__gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 20px 0; scrollbar-width: none; }
.sheet__gallery::-webkit-scrollbar { display: none; }
.sheet__gallery figure { flex: 0 0 84%; margin: 0; aspect-ratio: 1; overflow: hidden; scroll-snap-align: center; background: #ece4d6; }
.sheet__gallery figure:only-child { flex-basis: 100%; }
.sheet__gallery img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; }
.sheet__gallery img.is-cover { object-fit: cover; mix-blend-mode: normal; padding: 0; }
.sheet__body { padding: 20px 24px 6px; }
.sheet__kicker { margin-bottom: 8px; font-weight: 500; font-size: 11px; letter-spacing: 0.24em; color: var(--gold-dk); }
.sheet__name { font: 600 30px/1.1 var(--display); }
.sheet__retailer { margin-top: 8px; font-weight: 500; font-size: 11px; letter-spacing: 0.14em; color: #7c736a; }
.sheet__why { margin-top: 16px; font: italic 400 18.5px/1.5 var(--text); color: var(--ink-2); }
.sheet__feats { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; font: 400 17px/1.45 var(--text); }
.sheet__feats li::before { content: "— "; color: var(--gold); }
.sheet__specs { margin: 18px 0 0; border-top: 1px solid rgba(176, 141, 79, 0.35); }
.sheet__specs div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(176, 141, 79, 0.25); }
.sheet__specs dt { padding-top: 3px; font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: #7c736a; }
.sheet__specs dd { margin: 0; font: 400 16.5px/1.45 var(--text); }
.sheet__actions { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 22px; }
.sheet__actions .btn { width: 100%; }

/* ═══════════ WINNER ═══════════ */
.winner {
  position: fixed; inset: 0; z-index: 75;
  display: grid; place-items: center;
  padding: calc(26px + var(--safe-t)) 22px calc(20px + var(--safe-b));
  overflow-y: auto;
  text-align: center;
  color: var(--light);
  background: radial-gradient(80% 60% at 50% 35%, #1f1d1a, #0b0a09 78%);
}
.winner__inner { width: 100%; max-width: 420px; }
.winner__arch { position: relative; width: min(62vw, 250px); aspect-ratio: 0.8; margin: 14px auto 32px; }
.winner__photo { position: absolute; inset: 0; overflow: hidden; border-radius: 50% 50% 3px 3px / 40% 40% 3px 3px; background: #ece4d6; }
.winner__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 12px; }
.winner__photo img.is-cover { object-fit: cover; mix-blend-mode: normal; padding: 0; }
.winner__frame { position: absolute; inset: -10px; border: 1px solid var(--gold); border-radius: 50% 50% 6px 6px / 40.5% 40.5% 6px 6px; pointer-events: none; }
.seal--stamp { --s: 80px; position: absolute; right: -20px; bottom: -18px; }
.winner__name { margin: 12px 0 10px; font: 600 clamp(28px, 8vw, 36px)/1.1 var(--display); }
.winner__line { margin: 0 0 24px; font: italic 400 19px/1.4 var(--text); color: rgba(243, 238, 228, 0.85); }
.winner .btn { width: min(100%, 320px); }

/* ═══════════ reduced motion ═══════════ */
@media (prefers-reduced-motion: reduce) {
  .loader__seal, .seal--big::after, .seal__glint::after, .candle__flame, .candle__halo { animation: none; }
}
