/* WaveleNGth styles: colors and type taken from the invite */
@font-face {
  font-family: 'Loverine';
  src: url('../assets/fonts/Loverine.otf') format('opentype');
  font-weight: 100 900; /* one weight only: stops browsers faking bold */
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #F8F9F3;
  --ink: #4A63A8;          /* invite blue lettering */
  --ink-soft: #6E86C2;
  --ink-faint: #9AABD3;
  --ribbon: #B8CDEE;
  --ribbon-deep: #8DA8DC;
  --pink: #E7789B;         /* "NG" + accents */
  --pink-soft: #F4AFC4;
  --rose: #C66B80;         /* invite date line */
  --yellow: #F2C760;
  --yellow-soft: #F7D77E;
  --sage: #6E9C82;
  --sage-soft: #A9C9A4;
  --lav: #A994DE;
  --lav-soft: #C8B8EE;
  --card: rgba(255, 255, 255, 0.82);
  --line: #DCE4F4;
  --shadow: 0 6px 22px rgba(74, 99, 168, 0.12), 0 1px 3px rgba(74, 99, 168, 0.08);
  --gold: #E9B949;
  --silver: #A9B4C6;
  --script: 'Loverine', 'Segoe Script', cursive;
  --sans: 'Quicksand', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(60vmax 40vmax at 10% 0%, rgba(244, 175, 196, 0.10), transparent 70%),
    radial-gradient(50vmax 40vmax at 100% 30%, rgba(184, 205, 238, 0.16), transparent 70%),
    radial-gradient(50vmax 40vmax at 0% 100%, rgba(169, 201, 164, 0.10), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .55  0 0 0 0 .5  0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
.script { font-family: var(--script); font-weight: 700; color: var(--ink); line-height: 1.1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--script);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
  letter-spacing: 0.01em;
}
.wordmark .wm-ng { color: var(--pink); }

/* ---------- ribbon frame ---------- */
.ribbon-frame { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: visible; }
.ribbon-frame.fixed { position: fixed; }
.ribbon-frame svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sway { transform-box: fill-box; transform-origin: 50% 20%; animation: sway 4.8s ease-in-out infinite; }
.sway-soft { animation-duration: 6.5s; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- layout (guest) ---------- */
.page { position: relative; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
.content {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 0 auto;
  padding: 74px 36px 54px;
}
.screen-in { animation: screenIn 0.38s ease-out both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 18px 18px;
}
h1, h2, h3 { margin: 0; }
p { margin: 0.4em 0; }

/* ---------- buttons + inputs ---------- */
.btn {
  appearance: none;
  border: 0;
  min-height: 50px;
  min-width: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.2s ease, opacity 0.2s;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .chip:focus-visible, .track:focus-visible, input:focus-visible { outline: 3px solid var(--pink-soft); outline-offset: 3px; }
.btn.primary { background: linear-gradient(180deg, #6A84C9, var(--ink)); color: #fff; box-shadow: 0 6px 16px rgba(74, 99, 168, 0.3); }
.btn.pink { background: linear-gradient(180deg, #F08DAC, var(--pink)); color: #fff; box-shadow: 0 6px 16px rgba(231, 120, 155, 0.32); }
.btn.ghost { background: rgba(255, 255, 255, 0.85); color: var(--ink); border: 2px solid var(--line); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.42; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.block { width: 100%; }

.field { display: block; margin: 12px 0; }
.field > span { display: block; font-weight: 700; font-size: 0.92rem; margin: 0 0 6px 4px; color: var(--ink-soft); }
.field input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s;
}
.field input::placeholder { color: #B5C0DC; font-weight: 500; }
.field input:focus { border-color: var(--ink-faint); outline: none; }
.field .count { float: right; font-weight: 500; font-size: 0.8rem; color: var(--ink-faint); }
.error-text { color: #C24E6E; font-weight: 600; font-size: 0.95rem; min-height: 1.3em; margin: 4px 4px 0; }

/* ---------- duck scene ---------- */
.duck-scene { display: flex; align-items: flex-end; justify-content: center; gap: 0; margin: 4px auto 0; max-width: 360px; position: relative; }
.duck-scene .scene-duck { width: 32%; }
.duck-scene .scene-egg { width: 15%; margin: 0 -2% 1%; }
.duck-scene .scene-balloons { width: 17%; align-self: flex-start; margin-bottom: 20%; }
.duck-scene .scene-balloons.left { margin-right: -6%; }
.duck-scene .scene-balloons.right { margin-left: -6%; }
.duck { display: block; width: 100%; height: auto; overflow: visible; }
.duck .duck-head { transform-box: view-box; transform-origin: 72px 62px; animation: headBob 3.2s ease-in-out infinite; }
.duck .wing { transform-box: view-box; transform-origin: 46px 76px; animation: wingFlap 4.4s ease-in-out infinite; }
.scene-duck { animation: bob 3.2s ease-in-out infinite; }
.scene-duck.d2, .scene-duck.d2 .duck-head { animation-delay: -1.4s; }
.duckling-egg { display: block; width: 100%; overflow: visible; }
.duckling-egg .chick { transform-box: view-box; transform-origin: 30px 40px; animation: chickPeek 2.6s ease-in-out infinite; }
.balloons { display: block; width: 100%; overflow: visible; }
.balloons .balloon { transform-box: fill-box; transform-origin: 50% 100%; animation: balloonFloat 5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes headBob { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-5deg); } 70% { transform: rotate(3deg); } }
@keyframes wingFlap { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(4deg); } 95% { transform: rotate(-10deg); } }
@keyframes chickPeek { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-3px) rotate(-6deg); } 60% { transform: translateY(-1px) rotate(5deg); } }
@keyframes balloonFloat { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(3deg); } }

.floaters { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floater { position: absolute; bottom: -140px; width: 34px; opacity: 0.6; animation: floatUp 18s linear infinite; }
.floater svg { display: block; width: 100%; height: auto; }
.floater.bow-f { width: 38px; bottom: -60px; animation-name: floatSpin; }
.floater.flower-f { width: 30px; bottom: -60px; animation-name: floatSpin; opacity: 0.7; }
@keyframes floatUp { from { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-60vh) rotate(5deg); } to { transform: translateY(-125vh) rotate(-3deg); } }
@keyframes floatSpin {
  from { transform: translate(0, 0) rotate(-20deg); }
  25% { transform: translate(18px, -32vh) rotate(25deg); }
  50% { transform: translate(-14px, -64vh) rotate(-15deg); }
  75% { transform: translate(16px, -96vh) rotate(30deg); }
  to { transform: translate(0, -128vh) rotate(-10deg); }
}

/* ---------- framed pages (questions, summary, closed, snapshot) ---------- */
.paper-frame { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1; }
/* the frame art is 768x1376; it may stretch a little taller on long phones */
.pf-box {
  position: relative;
  width: min(100vw, 56vh);
  height: min(100vh, 210vw);
  container-type: inline-size;
  background: var(--paper);
}
@supports (height: 100dvh) { .pf-box { width: min(100vw, 56dvh); height: min(100dvh, 210vw); } }
.pf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
/* white centre of the frame art, measured from the image */
.pf-content {
  position: absolute; top: 23%; bottom: 11.5%; left: 17.5%; right: 17.5%;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.pf-content::-webkit-scrollbar { display: none; }
.framed-content { padding: 2px 2px 14px; font-size: 15px; }
.framed-content .progress { gap: 2px; margin-bottom: 8px; }
.framed-content .pdot { width: 24px; height: 24px; }
.framed-content .q-text { font-size: clamp(1.3rem, 6.3cqw, 1.8rem); margin: 2px 0 10px; }
.framed-content .q-num { font-size: 0.7rem; }
/* questions use the rounded sans, not the script */
.q-text.question, .framed-content .q-text.question { font-family: var(--sans); font-weight: 700; font-size: 1.4rem; line-height: 1.28; margin-top: 22px; }
.framed-content .track { height: 64px; }
.framed-content .track-hint { margin-top: 2px; font-size: 0.8rem; }
.framed-content .btn { min-height: 48px; padding: 0 16px; font-size: 1rem; }
.framed-content .nav { margin-top: 18px; gap: 8px; }
.framed-content .card { padding: 12px; border-radius: 18px; }
.framed-content .field input { min-height: 48px; padding: 0 12px; font-size: 1rem; }
.framed-content .duck-scene { max-width: 240px; }
.framed-content .closed-box .wordmark { font-size: 2.6rem; }
.framed-content .closed-box h1 { font-size: 2.1rem; }

/* ---------- framed image ---------- */
/* the frame multiplies onto --framed-bg, so its white paper blends into whatever is behind */
.framed { position: relative; width: 100%; aspect-ratio: 4 / 5; isolation: isolate; background: var(--framed-bg, var(--paper)); }
.card { --framed-bg: #FEFEFC; }
.framed-window { position: absolute; overflow: hidden; border-radius: 9%; background: #fff; }
.framed-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; user-select: none; -webkit-user-drag: none; }
.framed-frame { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.framed-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(244, 175, 196, 0.55), transparent 70%),
    radial-gradient(55% 50% at 72% 65%, rgba(184, 205, 238, 0.65), transparent 70%),
    radial-gradient(40% 40% at 70% 20%, rgba(247, 215, 126, 0.45), transparent 70%),
    radial-gradient(45% 40% at 25% 80%, rgba(169, 201, 164, 0.45), transparent 70%), #FBFBF6;
}
.ph-emoji { font-size: 2.6em; filter: saturate(0.8); }
.ph-letter { font-family: var(--script); font-size: 3em; color: rgba(74, 99, 168, 0.5); }

/* ---------- spectrum slider ---------- */
.spectrum { --thumb: 50px; --p: 0.5; --pl: 0.5; --pr: 0.5; user-select: none; -webkit-user-select: none; }
.spectrum .ends { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.spectrum .end { margin: 0; text-align: center; }
.spectrum .end .framed { transition: transform 0.18s ease-out, filter 0.18s ease-out; transform-origin: 50% 90%; }
.spectrum .end.left .framed { transform: scale(calc(0.84 + 0.24 * var(--pl))); filter: saturate(calc(0.5 + 0.75 * var(--pl))) brightness(calc(0.95 + 0.08 * var(--pl))); }
.spectrum .end.right .framed { transform: scale(calc(0.84 + 0.24 * var(--pr))); filter: saturate(calc(0.5 + 0.75 * var(--pr))) brightness(calc(0.95 + 0.08 * var(--pr))); }
.spectrum.unset .end .framed { transform: scale(0.94); filter: none; }
.spectrum .end figcaption { margin-top: 6px; line-height: 1.2; min-height: 2.4em; }
.spectrum .end-label { display: block; font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.spectrum .end-sub { display: block; font-size: 0.78rem; color: var(--rose); font-weight: 600; }
.spectrum .end.left figcaption { opacity: calc(0.55 + 0.6 * var(--pl)); }
.spectrum .end.right figcaption { opacity: calc(0.55 + 0.6 * var(--pr)); }
.spectrum.unset .end figcaption { opacity: 1; }

.track { position: relative; height: 76px; margin-top: 8px; touch-action: none; cursor: pointer; border-radius: 40px; }
.track-line {
  position: absolute; left: calc(var(--thumb) / 2 - 6px); right: calc(var(--thumb) / 2 - 6px); top: 50%; height: 14px; margin-top: -7px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--pink-soft), var(--lav-soft) 35%, var(--ribbon) 65%, #BFE0D0);
  box-shadow: inset 0 1px 3px rgba(74, 99, 168, 0.18), 0 0 0 3px rgba(255, 255, 255, 0.85);
}
.track-line::before, .track-line::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--ribbon-deep); }
.track-line::before { left: -4px; }
.track-line::after { right: -4px; }
.thumb {
  position: absolute; top: 50%; width: var(--thumb); height: var(--thumb);
  left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p));
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, filter 0.2s;
  pointer-events: none;
}
.thumb svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(74, 99, 168, 0.25)); }
.spectrum.dragging .thumb svg { transform: scale(1.1); }
.spectrum.unset .thumb { opacity: 0.38; filter: grayscale(0.7); }
.track-hint {
  font-size: 0.85rem; font-weight: 700; color: var(--ink-soft); white-space: nowrap; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 4px; pointer-events: none; transition: opacity 0.2s;
}

/* ends of the scale (text cards, guest page has no pictures) */
.spectrum .end-tag { display: block; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 2px; }
.spectrum .end-desc { display: block; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); margin-top: 3px; line-height: 1.25; }
.spectrum.no-images .ends { align-items: stretch; gap: 8px; }
.spectrum.no-images .end figcaption {
  height: 100%; margin: 0; padding: 8px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); transition: transform 0.18s ease-out, opacity 0.18s, box-shadow 0.18s;
}
.spectrum.no-images .end.left figcaption { text-align: left; transform: scale(calc(0.93 + 0.09 * var(--pl))); transform-origin: left bottom; }
.spectrum.no-images .end.right figcaption { text-align: right; transform: scale(calc(0.93 + 0.09 * var(--pr))); transform-origin: right bottom; }
.spectrum.no-images.unset .end figcaption { transform: none; }
.spectrum.no-images .end-label { font-size: 0.95rem; line-height: 1.15; }
.scale-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 0.74rem; font-weight: 700; color: var(--ink-soft); margin-top: -10px; padding: 0 2px; }
.scale-row span:first-child::before { content: '\25C0  '; color: var(--pink-soft); }
.scale-row span:last-child::after { content: '  \25B6'; color: #8CC3AE; }
.scale-row > span:first-child, .scale-row > span:last-child { flex: 0 0 auto; white-space: nowrap; }
.scale-row .scale-mid { flex: 1 1 auto; min-width: 0; font-weight: 600; font-style: italic; color: var(--ink-faint); text-align: center; font-size: 0.68rem; }
.demo .hand { position: absolute; width: 28px; top: 50%; left: calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--p)); margin: 6px 0 0 -9px; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.12)); }
.demo-caption { font-size: 0.85rem; font-weight: 700; color: var(--sage); text-align: center; margin-top: 8px; }
.track-hint span { width: 22px; display: inline-block; animation: tapHint 1.4s ease-in-out infinite; }
.spectrum:not(.unset) .track-hint { opacity: 0; }
@keyframes tapHint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* big (host) slider */
.spectrum.big { --thumb: clamp(80px, 11vmin, 130px); }
.spectrum.big .ends { gap: 10vw; max-width: 900px; margin: 0 auto; }
.spectrum.big .end .framed { width: min(100%, 25vmin); margin: 0 auto; }
.spectrum.big .end-label { font-size: clamp(1.4rem, 3vmin, 2.2rem); }
.spectrum.big .end-desc { font-size: clamp(1rem, 2vmin, 1.4rem); }
.spectrum.big .end-tag { font-size: clamp(0.8rem, 1.5vmin, 1rem); }
.spectrum.big .scale-row { font-size: clamp(1rem, 2vmin, 1.4rem); margin-top: 0; }
.spectrum.big .scale-row .scale-mid { font-size: clamp(0.9rem, 1.7vmin, 1.2rem); }
.spectrum.big .track { height: calc(var(--thumb) + 40px); margin-top: 1.5vh; }
.spectrum.big .track-line { height: 26px; margin-top: -13px; }
.spectrum.big .track-hint { font-size: 1.3rem; }
.spectrum.big .track-hint span { width: 34px; }
.spectrum.big.near-left .end.left .framed, .spectrum.big.near-right .end.right .framed {
  animation: wiggle 0.9s ease-in-out infinite;
  filter: saturate(1.25) brightness(1.03) drop-shadow(0 0 18px rgba(247, 215, 126, 0.9));
}
@keyframes wiggle { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }

/* mini slider */
.mini-slider { margin: 2px 0 0; }
.mini-track { position: relative; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--pink-soft), var(--lav-soft) 35%, var(--ribbon) 65%, #BFE0D0); margin: 0 6px; }
.mini-dot { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--yellow-soft); border: 2px solid #E5BC4F; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.mini-labels { display: flex; justify-content: space-between; gap: 8px; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin-top: 3px; line-height: 1.15; }
.mini-labels span:last-child { text-align: right; }

/* ---------- guest intro ---------- */
.intro-head { text-align: center; }
.intro-head .wordmark { font-size: clamp(3rem, 15vw, 4.1rem); }
.intro-head .kicker { font-family: var(--script); font-size: 1.45rem; color: var(--ink); margin-bottom: 2px; }
.intro-head .sub { font-weight: 700; color: var(--ink); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.86rem; margin-top: 8px; }
.intro-head .sub .ng { color: var(--pink); }
.howto { margin-top: 18px; }
.howto h2 { font-family: var(--script); font-size: 1.9rem; text-align: center; margin-bottom: 8px; }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.howto li { counter-increment: s; position: relative; padding: 6px 0 6px 44px; font-size: 1.02rem; }
.howto li::before {
  content: counter(s); position: absolute; left: 0; top: 4px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff;
  background: var(--pink-soft);
}
.howto li:nth-child(2)::before { background: var(--ribbon-deep); }
.howto li:nth-child(3)::before { background: var(--sage-soft); }
.howto li:nth-child(4)::before { background: var(--lav); }
.demo { margin-top: 14px; padding: 14px 14px 10px; }
.demo-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--sage); padding: 3px 10px; border-radius: 99px; }
.demo-title { font-weight: 700; margin: 6px 0 8px; }
.demo-input { display: flex; align-items: center; min-height: 46px; border-radius: 14px; border: 2px solid var(--line); background: #fff; padding: 0 14px; font-weight: 600; font-size: 1rem; }
.demo-input .caret { display: inline-block; width: 2px; height: 1.2em; background: var(--pink); margin-left: 1px; animation: caret 1s steps(1) infinite; vertical-align: middle; }
.demo-input.idle .caret { visibility: hidden; }
@keyframes caret { 50% { opacity: 0; } }
.final-note { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 16px 0 6px; font-weight: 700; color: var(--rose); }
.name-card { margin-top: 16px; }
.name-card h2 { font-family: var(--script); font-size: 1.8rem; text-align: center; }
.name-card .help { font-size: 0.9rem; color: var(--ink-soft); text-align: center; }
.demo-badge { position: fixed; bottom: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 50; background: var(--yellow-soft); color: #6A5320; font-weight: 700; font-size: 0.75rem; padding: 3px 12px; border-radius: 99px; box-shadow: var(--shadow); }

/* ---------- guest questions ---------- */
.progress { display: flex; justify-content: center; gap: 4px; margin: 0 auto 12px; }
.pdot { width: 30px; height: 30px; transition: transform 0.3s, opacity 0.3s, filter 0.3s; opacity: 0.35; filter: grayscale(1); }
.pdot svg { width: 100%; height: 100%; display: block; }
.pdot.done { opacity: 1; filter: none; transform: scale(0.85); }
.pdot.current { opacity: 1; filter: none; transform: scale(1.18); animation: bob 1.4s ease-in-out infinite; }
.q-num { text-align: center; font-weight: 700; color: var(--rose); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }
.q-text { font-family: var(--script); font-size: clamp(1.7rem, 7.6vw, 2.1rem); text-align: center; margin: 4px 0 16px; line-height: 1.12; }
.q-hint { font-size: 0.9rem; color: var(--sage); font-weight: 700; text-align: center; margin: -4px 0 8px; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.nav .btn { flex: 1; }
.nav .btn.ghost { flex: 0 0 auto; }

/* summary */
.summary-list { display: grid; gap: 10px; margin: 10px 0 0; }
.summary-item { padding: 12px 14px; display: grid; gap: 4px; }
.summary-item .si-q { font-size: 0.86rem; font-weight: 700; color: var(--ink-soft); line-height: 1.25; }
.summary-item .si-a { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.summary-item .si-edit { justify-self: end; background: none; border: 0; color: var(--pink); font-weight: 700; min-height: 44px; padding: 0 6px; margin: -10px -6px -12px 0; cursor: pointer; }
.sending-box { text-align: center; padding: 22px 16px; }
.sending-box .spinner-duck { width: 70px; margin: 0 auto 8px; animation: waddle 0.9s ease-in-out infinite; }
@keyframes waddle { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(60, 75, 120, 0.28); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn 0.2s; backdrop-filter: blur(2px); }
.modal-back.closing { animation: fadeOut 0.18s forwards; }
.modal { max-width: 380px; width: 100%; text-align: center; padding: 22px 20px; background: #FFFEFB; }
.modal h2 { font-size: 2rem; margin: 4px 0 6px; }
.modal-art { width: 90px; margin: 0 auto; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* closed */
.closed-box { text-align: center; padding-top: 10px; }
.closed-box h1 { font-size: 2.6rem; margin: 12px 0 6px; }

/* ---------- snapshot card ---------- */
.snap-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
/* fills a phone screen; on wide screens it stays a ~9:16 card */
.snapshot {
  position: relative;
  width: min(100vw, 62vh);
  height: min(100vh, 210vw);
  container-type: inline-size;
  background: var(--paper);
}
@supports (height: 100dvh) { .snapshot { width: min(100vw, 62dvh); height: min(100dvh, 210vw); } }
.snap-mode .floater, .snap-mode .demo-badge { display: none; }
/* snapshot = the framed page in 'snap' mode; sizes in cqw of the frame so it always fits one screen */
.paper-frame.snap .pf-content { overflow: hidden; }
.paper-frame.snap .framed-content, .paper-frame.snap .screen-in { height: 100%; padding: 0; }
.snap-inner { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.snap-inner .wordmark { font-size: 10.5cqw; align-self: center; }
.snap-name { text-align: center; font-family: var(--script); font-size: 7.4cqw; color: var(--ink); margin: 0; line-height: 1.1; }
.snap-sub { text-align: center; font-size: 2.5cqw; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rose); font-weight: 700; margin: 0; }
.snap-section { margin-top: 1cqw; }
.snap-q { font-size: 2.75cqw; font-weight: 700; color: var(--ink-soft); line-height: 1.2; margin-top: 1.8cqw; }
.snap-a { font-size: 3.25cqw; font-weight: 700; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.snap-inner .mini-slider { margin-top: 0.6cqw; }
.snap-inner .mini-track { height: 1.7cqw; margin: 0 1.6cqw; }
.snap-inner .mini-dot { width: 3.6cqw; height: 3.6cqw; margin: -1.8cqw 0 0 -1.8cqw; border-width: 0.45cqw; }
.snap-inner .mini-labels { font-size: 2.45cqw; margin-top: 0.5cqw; }
.snap-foot { text-align: center; font-size: 2.6cqw; color: var(--ink-soft); font-weight: 600; margin: 0; }
.snap-foot b { color: var(--pink); }

/* ---------- confetti ---------- */
.confetti-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 200; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
