/* The Little Invite: invitation page */
@font-face { font-family: 'Playfair'; src: url(fonts/playfair.woff2) format('woff2'); font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair'; src: url(fonts/playfair-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Pinyon'; src: url(fonts/pinyon.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Pontano'; src: url(fonts/pontano.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Chunk'; src: url(fonts/chunkfive.woff2) format('woff2'); font-display: swap; }

/* ---------- themes (one colorway per block) ----------
   Look taken from the top-selling Christmas invitation websites on Etsy (Nov 2026):
   emerald + cranberry + cream + gold, velvet envelopes, wax seals, tartan, red velvet bows, arched frames. */
:root, [data-theme="envelope"] {
  --bg: #f4ece0;                 /* cream, under red ticking stripes */
  --bg-2: #fbf6ee;
  --stripe: rgba(163, 34, 45, .78);
  --paper: #fffcf5;
  --env: #1f5a40; --env-2: #19503a; --env-3: #2a6a4d; --env-line: #0f3726;   /* emerald velvet */
  --liner-base: #a3222d; --liner-band: rgba(16, 58, 38, .62); --liner-gold: rgba(222, 189, 112, .85);
  --liner-a: #fbf3e4; --liner-b: #a3222d;
  --seal: #c9a14f; --seal-hi: #f3dc98; --seal-lo: #7d5f25; --seal-ink: #fff3cf;          /* gold wax */
  --bow: #b3202c; --bow-hi: #d8434d; --bow-lo: #6e0f17;
  --berry: #b3202c; --berry-2: #8f1822;
  --leaf: #1f5a40; --leaf-2: #2f7556; --leaf-vein: #0f3726; --twig: #6b4a2e;
  --ink: #2e2622; --soft: #6c5f57;
  --accent: #a3222d;            /* titles */
  --sage: #1f5a40;              /* labels */
  --line: #c9a14f;
  --tile: #1f5a40; --tile-ink: #fff3cf; --tile-label: #d9e6dd;
  --rsvp: #f6efe1;
  --btn: #a3222d; --btn-ink: #fffaf0;
  --frame: #c9a14f;
  --hint: #7a1820;
  --sky-1: #3b5a88; --sky-2: #223658; --sky-3: #14213a; --silhouette: #0f1830;
  --base: #1f5a40; --base-hi: #2f7556; --base-lo: #0f3726;
}
[data-theme="globe"] {
  --bg: #5c1520; --bg-2: #7e2330;                       /* cranberry velvet */
  --paper: #fffcf5;
  --liner-a: #fbf3e4; --liner-b: #1f5a40;
  --accent: #a3222d; --sage: #1f5a40;
  --tile: #1f5a40; --tile-ink: #fff3cf; --tile-label: #d9e6dd;
  --rsvp: #f6efe1;
  --frame: #c9a14f; --line: #c9a14f;
  --hint: #fff3cf;
}

body {
  background:
    radial-gradient(130% 80% at 50% 40%, rgba(255,255,255,0) 40%, rgba(90, 30, 25, .22) 100%) fixed,
    repeating-linear-gradient(90deg, var(--bg-2) 0 34px, var(--stripe) 34px 37px, var(--bg-2) 37px 42px, var(--stripe) 42px 45px, var(--bg-2) 45px 79px) fixed,
    var(--bg);
}
[data-theme="globe"] body {
  background:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255,232,170,.8), transparent 60%),
    radial-gradient(1.3px 1.3px at 78% 12%, rgba(255,232,170,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 38%, rgba(255,232,170,.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 30% 66%, rgba(255,232,170,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 72%, rgba(255,232,170,.6), transparent 60%),
    radial-gradient(1.1px 1.1px at 46% 88%, rgba(255,232,170,.5), transparent 60%),
    radial-gradient(120% 70% at 50% 35%, var(--bg-2) 0%, var(--bg) 65%) fixed,
    var(--bg);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  color: var(--ink);
  font-family: 'Pontano', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.is-sealed { overflow: hidden; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* ---------- 1. envelope stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  transition: opacity .7s ease, transform .9s cubic-bezier(.5, 0, .2, 1);
}
.stage.gone { opacity: 0; transform: translateY(14vh) scale(.96); pointer-events: none; }
.stage-inner { display: grid; justify-items: center; gap: 28px; width: 100%; }

.env {
  position: relative;
  width: min(84vw, 400px);
  aspect-ratio: 10 / 7;
  container-type: inline-size;
  perspective: 1400px;
  filter: drop-shadow(0 18px 26px rgba(60, 20, 15, .3)) drop-shadow(0 3px 6px rgba(40, 20, 15, .25));
  margin-top: 22vh;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.opening .env { animation: none; }

.env-back {
  position: absolute; inset: 0; border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,0) 45%),
    repeating-linear-gradient(90deg, var(--liner-band) 0 14px, transparent 14px 22px, var(--liner-band) 22px 25px, transparent 25px 44px),
    repeating-linear-gradient(0deg, var(--liner-band) 0 14px, transparent 14px 22px, var(--liner-band) 22px 25px, transparent 25px 44px),
    repeating-linear-gradient(90deg, transparent 0 33px, var(--liner-gold) 33px 34.5px, transparent 34.5px 44px),
    repeating-linear-gradient(0deg, transparent 0 33px, var(--liner-gold) 33px 34.5px, transparent 34.5px 44px),
    var(--liner-base);
  z-index: 1;
}

.env-card {
  position: absolute; left: 6%; width: 88%; top: 7%; height: 86%;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 -1px 0 rgba(0,0,0,.04), 0 6px 14px rgba(0,0,0,.12);
  z-index: 2;
  transition: transform .9s cubic-bezier(.3, 0, .2, 1);
}
.env-card::before {
  content: ''; position: absolute; inset: 4.5cqw;
  border: 1.5px solid var(--frame); outline: 1px solid var(--frame); outline-offset: 2px;
  opacity: .55; pointer-events: none;
}
.peek { position: absolute; inset: 0; display: grid; align-content: start; justify-items: center; padding-top: 7.5cqw; text-align: center; }
.peek-sprig { width: 17cqw; height: auto; }
.peek-eyebrow { margin: 1cqw 0 0; font-family: 'Playfair', Georgia, serif; font-size: 2.8cqw; letter-spacing: .24em; text-transform: uppercase; color: var(--sage); }
.peek-title { margin: .4cqw 6cqw 0; font-family: 'Pinyon', 'Snell Roundhand', cursive; font-size: 11cqw; line-height: 1.1; color: var(--accent); }

.env-front { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; }
.f-left, .f-right, .f-bottom { filter: url(#velvet); }
.f-crease { fill: none; stroke: var(--env-line); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .8; }

.env-to {
  position: absolute; left: 0; right: 0; top: 71.5%; z-index: 4; margin: 0;
  display: grid; justify-items: center; text-align: center; pointer-events: none;
  color: #f6e7bd;
}
.to-label { font-family: 'Playfair', Georgia, serif; font-size: 2.6cqw; letter-spacing: .3em; text-transform: uppercase; color: #d9c48e; }
.to-name { font-family: 'Pinyon', 'Snell Roundhand', cursive; font-size: 8.8cqw; line-height: 1.15; max-width: 86%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2cqw; }

.env-flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 54%;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  z-index: 5;
  transition: transform .75s cubic-bezier(.45, 0, .2, 1);
}
.flap-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flap-out {
  clip-path: polygon(0 0, 100% 0, 52% 98.5%, 50% 100%, 48% 98.5%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"), linear-gradient(180deg, var(--env-3), var(--env) 70%, var(--env-2));
}
.flap-out::after { /* velvet sheen */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 20%, rgba(255,255,255,.14), rgba(255,255,255,0) 70%);
}
.flap-in {
  transform: rotateX(180deg);
  clip-path: polygon(50% 0, 52% 1.5%, 100% 100%, 0 100%, 48% 1.5%);
  background:
    linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,0) 50%),
    repeating-linear-gradient(90deg, var(--liner-band) 0 14px, transparent 14px 22px, var(--liner-band) 22px 25px, transparent 25px 44px),
    repeating-linear-gradient(0deg, var(--liner-band) 0 14px, transparent 14px 22px, var(--liner-band) 22px 25px, transparent 25px 44px),
    repeating-linear-gradient(90deg, transparent 0 33px, var(--liner-gold) 33px 34.5px, transparent 34.5px 44px),
    repeating-linear-gradient(0deg, transparent 0 33px, var(--liner-gold) 33px 34.5px, transparent 34.5px 44px),
    var(--liner-base);
}

.seal {
  position: absolute; left: 50%; top: 54%; z-index: 6;
  width: 21cqw; aspect-ratio: 1; margin: -10.5cqw 0 0 -10.5cqw;
  padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(40, 25, 5, .5));
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .35s ease;
  animation: nudge 2.6s ease-in-out 1.2s infinite;
}
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; border-radius: 50%; }
@keyframes nudge { 0%, 82%, 100% { transform: scale(1) rotate(0); } 88% { transform: scale(1.07) rotate(-4deg); } 94% { transform: scale(1.04) rotate(3deg); } }
.seal-ring { fill: none; stroke: var(--seal-lo); stroke-width: 2.4; opacity: .55; }
.seal-ring2 { fill: none; stroke: var(--seal-hi); stroke-width: 1; opacity: .5; }
.seal-letter { font-family: 'Pinyon', 'Snell Roundhand', cursive; font-size: 46px; fill: var(--seal-lo); opacity: .85; paint-order: stroke; stroke: var(--seal-hi); stroke-width: 1px; }

