/* Vân Anh & Văn Tùng — wedding invitation.
   Three faces: Brittany Signature (names, ceremonial titles), Cormorant Garamond (headings, labels),
   Be Vietnam Pro (reading text). Phone-sized column on a white page; on desktop the column sits in a card
   between two side panels. */

@font-face{font-family:'Brittany Signature';src:url('../assets/fonts/brittany-signature.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@property --vg-fade{syntax:'<number>';inherits:false;initial-value:0}

:root{
  --page:#FFFFFF; --ink:#2B2538; --muted:#5D566F; --muted-2:#6A637C; --deep:#6E5F94; --deep-2:#544676;
  --band:#F4F1F9; --band-warm:#FBF8F3; --script:#8B6BB0; --tint:#EFEBF7;
  --glass:rgba(255,255,255,.52); --glass-hi:rgba(255,255,255,.75); --line:rgba(110,95,148,.24); --hair:rgba(110,95,148,.14);
  --shadow:0 20px 50px -24px rgba(90,70,130,.28); --inset:inset 0 1px 0 rgba(255,255,255,.85);
  --soft:cubic-bezier(.22,1,.36,1);
  --pearl:linear-gradient(100deg,#B9AADB 0%,#EEEAF7 17%,#A9CCE6 33%,#D9CCF0 50%,#FFFFFF 64%,#B3D2E8 80%,#B9AADB 100%);
  --caps:'Cormorant Garamond',Georgia,serif; --sans:'Be Vietnam Pro',system-ui,sans-serif;
  --col:480px; --r:4px;
}

/* ===== base ===== */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--page);font-variant-numeric:lining-nums}
p,h1,h2,h3,.venue,.lead{text-wrap:balance}
body{font-family:var(--sans);font-weight:300;color:var(--muted);background:var(--page);font-size:14.5px;line-height:1.8;min-height:100dvh;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;opacity:.28;
  background:
    radial-gradient(40% 32% at 14% 14%,rgba(214,204,236,.9) 0,rgba(214,204,236,0) 100%),
    radial-gradient(34% 30% at 88% 30%,rgba(213,229,241,.8) 0,rgba(213,229,241,0) 100%),
    radial-gradient(44% 36% at 72% 86%,rgba(220,211,236,.85) 0,rgba(220,211,236,0) 100%),
    var(--page)}
/* paper grain. It is pure black, so plain alpha blending darkens exactly as multiply would; a blend mode on a fixed,
   page-wide layer costs a lot of memory on iOS */
body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.035;
  background-image: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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
body.locked{overflow:hidden}
/* the couple's photos are not offered for saving: no iOS/Android image callout, no selecting or dragging them out
   (ui.js also drops the right-click / long-press image menu) */
img{display:block;max-width:100%;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit}
section{position:relative}

/* ===== shared pieces ===== */
.sheet,#bar{
  background:var(--glass);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%);
  border:1px solid var(--glass-hi);box-shadow:var(--inset),var(--shadow)}
.caps{font-family:var(--caps);font-style:italic;font-weight:400;letter-spacing:.02em;line-height:1.5;color:var(--deep)}
.hand{font-family:var(--caps);font-style:italic;font-weight:300;color:var(--deep-2);line-height:1}
/* script for the ceremonial words only, like the printed card: gate "Thiệp Mời", party titles, love story, thank you.
   A hairline text-stroke gives the same weight as the drawn names; the word gap keeps the long T bars off the next word */
.script{font-family:'Brittany Signature','Cormorant Garamond',cursive;font-style:normal;font-weight:400;
  letter-spacing:0;word-spacing:.38em;text-transform:capitalize;-webkit-text-stroke:.022em currentColor;line-height:1.5}