.env-sprig { position: absolute; left: -8%; top: -12%; width: 34%; z-index: 7; transform: rotate(-14deg); pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.28)); transition: opacity .4s; }
.opening .env-sprig { opacity: 0; }

.hint {
  margin: 0; color: var(--hint); opacity: .95;
  font-family: 'Playfair', Georgia, serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  background: rgba(255, 250, 240, .92); padding: 9px 18px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.08);
  animation: breathe 2.6s ease-in-out infinite;
  transition: opacity .3s;
}
@keyframes breathe { 50% { opacity: .6; } }
[data-theme="globe"] .hint { background: rgba(255, 250, 240, .1); color: var(--hint); box-shadow: none; }

/* opening sequence */
.opening .seal { animation: none; transform: scale(1.25) rotate(-12deg); opacity: 0; pointer-events: none; }
.opening .hint { opacity: 0; animation: none; }
.opening .env-to { opacity: 0; transition: opacity .3s; }
.flap-open .env-flap { transform: rotateX(180deg); }
.flap-behind .env-flap { z-index: 1; }
.card-up .env-card { transform: translateY(-78%); }


/* ---------- 1b. snow globe ---------- */
.globe {
  position: relative; width: min(80vw, 360px); aspect-ratio: 4 / 5; container-type: inline-size;
  margin-top: 4vh; transform-origin: 50% 92%;
  filter: drop-shadow(0 20px 30px rgba(30, 5, 10, .5));
  animation: float 5s ease-in-out infinite;
}
.globe-scene, .globe-glass { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-glass { pointer-events: none; }
.globe-snow { position: absolute; left: 6.875%; top: 5.5%; width: 86.25%; height: 69%; border-radius: 50%; pointer-events: none; }
.globe-to {
  position: absolute; left: 32.5%; width: 35%; top: 84%; height: 7.5%; margin: 0;
  display: flex; align-items: baseline; justify-content: center; gap: 1.5cqw; white-space: nowrap; overflow: hidden;
  color: #3a2e28; pointer-events: none;
}
.globe-to .to-label { font-size: 2.4cqw; letter-spacing: .25em; text-transform: uppercase; color: #8a7a68; }
.globe-to .to-name { font-family: 'Pinyon', cursive; font-size: 6cqw; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.globe-hit { position: absolute; left: 6%; top: 4%; width: 88%; height: 70%; border-radius: 50%; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.globe-hit:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.globe.shake { animation: shake .95s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  0% { transform: rotate(0) translateX(0); }
  12% { transform: rotate(-9deg) translateX(-14px); }
  26% { transform: rotate(8deg) translateX(12px); }
  40% { transform: rotate(-7deg) translateX(-10px); }
  54% { transform: rotate(6deg) translateX(8px); }
  68% { transform: rotate(-3deg) translateX(-4px); }
  84% { transform: rotate(1.5deg) translateX(2px); }
  100% { transform: rotate(0) translateX(0); }
}
.globe-stage.opening .globe { animation-play-state: paused; }
.globe-stage.popped .globe { transition: transform .8s ease, opacity .8s ease; transform: scale(.9) translateY(4%); opacity: .35; }
.globe-stage.opening .hint { opacity: 0; animation: none; }

.pop {
  position: absolute; left: 50%; top: 42%; z-index: 3;
  width: min(80vw, 340px); padding: 26px 22px 24px; text-align: center;
  background: var(--paper); border-radius: 3px;
  box-shadow: 0 30px 60px rgba(5, 10, 25, .5), 0 3px 8px rgba(5, 10, 25, .3);
  transform: translate(-50%, -50%) scale(.08); opacity: 0; pointer-events: none;
}
.pop::before { content: ''; position: absolute; inset: 9px; border: 1.5px solid var(--frame); outline: 1px solid var(--frame); outline-offset: 2px; opacity: .6; }
.pop .peek-sprig { width: 84px; margin-top: -4px; }
.pop-eyebrow { margin: 4px 0 0; font-family: 'Playfair', Georgia, serif; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--sage); }
.pop-title { margin: 2px 0 0; font-family: 'Pinyon', 'Snell Roundhand', cursive; font-size: clamp(44px, 13vw, 56px); line-height: 1.12; color: var(--accent); }
.pop-date { margin: 10px 0 0; font-size: 16px; color: var(--soft); }
.popped .pop { animation: popIn .75s cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes popIn {
  0% { transform: translate(-50%, -50%) scale(.08) rotate(-6deg); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

/* ---------- 2. the invitation ---------- */
.invite {
  position: relative; z-index: 20;
  padding: max(28px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

.card {
  position: relative;
  max-width: 460px; margin: 0 auto;
  background: var(--paper);
  border-radius: 3px;
  padding: 30px 30px 40px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(15, 25, 14, .35), 0 2px 6px rgba(15, 25, 14, .2);
}
.card::before, .card::after { /* arched gold frame */
  content: ''; position: absolute; inset: 12px; pointer-events: none;
  border: 1.5px solid var(--frame); opacity: .75;
  border-radius: 50% 50% 4px 4px / 150px 150px 4px 4px;
}
.card::after { inset: 17px; border-width: 1px; opacity: .55; }
.card-sprig { width: 112px; height: auto; display: block; margin: -8px auto 2px; position: relative; z-index: 1; filter: drop-shadow(0 3px 3px rgba(80, 10, 15, .25)); }
.eyebrow { margin: 6px 0 0; font-family: 'Playfair', Georgia, serif; font-size: 12.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--sage); }
.title {
  margin: 4px 0 0; font-family: 'Pinyon', 'Snell Roundhand', cursive; font-weight: 400;
  font-size: clamp(50px, 15vw, 70px); line-height: 1.12; color: var(--accent);
  text-wrap: balance; overflow-wrap: anywhere;
}
.hosted { margin: 14px 0 0; }
.hosted-by { display: block; font-family: 'Playfair', Georgia, serif; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); }
.hosts { font-family: 'Playfair', Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.divider { display: block; width: 190px; height: auto; margin: 22px auto 18px; }

.when .weekday { margin: 0; font-family: 'Playfair', Georgia, serif; font-size: 12.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); }
.when .date { margin: 2px 0 0; font-family: 'Playfair', Georgia, serif; font-size: 34px; line-height: 1.15; }
.when .time { margin: 2px 0 0; font-size: 19px; color: var(--soft); }

.countdown { margin: 22px 0 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 330px; margin: 0 auto; }
.tile { background: var(--tile) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); border-radius: 6px; padding: 11px 2px 9px; box-shadow: inset 0 0 0 1px rgba(201, 161, 79, .55), 0 3px 8px rgba(15, 55, 38, .2); }
.tile b { display: block; font-family: 'Playfair', Georgia, serif; font-weight: 400; font-size: 31px; line-height: 1; color: var(--tile-ink); font-variant-numeric: lining-nums tabular-nums; }
.tile span { display: block; margin-top: 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--tile-label); }
.cd-label { margin: 10px 0 0; font-family: 'Playfair', Georgia, serif; font-style: italic; font-size: 18px; color: var(--soft); }
.countdown.done .tiles { display: none; }
.countdown.done .cd-label { font-size: 24px; color: var(--accent); }

.block { margin: 30px 0 0; }
.label { margin: 0 0 4px; font-family: 'Playfair', Georgia, serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); }
.place { margin: 0; font-family: 'Playfair', Georgia, serif; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.address { margin: 4px 0 14px; color: var(--soft); white-space: pre-line; overflow-wrap: anywhere; }
.details .row + .row { margin-top: 20px; }
.details p { margin: 0; overflow-wrap: anywhere; }
.details .note { white-space: pre-line; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-size: 16px; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 4px 10px rgba(120, 30, 25, .28); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--sage); }
.btn.small { min-height: 42px; padding: 9px 18px; font-size: 15px; }
.btn:focus-visible, .stepper button:focus-visible, .replay:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.rsvp {
  margin: 34px -10px 0; padding: 26px 20px 22px;
  background: var(--rsvp); border-radius: 4px; position: relative;
}
.rsvp::before { /* ticking stripe band on top */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 4px 4px 0 0;
  background: repeating-linear-gradient(90deg, var(--liner-a) 0 10px, var(--liner-b) 10px 12px, var(--liner-a) 12px 14px, var(--liner-b) 14px 16px, var(--liner-a) 16px 26px);
}
.reply-by { margin: 0 0 16px; font-family: 'Playfair', Georgia, serif; font-style: italic; font-size: 20px; }
.field { display: grid; gap: 6px; text-align: left; max-width: 320px; margin: 0 auto; }
.field span { font-size: 13px; color: var(--soft); }
.field input {
  font: inherit; font-size: 17px; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #dccaa0; background: #fffdf8;
}
.field input:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(94, 115, 86, .2); }
.count { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 320px; margin: 14px auto 0; }
.count > span { font-size: 15px; color: var(--soft); }
.stepper { display: flex; align-items: center; gap: 4px; background: #fffdf8; border: 1.5px solid #dccaa0; border-radius: 999px; padding: 3px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--accent); }
.stepper button:active { background: var(--tile); }
.stepper output { min-width: 26px; font-family: 'Playfair', Georgia, serif; font-size: 22px; color: var(--accent); }
.rsvp-btns { display: grid; gap: 10px; max-width: 320px; margin: 18px auto 0; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--soft); }
.thanks { margin: 12px 0 0; font-family: 'Playfair', Georgia, serif; font-style: italic; font-size: 19px; color: var(--accent); }

.cal-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.sign { margin: 34px 0 0; font-family: 'Pinyon', cursive; font-size: 40px; color: var(--accent); line-height: 1.1; }

.replay {
  display: block; margin: 22px auto 0; background: rgba(255,250,240,.92); border: 0; cursor: pointer; border-radius: 999px;
  color: var(--accent); opacity: .9; font-family: 'Playfair', Georgia, serif; font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  padding: 10px;
}

.music-btn {
  position: fixed; z-index: 40;
  top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right));
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255, 252, 242, .92); color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.2); cursor: pointer; display: grid; place-items: center;
}
.music-btn svg { width: 22px; height: 22px; }
.music-btn .slash { opacity: 1; }
.music-btn[aria-pressed="true"] .slash { opacity: 0; }

.oops { position: fixed; left: 16px; right: 16px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 50; margin: 0 auto; max-width: 420px;
  background: var(--paper); color: var(--ink); padding: 14px 18px; border-radius: 10px; text-align: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .env, .seal, .hint, .globe { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .invite { animation: none; }
}
@media (min-width: 700px) {
  .invite { padding-top: 56px; }
  .card { padding: 54px 44px 46px; }
}