/* iridescent pearl hairline */
.hl{display:block;height:1px;flex:1;min-width:20px;background-image:var(--pearl);background-size:100% 100%}
.rule{display:flex;align-items:center;gap:14px}
/* photos are printed straight on the page: square corners, no mat, no shadow */
.print{position:relative;background:#EDE9F4}
.print img{width:100%;height:100%;object-fit:cover;object-position:50% 50%;background:#EDE9F4}
/* one motion language: slow fade + short rise, once, staggered by JS */
html.js .rv{opacity:0;translate:0 16px;transition:opacity .9s var(--soft),translate 1s var(--soft)}
html.js .rv.in{opacity:1;translate:0 0}
/* photos just fade in */
html.js .rv-p{opacity:0;transition:opacity 1s var(--soft)}
html.js .rv-p.in{opacity:1}
/* the story photo is always fully there; only the picture inside settles from a slight zoom */
html.js .story-photo.rv-p{opacity:1;transition:none}
html.js .story-photo.rv-p img{scale:1.08;transition:scale 1.8s var(--soft)}
html.js .story-photo.rv-p.in img{scale:1}

/* ===== phone column ===== */
.phone{position:relative;width:100%;max-width:var(--col);margin:0 auto;min-height:100dvh;overflow-x:clip;container-type:inline-size;background:#fff}
@media (min-width:481px){.phone{box-shadow:0 0 0 1px rgba(255,255,255,.8),0 40px 90px -30px rgba(90,70,130,.35)}}
.fixed-col{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:var(--col)}
/* the action bar is 6+46+6px tall and sits 12px above the bottom: keep content clear of it + 24px */
#page{padding-bottom:calc(58px + 12px + 24px + env(safe-area-inset-bottom))}

/* ===== A & T monogram: ring + sprig draw once on reveal, letters fade in ===== */
.mono-at{display:block;color:#5E4F86}
.mono-at svg{width:100%;height:100%;display:block;overflow:visible}
html.js .mono-at path{stroke-dasharray:1 1;stroke-dashoffset:1;transition:stroke-dashoffset .8s ease-out}
html.js .mono-at text{opacity:0;transition:opacity .4s ease .8s}
html.js .mono-at.on path{stroke-dashoffset:0}
html.js .mono-at.on text{opacity:1}

/* ===== calligraphy: the script lines are the font's own outlines as SVG (1em = 1000 units),
   drawn like a pen, then the ink fills in. Without JS they simply show filled ===== */
svg.ink{height:1.35em;width:auto;overflow:visible;vertical-align:-.42em;fill:currentColor}
svg.ink path{stroke:currentColor;stroke-width:22;stroke-linecap:round;stroke-linejoin:round}
html.js svg.ink.inking path{fill-opacity:0}

/* ===== music toggles ===== */
.snd .snd-on{display:none}
.snd.playing .snd-on{display:block}.snd.playing .snd-off{display:none}
/* the note turns slowly while the music plays, so the button shows at a glance that it is on. The span around it
   turns, not the svg: browsers run an svg's animation on the main thread at 60 fps, a span's on the GPU; the 72
   steps (12 a second) spare the phone bar's glass blur, which is redrawn on every step */
.snd .snd-spin{display:none}
.snd.playing .snd-spin{display:grid;animation:spin 6s steps(72) infinite}
@media (prefers-reduced-motion:reduce){.snd.playing .snd-spin{animation:none}}
.snd.unavailable{opacity:.6}

/* ===== veil gate: "Vén khăn voan" — the golden veil photo lifts into the bright studio hero ===== */
html.vg-locked,html.vg-locked body{overflow:hidden;overscroll-behavior:none}
html.vg-locked .phone{overflow:hidden}
.veil-gate{
  --vg-ivory:#F6EEDF; --vg-ink:38,21,10; --vg-pos:50% 40%;
  position:relative;width:100%;height:100vh;height:100svh;min-height:560px;overflow:hidden;
  /* the low-res thumbnail is the placeholder from the first frame */
  background:#8a6a4c url("../assets/photos/640/DSC02514.jpg?v=49030770ba") var(--vg-pos)/cover no-repeat;
  color:var(--vg-ivory);font-family:var(--sans);
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;
  touch-action:pan-x;isolation:isolate}
.veil-gate:not(.is-open){cursor:pointer}
.veil-gate.is-open{touch-action:auto;cursor:auto}
/* light hero: copy on the studio wall at the top, the whole photo in the lower part. Its lower edge fades into
   the page; the fade grows in with the photo instead of snapping on when the opening ends */
.veil-gate.vg-light-hero{color:#2B2320;background:linear-gradient(180deg,#EEEBEA 0%,#ECE9E8 40%,#E6E3E2 100%);
  --vg-fade:1;transition:--vg-fade 1.2s ease-out;
  -webkit-mask-image:linear-gradient(to bottom,#000 80%,rgba(0,0,0,calc(1 - .5*var(--vg-fade))) 91%,rgba(0,0,0,calc(1 - var(--vg-fade))));
          mask-image:linear-gradient(to bottom,#000 80%,rgba(0,0,0,calc(1 - .5*var(--vg-fade))) 91%,rgba(0,0,0,calc(1 - var(--vg-fade))))}
.veil-gate .vg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--vg-pos);opacity:0;display:block}
.veil-gate .vg-photo2{position:absolute;left:0;top:27%;width:100%;height:73%;object-fit:cover;object-position:50% 0%;opacity:0;display:block;
  transform-origin:50% 0%;will-change:transform,opacity}
.veil-gate.vg-light-hero .vg-photo,.veil-gate.vg-light-hero .vg-bloom{visibility:hidden}
/* warm light bloom across the couple while the veil lifts */
.veil-gate .vg-bloom{position:absolute;left:-20%;right:-20%;top:6%;height:62%;pointer-events:none;opacity:0;mix-blend-mode:screen;
  background:radial-gradient(50% 50% at 50% 46%,rgba(255,214,158,.62),rgba(255,196,128,.22) 46%,rgba(255,190,120,0) 72%)}
.veil-gate .vg-wallfade{position:absolute;left:0;right:0;top:27%;height:11%;pointer-events:none;opacity:0;
  background:linear-gradient(to bottom,#ECE9E8 0%,rgba(236,233,232,.6) 45%,rgba(236,233,232,0) 100%)}
.veil-gate .vg-whiteout{position:absolute;inset:0;pointer-events:none;opacity:0;will-change:opacity;
  background:radial-gradient(90% 70% at 50% 42%,#FFFBF3 0%,#FAF4EA 55%,#F1E9DC 100%)}

/* monogram + gate copy, under the veil */
.veil-gate .vg-crest{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none;text-align:center}
/* sized by its own text (a guest's name can be long), not squeezed into the half width left of its anchor */
.veil-gate .vg-crest{width:max-content;max-width:86%}
.veil-gate .vg-mono{width:clamp(140px,40vw,160px);height:clamp(140px,40vw,160px);color:var(--vg-ivory);opacity:0;transform-origin:50% 50%;filter:drop-shadow(0 1px 6px rgba(var(--vg-ink),.35))}
.veil-gate .vg-mono svg{width:100%;height:100%;display:block;overflow:visible}
.veil-gate .vg-gatecopy{opacity:0;margin-top:14px}
.veil-gate .vg-kicker{font-size:30px;margin:0;text-shadow:0 1px 8px rgba(var(--vg-ink),.45)}
/* the guest's name on a frosted-glass label with an ivory hairline, so it reads over the photo */
.veil-gate .vg-guest{margin:12px 0 0;display:flex;flex-direction:column;align-items:center;gap:6px}
.veil-gate .vg-guest[hidden]{display:none}
.veil-gate .vg-guest-to{font-size:10.5px;font-weight:400;letter-spacing:.24em;text-indent:.24em;text-transform:uppercase;text-shadow:0 1px 6px rgba(var(--vg-ink),.6)}
.veil-gate .vg-guest-name{max-width:100%;padding:5px 18px 6px;border-radius:22px;border:1px solid rgba(246,238,223,.55);
  background:rgba(255,250,243,.14);-webkit-backdrop-filter:blur(6px) saturate(1.2);backdrop-filter:blur(6px) saturate(1.2);
  font-family:var(--caps);font-style:italic;font-weight:500;font-size:20px;line-height:1.3;letter-spacing:.01em;text-wrap:balance;
  text-shadow:0 1px 6px rgba(var(--vg-ink),.55)}

/* the veil: back sheet of tulle + front drape (SVG folds, animated hem) */
.veil-gate .vg-veil{position:absolute;inset:0;pointer-events:none}
.veil-gate .vg-sheet,.veil-gate .vg-drape{position:absolute;left:-2%;right:-2%;top:0;height:100%;transform-origin:50% 0}
.veil-gate .vg-sheet{
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='.32'/></svg>"),
    linear-gradient(90deg,
      rgba(255,246,232,.00) 0%,  rgba(255,246,232,.14) 4%,  rgba(255,246,232,.03) 8%,
      rgba(255,246,232,.10) 13%, rgba(90,58,32,.06) 17%,   rgba(255,246,232,.18) 22%,
      rgba(255,246,232,.04) 27%, rgba(255,246,232,.09) 33%, rgba(90,58,32,.05) 38%,
      rgba(255,246,232,.06) 44%, rgba(255,246,232,.02) 50%, rgba(255,246,232,.08) 57%,
      rgba(90,58,32,.07) 62%,    rgba(255,246,232,.20) 68%, rgba(255,246,232,.05) 73%,
      rgba(255,246,232,.12) 79%, rgba(90,58,32,.05) 85%,   rgba(255,246,232,.16) 91%,
      rgba(255,246,232,.04) 96%, rgba(255,246,232,.10) 100%),
    linear-gradient(to bottom,rgba(246,236,220,.13) 0%,rgba(246,236,220,.08) 32%,rgba(246,236,220,.15) 60%,rgba(246,236,220,.24) 96%);
  background-size:160px 160px,100% 100%,100% 100%;
  -webkit-mask-image:linear-gradient(to top,transparent 0,rgba(0,0,0,.55) 9%,#000 22%);
          mask-image:linear-gradient(to top,transparent 0,rgba(0,0,0,.55) 9%,#000 22%)}
.veil-gate .vg-drape svg{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:visible}
.veil-gate .vg-light{position:absolute;inset:0;
  background:
    linear-gradient(93deg,transparent 18.2%,rgba(255,226,180,.20) 19%,rgba(255,240,214,.34) 19.4%,rgba(255,226,180,.10) 20.2%,transparent 21.5%),
    linear-gradient(88deg,transparent 63.5%,rgba(255,226,180,.16) 64.4%,rgba(255,242,220,.30) 64.8%,rgba(255,226,180,.08) 65.8%,transparent 67%),
    linear-gradient(91deg,transparent 77%,rgba(255,220,170,.14) 78%,rgba(255,236,206,.22) 78.5%,transparent 80%),
    linear-gradient(89deg,transparent 39%,rgba(255,226,180,.10) 40%,rgba(255,236,206,.16) 40.4%,transparent 41.6%);
  -webkit-mask-image:linear-gradient(to bottom,rgba(0,0,0,.35) 0%,#000 35%,#000 80%,rgba(0,0,0,.4) 100%);
          mask-image:linear-gradient(to bottom,rgba(0,0,0,.35) 0%,#000 35%,#000 80%,rgba(0,0,0,.4) 100%)}

/* tap control: two rings in a hairline circle, a soft halo pulsing outward */
.veil-gate .vg-touch{position:absolute;left:50%;bottom:calc(5.5vh + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:10px;background:none;border:0;padding:8px 18px;margin:0;
  color:var(--vg-ivory);font:inherit;cursor:pointer;opacity:0;-webkit-tap-highlight-color:transparent;border-radius:12px;outline:none}
.veil-gate .vg-touch:focus-visible{box-shadow:0 0 0 1px rgba(246,238,223,.7)}
.veil-gate .vg-mark{position:relative;width:60px;height:60px;display:block}
.veil-gate .vg-mark svg{width:100%;height:100%;display:block;overflow:visible;filter:drop-shadow(0 1px 3px rgba(var(--vg-ink),.35))}
.veil-gate .vg-mark-in{display:block;width:100%;height:100%;animation:vg-breathe 2.8s ease-in-out infinite}
.veil-gate .vg-mark::after{content:"";position:absolute;inset:9px;border-radius:50%;border:1px solid rgba(246,238,223,.7);animation:vg-halo 2.8s ease-out infinite;pointer-events:none}
@keyframes spin{to{rotate:360deg}}
@keyframes vg-breathe{0%,100%{opacity:.72}50%{opacity:1}}
@keyframes vg-halo{0%{transform:scale(1);opacity:.8}100%{transform:scale(1.75);opacity:0}}
.veil-gate .vg-label{font-family:var(--caps);font-style:italic;font-size:17px;font-weight:400;letter-spacing:.01em;white-space:nowrap;text-shadow:0 1px 8px rgba(var(--vg-ink),.55)}
.veil-gate .vg-ripple{position:absolute;left:0;top:0;width:160px;height:160px;margin:-80px 0 0 -80px;border-radius:50%;pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,rgba(246,238,223,0) 52%,rgba(246,238,223,.55) 70%,rgba(246,238,223,.16) 84%,rgba(246,238,223,0) 100%)}

/* hero copy, shown on the light hero only */
/* the monogram once the veil is up (veil-gate.js moves it here from the crest): top centre, --vg-mark wide */
.veil-gate .vg-mono.vg-mono-settled.vg-mono-settled{position:absolute;left:calc(50% - var(--vg-mark,44px) / 2);top:max(26px,5.5%);width:var(--vg-mark,44px);height:var(--vg-mark,44px)}   /* no transform: GSAP owns those */
/* below the settled monogram (--vg-mark, set by veil-gate.js) with 32px between them */
.veil-gate .vg-hero{position:absolute;left:0;right:0;top:calc(max(26px,5.5%) + 32px + var(--vg-mark,44px));display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 16px;pointer-events:none}
.veil-gate .vg-hero>*{opacity:0}
.veil-gate .vg-h-kicker{margin:0;font-family:var(--caps);font-style:italic;font-size:18px;font-weight:400;letter-spacing:.01em;color:rgba(43,35,32,.75)}
/* Brittany Signature has long ascenders/descenders: a taller line so the tails clear the rule below */
.veil-gate .vg-hero>.vg-names{opacity:1;margin:2px 0 0;font-family:'Brittany Signature','Cormorant Garamond',cursive;font-weight:400;
  font-size:clamp(26px,8vw,40px);line-height:1.45;white-space:nowrap;color:var(--script);
  display:flex;flex-wrap:nowrap;justify-content:center;column-gap:.22em}
.veil-gate .vg-names span{display:inline-block;opacity:0}
.veil-gate .vg-names .vg-amp{font-size:.7em;align-self:center;color:var(--deep)}
.veil-gate .vg-hero>.vg-rule{opacity:1;width:64px;height:1px;margin:14px 0 9px;background:rgba(43,35,32,.45);transform:scaleX(0)}
.veil-gate .vg-date{margin:0;font-family:var(--caps);font-size:18px;font-weight:500;letter-spacing:.12em;text-indent:.16em}
.veil-gate .vg-venue{margin:6px 0 0;font-size:12px;font-weight:300;letter-spacing:.08em;color:rgba(43,35,32,.72)}

/* landscape phones: keep heads in frame and move the crest below the faces */
@media (orientation:landscape) and (min-aspect-ratio:1/1) and (max-height:600px){
  .veil-gate{--vg-pos:50% 15%}
  .veil-gate .vg-crest{top:64%}
  .veil-gate .vg-mono{width:124px;height:124px}
  .veil-gate .vg-touch{bottom:5.5vh}
}
/* without GSAP (CDN blocked) the gate shows the settled hero */
.veil-gate.vg-nogsap .vg-photo2,.veil-gate.vg-nogsap .vg-wallfade,.veil-gate.vg-nogsap .vg-mono,.veil-gate.vg-nogsap .vg-hero>*,.veil-gate.vg-nogsap .vg-names span{opacity:1}
.veil-gate.vg-nogsap .vg-rule{transform:none}
.veil-gate.vg-nogsap .vg-touch{opacity:1}   /* nothing animates it in: the open control must still show */
/* the gate copy keeps its box: the crest is centred on its own height, so removing it would drop the monogram */
.veil-gate.is-open .vg-veil,.veil-gate.is-open .vg-touch{display:none}
.veil-gate.is-open .vg-gatecopy{visibility:hidden}
.veil-gate.is-open .vg-photo2{will-change:auto}

/* ===== countdown ===== */
.sec-count{padding:16px 7cqw 8px;text-align:center;overflow:hidden}
.sec-count .hand{font-size:min(8.6cqw,38px);white-space:nowrap;position:relative;z-index:1}
.count{position:relative;z-index:1;margin-top:30px;border-radius:var(--r);border-block:1px solid var(--hair);display:grid;grid-template-columns:repeat(4,1fr);padding:22px 0 20px}
.count .cell{position:relative;display:flex;flex-direction:column;align-items:center}
.count .cell+.cell::before{content:"";position:absolute;left:0;top:12%;bottom:12%;width:1px;background:var(--pearl);background-size:100% 300%;opacity:.9}
.count .num{font-family:var(--caps);font-weight:300;font-size:min(11.5cqw,52px);line-height:1;color:var(--ink);font-variant-numeric:lining-nums tabular-nums}
.count .lab{font-family:var(--caps);font-style:italic;font-weight:400;letter-spacing:.02em;font-size:15px;margin-top:4px;color:var(--deep)}

/* ===== invitation ===== */
.sec-invite{padding:40px 7cqw 20px;text-align:center}
.parents{display:grid;grid-template-columns:1fr 1fr;gap:3cqw}
.parents .side .caps{font-size:16px;margin-bottom:8px}
.parents .side p{font-size:min(3.75cqw,14.5px);line-height:1.75;color:var(--muted)}
.parents .side b{font-weight:400;color:var(--ink);white-space:nowrap}
.parents .side:first-child{text-align:left}
.parents .side:last-child{text-align:right}
/* everything on one centred axis: one photo, a small seal, "Trân Trọng Kính Mời", the invitation line */
.invite{position:relative;margin:0 -7cqw;text-align:center;padding-top:44px}
.invite .print{width:78cqw;margin:0 auto;overflow:hidden;aspect-ratio:4/5}
.invite .print img{object-position:50% 45%}
.invite-mono{display:block;width:11cqw;margin:26px auto 16px}
.invite-mono .mono-at{display:block;width:100%;height:auto;aspect-ratio:1}
.invite-title{font-family:'Brittany Signature','Cormorant Garamond',cursive;font-weight:400;font-size:min(8.6cqw,38px);line-height:1.6;white-space:nowrap;color:var(--script);text-align:center;margin:0 0 18px}
/* the guest's name between two short lavender hairlines, like the name line on the printed card. Each hairline is
   tied to the first/last word (invite.js). They keep their space but stay invisible until invite.js has measured the
   name: shown when it fits on one line, dropped when it wraps, so the balanced lines sit centred */
.invite-guest{width:86cqw;margin:-6px auto 10px;font-family:var(--caps);font-style:italic;font-weight:500;font-size:min(7.2cqw,28.5px);line-height:1.3;color:var(--deep-2);text-wrap:balance}
.invite-guest .edge{white-space:nowrap}
.invite-guest .edge:first-child::before,.invite-guest .edge:last-child::after{content:"";display:inline-block;width:.85em;height:1px;vertical-align:.3em;visibility:hidden}
.invite-guest.one-line .edge::before,.invite-guest.one-line .edge::after{visibility:visible}
.invite-guest.is-multiline .edge::before,.invite-guest.is-multiline .edge::after{display:none}
.invite-guest .edge:first-child::before{margin-right:.4em;background:linear-gradient(90deg,rgba(110,95,148,0),rgba(110,95,148,.5))}
.invite-guest .edge:last-child::after{margin-left:.4em;background:linear-gradient(90deg,rgba(110,95,148,.5),rgba(110,95,148,0))}
.invite-line{width:76cqw;margin:0 auto;font-size:15.5px;color:var(--muted);text-align:center}

/* ===== parties ===== */
.sec-event{margin-top:64px;padding:0 0 10px;overflow:hidden}
.sec-event .print{width:78cqw;margin:0 auto;aspect-ratio:4/5}
.ev{position:relative;z-index:3;margin:0 6cqw;border-radius:var(--r);text-align:center}
.ev-list .ev:first-child{margin-top:28px}
.ev-list .ev+.ev{margin-top:52px;padding-top:44px;border-top:1px solid var(--hair)}
.ev-side{font-family:var(--caps);font-style:italic;font-size:17px;color:var(--deep);margin-bottom:6px}
.ev .title{font-size:min(11cqw,46px);color:var(--script);position:relative;z-index:2}
.ev .hl{width:40%;margin:20px auto 18px;flex:none}
.ev .when{font-family:var(--caps);font-size:min(6.2cqw,26px);color:var(--ink);font-weight:400;letter-spacing:.06em;font-variant-numeric:lining-nums}
.ev .lunar{font-family:var(--caps);font-style:italic;font-size:16px;margin-top:6px;color:var(--muted-2)}
.ev .venue{font-family:var(--caps);font-style:italic;font-weight:400;font-size:min(5.4cqw,22px);letter-spacing:.02em;margin-top:20px;color:var(--ink);line-height:1.45}
.ev .addr{font-size:14.5px;max-width:30em;margin:6px auto 0;color:var(--muted);text-wrap:balance}
.ev .btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:24px}
.ev .btns .pill{min-width:200px;justify-content:center}

/* buttons: outlined pills; the primary one a pale tint + hairline instead of a solid lavender block */
.pill{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(110,95,148,.42);color:var(--ink);border-radius:999px;padding:12px 22px;background:rgba(255,255,255,.5);
  font-family:var(--sans);letter-spacing:.01em;font-weight:400;font-size:14px;text-decoration:none;
  transition:background .45s var(--soft),color .45s var(--soft),border-color .45s var(--soft)}
.pill:hover{background:rgba(110,95,148,.86);color:#fff;border-color:transparent}
.pill svg{width:15px;height:15px}
.btn{display:block;width:100%;color:var(--ink);font-family:var(--sans);letter-spacing:.01em;font-weight:400;font-size:15px;padding:14px;border-radius:999px;text-align:center;
  transition:background .45s var(--soft),color .45s var(--soft),border-color .45s var(--soft)}
.pill-main,.btn{background:var(--tint);color:var(--ink);border:1px solid rgba(110,95,148,.42)}
.pill-main:hover,.btn:hover{background:#E4DEF1;color:var(--ink);border-color:rgba(110,95,148,.55)}
.pill:active,.btn:active{scale:.985}
/* touch screens: no sticky hover fills after a tap */
@media (hover:none){
  .pill:hover{background:rgba(255,255,255,.5);color:var(--ink);border-color:rgba(110,95,148,.42)}
  .pill-main:hover,.btn:hover{background:var(--tint);color:var(--ink);border-color:rgba(110,95,148,.42)}
}

/* ===== paper calendar ===== */
.sec-cal{margin-top:72px;padding:56px 9cqw 60px;background:var(--band)}
.paper{position:relative;padding:36px 6cqw 30px;text-align:center;border:1px solid rgba(110,95,148,.14);background:#FCFBF8;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .5 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>")}
.paper .mtitle{font-family:var(--caps);font-style:italic;font-weight:300;font-size:min(10cqw,44px);color:var(--ink);line-height:1.1}
.paper .hl{margin:20px auto 18px;width:70%;flex:none}
.hy,.seal{display:grid;place-items:center;background:#A8322D;color:#FBF3EE;border-radius:4px;
  font-family:"PingFang SC","Hiragino Sans GB","Noto Serif SC","Songti SC",serif;line-height:1;box-shadow:0 4px 10px -4px rgba(120,30,30,.45);opacity:.94}
.hy{position:absolute;right:5cqw;top:-12px;width:30px;height:30px;rotate:8deg;font-size:19px}
.grid7{display:grid;grid-template-columns:repeat(7,1fr);gap:2px 0;font-family:var(--caps);font-size:min(4.6cqw,20px);font-weight:500;font-variant-numeric:lining-nums}
.grid7 .wd{font-style:italic;font-size:14px;color:var(--deep);padding-bottom:6px}
.grid7 .d{position:relative;aspect-ratio:1;display:grid;place-items:center;grid-template-rows:auto auto;align-content:center;row-gap:1px;color:var(--ink)}
.grid7 .d span{line-height:1}
/* wedding days: soft lavender discs */
.grid7 .d.mark span{position:relative;z-index:1;color:var(--deep-2);font-weight:600}
.grid7 .d.mark::before{content:"";position:absolute;inset:9%;border-radius:50%;background:var(--tint);box-shadow:inset 0 0 0 1px rgba(110,95,148,.45)}
/* small lunar date under each day; the first day of the lunar month a touch darker */
.grid7 .lu{position:relative;z-index:1;font-family:var(--sans);font-size:min(2.3cqw,10px);font-weight:300;color:var(--muted-2);line-height:1;letter-spacing:.02em}
.grid7 .lu1{color:var(--deep);font-weight:400}
.grid7 .d.mark .lu{color:var(--deep-2)}
.cal-key{list-style:none;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--hair);display:grid;gap:8px;text-align:left}
.cal-key li{display:flex;align-items:center;gap:12px;justify-content:center}
.ck-d{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--tint);box-shadow:inset 0 0 0 1px rgba(110,95,148,.45);
  font-family:var(--caps);font-weight:600;font-size:15px;color:var(--deep-2);font-variant-numeric:lining-nums}
.ck-t{font-family:var(--caps);font-style:italic;font-size:17px;color:var(--ink);min-width:12.5em}

/* ===== schedule: the road from Hà Nội (left column) to Nghệ An (right column) ===== */
.sec-plan{margin-top:76px;padding:0 7cqw 64px}
.plan-h{font-family:var(--caps);font-style:italic;font-weight:300;font-size:min(9cqw,40px);line-height:1.15;color:var(--ink);text-align:center;margin-bottom:26px}
.road{position:relative;--gut:min(24cqw,96px)}
.road-svg{position:absolute;left:0;top:0;width:100%;overflow:visible;pointer-events:none}
.rd-shadow{fill:none;stroke:rgba(110,95,148,.12);stroke-width:25;stroke-linecap:round}
.rd-kerb{fill:none;stroke:#DCD3EC;stroke-width:23;stroke-linecap:round}
.rd-band{fill:none;stroke:#F3F0F9;stroke-width:18;stroke-linecap:round}
.rd-dash{fill:none;stroke:#CBC0E0;stroke-width:1.4;stroke-dasharray:7 8;stroke-linecap:round}
.rd-stop{fill:#fff;stroke:var(--deep);stroke-width:1.3;transition:fill .4s}
.rd-stop.past{fill:var(--deep)}
.rd-day{fill:#B9AADB;stroke:#fff;stroke-width:2}
.rd-badge{fill:#fff;stroke:rgba(110,95,148,.45);stroke-width:1}
.rd-ic{fill:none;stroke:var(--deep-2);stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round}
.road-cols{display:grid;grid-template-columns:1fr var(--gut) 1fr;align-items:start}
.road-col{min-width:0}
.road-col[data-side="hn"]{grid-column:1;text-align:right}
.road-col[data-side="na"]{grid-column:3;text-align:left}
.road-col[data-side="hn"] .rr{align-items:flex-end}
.road-col[data-side="hn"] .rr-name{justify-content:flex-end}
.road-col[data-side="hn"] .rr-scene svg{margin-left:auto}
.rr{position:relative}
.rr-place{display:flex;flex-direction:column;align-items:flex-start;padding:12px 0 8px}
.rr-name{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px}
.rr-name b{font-family:var(--caps);font-weight:500;font-size:min(5.8cqw,24px);color:var(--ink);letter-spacing:.01em}
.rr-name span{font-family:var(--caps);font-style:italic;font-size:min(4cqw,16px);color:var(--deep)}
.rr-scene svg{display:block;width:100%;max-width:150px;height:auto;margin-bottom:6px;stroke-linecap:round;stroke-linejoin:round}
.rr-day{display:flex;flex-direction:column;padding:8px 0 4px}
.rr-day b{font-family:var(--caps);font-weight:500;font-size:min(4.6cqw,18px);color:var(--ink)}
.rr-day span{font-family:var(--caps);font-style:italic;font-size:14px;color:var(--muted-2)}
.rr-stop{display:flex;flex-direction:column;padding:4px 0 10px}
.rr-t{font-family:var(--caps);font-size:min(4.4cqw,17px);font-weight:500;color:var(--deep-2);font-variant-numeric:lining-nums;line-height:1.5}
.rr-w{font-size:14px;color:var(--ink);line-height:1.5}
.rr-p{text-wrap:balance;font-size:12.5px;color:var(--muted-2);line-height:1.5}
/* town scenes */
.sc-b{fill:#F3F0F9;stroke:var(--deep);stroke-width:.9}
.sc-l{fill:none;stroke:var(--deep);stroke-width:.9}
.sc-cloud{fill:#fff;stroke:rgba(110,95,148,.55);stroke-width:.8}
.sc-tree{fill:#E1EBE0;stroke:#8FA98E;stroke-width:.8}
.sc-sun{fill:#F8E6EE;stroke:#C69AB1;stroke-width:.9}
.sc-mtn{fill:#ECE7F5;stroke:var(--deep);stroke-width:.9}
.sc-hill{fill:#E3ECE1;stroke:#8FA98E;stroke-width:.9}
.sc-sea{fill:#E4ECF6;stroke:none}
.sc-boat{fill:#fff;stroke:var(--deep);stroke-width:.9}
.sc-sail{fill:#F8E6EE;stroke:var(--deep);stroke-width:.9}
/* the wedding car: centred on the road, bonnet down; it turns with the road */
.road-car{position:absolute;left:0;top:0;width:0;height:0;z-index:2;pointer-events:none;will-change:transform}
.road-car .car{position:absolute;left:calc(min(15cqw,60px) / -2);top:calc(min(15cqw,60px) * -.66);width:min(15cqw,60px);height:auto;overflow:visible;stroke-linecap:round;stroke-linejoin:round}
.road-car.moving .car{animation:car-bob .45s ease-in-out infinite alternate}
@keyframes car-bob{to{translate:0 -1px}}
.road-car .car-trail{opacity:0;transition:opacity .4s}
.road-car.moving .car-trail{opacity:1}
.car-shadow{fill:rgba(90,70,130,.2);stroke:none}
.car-tyre rect{fill:#3B3346;stroke:none}
.car-body{fill:#F6F3FB;stroke:var(--ink);stroke-width:1.3}
.car-cabin{fill:#E7E1F2;stroke:var(--ink);stroke-width:1}
.car-shield{fill:rgba(214,226,242,.75);stroke:var(--ink);stroke-width:1}
.car-line{fill:none;stroke:rgba(43,37,56,.55);stroke-width:.9}
.car-lamp{fill:#fff;stroke:var(--ink);stroke-width:1}
.car-grille{fill:#E7E1F2;stroke:var(--ink);stroke-width:1}
.car-skin{fill:#F7E9DF;stroke:var(--ink);stroke-width:.8}
.car-hair{fill:#3B3346;stroke:none}
.car-eye{fill:none;stroke:#3B3346;stroke-width:1.1}
.car-dot{fill:#3B3346}
.car-glass{fill:rgba(255,255,255,.35);stroke:#3B3346;stroke-width:.9}
.car-cheek{fill:#F4B6C6;opacity:.75}
.car-tie{fill:var(--deep-2)}
.car-crown circle{fill:#F2CFDD;stroke:#B98BA6;stroke-width:.5}
.car-crown circle:nth-child(n+4){fill:#DCD3EC;stroke:#9C8CC2}
.car-bouq circle{fill:#fff;stroke:#B98BA6;stroke-width:.6}
.car-bouq circle:nth-child(2){fill:#F2DCE6}
.car-bouq path{fill:#9DB59B}
.car-dress{fill:#fff;stroke:var(--ink);stroke-width:.8}
.car-suit{fill:#3B3346;stroke:var(--ink);stroke-width:.8}
.car-shirt{fill:#fff;stroke:#fff;stroke-width:1}
.car-veil{fill:rgba(255,255,255,.92);stroke:rgba(110,95,148,.55);stroke-width:.7}
.car-bloom circle{fill:#F2DCE6;stroke:#B98BA6;stroke-width:.7}
.car-bloom circle:nth-child(2n){fill:#E6DFF4;stroke:#9C8CC2}
.car-leaf{fill:#B9CDB8;stroke:none}
.car-bow{fill:#EADFF3;stroke:var(--deep);stroke-width:.9}
.car-trail path{fill:#D9CBEA;stroke:none}

/* ===== RSVP ===== */
.sec-rsvp{margin-top:0;padding:64px 6cqw;overflow:hidden;background:var(--band)}
.sec-rsvp .lead{position:relative;z-index:1;font-size:15px;line-height:1.8;text-align:center;padding:0 3cqw 26px;color:var(--muted)}
.card{position:relative;z-index:1;border-radius:var(--r);padding:32px 6cqw 28px;background:#fff;border:1px solid var(--hair)}
.card h3{font-family:var(--caps);font-style:italic;font-weight:300;font-size:min(9cqw,40px);line-height:1.15;white-space:nowrap;text-align:center;color:var(--ink)}
.card .hl{width:40%;margin:14px auto 22px;flex:none}
.f{margin-bottom:16px}
fieldset.f{border:0;padding:0;min-width:0}
fieldset.f legend{padding:0}
.f .l{display:block;font-size:14.5px;font-weight:400;color:var(--muted);margin-bottom:8px}
.f .l .opt{font-family:var(--caps);font-style:italic;font-size:15px;color:var(--muted-2);opacity:.85}
.f input[type=text],.f select,.f textarea{width:100%;font:inherit;font-size:16px;color:var(--ink);padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);background:rgba(255,255,255,.66);outline:0}
.f input::placeholder,.f textarea::placeholder{color:#8F88A2}
.f input:focus,.f select:focus,.f textarea:focus{border-color:var(--deep);box-shadow:0 0 0 3px rgba(110,95,148,.14)}
.f select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%236E5F94' stroke-width='1.5'/></svg>");background-repeat:no-repeat;background-position:right 14px center}
.f .bad{border-color:var(--deep)}
/* attendance: two side-by-side choices */
.seg{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border:1px solid var(--line);border-radius:var(--r);background:#fff}
.radio{display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;font-weight:400;line-height:1.35;text-align:center;color:var(--muted);
  padding:10px 8px;border-radius:3px;cursor:pointer;transition:background .3s var(--soft),color .3s var(--soft)}
.radio input{position:absolute;opacity:0;width:1px;height:1px;appearance:none;-webkit-appearance:none}
.radio:has(input:checked){background:var(--tint);color:var(--ink);box-shadow:inset 0 0 0 1px rgba(110,95,148,.42)}
.radio:has(input:focus-visible){outline:2px solid var(--deep);outline-offset:2px}
/* parties: pick one or both; hidden with the guest count when the guest is not coming */
.picks{display:grid;gap:8px}
.pick{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r);background:#fff;cursor:pointer;transition:background .3s var(--soft),border-color .3s var(--soft)}
.pick input{appearance:none;-webkit-appearance:none;flex:none;width:18px;height:18px;margin-top:2px;border:1px solid rgba(110,95,148,.55);border-radius:3px;display:grid;place-items:center;background:#fff}
.pick input::after{content:"";width:9px;height:5px;border:solid var(--deep-2);border-width:0 0 1.6px 1.6px;rotate:-45deg;translate:0 -1px;opacity:0;transition:opacity .2s}
.pick input:checked::after{opacity:1}
.pick input:focus-visible{outline:2px solid var(--deep);outline-offset:2px}
.pick:has(input:checked){background:var(--tint);border-color:rgba(110,95,148,.42)}
.pick-t{display:block;font-size:14.5px;color:var(--ink);line-height:1.4}
.pick-s{display:block;font-size:13px;color:var(--muted-2);margin-top:2px}
#evField.err .pick{border-color:#B0574A}
#rsvpForm.no-attend .f-yes{display:none}
.btn[disabled]{opacity:.6;cursor:progress}
.thanks{display:none;text-align:center;padding:10px 4px 4px}
.thanks .mono-at{width:96px;height:96px;margin:0 auto 10px}
.thanks p{font-size:15.5px;line-height:1.75;color:var(--ink)}
.card.done form{display:none}.card.done .thanks{display:block}

/* ===== wishes on the page (phones): the latest few, just before the thanks, written straight on a lavender band
   that grows out of the áo dài set's ivory and melts back into the ivory the closing photo rises from ===== */
.sec-wishes{padding:72px 9cqw 80px;text-align:center;
  background:linear-gradient(to bottom,var(--band-warm) 0,var(--band) 90px,var(--band) calc(100% - 90px),var(--band-warm) 100%)}
.wish-wall{display:grid}
.wish-wall .wish{background:none;border:0;border-radius:0;padding:16px 0}
.wish-wall .wish+.wish{border-top:1px solid rgba(110,95,148,.16)}
.wish-wall .wish b{font-family:var(--caps);font-style:italic;font-weight:400;font-size:17px;color:var(--deep);margin-bottom:4px}
.wish-wall .wish p{font-size:14.5px;line-height:1.7;color:var(--muted)}
/* on the page the sticker sits under the words and the reactions are centred, like the text */
.wish-wall .wish.has-stk{display:flex;flex-direction:column;align-items:center}
.wish-wall .wish .wish-stk{width:54px;height:54px;margin-top:8px}
.wish-wall .reacts{justify-content:center}
.wish-more{margin-top:22px;min-width:200px;justify-content:center}

/* ===== love story: one photo edge to edge, its lower edge blurring into a lavender band that carries the text ===== */
.story{background:linear-gradient(var(--band) 0,var(--band) 120px,transparent 120px)}
.story-photo{width:100%;height:150cqw;background:#D9DBE0;  /* the photo's own grey, so nothing pale shows before it loads */
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 56px);mask-image:linear-gradient(to bottom,transparent 0,#000 56px)}
.story-photo img{object-position:50% 40%}
.story-photo::after{content:"";position:absolute;left:0;right:0;bottom:0;height:15%;pointer-events:none;
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  background:linear-gradient(to bottom,rgba(244,241,249,0) 0%,rgba(244,241,249,.55) 45%,rgba(244,241,249,.92) 80%,var(--band) 100%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 45%);mask-image:linear-gradient(to bottom,transparent 0%,#000 45%)}
.story-body{position:relative;z-index:2;padding:0 7cqw 44px;text-align:left;background:var(--band)}
.story-h{font-size:min(12cqw,52px);color:var(--script);margin:0 0 .25em;translate:0 -.45em;position:relative;z-index:2}
.story-body p{font-size:14.5px;line-height:1.85;color:var(--muted);text-wrap:pretty}  /* long paragraphs fill the line */
.story-body p+p{margin-top:12px}
.story-body p.close{font-family:var(--caps);font-style:italic;font-weight:400;font-size:min(5.6cqw,24px);line-height:1.3;color:var(--deep-2);margin-top:16px;text-align:left;text-wrap:balance}
/* the right column holds the film strip; it keeps the width the text was laid out for */
.story-row{display:grid;grid-template-columns:1fr 20cqw;column-gap:6cqw;align-items:start}

/* film strip: everyday photos roll upwards on a frosted lavender band with sprocket holes down both sides, as tall
   as the story text; it cannot be paused or opened (it only stops while off screen, to save the phone's battery).
   film.js sets the loop's length */
.film{position:relative;align-self:stretch;margin-top:6px;overflow:hidden;pointer-events:none;
  background:linear-gradient(90deg,rgba(184,166,220,.55),rgba(160,140,205,.55));border-inline:1px solid rgba(110,95,148,.35);
  -webkit-mask-image:linear-gradient(180deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(180deg,transparent,#000 10%,#000 90%,transparent)}
.film::before,.film::after{content:"";position:absolute;top:0;bottom:0;width:7px;
  background:radial-gradient(circle at 3.5px 7px,#F7F5FB 2.6px,rgba(110,95,148,.5) 2.9px,transparent 3.3px) 0 0/7px 16px repeat-y}
.film::before{left:3px}.film::after{right:3px}
/* the track is taken out of the flow, so the strip is exactly as tall as the text beside it */
.film-track{position:absolute;top:0;left:13px;right:13px;display:flex;flex-direction:column;gap:6px;animation:roll var(--film-loop,40s) linear infinite}
.film.off .film-track{animation-play-state:paused}
.film-track img{width:100%;height:auto;border-radius:2px;background:#DCD3EC;box-shadow:0 0 0 1px rgba(255,255,255,.6)}
@keyframes roll{to{transform:translateY(calc(-50% - 3px))}}

/* ===== album: a flat, even grid; two wide photos break it ===== */
.sec-album{margin-top:80px}
.album-lead{position:relative;margin-top:28px;display:grid;grid-template-columns:1fr 1fr;gap:1.5cqw;padding:0 4cqw}
.album-lead .print{aspect-ratio:3/4;cursor:zoom-in}
.album-lead .print:first-child img{object-position:50% 40%}
.album-lead .print:last-child{z-index:1}
.album{display:grid;grid-template-columns:1fr 1fr;gap:1.5cqw;padding:1.5cqw 4cqw 10px}
.album button{position:relative;display:block;width:100%;background:#EDE9F4}
.album img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:50% 35%;background:#EDE9F4;transition:transform 1.2s var(--soft)}
.album button:nth-child(1),.album button:nth-child(8){grid-column:1/-1}
.album button:nth-child(1) img,.album button:nth-child(8) img{aspect-ratio:4/5}
.album button:hover img{transform:scale(1.03)}
@media (hover:none){.album button:hover img{transform:none}}
/* the groom's tile beside the bride's: framed 1.2× closer so the two heads match in size and eye line (the viewer shows
   the whole photo); the hover zoom still adds on top */
.album button[data-photo="DSC02571"]{overflow:hidden}
.album button[data-photo="DSC02571"] img{scale:1.2;transform-origin:50% 44%}
/* áo dài set: the white page warms into an ivory band; the same small red seal as on the calendar marks it */
.trad{position:relative;margin-top:56px;padding:36px 4cqw 40px;background:linear-gradient(to bottom,#fff 0,var(--band-warm) 90px)}
.trad-head{margin:0 3cqw;text-align:center}
.trad .hl{background:linear-gradient(90deg,rgba(168,50,45,0),rgba(168,50,45,.35),rgba(168,50,45,0))}
.seal{flex:none;width:26px;height:26px;rotate:-4deg;font-size:16px}
.trad-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:1.5cqw;margin-top:24px}
.trad-grid button{display:block;cursor:zoom-in}
.trad-grid img{width:100%;height:100%;aspect-ratio:2/3;object-fit:cover;object-position:50% 30%}
.trad-grid button:nth-child(1){grid-column:span 4;grid-row:span 2}
.trad-grid button:nth-child(2),.trad-grid button:nth-child(3){grid-column:span 2}
.trad-grid button:nth-child(4),.trad-grid button:nth-child(5){grid-column:span 3}
.trad-grid button:nth-child(4) img,.trad-grid button:nth-child(5) img{aspect-ratio:4/5}
.trad-grid button:nth-child(1) img{aspect-ratio:auto}

/* ===== closing: the photo melts out of the ivory band; the words sit on a white veil rising from its lower edge ===== */
.sec-thanks{text-align:center;overflow:hidden;background:linear-gradient(var(--band-warm) 0,var(--band-warm) 90px,#fff 90px)}
.thanks-photo{aspect-ratio:2/3;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 72px);mask-image:linear-gradient(to bottom,transparent 0,#000 72px)}
.thanks-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 20%;display:block}
.thanks-copy{position:relative;margin-top:-34cqw;padding:24cqw 9cqw 44px;
  background:linear-gradient(to bottom,rgba(255,255,255,0) 0,rgba(255,255,255,.8) 16cqw,#fff 30cqw)}
.sec-thanks .script{position:relative;z-index:1;font-size:min(12cqw,52px);color:var(--script)}
.sec-thanks p{position:relative;z-index:1;font-size:15px;line-height:1.85;color:var(--muted);margin-top:10px}
.sec-thanks .sig{position:relative;z-index:1;margin-top:20px;font-size:17px;color:var(--ink)}
/* the last block clears the action bar, which comes back at the end of the page */
@media (max-width:1239px){.thanks-copy{padding-bottom:calc(36px + 72px + env(safe-area-inset-bottom,0px))}}

/* ===== bottom bar (phones) ===== */
#bar{bottom:calc(12px + env(safe-area-inset-bottom));z-index:50;width:calc(100% - 28px);max-width:calc(var(--col) - 28px);border-radius:999px;padding:6px;display:flex;align-items:center;gap:4px;color:var(--ink);
  transition:opacity .5s var(--soft),visibility .5s,transform .6s var(--soft)}
body.locked #bar{opacity:0;visibility:hidden}
body.ui-off #bar{transform:translate(-50%,calc(100% + 24px));opacity:0;transition-delay:0s}
.rb{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;flex:none;position:relative;transition:transform .2s,background .2s;color:var(--ink)}
.rb:active{transform:scale(.94)}
.rb:hover{background:rgba(110,95,148,.08)}
@media (hover:none){.rb:hover{background:none}}
.rb.rsvp{border:1px solid var(--line)}
.rb svg{width:22px;height:22px}
.wish-pill{flex:1;min-width:0;height:44px;white-space:nowrap;border-radius:999px;background:rgba(110,95,148,.07);border:1px solid var(--line);color:var(--ink);display:flex;align-items:center;justify-content:center;gap:10px;font-style:italic;font-size:15px;margin:0 2px}
.wish-pill svg{width:20px;height:20px;color:var(--deep)}

/* ===== sheets ===== */
.backdrop{position:fixed;inset:0;background:rgba(43,37,56,.32);z-index:80;opacity:0;visibility:hidden;
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);transition:opacity .5s var(--soft),visibility .5s}
.backdrop.show{opacity:1;visibility:visible}
.sheet{bottom:0;z-index:90;background:rgba(252,251,254,.84);border-radius:var(--r) var(--r) 0 0;border-bottom:0;padding:14px 20px calc(22px + env(safe-area-inset-bottom));max-height:82dvh;display:flex;flex-direction:column;
  transform:translate(-50%,105%);visibility:hidden;transition:transform .6s var(--soft),visibility .6s;box-shadow:var(--inset),0 -20px 60px -20px rgba(90,70,130,.35)}
.sheet::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:var(--pearl)}
/* hidden, not just moved off screen: iOS toolbars can otherwise reveal its top edge */
.sheet.show{transform:translate(-50%,0);visibility:visible}
/* the handle and title: drag them down to close (ui.js); the strip runs to the sheet's top and side edges */
.sheet-head{margin:-14px -20px 0;padding:14px 20px 0;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}
.sheet .grab{width:40px;height:3px;border-radius:2px;background:var(--line);margin:0 auto 16px}
.sheet h3{font-family:var(--caps);font-style:italic;font-weight:300;font-size:min(9cqw,40px);line-height:1.15;color:var(--ink);text-align:center;margin-bottom:6px}
.sheet .x{position:absolute;right:12px;top:12px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.sheet .x svg{width:14px;height:14px}
.wishes{overflow:auto;flex:1;display:grid;gap:10px;padding:8px 2px 14px;align-content:start}
.wish{background:#fff;border:1px solid var(--hair);border-radius:var(--r);padding:10px 14px}
.wish b{display:block;font-weight:500;color:var(--ink);font-size:14.5px;margin-bottom:2px}
.wish p{font-size:14.5px;line-height:1.6;color:var(--muted)}
.wish-empty{font-family:var(--caps);font-style:italic;font-size:15.5px;color:var(--muted-2);text-align:center;padding:18px 8px}
.wish-form{display:grid;gap:10px;border-top:1px solid var(--hair);padding-top:14px}
/* the wishes sheet stands tall, so a few wishes show above the form; while reading, the list fills it and the form
   waits behind "Viết lời chúc" (wishes.js) */
#wishSheet{height:92vh;height:92dvh;max-height:none}
#wishSheet .wishes{overscroll-behavior:contain}
.wish-cta{border-top:1px solid var(--hair);padding-top:14px}
#wishSheet:not(.reading) .wish-cta,#wishSheet.reading .wish-form{display:none}
.wish-form input,.wish-form textarea{width:100%;font:inherit;font-size:16px;color:var(--ink);padding:11px 14px;border:1px solid var(--line);border-radius:var(--r);background:rgba(255,255,255,.7);outline:0;resize:none}
.wish-form input::placeholder,.wish-form textarea::placeholder{color:#8F88A2}
.wish-form input:focus,.wish-form textarea:focus{border-color:var(--deep)}
/* under both wish forms: wishes are public, unlike the RSVP note */
.wish-public{font-size:12.5px;line-height:1.5;color:var(--muted)}
.wish-form .wish-public{text-align:center}
/* ===== wish reactions and stickers (art in js/wish-art.js): lavender line, ivory, one rose accent ===== */
.wish.has-stk{display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:start}
.wish .wish-stk{width:44px;height:44px;display:block}
.wish .reacts{grid-column:1 / -1}
.reacts{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.react{display:inline-flex;align-items:center;gap:4px;height:28px;min-width:36px;justify-content:center;padding:0 9px;border-radius:999px;border:1px solid var(--hair);
  background:rgba(255,255,255,.6);color:var(--deep);font-size:12.5px;font-weight:400;line-height:1;font-variant-numeric:tabular-nums;transition:background .2s,border-color .2s}
.react svg{width:17px;height:17px;display:block;transition:scale .18s var(--soft)}
/* an invisible 44px hit area around each 28px pill (insets count from inside its 1px border); sideways it reaches
   just over half the 6px gap, so the narrowest pill is 44px wide and neighbours share only the gap's middle pixel */
.react{position:relative}
.react::before{content:"";position:absolute;inset:-9px -4.5px}
.react:active svg{scale:.84}
.react .n:empty{display:none}
.react.on{border-color:rgba(201,123,147,.45);background:rgba(232,167,186,.14);color:var(--deep-2)}
.react svg .s,.react-burst svg .s{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.react svg .e,.react-burst svg .e{fill:currentColor}
.react svg .g,.react-burst svg .g{fill:#fff}
.react svg .a,.react-burst svg .a{fill:#E8A7BA}
.react svg .m,.react-burst svg .m{fill:rgba(232,167,186,.4)}
.react.on[data-kind=love] .f,.react-burst.love .f{fill:#E8A7BA;stroke:#C97B93}
.react.on .f,.react-burst .f{fill:#F7EEF6}
.react-burst{position:fixed;z-index:120;width:20px;height:20px;pointer-events:none;color:var(--deep);will-change:transform,opacity}
.react-burst svg{width:100%;height:100%;display:block}

.stk svg{width:100%;height:100%;display:block;overflow:visible}
.stk .s{fill:none;stroke:var(--deep);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.stk .i{fill:#FBF8F3}
.stk .a{fill:#E8A7BA}
.stk .g{fill:#fff}
.stk .soft{opacity:.55}
.stk .hl{fill:none;stroke:#fff;stroke-width:1.6;stroke-linecap:round;opacity:.85}
.stk .dash{stroke-dasharray:1 3.2;opacity:.7}
.stk .hy{font-family:"Songti SC","Noto Serif CJK SC","Noto Serif SC",SimSun,serif;font-size:20px;fill:#D98AA2}
.stk .beat,.stk .pulse,.stk .burst,.stk .tw{transform-box:fill-box;transform-origin:center}
.stk .clink-l{transform-origin:18px 37px;transform:rotate(-9deg)}
.stk .clink-r{transform-origin:30px 37px;transform:rotate(9deg)}
.stk .sway{transform-origin:24px 42px}
.stk .lean-l{transform-origin:18px 42px}
.stk .lean-r{transform-origin:30px 42px}
/* a sticker in a wish plays three loops when it comes into view; a picked one in the form keeps playing */
.stk.play *{animation-duration:1.6s;animation-timing-function:ease-in-out;animation-iteration-count:3}
.stk-pick .stk.play *{animation-iteration-count:infinite}
.stk.play .beat{animation-name:stk-beat}
.stk.play .pulse{animation-name:stk-pulse}
.stk.play .tw{animation-name:stk-tw}
.stk.play .bob{animation-name:stk-bob}
.stk.play .clink-l{animation-name:stk-clink-l}
.stk.play .clink-r{animation-name:stk-clink-r}
.stk.play .burst{animation-name:stk-burst}
.stk.play .burst.late{animation-delay:.45s}
.stk.play .sway{animation-name:stk-sway}
.stk.play .lean-l{animation-name:stk-lean-l}
.stk.play .lean-r{animation-name:stk-lean-r}
@keyframes stk-beat{0%,100%{transform:scale(1)}20%{transform:scale(1.1)}40%{transform:scale(.98)}55%{transform:scale(1.05)}}
@keyframes stk-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@keyframes stk-tw{0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:1;transform:scale(1.1)}}
@keyframes stk-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-2.5px)}}
@keyframes stk-clink-l{0%,100%{transform:rotate(-9deg)}45%,55%{transform:rotate(-2deg)}}
@keyframes stk-clink-r{0%,100%{transform:rotate(9deg)}45%,55%{transform:rotate(2deg)}}
@keyframes stk-burst{0%{opacity:.2;transform:scale(.55)}45%{opacity:1;transform:scale(1.04)}100%{opacity:.85;transform:scale(1)}}
@keyframes stk-sway{0%,100%{transform:rotate(-3.5deg)}50%{transform:rotate(3.5deg)}}
@keyframes stk-lean-l{0%,100%{transform:rotate(0)}50%{transform:rotate(5deg)}}
@keyframes stk-lean-r{0%,100%{transform:rotate(0)}50%{transform:rotate(-5deg)}}

/* the optional sticker row in the compose forms: eight across, fits a 360 px phone */
.stk-pick{display:grid;grid-template-columns:repeat(8,minmax(0,40px));justify-content:space-between;gap:2px}
.stk-pick .stk{aspect-ratio:1;padding:4px;border-radius:10px;border:1px solid transparent;opacity:.8;transition:opacity .2s,background .2s,border-color .2s}
.stk-pick .stk:hover{opacity:1}
.stk-pick .stk.on{opacity:1;border-color:var(--line);background:rgba(110,95,148,.08)}

/* ===== mini player beside the music button (js/player.js): frosted lavender pill ===== */
.snd{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.player{position:fixed;left:0;top:0;z-index:70;display:flex;align-items:center;gap:2px;width:min(330px,calc(100vw - 28px));padding:5px;border-radius:999px;color:var(--ink);
  background:rgba(250,248,252,.93);-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);
  border:1px solid rgba(255,255,255,.85);box-shadow:var(--inset),0 0 0 1px rgba(110,95,148,.10),0 16px 36px -18px rgba(90,70,130,.5);
  opacity:0;visibility:hidden;transform:translateY(6px) scale(.98);transition:opacity .25s var(--soft),transform .3s var(--soft),visibility .25s}
.player[data-side=left]{transform:translateX(6px) scale(.98)}
.player[data-side=right]{transform:translateX(-6px) scale(.98)}
.player.show{opacity:1;visibility:visible;transform:none}
/* an invisible bridge over the gap to the button, so moving the pointer across does not close it */
.player::after{content:"";position:absolute}
.player[data-side=left]::after{left:100%;top:0;bottom:0;width:14px}
.player[data-side=right]::after{right:100%;top:0;bottom:0;width:14px}
.player[data-side=above]::after{top:100%;left:0;right:0;height:12px}
.pl-btn{width:36px;height:36px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--deep);transition:background .2s}
.pl-btn:hover{background:rgba(110,95,148,.1)}
.pl-btn:active svg{scale:.88}
.pl-btn svg{width:17px;height:17px;transition:scale .15s}
.pl-mid{flex:1;min-width:0;display:grid;gap:5px;padding:2px 4px 0}
.pl-title{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;font-family:var(--caps);font-style:italic;font-weight:500;font-size:16px;line-height:1.25;color:var(--ink)}
.pl-text{display:inline-block}
.pl-title.scroll{text-overflow:clip;-webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.pl-title.scroll .pl-text{animation:pl-marquee 9s ease-in-out infinite alternate}
@keyframes pl-marquee{0%,15%{transform:translateX(0)}85%,100%{transform:translateX(var(--pl-shift))}}
.pl-line{display:block;height:2px;border-radius:2px;overflow:hidden;background:rgba(110,95,148,.16)}
.pl-line i{display:block;height:100%;background:var(--deep);transform-origin:left;transform:scaleX(0)}
@media (prefers-reduced-motion:reduce){.pl-title.scroll .pl-text{animation:none}.player{transition:none}}

/* ===== the reminder to reply at the end of the page (js/nudge.js): the player's frosted glass ===== */
.nudge{bottom:calc(12px + 58px + 12px + env(safe-area-inset-bottom));z-index:65;width:calc(100% - 28px);max-width:360px;padding:16px 44px 14px 18px;border-radius:18px;
  background:rgba(250,248,252,.9);-webkit-backdrop-filter:blur(16px) saturate(1.2);backdrop-filter:blur(16px) saturate(1.2);
  border:1px solid rgba(255,255,255,.85);box-shadow:var(--inset),0 0 0 1px rgba(110,95,148,.10),0 18px 40px -18px rgba(90,70,130,.5);
  opacity:0;translate:0 14px;transition:opacity .45s var(--soft),translate .55s var(--soft)}
.nudge.show{opacity:1;translate:0 0}
.nudge-to{font-family:var(--caps);font-style:italic;font-size:14.5px;color:var(--deep);margin-bottom:2px}
.nudge-h{font-family:var(--caps);font-style:italic;font-weight:500;font-size:19px;line-height:1.3;color:var(--ink)}
.nudge-p{font-size:13.5px;line-height:1.55;color:var(--muted);margin-top:4px}
.nudge-row{display:flex;align-items:center;gap:6px;margin-top:12px}
.nudge-go{padding:9px 16px;border-radius:999px;font-size:13.5px;font-weight:400;color:var(--ink);background:rgba(110,95,148,.1);border:1px solid var(--line)}
.nudge-go:hover{background:rgba(110,95,148,.16)}
.nudge-later{padding:9px 12px;font-size:13.5px;color:var(--muted-2)}
.nudge-x{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--muted-2)}
.nudge-x svg{width:12px;height:12px}
.nudge-x::before{content:"";position:absolute;inset:-6px}   /* 44px to tap, 32px to see */
@media (prefers-reduced-motion:reduce){.nudge{translate:none;transition:opacity .3s}}

/* spam trap: off-screen, never seen by people */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
#toast{position:fixed;left:50%;bottom:120px;transform:translate(-50%,10px);background:var(--ink);color:#fff;padding:10px 18px;border-radius:999px;font-size:14px;z-index:100;opacity:0;transition:opacity .3s,transform .3s;pointer-events:none}
#toast.show{opacity:1;transform:translate(-50%,0)}

/* ===== lightbox ===== */
#lb{position:fixed;inset:0;z-index:95;background:rgba(30,25,42,.95);display:flex;align-items:center;justify-content:center;opacity:0;visibility:hidden;transition:opacity .45s var(--soft),visibility .45s}
#lb.show{opacity:1;visibility:visible}
#lb figure{position:relative;background:#fff;padding:8px;max-width:min(92vw,620px);box-shadow:0 30px 60px -20px rgba(0,0,0,.6);scale:.97;transition:scale .6s var(--soft)}
#lb.show figure{scale:1}
#lb img{max-width:100%;max-height:calc(100dvh - 140px);object-fit:contain;user-select:none;-webkit-user-drag:none;transition:opacity .35s ease}
#lb img.swap{opacity:0}
/* a clear layer over the viewer's photo: a long press lands on it, not on the image, so iOS offers no "Save" */
#lb figure::after{content:"";position:absolute;inset:0}
/* above the photo (its scale makes it a layer of its own, painted over earlier siblings), and dark enough to read
   where they overlap it */
#lb .nav,#lb .close{position:absolute;z-index:2;border-radius:50%;background:rgba(30,25,42,.45);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.22);color:#fff;display:grid;place-items:center}
#lb .nav{top:50%;transform:translateY(-50%);width:46px;height:46px}
#lb .nav svg{width:20px;height:20px}
#lb .prev{left:10px}#lb .next{right:10px}
#lb .close{top:14px;right:14px;width:44px;height:44px}
#lb .close svg{width:18px;height:18px}
#lb .cnt{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.78);font-family:var(--caps);letter-spacing:.24em;font-size:14px;font-variant-numeric:lining-nums}

/* ===== desktop: side panel · phone card · actions · wishes panel ===== */
/* from 1240px: 260 + the 490px card, its 30px gap and the 58px action rail + 400 fit; narrower windows (iPad
   landscape, small laptops) get the phone layout rather than a clipped card */
.side-l,.side-r,.actions{display:none}
@media (min-width:1240px){
  html,body{height:100%;overflow:hidden;background:#F3F0F8}
  /* outside the white card the window keeps the pale lavender wash; panels, card and ground read as three planes */
  body::before{opacity:1}
  .app{display:grid;grid-template-columns:260px 1fr 400px;height:100vh}
  .side-l{display:flex;flex-direction:column;padding:24px 22px;color:var(--ink);background:rgba(255,255,255,.42);-webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);border-right:1px solid rgba(110,95,148,.12)}
  .side-l .logo{display:flex;align-items:center;gap:10px;font-family:var(--caps);font-weight:500;font-size:15px;letter-spacing:.08em;color:var(--ink);margin-bottom:26px;white-space:nowrap}
  .side-l .logo .mono-at{width:40px;height:40px;flex:none}
  .side-l .thumb{width:100%;aspect-ratio:1.7;object-fit:cover;object-position:50% 16%;display:block}
  .side-l .promo{margin-top:24px;background:#fff;border:1px solid rgba(110,95,148,.12);border-radius:var(--r);padding:18px 18px 16px;font-size:13.5px;line-height:1.6;color:var(--muted)}
  .side-l .promo>b{display:block;font-family:var(--caps);font-style:italic;font-size:16px;font-weight:400;color:var(--deep);margin-bottom:12px}
  .pr-ev{display:flex;flex-direction:column;line-height:1.45}
  .pr-ev+.pr-ev{margin-top:16px;padding-top:16px;border-top:1px solid var(--hair)}
  .pr-side{font-family:var(--caps);font-style:italic;font-size:14px;color:var(--deep)}
  .pr-title{display:block;font-family:var(--caps);font-weight:500;font-size:22px;color:var(--ink);margin:0 0 4px}
  .pr-when{font-size:13.5px;font-weight:400;color:var(--ink)}
  .pr-venue{font-size:13.5px;color:var(--ink);margin-top:6px}
  .pr-addr{font-size:12.5px;color:var(--muted-2)}
  .pr-cal{display:inline-block;align-self:flex-start;margin-top:10px;border:1px solid var(--deep);color:var(--ink);text-decoration:none;font-family:var(--sans);letter-spacing:.01em;font-weight:400;font-size:12.5px;padding:6px 14px;border-radius:999px;transition:background .25s,color .25s}
  .pr-cal:hover{background:var(--deep);color:#fff}
  .side-l .copy-r{margin-top:auto;font-size:12px;color:var(--muted-2)}
  .desk-stage{position:relative;display:flex;align-items:center;justify-content:center;gap:30px;padding:15px 0}
  .card-wrap{position:relative;width:490px;height:calc(100vh - 30px);border-radius:var(--r);border:1px solid rgba(110,95,148,.10);box-shadow:0 30px 70px -36px rgba(90,70,130,.30);overflow:hidden;flex:none;background:#fff}
  .phone{max-width:none;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;box-shadow:none}
  .phone::-webkit-scrollbar{display:none}
  #page{padding-bottom:0}
  #bar{display:none}
  .sec-wishes{display:none}
  /* the card is portrait even on a landscape window: undo the gate's landscape rules inside it */
  .card-wrap .veil-gate{height:calc(100vh - 30px);min-height:0;--vg-pos:50% 40%}
  .card-wrap .veil-gate .vg-crest{top:47%}
  .card-wrap .veil-gate .vg-mono{width:150px;height:150px}
  .actions{display:flex;flex-direction:column;align-items:center;gap:14px;align-self:center}
  .actions .ava{width:50px;height:50px;border-radius:50%;border:2px solid rgba(255,255,255,.95);box-shadow:0 10px 24px -10px rgba(90,70,130,.45);overflow:hidden;margin-bottom:6px}
  .actions .ava img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
  /* the avatar turns like a record while the music plays and holds its angle when it stops; the ring stays still */
  .actions .ava img{animation:spin 12s linear infinite;animation-play-state:paused}
  .actions:has(.snd.playing) .ava img{animation-play-state:running}
  .actions .act{display:flex;flex-direction:column;align-items:center;gap:6px;color:var(--muted);font-size:11.5px;font-weight:500}
  .actions .act .ic{width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.85);box-shadow:var(--inset),0 12px 26px -16px rgba(90,70,130,.35);display:grid;place-items:center;color:var(--ink);transition:background .2s,color .2s}
  .actions .act:hover .ic{background:rgba(110,95,148,.12)}
  .actions .act .ic svg{width:20px;height:20px}
  .side-r{display:flex;flex-direction:column;border-left:1px solid rgba(110,95,148,.12);background:rgba(255,255,255,.42);-webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);height:100vh}
  .side-r .tabs{display:flex;border-bottom:1px solid var(--hair)}
  .side-r .tabs button{flex:1;padding:18px 14px;font-family:var(--sans);letter-spacing:.01em;font-weight:400;font-size:13.5px;color:var(--muted-2);border-bottom:1px solid transparent;margin-bottom:-1px}
  .side-r .tabs button.on{color:var(--ink);border-color:var(--deep)}
  .side-r .pane{flex:1;overflow:auto;padding:20px 24px;display:none}
  .side-r .pane.on{display:block}
  .side-r .wish{border-color:rgba(110,95,148,.10);padding:12px 14px;margin-bottom:10px}
  .side-r .wish b,.side-r .wish p{font-size:14px}
  .side-r .wish p{line-height:1.55}
  .side-r .phone-pane{text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
  .qrbig{width:200px;height:200px;margin:20px auto 16px;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:10px}
  .qrbig svg{width:100%;height:100%;display:block}
  .page-url{word-break:break-all;color:#8F88A2;font-size:12px}
  .side-r .compose{border-top:1px solid var(--hair);padding:16px 12px;display:grid;grid-template-columns:1fr auto;gap:10px 12px;align-items:end}
  .side-r .compose input,.side-r .compose textarea{width:100%;font:inherit;font-size:14.5px;color:var(--ink);background:rgba(255,255,255,.62);border:1px solid var(--line);border-radius:var(--r);padding:11px 18px;outline:0;resize:none;grid-column:1}
  .side-r .compose input::placeholder,.side-r .compose textarea::placeholder{color:#8F88A2}
  .side-r .compose input:focus,.side-r .compose textarea:focus{border-color:var(--deep)}
  .side-r .compose textarea{height:46px;line-height:22px}
  .side-r .compose .stk-pick{grid-column:1 / -1;grid-row:3}
  .side-r .compose .wish-public{grid-column:1 / -1;grid-row:4}
  .side-r .compose button.send{grid-column:2;grid-row:2;width:46px;height:46px;border-radius:50%;background:var(--deep);color:#fff;display:grid;place-items:center;box-shadow:0 10px 22px -10px rgba(110,95,148,.6);transition:background .2s}
  .side-r .compose button.send:hover{background:var(--deep-2)}
  .side-r .compose button.send svg{width:18px;height:18px}
  .sheet.sheet{bottom:auto;top:50%;left:50%;max-width:480px;border-radius:var(--r);max-height:84vh;transform:translate(-50%,-46%) scale(.96);opacity:0;visibility:hidden;transition:transform .35s,opacity .3s,visibility .3s}
  .sheet.sheet.show{transform:translate(-50%,-50%) scale(1);opacity:1;visibility:visible}
  #toast{bottom:40px}
  /* computer: in the wishes panel, just above its form (nudge.js sets the bottom) */
  .nudge{left:auto;right:20px;width:360px;transform:none}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}
  .veil-gate .vg-mark-in{animation:none;opacity:.9}
  .veil-gate .vg-mark::after{animation:none;opacity:0}
  .actions .ava img{animation:none}
  .film-track{animation:none}
}
