/* ============ FONT: đúng bộ font đang dùng trong thiết kế Canva (file lấy từ chính trang Canva của chủ thiệp) ============ */
@font-face { font-family: "Canva Names"; src: url("../assets/fonts/tt-names-200.woff") format("woff"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Canva Names"; src: url("../assets/fonts/tt-names-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Canva Names"; src: url("../assets/fonts/tt-names-900.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Canva Body"; src: url("../assets/fonts/newsreader-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Canva Body"; src: url("../assets/fonts/newsreader-400i.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Canva Body"; src: url("../assets/fonts/newsreader-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Canva Script"; src: url("../assets/fonts/ambassador-script.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Canva Light"; src: url("../assets/fonts/freightbig-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Canva Digits"; src: url("../assets/fonts/cardo-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Canva Hand"; src: url("../assets/fonts/eternally.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Canva Decided"; src: url("../assets/fonts/decided.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Canva Icon"; src: url("../assets/fonts/newicon.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Canva Tag"; src: url("../assets/fonts/canva-tag.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ============ TOKENS (khớp biến Figma "Wedding/Colors") ============ */
:root {
  --bordeaux-900: #3e1519;
  --bordeaux-700: #5b2229;
  --bordeaux-500: #863538; /* màu chữ chính của bản Canva */
  --rose-400: #b98b8b;
  --gold-500: #b8935a;
  --cream-50: #fbf9f7;
  --cream-100: #f3eee7;
  --cream-200: #e9e3da;

  --font-serif: "Canva Body", "Newsreader", "Times New Roman", serif;
  --font-script: "Canva Script", "Allura", cursive;
  --font-display: "Canva Names", "Canva Body", serif;
  --font-light: "Canva Light", "Canva Body", serif;
  --font-digits: "Canva Digits", "Canva Body", serif;
  --font-hand: "Canva Script", "Allura", cursive;

  --text-body: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem);
  --text-label: clamp(1rem, 0.9rem + 0.5vw, 1.625rem);
  --space-section: clamp(4rem, 3rem + 5vw, 7rem);
  --measure: min(620px, calc(100vw - 3.5rem));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--bordeaux-500);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 4px; }

.script { font-family: var(--font-script); font-weight: 400; line-height: 1.15; }
.display { font-family: var(--font-display); font-weight: 500; font-style: normal; line-height: 1.15; }
.display--roman { font-family: var(--font-serif); font-weight: 400; }
.script--lg { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); color: var(--bordeaux-500); }
.script--xl { font-size: clamp(2.2rem, 1.5rem + 3.4vw, 4rem); color: var(--bordeaux-500); }
.script--xxl { font-size: clamp(2.8rem, 1.6rem + 5vw, 5rem); color: var(--bordeaux-500); }
.monogram { font-size: clamp(3rem, 2.4rem + 2.4vw, 4.2rem); }
.mono { position: relative; display: inline-grid; place-items: center; width: 1.7em; height: 1.5em; line-height: 1; color: transparent; -webkit-text-stroke: 0.8px currentColor; }
.mono span { position: absolute; }
.mono__d { font-family: "Canva Icon", var(--font-script); left: 6%; top: -2%; font-size: 1em; }
.mono__l { font-family: var(--font-script); right: 4%; bottom: -8%; font-size: 1.1em; }
.monogram.mono { -webkit-text-stroke-color: var(--bordeaux-500); }

/* ============ VIEWS ============ */
.view { min-height: 100svh; animation: view-in 0.7s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; } to { opacity: 1; } }
.view.is-leaving { position: fixed; inset: 0; z-index: 40; pointer-events: none; animation: env-out 0.6s ease forwards; }
@keyframes env-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .view.is-leaving { animation: none; } }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============ LINKS & BUTTONS ============ */
.link {
  display: inline-block; background: none; border: 0; padding: 0.4rem 0;
  font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1.05rem); letter-spacing: 0.22em; text-decoration: none;
  position: relative;
}
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link--light { color: var(--cream-50); }
.link--small { font-size: clamp(0.78rem, 0.75rem + 0.2vw, 0.95rem); letter-spacing: 0.3em; }
.btn {
  background: var(--bordeaux-500); color: var(--cream-50); border: 0; border-radius: 2px;
  padding: 1.05rem clamp(2.2rem, 1.5rem + 3vw, 3.5rem); letter-spacing: 0.3em; font-weight: 500;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.2rem);
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn:hover { background: var(--bordeaux-700); transform: translateY(-2px); box-shadow: 0 10px 24px rgb(62 21 25 / 0.28); }
.btn:active { transform: translateY(0); }

/* ============ ENVELOPE ============ */
/* Phong bì (đo trên Canva, mọi thứ tỉ lệ theo bề rộng phong bì We): <900px We = 0,92·c, cao = max(100vh, 420 + 0,756·c); 900–1109px đơn vị u = 0,9015 + 0,00014·c; từ 1110px u = min(1,08; c/1265; 0,3675 + 0,0005·c); We = 822,5u, cao 1073,3u; phong bì canh giữa theo chiều dọc */
.view--envelope { position: relative; container-type: inline-size; overflow: hidden; height: 100svh; min-height: 480px; background: var(--cream-100) url("../assets/decor/bg-peony.webp") 50% 50% / cover no-repeat; --ew: calc(0.92 * 100cqw); }
@media (min-width: 900px) { .view--envelope { --eu: calc(0.9015px + 0.013989cqw); --ew: calc(822.5 * var(--eu)); } }
@media (min-width: 1110px) { .view--envelope { --eu: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); } }
.env-stage { position: absolute; left: 50%; top: 50%; width: min(var(--ew), 108svh); aspect-ratio: 1561 / 1008; transform: translate(-50%, -50%); container-type: inline-size; perspective: 1600px; }
.envelope { position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.envelope__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; filter: drop-shadow(0 16px 30px rgb(40 10 12 / 0.28)); transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out); }
.envelope__title, .envelope__sub, .envelope__hint { position: absolute; left: 0; right: 0; text-align: center; color: #fff; white-space: nowrap; transition: opacity 0.4s; }
.envelope__title { left: 0.44cqw; right: -0.44cqw; top: 12cqw; font-family: var(--font-display); font-weight: 200; font-size: 7.5cqw; line-height: 9.68cqw; letter-spacing: 0.075em; }
.envelope__sub { top: 25.03cqw; font-family: "Canva Script", "Allura", cursive; font-size: 4.8cqw; line-height: 5.74cqw; }
.envelope__hint { top: 53.46cqw; font-family: var(--font-display); font-weight: 400; font-size: 2.4cqw; line-height: 3.04cqw; letter-spacing: 0.1em; pointer-events: none; }
.envelope__seal { position: absolute; left: 43.08%; top: 30.87cqw; width: 13.82%; transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.envelope__seal img { display: block; width: 100%; height: auto; }
@keyframes env-text-in { from { opacity: 0; transform: translateX(-9.7cqw); } to { opacity: 1; transform: none; } }
.envelope__title { animation: env-text-in 0.6s 0.05s cubic-bezier(0.5, 1, 0.89, 1) backwards; }
.envelope__sub { animation: env-text-in 0.6s 0.35s cubic-bezier(0.5, 1, 0.89, 1) backwards; }
.envelope__hint { animation: env-text-in 0.6s 0.65s cubic-bezier(0.5, 1, 0.89, 1) backwards; }
@media (prefers-reduced-motion: reduce) { .envelope__title, .envelope__sub, .envelope__hint { animation: none; } }
.envelope:hover .envelope__seal { transform: scale(1.06); }
.envelope.is-open .envelope__seal { opacity: 0; transform: scale(0.8); }
.envelope.is-open .envelope__title, .envelope.is-open .envelope__sub, .envelope.is-open .envelope__hint { opacity: 0; }
.envelope.is-open .envelope__img { opacity: 0.9; transform: scale(1.04); }

/* ============ HERO ============ */
/* Hero: kích thước/vị trí đo trên Canva (chiều rộng nội dung c): <720px khung "mobile" tỉ lệ theo c (nền 222% chiều cao hero, canh trên); 720–1109px đơn vị u = 0,9015 + 0,00014·c; từ 1110px u = min(1,08; c/1265; 0,3675 + 0,0005·c), bố cục 963×(khổ 1265) căn giữa */
.hero { position: relative; container-type: inline-size; overflow: hidden; background: var(--cream-100) url("../assets/decor/bg-peony.webp") 50% 0 / auto 222.25% no-repeat; --hh: calc(124.5px + 1.2083 * 100cqw); --hw: calc(1.1658 * 100cqw); --ht: calc(42.5px + 0.0282 * 100cqw); }
.hero::before { content: ""; display: block; height: var(--hh); }
@media (min-width: 720px) { .hero { --hu: calc(0.9015px + 0.013989cqw); --hh: calc(963.1 * var(--hu)); --hw: calc(807.1 * var(--hu)); --ht: calc(62.8 * var(--hu)); } }
@media (min-width: 1110px) { .hero { --hu: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); } }
/* Phong bì mở với tấm thiệp trồi lên: mọi vị trí tính theo % của khung (tọa độ lấy từ thiết kế Canva) */
.hero__stage { position: absolute; left: calc(50% - var(--hw) / 2); top: var(--ht); container-type: inline-size; width: var(--hw); aspect-ratio: 1710 / 1726; }
.hs { position: absolute; display: block; max-width: none; height: auto; }
.hs--back { left: 11.70%; top: 5.04%; width: 76.61%; z-index: 1; filter: drop-shadow(0 18px 24px rgb(40 10 12 / 0.28)); }
.hs--lining { left: 11.70%; top: 5.04%; width: 76.61%; aspect-ratio: 900 / 1101; z-index: 2; background: url("../assets/hero/lining.webp") center / cover; -webkit-mask: url("../assets/hero/env-back.webp") center / 100% 100% no-repeat; mask: url("../assets/hero/env-back.webp") center / 100% 100% no-repeat; clip-path: inset(0 0 52% 0); }
.hs--lace { left: 9.75%; top: -12%; width: 80.9%; z-index: 3; transform: rotate(180deg); }
.hs--card { left: 21.06%; top: 9.5%; width: 57.74%; height: 67.73%; z-index: 4; color: #863538; }
/* Canva: "cửa sổ" thiệp 350×414 chứa ảnh họa tiết chìm xoay 90° (548×377, lệch -99,+41 rồi xoay) nên bị cắt ở các mép. Chỉ cửa sổ này (giấy + họa tiết) trượt lên 80px (≈14,5% chiều cao) và mờ dần ~1,85s (ease-out bậc hai, trễ 0,14s); chữ, ren, phong bì đứng yên */
.card > .card__emboss { inset: 0; left: 0; right: 0; overflow: hidden; background: #f6f2ea; transform: none; animation: emboss-rise 1.85s 0.14s cubic-bezier(0.5, 1, 0.89, 1) both; }
.card__emboss img { position: absolute; width: 156.69%; height: auto; max-width: none; left: -28.35%; top: 9.99%; transform: rotate(90deg); }
@keyframes emboss-rise { from { opacity: 0; transform: translateY(14.5%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .card > .card__emboss { animation: none; } }
.hs--front { left: 11.81%; top: 39.98%; width: 76.49%; z-index: 5; }
.hs--flower { top: 38.6%; width: 20.8%; z-index: 6; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.18)); }
.hs--flower-l { left: 8.55%; }
.hs--flower-r { left: 70.75%; transform: scaleX(-1); }
.hs--seal { left: 42.9%; top: 66.7%; width: 14.13%; z-index: 7; filter: drop-shadow(0 6px 6px rgb(0 0 0 / 0.35)); }
.hs--seal img { width: 100%; height: auto; }
/* Chữ DL trên con dấu: đúng cỡ chữ, màu #91673E và vị trí như Canva (đo theo bề rộng con dấu) */
.envelope__seal, .hs--seal { container-type: inline-size; }
.seal-mono i { position: absolute; display: block; font-style: normal; white-space: nowrap; color: #91673e; text-shadow: 0 1px 0 rgb(255 228 176 / 0.35); }
.seal-mono .sm-d { font-family: "Canva Icon"; left: 32.38cqw; top: 46.2cqw; font-size: 27.56cqw; line-height: normal; }
.seal-mono .sm-l { font-family: "Canva Script"; left: 38.55cqw; top: 70.05cqw; font-size: 30.5cqw; line-height: normal; }
.card > * { position: absolute; left: 0; right: 0; margin: 0; text-align: center; transform: translateY(-50%); }
.card__eyebrow { top: 21.9%; font-family: var(--font-light); font-weight: 300; font-size: 3.1cqw; }
.card__names { display: contents; font-weight: 400; }
.card__name { position: absolute; left: 0; right: 0; font-family: var(--font-display); font-weight: 200; font-style: normal; font-size: 7.4cqw; line-height: 1; transform: translateY(-50%); }
.card__name--1 { top: 31.5%; }
.card__name--2 { top: 55%; }
.card__rings { position: absolute; left: 50%; top: 45%; width: 6.4cqw; transform: translate(-50%, -50%); fill: none; stroke: var(--bordeaux-500); stroke-width: 1.5; }
.card__date { top: 73.8%; font-family: var(--font-light); font-weight: 300; font-size: 6.2cqw; letter-spacing: 0; display: flex; justify-content: center; align-items: center; gap: 0.3em; }
.card__date i { width: 1px; height: 1.2em; background: var(--bordeaux-500); opacity: 0.55; }

/* ============ LACE (vòng ren dùng chung) ============ */
.lace { position: relative; display: grid; place-items: center; background: url("../assets/decor/lace-ring.webp") center / contain no-repeat; aspect-ratio: 1; }
.lace--photo { width: clamp(190px, 34vw, 380px); }
.lace--photo .circle { position: relative; display: block; width: 70%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.lace--photo .circle img { position: absolute; display: block; width: 122%; height: auto; left: -18.4%; top: -9.9%; max-width: none; }

/* Hiệu ứng như Canva: vòng ren hiện trước, ảnh nở dần từ tâm rồi zoom nhẹ về đúng cỡ */
.couple[data-reveal] { transform: none; }
.couple .lace--photo { opacity: 0; transform: scale(0.88) rotate(-6deg); transition: opacity 0.9s var(--ease-out), transform 1.4s var(--ease-out); }
.couple .lace--photo .circle { clip-path: circle(0% at 50% 50%); transform: scale(1.35); opacity: 0.4; transition: clip-path 1.5s 0.5s var(--ease-out), transform 2s 0.5s var(--ease-out), opacity 1s 0.5s; }
.couple.is-in .lace--photo { opacity: 1; transform: none; }
.couple.is-in .lace--photo .circle { clip-path: circle(72% at 50% 50%); transform: none; opacity: 1; }
.couple__who { opacity: 0; transform: translateY(14px); transition: opacity 1s 1.1s var(--ease-out), transform 1s 1.1s var(--ease-out); }
.couple.is-in .couple__who { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .couple .lace--photo, .couple .lace--photo .circle, .couple__who { opacity: 1; transform: none; clip-path: none; }
}

/* ============ COUPLE ============ */

/* ============ INVITE ============ */

/* ============ COUNTDOWN ============ */
.countdown { padding: clamp(3.5rem, 7vw, 6.5rem) 1rem; background: var(--cream-100) url("../assets/decor/bg-hydrangea.webp") center / cover; display: grid; gap: clamp(0.6rem, 2vw, 1.2rem); justify-items: center; }
.countdown__row { display: flex; gap: clamp(0.5rem, 3vw, 2.2rem); justify-content: center; }
.countdown__row div { display: grid; min-width: clamp(64px, 14vw, 190px); }
.countdown__row b { font-family: var(--font-digits); font-weight: 400; color: var(--bordeaux-500); font-size: clamp(3rem, 1.2rem + 8.4vw, 7.5rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.countdown__row span { font-family: var(--font-digits); color: var(--bordeaux-700); font-weight: 400; font-size: clamp(0.95rem, 0.8rem + 0.7vw, 1.5rem); }

/* ============ INFO (damask): khung ren bầu dục, ly champagne, chìa khóa + tua rua như trong Canva ============ */
.info { padding: clamp(1rem, 3vw, 2rem) 0; background: var(--bordeaux-900) url("../assets/decor/bg-damask.webp") center / cover; overflow: hidden; }
.info__stage { position: relative; container-type: inline-size; width: min(100%, 560px); margin-inline: auto; aspect-ratio: 535 / 736; margin-bottom: calc(min(100%, 560px) * -0.3); }
.info__oval { position: absolute; left: 11.6%; top: 16.03%; width: 79.25%; display: block; text-decoration: none; color: #863538; filter: drop-shadow(0 12px 18px rgb(0 0 0 / 0.35)); }
.info__oval img { display: block; width: 100%; height: auto; }
.info__title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; font-family: var(--font-display); font-weight: 500; font-size: 7.6cqw; line-height: 1.1; }
.info__more { position: absolute; left: 0; right: 0; top: 60%; text-align: center; font-size: 3.3cqw; letter-spacing: 0.03em; }
.info__oval:hover .info__more, .info__oval:focus-visible .info__more { text-decoration: underline; text-underline-offset: 0.3em; }
.info__glass { position: absolute; left: 77.4%; top: 20.65%; width: 15.9%; height: auto; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.35)); }
.info__key { position: absolute; left: 3.93%; top: 44.7%; width: 32.9%; filter: drop-shadow(0 10px 12px rgb(0 0 0 / 0.4)); }
.info__key img { display: block; width: 100%; height: auto; transform: scaleX(-1); }
.info__tag { position: absolute; left: 50%; top: 50.3%; transform: translate(-50%, -50%) rotate(-73.4deg); font-family: "Canva Tag", var(--font-display); font-weight: 400; font-size: 3.83cqw; line-height: 1.09; color: #520916; white-space: nowrap; }

/* ============ MOMENTS ============ */
.moments { padding: var(--space-section) 1rem; display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); justify-items: center; }
.moments__title { font-family: var(--font-display); font-style: normal; font-weight: 500; color: var(--bordeaux-500); font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.4rem); }
.arch { position: relative; width: clamp(260px, 30vw, 420px); aspect-ratio: 362 / 468; display: block; overflow: hidden; border-radius: 999px 999px 0 0; }
.arch__photo { position: absolute; left: 0; right: 0; top: 0; height: 95.1%; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--cream-200); }
.arch__photo img { position: absolute; left: 0; top: -8.3%; width: 100%; height: auto; max-width: none; transition: transform 1.2s var(--ease-out); }
.arch:hover .arch__photo img { transform: scale(1.05); }
.arch__lace { position: absolute; left: 0; top: 81.4%; width: 100%; height: auto; max-width: none; }
.arch__bow { position: absolute; left: -2.2%; top: 64.1%; width: 105.2%; height: auto; max-width: none; filter: drop-shadow(0 2px 4px rgb(40 8 14 / 0.25)); }

.ringbanner { background: var(--cream-100) url("../assets/decor/bg-peony.webp") center / cover; min-height: clamp(240px, 33vw, 480px); display: grid; place-items: center; }
.ringbanner img { width: clamp(110px, 15vw, 220px); filter: drop-shadow(0 14px 14px rgb(0 0 0 / 0.25)); }

/* ============ LỜI CHÚC (sổ lưu bút) ============ */
.wishes { padding: var(--space-section) 1.25rem; display: grid; gap: clamp(1rem, 2vw, 1.5rem); justify-items: center; background: var(--bordeaux-900) url("../assets/decor/bg-damask.webp") center / cover; color: var(--cream-50); }
.wishes__eyebrow { letter-spacing: 0.4em; text-transform: uppercase; font-size: clamp(0.8rem, 0.75rem + 0.25vw, 1rem); color: var(--gold-500); }
.wishes .script--xl { color: var(--cream-50); }
.wishes__lead { font-style: italic; max-width: var(--measure); opacity: 0.85; }
.wishes__list { list-style: none; margin: clamp(1rem, 3vw, 2rem) 0; padding: 0; width: min(1080px, 100%); columns: 1; column-gap: clamp(1.2rem, 3vw, 2rem); text-align: left; }
@media (min-width: 700px) { .wishes__list { columns: 2; } }
@media (min-width: 1024px) { .wishes__list { columns: 3; } }
.wish { position: relative; break-inside: avoid; margin: 0 0 clamp(1.2rem, 3vw, 2rem); padding: 3.1rem 1.7rem 1.7rem; text-align: center; background: var(--cream-50); color: var(--bordeaux-700); box-shadow: 0 16px 34px rgb(0 0 0 / 0.38); transform: rotate(var(--tilt, 0deg)); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), box-shadow 0.4s; }
.wish:nth-child(3n+1) { --tilt: -0.7deg; }
.wish:nth-child(3n+2) { --tilt: 0.6deg; }
.wish:nth-child(5n+3) { background: var(--cream-100); }
.wish::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgb(184 147 90 / 0.55); pointer-events: none; }
.wish__text { font-style: italic; font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; text-align: center; text-wrap: pretty; text-wrap: balance; }
.wish__by { margin: 1.15rem 0 0; padding: 0; border: 0; text-align: center; font-family: var(--font-hand); font-size: clamp(1.9rem, 1.55rem + 1vw, 2.4rem); line-height: 1.1; color: var(--bordeaux-500); overflow-wrap: anywhere; }
.wish__by::before { content: "\2665"; display: block; width: 96px; margin: 0 auto 0.55rem; font-family: var(--font-serif); font-size: 0.62rem; line-height: 1; color: var(--gold-500); background: linear-gradient(90deg, transparent, rgb(184 147 90 / 0.85)) left center / calc(50% - 12px) 1px no-repeat, linear-gradient(90deg, rgb(184 147 90 / 0.85), transparent) right center / calc(50% - 12px) 1px no-repeat; }
.wish::after { content: "\201C"; position: absolute; top: 1.05rem; left: 50%; transform: translateX(-50%); height: 1.1rem; font-family: var(--font-display); font-size: 3.4rem; line-height: 0.9; color: var(--gold-500); opacity: 0.9; pointer-events: none; }
.marquee { justify-self: stretch; margin-inline: -1.25rem; display: grid; gap: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee__row { overflow: hidden; padding: 1.2rem 0 0.4rem; }
.marquee__track { display: flex; align-items: center; width: max-content; margin: 0; padding: 0; list-style: none; text-align: left; animation: marquee var(--dur, 60s) linear infinite; }
.marquee__row:nth-child(even) .marquee__track { animation-direction: reverse; }
.marquee__row:hover .marquee__track, .marquee__row:focus-within .marquee__track, .marquee__row:active .marquee__track { animation-play-state: paused; }
.marquee .wish { display: flex; flex-direction: column; justify-content: center; flex: 0 0 clamp(270px, 27vw, 350px); margin: 0 clamp(0.9rem, 2vw, 1.5rem) 0 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wishes-dialog { border: 0; padding: 0; width: min(1080px, calc(100vw - 1.5rem)); max-height: calc(100svh - 1.5rem); overflow: auto; color: var(--cream-50); background: var(--bordeaux-900) url("../assets/decor/bg-damask.webp") center / cover; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.wishes-dialog::backdrop { background: rgb(30 8 10 / 0.7); backdrop-filter: blur(3px); }
.wishes-dialog__head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.4rem; background: rgb(62 21 25 / 0.94); border-bottom: 1px solid rgb(184 147 90 / 0.4); }
.wishes-dialog .script--lg { color: var(--cream-50); }
.wishes-dialog .wishes__list { padding: 1.6rem 1.4rem 0.4rem; margin: 0; width: auto; }
.wishes__list .wish:not(.is-in) { opacity: 0; transform: translateY(32px) rotate(calc(var(--tilt, 0deg) * 2.5)); }
.wishes__list .wish.is-in { transition-delay: calc(var(--i, 0) * 110ms); }
.wishes__list .wish.is-in:hover { transform: translateY(-5px) rotate(0deg); box-shadow: 0 22px 40px rgb(0 0 0 / 0.45); transition-delay: 0s; }
.marquee .wish:hover { box-shadow: 0 22px 40px rgb(0 0 0 / 0.45); }
.btn--light { background: var(--cream-50); color: var(--bordeaux-700); }
.btn--light:hover { background: var(--cream-200); }
.rsvp__note { font-size: 0.95rem; font-style: italic; opacity: 0.8; text-align: center; }

/* ============ FOOTER ============ */
.foot { padding: clamp(3.5rem, 7vw, 6rem) 1rem clamp(3rem, 5vw, 5rem); display: grid; gap: clamp(1rem, 2vw, 1.8rem); justify-items: center; }

/* ============ DETAILS ============ */
.icon { width: clamp(52px, 6vw, 76px); fill: none; stroke: #c9b79a; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.detail { padding: var(--space-section) 1.5rem clamp(2.5rem, 5vw, 4.5rem); display: grid; gap: clamp(0.7rem, 1.4vw, 1.1rem); justify-items: center; }
.detail--tight { padding-top: clamp(2rem, 4vw, 3.5rem); }
.detail hr { width: min(520px, 80vw); border: 0; height: 1px; background: #c9b79a; margin: 0.5rem 0; }
.detail__title { font-family: var(--font-display); font-style: normal; font-weight: 500; color: var(--bordeaux-500); font-size: clamp(2.3rem, 1.2rem + 4.6vw, 4.2rem); }
.detail__label { font-weight: 600; letter-spacing: 0.22em; font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); }
.detail__time { letter-spacing: 0.15em; font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.7rem); }
.detail__date { font-weight: 600; letter-spacing: 0.15em; font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.detail__lunar { font-style: italic; color: var(--bordeaux-500); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); }
.cal { position: relative; display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); justify-items: center; align-items: center; width: min(700px, 100%); margin-top: 1.8rem; padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.2rem, 4vw, 2.4rem); background: var(--cream-100); box-shadow: 0 18px 40px rgb(62 21 25 / 0.15); }
.cal::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgb(184 147 90 / 0.6); pointer-events: none; }
@media (min-width: 640px) {
  /* Hai cột (tờ lịch | nội dung) co theo nội dung rồi cả cặp nằm chính giữa khung; chữ và nút căn giữa theo trục của cột phải */
  .cal { grid-template-columns: auto auto; justify-content: center; column-gap: clamp(2rem, 4vw, 3.2rem); text-align: center; padding: clamp(2.2rem, 4vw, 3rem) clamp(2.2rem, 5vw, 3.4rem); }
  .cal .cal__body { justify-items: center; justify-self: center; text-align: center; }
  .cal__body > * { margin: 0; }
  .cal__body .script--lg { font-size: clamp(1.9rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1.15; white-space: nowrap; }
  .cal__hint { text-align: center; }
}
.cal__page { position: relative; width: 148px; padding-bottom: 1rem; display: grid; justify-items: center; background: var(--cream-50); border-radius: 4px 4px 6px 6px; box-shadow: 0 12px 26px rgb(62 21 25 / 0.22), 0 0 0 1px rgb(184 147 90 / 0.35); transform: rotate(-3deg); overflow: hidden; }
.cal__page::before, .cal__page::after { content: ""; position: absolute; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--cream-100); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.4); }
.cal__page::before { left: 22%; } .cal__page::after { right: 22%; }
.cal__month { width: 100%; padding: 1.5rem 0 0.5rem; background: var(--bordeaux-500); color: var(--cream-50); font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 600; white-space: nowrap; text-align: center; text-indent: 0.14em; }
.cal__day { font-size: 4.4rem; line-height: 1.05; font-weight: 500; color: #863538; margin-top: 0.3rem; }
.cal__page { text-align: center; }
.cal__dow { text-indent: 0.3em; font-size: 0.8rem; letter-spacing: 0.3em; font-weight: 600; color: var(--bordeaux-500); }
.cal__time { margin-top: 0.15rem; font-style: italic; font-size: 1.25rem; color: var(--gold-500); }
.cal__body { display: grid; gap: 0.8rem; justify-items: center; }
.cal__hint { max-width: 34ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); }
.cal__note { margin: 0.1rem 0 0; max-width: 32ch; display: grid; gap: 0.5rem; justify-items: center; text-align: center; }
.cal__note[hidden] { display: none; }
.cal__note p { margin: 0; font-size: 0.85rem; line-height: 1.5; font-style: italic; color: var(--bordeaux-500); }
.cal__actions { display: grid; gap: 0.75rem; width: min(300px, 100%); margin-top: 0.4rem; justify-items: stretch; }
.cal .btn { display: grid; gap: 0.15rem; text-decoration: none; text-align: center; padding: 0.85rem 1.2rem; letter-spacing: 0.2em; font-size: clamp(0.85rem, 0.8rem + 0.25vw, 1rem); }
.cal .btn small { font-size: 0.78rem; letter-spacing: 0.08em; font-style: italic; opacity: 0.85; }
/* Chữ trong nút căn giữa thật: bù khoảng trống letter-spacing ở cuối dòng; dấu ✓ đặt riêng ở mép phải để không kéo lệch chữ */
.cal .btn span { text-indent: 0.2em; }
.cal .btn small { text-indent: 0.08em; }
.cal .btn[data-best] { position: relative; }
.cal .btn[data-best]::after { content: "✓"; position: absolute; top: 50%; right: 1.1rem; transform: translateY(-50%); letter-spacing: 0; font-size: 1.05rem; line-height: 1; }
.btn--ghost { background: transparent; color: var(--bordeaux-500); box-shadow: inset 0 0 0 1px var(--bordeaux-500); }
.btn--ghost:hover { background: var(--bordeaux-500); color: var(--cream-50); }
.detail__venue { font-weight: 600; letter-spacing: 0.1em; font-size: clamp(1.15rem, 0.9rem + 1.4vw, 2rem); max-width: var(--measure); margin-top: 0.8rem; }
.detail__sub { font-family: var(--font-display); font-style: normal; font-weight: 500; color: var(--bordeaux-500); font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); }
.detail__sub.script { font-style: normal; }
.detail__gift { max-width: var(--measure); font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); line-height: 1.6; }
.swatches { display: flex; gap: clamp(0.8rem, 2vw, 1.7rem); list-style: none; margin: 0; padding: 0; }
.swatches { gap: clamp(0.4rem, 1vw, 0.7rem); }
.swatches li { width: clamp(58px, 6vw, 75px); }
.swatches li img { display: block; width: 100%; height: auto; }
.qr { margin: 1.3rem 0 0; display: grid; gap: 0.75rem; justify-items: center; }
.qr img { width: min(228px, 62vw); height: auto; border-radius: 16px; border: 1px solid var(--cream-200); box-shadow: 0 10px 26px rgb(62 21 25 / 0.14); background: #f5f0e8; }
.qr figcaption { font-style: italic; color: var(--bordeaux-500); font-size: clamp(0.9rem, 0.86rem + 0.25vw, 1.05rem); max-width: 22rem; }

/* ============ LOVE STORY ============ */
@keyframes beat { 50% { transform: scale(1.08); } }

/* Mọi số đo lấy từ Canva (khổ 520). --u = 1/520 bề rộng khung nên cả khối co giãn đúng tỉ lệ */
.sec { position: relative; overflow: hidden; background: #fbfaf9; container-type: inline-size; }
.st { --u: calc(min(100cqw, 560px) / 520); position: relative; width: min(100%, 560px); margin: 0 auto; aspect-ratio: 520 / var(--h); }
.st > *, .st__doily > img { position: absolute; margin: 0; }
.sec--head { background: #fbf9f7; }
.st__doves { left: calc(179 * var(--u)); top: calc(65 * var(--u)); width: calc(163 * var(--u)); height: calc(107 * var(--u)); }
.st__title { left: calc(65 * var(--u)); top: calc(209 * var(--u)); width: calc(389 * var(--u)); font: 400 calc(61.9 * var(--u)) / calc(74 * var(--u)) "Canva Script", "Allura", cursive; color: #863538; text-align: center; }

.sec__bg { position: absolute; inset: 0; z-index: 0; display: block; }
.sec--damask .sec__bg { background: url("../assets/decor/bg-damask.webp") 50% 54% / cover; }
.st__play { left: calc(187 * var(--u)); top: calc(46 * var(--u)); width: calc(153 * var(--u)); height: calc(154 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.35)); transition: transform 0.3s var(--ease-out); }
.st__play:hover { transform: scale(1.05); }
.st__play img { display: block; width: 100%; height: 100%; }
.st__play svg { position: absolute; left: 28%; top: 28%; width: 38%; height: 37.7%; fill: #520916; }
.st__play[aria-pressed="true"] svg { animation: beat 2s ease-in-out infinite; }
.st__tap { left: calc(120 * var(--u)); top: calc(207 * var(--u)); width: calc(280 * var(--u)); font: 400 calc(20.64 * var(--u)) / calc(28.4 * var(--u)) "Canva Digits", Georgia, serif; color: #fff; text-align: center; white-space: nowrap; }

/* Nền cỏ của Canva: lớp ảnh rộng Lw = max(bề ngang, 1,1993 × cao khối), ảnh = 1,284 × Lw (tỉ lệ 3:2), căn giữa dọc, lệch ngang 37% (đo ở 520/985/1265/1905px) */
.sec--garden { --hs: calc(min(100cqw, 560px) * 791 / 520); --lw: max(100cqw, calc(1.1993 * var(--hs))); }
.sec--garden .sec__bg { background: url("../assets/decor/bg-garden.webp") 0 0 / 100% 100% no-repeat; inset: auto; width: calc(var(--lw) * 1.28409); height: calc(var(--lw) * 0.85606); left: calc(50cqw - var(--lw) * 0.60508); top: calc((var(--hs) - var(--lw) * 0.85606) / 2); }
.sec .st { z-index: 1; }
p, li, figcaption, h1, h2, h3, h4 { text-wrap: pretty; }
.g { width: calc(200 * var(--u)); height: calc(300 * var(--u)); object-fit: cover; }
.g--1 { left: calc(50 * var(--u)); top: calc(88 * var(--u)); }
.g--2 { left: calc(270 * var(--u)); top: calc(88 * var(--u)); }
.g--3 { left: calc(50 * var(--u)); top: calc(400 * var(--u)); }
.g--4 { left: calc(270 * var(--u)); top: calc(400 * var(--u)); }
.st__his, .st__hers { left: calc(21 * var(--u)); width: calc(478 * var(--u)); font: 400 calc(42.15 * var(--u)) / calc(42 * var(--u)) "Canva Hand", "Allura", cursive; color: #fff; white-space: nowrap; text-shadow: 0 2px 12px rgb(30 40 20 / 0.35); z-index: 2; }
.st__his { top: calc(79 * var(--u)); text-align: left; }
.st__hers { top: calc(662 * var(--u)); text-align: right; }

.sec--veil .sec__bg { background: url("../assets/photos/veil-bg.jpg") 26% 0 / max(113.85%, 100%) auto no-repeat; }
.st__decided { left: calc(60 * var(--u)); top: calc(84 * var(--u)); width: calc(400 * var(--u)); font: 400 calc(33.5 * var(--u)) / calc(33 * var(--u)) "Canva Decided", "Allura", cursive; color: #863538; text-align: left; z-index: 3; }
/* Cặp chân dung chú rể – cô dâu (cùng bó hoa) đặt ngay sau bộ ảnh studio, hai ảnh ngang hàng cân nhau, đỉnh ảnh vòm như khung vòm ở trang chính */
.sec--duo { padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(2.6rem, 7vw, 6rem); }
.duo { --cap: clamp(0.85rem, 0.72rem + 0.6vw, 1.15rem); position: relative; width: min(100% - 2rem, 880px); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.8rem, 3.2vw, 2.6rem); align-items: start; }
.duo__p { margin: 0; }
.duo__p img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 999px 999px 6px 6px; box-shadow: 0 14px 34px rgb(62 21 25 / 0.14); }
.duo__p figcaption { margin-top: 0.9rem; text-align: center; font-style: italic; letter-spacing: 0.04em; color: #863538; font-size: var(--cap); }
/* Trái tim nằm giữa hai dòng chú thích: căn ngang giữa khe hai ảnh, căn dọc giữa dòng chữ (cao ≈ 1,4 × cỡ chữ) */
.duo__heart { position: absolute; left: 50%; bottom: calc(var(--cap) * 0.26); width: calc(var(--cap) * 0.9); height: calc(var(--cap) * 0.9); margin-left: calc(var(--cap) * -0.45); fill: #863538; animation: beat 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .duo__heart { animation: none; } }
.v { object-fit: cover; }
.v--main { left: calc(84 * var(--u)); top: calc(144 * var(--u)); width: calc(236 * var(--u)); height: calc(354 * var(--u)); object-position: 58% 0; z-index: 1; }
.v--a, .v--b, .v--c { left: calc(297 * var(--u)); width: calc(139 * var(--u)); height: calc(139 * var(--u)); z-index: 2; }
.v--a { top: calc(107 * var(--u)); object-position: 50% 23%; }
.v--b { top: calc(251 * var(--u)); object-position: 50% 10%; }
.v--c { top: calc(396 * var(--u)); object-position: 52% 34%; }

.sec--hydra .sec__bg { background: url("../assets/decor/bg-hydrangea.webp") 50% 55.7% / cover; }
.st__doily { left: calc(-3 * var(--u)); top: calc(1 * var(--u)); width: calc(527 * var(--u)); height: calc(464 * var(--u)); overflow: visible; }
.st__doily > img { left: 0; top: 0; width: calc(527 * var(--u)); height: calc(464 * var(--u)); max-width: none; }
.st__note { left: calc(48 * var(--u)); top: calc(166 * var(--u)); width: calc(424 * var(--u)); font: italic 400 calc(20.6 * var(--u)) / calc(32.7 * var(--u)) var(--font-serif); color: #863538; text-align: center; text-wrap: balance; }

/* ============ NÚT NHẠC NỔI ============ */
.music-fab { position: fixed; z-index: 20; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(184 147 90 / 0.5); background: rgb(251 249 247 / 0.9); color: var(--bordeaux-700); display: grid; place-items: center; backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgb(62 21 25 / 0.22); transition: transform 0.3s var(--ease-out); }
.gift-fab { position: fixed; z-index: 20; right: calc(max(1rem, env(safe-area-inset-right)) + 48px + 0.7rem); bottom: max(1rem, env(safe-area-inset-bottom)); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(184 147 90 / 0.5); background: rgb(251 249 247 / 0.9); color: var(--bordeaux-700); display: grid; place-items: center; backdrop-filter: blur(6px); box-shadow: 0 6px 18px rgb(62 21 25 / 0.22); transition: transform 0.3s var(--ease-out); }
.gift-fab[hidden] { display: none; }
/* Hai nút nổi luôn cùng cỡ, icon luôn chính giữa; hiệu ứng hover chỉ cho máy có chuột (trên điện thoại hover bị "dính" sau khi chạm làm nút to/nghiêng) */
.gift-fab, .music-fab { padding: 0; -webkit-tap-highlight-color: transparent; }
.gift-fab svg, .music-fab svg { display: block; flex: none; }
@media (hover: hover) { .gift-fab:hover { transform: scale(1.08) rotate(-6deg); } }
.gift-fab svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Xem ảnh phóng to (4 ảnh vườn) */
.sec--garden .g { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .sec--garden .g:hover { filter: brightness(1.06) saturate(1.05); } }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream-50); overflow: hidden; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(22 7 9 / 0.94); backdrop-filter: blur(4px); }
.lightbox__stage { margin: 0; display: grid; justify-items: center; gap: 0.8rem; padding: 3.4rem 0.8rem 3.6rem; max-width: 100vw; max-height: 100svh; }
.lightbox__img { display: block; width: auto; height: auto; max-width: min(94vw, 880px); max-height: calc(100svh - 9rem); object-fit: contain; border-radius: 4px; box-shadow: 0 24px 60px rgb(0 0 0 / 0.55); touch-action: none; user-select: none; -webkit-user-drag: none; transform-origin: center; transition: opacity 0.25s ease, transform 0.22s var(--ease-out); cursor: zoom-in; will-change: transform; }
.lightbox__stage { touch-action: none; }
.lightbox.is-zoomed .lightbox__img { cursor: grab; }
.lightbox__count { transition: opacity 0.2s; }
.lightbox.is-zoomed .lightbox__count { opacity: 0; pointer-events: none; }
.lightbox.is-dragging .lightbox__img { transition: opacity 0.25s ease; cursor: grabbing; }
.lightbox__zoom { position: absolute; z-index: 2; top: 0.7rem; left: 0.7rem; display: flex; align-items: center; height: 46px; border-radius: 23px; background: rgb(22 7 9 / 0.5); backdrop-filter: blur(6px); overflow: hidden; }
.lightbox__zoom button { height: 100%; border: 0; background: transparent; color: var(--cream-50); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: background 0.25s, opacity 0.25s; }
.lightbox__zoom button[data-zoom="in"], .lightbox__zoom button[data-zoom="out"] { width: 46px; font-size: 1.6rem; line-height: 1; padding-bottom: 0.15rem; }
.lightbox__level { min-width: 3.6rem; font-size: 0.82rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; opacity: 0.85; }
.lightbox__zoom button:disabled { opacity: 0.3; cursor: default; }
@media (hover: hover) { .lightbox__zoom button:not(:disabled):hover { background: rgb(251 249 247 / 0.22); } }
.lightbox__img.is-loading { opacity: 0; }
.lightbox[open] .lightbox__img:not(.is-loading) { animation: lb-in 0.32s var(--ease-out); }
@keyframes lb-in { from { transform: scale(0.96); } }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: 1rem; margin: 0; text-align: center; letter-spacing: 0.3em; font-size: 0.85rem; text-indent: 0.3em; opacity: 0.75; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(22 7 9 / 0.5); backdrop-filter: blur(6px); color: var(--cream-50); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.25s; }
@media (hover: hover) { .lightbox__close:hover, .lightbox__nav:hover { background: rgb(251 249 247 / 0.3); } }
.lightbox__close { top: 0.7rem; right: 0.7rem; width: 46px; height: 46px; font-size: 1.15rem; }
.lightbox__nav { top: 50%; width: 46px; height: 46px; margin-top: -23px; font-size: 2rem; line-height: 1; padding-bottom: 0.25rem; }
.lightbox__nav--prev { left: 0.6rem; }
.lightbox__nav--next { right: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .lightbox[open] .lightbox__img:not(.is-loading) { animation: none; } .lightbox__img { transition: none; } }
.gift-dialog { border: 0; padding: clamp(1.6rem, 5vw, 2.4rem) clamp(1.2rem, 5vw, 2.4rem); background: var(--cream-50); color: var(--bordeaux-700); width: min(420px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); overflow: auto; border-radius: 2px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.4); text-align: center; }
.gift-dialog[open] { display: grid; gap: 0.9rem; justify-items: center; }
.gift-dialog::backdrop { background: rgb(62 21 25 / 0.62); backdrop-filter: blur(3px); }
.gift-dialog__icon { width: 64px; height: auto; }
.gift-dialog__close { position: absolute; top: 0.3rem; right: 0.3rem; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; font-size: 1.15rem; color: var(--bordeaux-500); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .music-fab:hover { transform: scale(1.08); } }
.music-fab svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.music-fab[aria-pressed="false"] .music-fab__off { display: block; }
.music-fab[aria-pressed="true"] .music-fab__off { display: none; }
/* Cả hai icon cùng "rung" để thu hút chú ý: lắc nhanh một nhịp rồi nghỉ, nút giữ nguyên cỡ 48px */
@keyframes fab-wiggle {
  0%, 62%, 100% { transform: rotate(0); }
  66% { transform: rotate(-16deg); }
  70% { transform: rotate(14deg); }
  74% { transform: rotate(-11deg); }
  78% { transform: rotate(8deg); }
  82% { transform: rotate(-4deg); }
  86% { transform: rotate(0); }
}
.gift-fab svg, .music-fab svg { transform-origin: 50% 50%; animation: fab-wiggle 3.2s ease-in-out infinite; }
.music-fab svg { animation-delay: 0.35s; }
@media (prefers-reduced-motion: reduce) { .gift-fab svg, .music-fab svg { animation: none; } }

/* ============ RSVP DIALOG ============ */
.rsvp { border: 0; padding: 0; background: var(--cream-50); color: var(--bordeaux-700); width: min(520px, calc(100vw - 2rem)); max-height: calc(100svh - 2rem); border-radius: 2px; box-shadow: 0 30px 80px rgb(0 0 0 / 0.4); text-align: left; }
.rsvp::backdrop { background: rgb(62 21 25 / 0.62); backdrop-filter: blur(3px); }
.rsvp form { padding: clamp(1.5rem, 5vw, 2.6rem); display: grid; gap: 1.1rem; }
.rsvp h2 { text-align: center; }
.rsvp label, .rsvp legend { display: grid; gap: 0.35rem; font-size: 1rem; letter-spacing: 0.04em; font-weight: 500; }
.rsvp input, .rsvp textarea { font: inherit; font-size: 1.1rem; padding: 0.65rem 0.8rem; border: 1px solid var(--cream-200); border-bottom-color: var(--rose-400); background: #fff; color: inherit; border-radius: 2px; }
.rsvp input:focus, .rsvp textarea:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; }
.rsvp__msg { min-height: 1.4em; text-align: center; font-style: italic; }
.rsvp__msg.is-error { color: #a1262b; }
.rsvp__actions { display: grid; gap: 0.6rem; justify-items: center; }

/* ============ MOBILE ============ */
@media (max-width: 600px) {
  .countdown__row { gap: 0.1rem; }
  .countdown__row div:not(.cd-sep) { min-width: clamp(52px, 15vw, 90px); }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---- Bản máy tính: Canva dùng một bố cục riêng, khổ 1265 ---- */
@media (min-width: 900px) {
  .st { --u: calc(100cqw / 1265); width: 100%; aspect-ratio: 1265 / var(--hd); }
  .st__doves { left: calc(545 * var(--u)); top: calc(70 * var(--u)); width: calc(175 * var(--u)); height: calc(115 * var(--u)); }
  .st__title { left: calc(423 * var(--u)); top: calc(225 * var(--u)); width: calc(419 * var(--u)); font-size: calc(66.7 * var(--u)); line-height: calc(79.6 * var(--u)); }
  .sec--damask .sec__bg { background-position: 50% 52.6%; }
  .st__play { left: calc(550 * var(--u)); top: calc(50 * var(--u)); width: calc(165 * var(--u)); height: calc(166 * var(--u)); }
  .st__tap { left: calc(482 * var(--u)); top: calc(223 * var(--u)); width: calc(302 * var(--u)); font-size: calc(22.2 * var(--u)); line-height: calc(30.6 * var(--u)); }
  .sec--garden { --hs: calc(100cqw * 1055 / 1265); }
  .g { width: calc(274 * var(--u)); height: calc(411 * var(--u)); }
  .g--1 { left: calc(348 * var(--u)); top: calc(105 * var(--u)); } .g--2 { left: calc(646 * var(--u)); top: calc(105 * var(--u)); } .g--3 { left: calc(348 * var(--u)); top: calc(538 * var(--u)); } .g--4 { left: calc(646 * var(--u)); top: calc(538 * var(--u)); }
  .st__his, .st__hers { left: calc(223 * var(--u)); width: calc(819 * var(--u)); font-size: calc(79 * var(--u)); line-height: calc(78.7 * var(--u)); }
  .st__his { top: calc(88 * var(--u)); } .st__hers { top: calc(875 * var(--u)); }
  .sec--veil .sec__bg { background-position: 27% 0; }
  .st__decided { left: calc(146 * var(--u)); top: calc(201 * var(--u)); width: calc(973 * var(--u)); font-size: calc(81.5 * var(--u)); line-height: calc(80.6 * var(--u)); }
  .v--main { left: calc(205 * var(--u)); top: calc(352 * var(--u)); width: calc(573 * var(--u)); height: calc(862 * var(--u)); object-position: 57% 0; }
  .v--a, .v--b, .v--c { left: calc(722 * var(--u)); width: calc(338 * var(--u)); height: calc(338 * var(--u)); }
  .v--a { top: calc(262 * var(--u)); } .v--b { top: calc(613 * var(--u)); } .v--c { top: calc(964 * var(--u)); }
  .sec--hydra .sec__bg { background-position: 50% 52.3%; }
  .st__doily { left: calc(349 * var(--u)); top: calc(1 * var(--u)); width: calc(567 * var(--u)); height: calc(500 * var(--u)); }
  .st__doily > img { left: 0; width: calc(567 * var(--u)); height: calc(500 * var(--u)); }
  .st__note { left: calc(404 * var(--u)); top: calc(181 * var(--u)); width: calc(457 * var(--u)); font-size: calc(22.2 * var(--u)); line-height: calc(35.2 * var(--u)); }
}


.g--3 { object-position: 50% 100%; }

/* Chân trang (đo từ Canva): khung 520 trên điện thoại, 1265 trên máy tính */
.sec--foot { background: #fbfaf9; }
.ft__love { left: calc(110 * var(--u)); top: calc(74 * var(--u)); width: calc(301 * var(--u)); font: 400 calc(37.8 * var(--u)) / calc(38 * var(--u)) "Canva Script", "Allura", cursive; color: #863538; text-align: center; white-space: nowrap; }
.foot__frame { position: absolute; container-type: inline-size; left: calc(167 * var(--u)); top: calc(144 * var(--u)); width: calc(187 * var(--u)); aspect-ratio: 201 / 194; }
.foot__frame img { display: block; width: 100%; height: 100%; }
.foot__frame i { position: absolute; font-style: normal; white-space: nowrap; color: #863538; line-height: normal; }
.ff-d { font-family: "Canva Icon"; left: 30.8cqw; top: 24.9cqw; font-size: 27.5cqw; }
.ff-l { font-family: "Canva Script"; left: 35.8cqw; top: 50.7cqw; font-size: 30.4cqw; }
.ft__btn { left: calc(97 * var(--u)); top: calc(372 * var(--u)); width: calc(327 * var(--u)); height: calc(71 * var(--u)); border: 0; border-radius: 0; background: #863538; color: #fff; cursor: pointer; font: 700 calc(22.9 * var(--u)) / 1 "Canva Body", Georgia, serif; letter-spacing: 0.058em; transition: background 0.3s, transform 0.3s var(--ease-out); }
.ft__btn:hover { background: var(--bordeaux-700); transform: translateY(-2px); }
.ft__back { left: calc(129 * var(--u)); top: calc(32 * var(--u)); width: calc(262 * var(--u)); font: 400 calc(18.3 * var(--u)) / calc(23 * var(--u)) "Canva Body", Georgia, serif; letter-spacing: 0.05em; color: #863538; text-align: center; text-decoration: none; white-space: nowrap; }
.ft__back:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .ft__love { left: calc(470 * var(--u)); top: calc(80 * var(--u)); width: calc(324 * var(--u)); font-size: calc(40.7 * var(--u)); line-height: calc(41 * var(--u)); }
  .foot__frame { left: calc(532 * var(--u)); top: calc(155 * var(--u)); width: calc(201 * var(--u)); }
  .ft__btn { left: calc(457 * var(--u)); top: calc(417 * var(--u)); width: calc(352 * var(--u)); height: calc(77 * var(--u)); font-size: calc(24.7 * var(--u)); }
  .ft__back { left: calc(492 * var(--u)); top: calc(35 * var(--u)); width: calc(282 * var(--u)); font-size: calc(19.8 * var(--u)); line-height: calc(25 * var(--u)); }
}

/* ---- INVITE STAGE: cặp đôi + lời mời (điện thoại 520, máy tính 1265) ---- */
.couple__who { display: grid; font: italic 400 calc(20.5 * var(--u)) / calc(28.2 * var(--u)) "Canva Body", Georgia, serif; color: #863538; text-align: center; }
.cw--l { left: calc(21 * var(--u)); top: calc(163 * var(--u)); width: calc(185 * var(--u)); } .cw--r { left: calc(314 * var(--u)); top: calc(163 * var(--u)); width: calc(185 * var(--u)); }
.st .lace--photo { left: calc(159 * var(--u)); top: calc(57 * var(--u)); width: calc(203 * var(--u)); }
.iv-h { left: calc(56 * var(--u)); top: calc(255 * var(--u)); width: calc(407 * var(--u)); font: 500 calc(41 * var(--u)) / calc(48.7 * var(--u)) var(--font-display); color: #863538; text-align: center; white-space: nowrap; }
.iv-p { font: 400 calc(22.9 * var(--u)) / calc(31.8 * var(--u)) "Canva Body", Georgia, serif; color: #863538; text-align: center; }
.iv-p1 { left: calc(21 * var(--u)); top: calc(331 * var(--u)); width: calc(477 * var(--u)); } .iv-p2 { left: calc(21 * var(--u)); top: calc(522 * var(--u)); width: calc(477 * var(--u)); white-space: nowrap; } .iv-p3 { left: calc(21 * var(--u)); top: calc(618 * var(--u)); width: calc(477 * var(--u)); }
.iv-frame { left: calc(187 * var(--u)); top: calc(660 * var(--u)); width: calc(145 * var(--u)); }
@media (min-width: 900px) {
  .couple__who { font-size: calc(29.6 * var(--u)); line-height: calc(40.7 * var(--u)); }
  .cw--l { left: calc(287 * var(--u)); top: calc(214 * var(--u)); width: calc(268 * var(--u)); } .cw--r { left: calc(711 * var(--u)); top: calc(214 * var(--u)); width: calc(268 * var(--u)); }
  .st .lace--photo { left: calc(486 * var(--u)); top: calc(62 * var(--u)); width: calc(293 * var(--u)); }
  .iv-h { left: calc(338 * var(--u)); top: calc(348 * var(--u)); width: calc(589 * var(--u)); font-size: calc(59.3 * var(--u)); line-height: calc(70.4 * var(--u)); }
  .iv-p { font-size: calc(24.7 * var(--u)); line-height: calc(34.3 * var(--u)); }
  .iv-p1 { left: calc(375 * var(--u)); top: calc(455 * var(--u)); width: calc(514 * var(--u)); } .iv-p2 { left: calc(375 * var(--u)); top: calc(660 * var(--u)); width: calc(514 * var(--u)); } .iv-p3 { left: calc(375 * var(--u)); top: calc(763 * var(--u)); width: calc(514 * var(--u)); }
  .iv-frame { left: calc(554 * var(--u)); top: calc(809 * var(--u)); width: calc(156 * var(--u)); }
}

/* Hiệu ứng xuất hiện kiểu Canva: ảnh = mờ dần + thu nhỏ 1,15→1; chữ/nút = trượt lên 80px; dòng "Tap the icon" trượt từ trái */
[data-fx] { opacity: 0; transition: opacity var(--dur, 1.2s) ease-out var(--dl, 0s), transform var(--dur, 1.4s) cubic-bezier(0.2, 0.7, 0.2, 1) var(--dl, 0s); }
[data-fx="zoom"] { transform: scale(1.15); }
/* Ảnh trong khối garden/veil (đo trên Canva): mờ dần ease-out bậc hai + thu nhỏ 1,15 → 1 ease-in-out, cùng ~1,05s */
.g[data-fx], .v[data-fx], .sec__bg[data-fx] { transition: opacity 1.05s cubic-bezier(0.5, 1, 0.89, 1) var(--dl, 0s), transform 1.05s cubic-bezier(0.42, 0, 0.58, 1) var(--dl, 0s); }
.st__his[data-fx], .st__hers[data-fx] { transition: opacity 0.5s cubic-bezier(0.5, 1, 0.89, 1) var(--dl, 0s), transform 0.5s cubic-bezier(0.5, 1, 0.89, 1) var(--dl, 0s); }
[data-fx="rise"] { transform: translateY(calc(80 * var(--u, 1px))); }
[data-fx="left"] { transform: translateX(calc(-80 * var(--u, 1px))); }
[data-fx].fx-in { opacity: var(--o, 1); transform: none; }
/* "Gõ chữ": khối luôn hiện, từng ký tự mờ → rõ lần lượt (~16ms/ký tự như Canva) */
[data-fx="type"] { opacity: 1; transform: none; transition: none; }
.ty-w { white-space: nowrap; }
.ty-c { opacity: 0; transition: opacity 0.12s linear calc(var(--dl, 0.15s) + var(--i) * 17ms); }
.fx-in .ty-c { opacity: 1; }
.st__play.fx-in:hover { transform: scale(1.05); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { [data-fx], .ty-c { opacity: var(--o, 1); transform: none; transition: none; } }

/* Đầu trang story ở khoảng 900–1199px: Canva không phóng theo tỉ lệ mà tăng chậm theo bề rộng (đo ở 885px và 1055px) */
@media (min-width: 900px) and (max-width: 1199px) {
  .sec--head .st { aspect-ratio: auto; height: calc(315px + 5.29vw); }
  .sec--head .st__doves { left: calc(50% - (152.7px + 2.97cqw) / 2); top: calc(61.5px + 1.18cqw); width: calc(152.7px + 2.97cqw); height: auto; aspect-ratio: 163 / 107; }
  .sec--head .st__title { left: calc(50% - 218px); top: calc(198.8px + 3.53cqw); width: 436px; font-size: calc(60px + 0.94cqw); line-height: 1.195; }
  .sec--damask .st { aspect-ratio: auto; height: calc(315px + 5.29vw); }
  .sec--damask .st__play { left: calc(50% - (148.2px + 2.35cqw) / 2); top: 52.5px; width: calc(148.2px + 2.35cqw); height: auto; aspect-ratio: 153 / 154; }
  .sec--damask .st__tap { left: calc(50% - (267.4px + 4.7cqw) / 2); top: calc(203px + 2.94cqw); width: calc(267.4px + 4.7cqw); font-size: calc(20.2px + 0.294cqw); line-height: 1.37; }
}

/* Garden + hydrangea ở 900–1109px: Canva giữ nguyên bố cục khổ 1265 nhưng đơn vị u tăng chậm theo bề rộng (≈ 0,9015 + 0,00014 × bề rộng; đo ở 905/985/1085px), khối căn giữa và bị cắt hai bên. Từ ~1115px Canva quay lại u = bề rộng / 1265. Khối veil luôn theo bề rộng / 1265. */
@media (min-width: 900px) and (max-width: 1109px) {
  .sec--garden .st, .sec--hydra .st { --u: calc(0.9015px + 0.013989cqw); width: calc(1265 * var(--u)); margin: 0 0 0 calc(50cqw - 632.5 * var(--u)); }
  .sec--garden { --hs: calc(1055 * (0.9015px + 0.013989cqw)); }
}

/* Từ 1200px: Canva phóng bố cục khổ 1265 theo bề rộng (u = bề rộng / 1265) tới 1265px, sau đó chậm lại (≈ +0,05% mỗi px; 1425px → 1,08), dừng ở 1,08 (đo ở 1190, 1265, 1425 và 1920px); khối căn giữa */
@media (min-width: 1200px) {
  .st { --u: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); width: calc(1265 * var(--u)); }
  /* Ảnh nền "veil" của Canva chỉ nằm trong khung nội dung (1366px ở 1920px), không trải kín màn như ảnh nền hoa/hydrangea; ảnh rộng 113,75% khung đó */
  .sec--garden { --hs: calc(1055 * min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw))); }
  .sec--veil { --veil-w: min(100cqw, calc(1265 * min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)))); }
  .sec--veil .sec__bg { inset: 0 auto 0 50%; width: var(--veil-w); margin-left: calc(var(--veil-w) / -2); }
}

/* Hộp quà trong trang: bấm để mở mã QR, lắc nhẹ để mời chạm */
.gift-open .detail__icon--sm { width: clamp(116px, 32vw, 150px); }
.gift-open { display: block; margin: 0 auto; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px; -webkit-tap-highlight-color: transparent; transform-origin: 50% 88%; animation: gift-shake 2.4s ease-in-out infinite; transition: filter 0.3s var(--ease-out); }
@media (hover: hover) { .gift-open:hover { animation-play-state: paused; filter: drop-shadow(0 8px 14px rgb(91 34 41 / 0.28)); } }
.gift-open:active { transform: scale(0.96); animation: none; }
@keyframes gift-shake {
  0%, 56%, 100% { transform: rotate(0) translateY(0) scale(1); }
  3% { transform: rotate(-14deg) translateY(-9px) scale(1.07); }
  8% { transform: rotate(12deg) translateY(-6px) scale(1.05); }
  13% { transform: rotate(-11deg) translateY(-7px) scale(1.05); }
  18% { transform: rotate(9deg) translateY(-4px) scale(1.03); }
  23% { transform: rotate(-7deg) translateY(-3px) scale(1.02); }
  28% { transform: rotate(5deg) translateY(-2px) scale(1.01); }
  33% { transform: rotate(-3deg) translateY(-1px); }
  38% { transform: rotate(1.5deg) translateY(0); }
  42% { transform: rotate(0) translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .gift-open { animation: none; } }
/* Popup quà: QR tự co theo chiều cao màn để nút lưu ảnh luôn nằm trong tầm nhìn, không phải cuộn */
.gift-dialog .qr { margin: 0.2rem 0 0; gap: 0.7rem; }
.gift-dialog .qr img { width: min(220px, 58vw, calc((100svh - 372px) * 0.675)); min-width: 140px; }
.gift-dialog .qr figcaption { max-width: 26ch; font-size: 0.9rem; line-height: 1.45; text-wrap: balance; }
.gift-dialog__lead { margin: 0; max-width: 26ch; font-weight: 700; font-size: 1.08rem; line-height: 1.45; text-wrap: balance; }
.gift-dialog__note { margin: 0; font-style: italic; font-size: 0.98rem; opacity: 0.85; }
.gift-dialog__save { display: inline-block; padding: 0.7rem 1.5rem; border: 1px solid var(--bordeaux-500); border-radius: 2px; color: var(--bordeaux-500); text-decoration: none; letter-spacing: 0.2em; font-size: 0.85rem; text-indent: 0.2em; transition: background 0.25s, color 0.25s; }
@media (hover: hover) { .gift-dialog__save:hover { background: var(--bordeaux-500); color: var(--cream-50); } }
.gift-dialog__save:active { background: var(--bordeaux-500); color: var(--cream-50); }
@media (max-height: 720px) {
  .gift-dialog { padding-block: 1.1rem; }
  .gift-dialog[open] { gap: 0.5rem; }
  .gift-dialog__icon { width: 46px; }
  .gift-dialog .script--lg { font-size: 1.65rem; }
}
@media (max-height: 600px) { .gift-dialog .qr figcaption { display: none; } }
.gift-dialog .script--lg { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.3rem); line-height: 1.15; }

/* Đồng hồ đếm ngược: bản desktop khớp embed Canva (Cardo, số 17.4cqw, nhãn 4cqw, dấu ":" giữa các cột) */
.countdown .cd-sep { display: grid; min-width: 0; padding: 0; }
.countdown .cd-sep span { visibility: hidden; }
@media (min-width: 720px) {
  .countdown { container-type: inline-size; position: relative; display: block; padding: 0; background-size: 100% auto; background-position: 50% 33.87%; }
  .countdown::before { content: ""; display: block; height: 36.29cqw; }
  .countdown .script { position: absolute; left: 0; right: 0; top: 1.9cqw; margin: 0; text-align: center; font-size: 4.69cqw; line-height: 1.1; color: #863538; z-index: 0; }
  .countdown__row { position: absolute; left: 0; right: 0; top: 5.25cqw; gap: 0; z-index: 1; align-items: flex-start; }
  .countdown__row div { min-width: 0; justify-items: center; align-content: start; }
  .countdown__row b { font-size: 17.4cqw; line-height: 1.05; }
  .countdown__row span { font-size: 4cqw; margin-top: 3.35cqw; line-height: normal; white-space: nowrap; color: var(--bordeaux-500); }
  .countdown .cd-sep { padding: 0 0.83cqw; }
}

/* Khối "Thông tin lễ cưới": bản desktop/tablet theo số đo Canva (c=1265: section 704, oval 510x449 @378,127) */
@media (min-width: 900px) {
  .info { container-type: inline-size; position: relative; padding: 0; --iu: calc(0.9015px + 0.013989cqw); }
  .info::before { content: ""; display: block; height: calc(704 * var(--iu)); }
  .info__title { font-size: 8.16cqw; top: 50%; color: #863538; }
  .info__more { font-size: 3.1cqw; letter-spacing: 0.05em; top: 60%; }
  .info__stage { position: absolute; top: calc(-14.9 * var(--iu)); left: calc(50% - 329.1 * var(--iu)); width: calc(643.2 * var(--iu)); margin: 0; }
}
@media (min-width: 1110px) {
  .info { --iu: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); }
}

/* Khối "Khoảnh khắc": bản desktop/tablet theo số đo Canva (c=1265: section 795, ảnh 362 @452,184) */
@media (min-width: 900px) {
  .moments { container-type: inline-size; position: relative; display: block; padding: 0; --mu: calc(0.9015px + 0.013989cqw); }
  .moments::before { content: ""; display: block; height: calc(795 * var(--mu)); }
  .moments__title { position: absolute; left: 0; right: 0; top: calc(93 * var(--mu)); margin: 0; text-align: center; font-size: calc(59.2 * var(--mu)); line-height: calc(84 * var(--mu)); color: #863538; }
  .moments .arch { position: absolute; left: calc(50% - 181 * var(--mu)); top: calc(184 * var(--mu)); width: calc(362 * var(--mu)); }
  .moments .link { position: absolute; left: 50%; right: auto; transform: translateX(-50%); width: max-content; top: calc(666 * var(--mu)); text-align: center; font-size: calc(19.9 * var(--mu)); letter-spacing: 0.05em; }
}
@media (min-width: 1110px) {
  .moments { --mu: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); }
}

/* Dải hộp nhẫn: bản desktop/tablet theo số đo Canva (c=1265: cao 382, hộp nhẫn 204 @531,52) */
@media (min-width: 900px) {
  .ringbanner { container-type: inline-size; position: relative; display: block; min-height: 0; --ru: calc(0.9015px + 0.013989cqw); }
  .ringbanner::before { content: ""; display: block; height: calc(382 * var(--ru)); }
  .ringbanner img { position: absolute; left: calc(50% - 102 * var(--ru)); top: calc(52 * var(--ru)); width: calc(204 * var(--ru)); height: auto; }
}
@media (min-width: 1110px) {
  .ringbanner { --ru: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); }
}

/* Icon / đường kẻ / vệt màu của trang "Thời gian & Địa điểm" lấy từ bản Canva */
.detail__icon { width: clamp(108px, 12.4vw, 157px); height: auto; display: block; }
.detail__icon--sm { width: clamp(84px, 9.5vw, 121px); }
.hearts { position: relative; container-type: inline-size; }
.hearts img { display: block; width: 100%; height: auto; }
.hearts i { position: absolute; font-style: normal; font-weight: 700; font-size: 14.2cqw; letter-spacing: 0.1em; line-height: 1; color: #520916; transform: translate(-50%, -50%); }
.hearts__d { left: 22.5%; top: 79%; transform: translate(-50%, -50%) rotate(-20deg) !important; }
.hearts__l { left: 58.5%; top: 72%; }
.detail__divider { display: block; width: min(506px, 80vw); height: auto; margin: 0.4rem 0; }


/* ===== Trang "Thời gian & Địa điểm": cỡ chữ/khoảng cách đo từ Canva (c=1265, đơn vị --du) ===== */
@media (min-width: 900px) {
  #view-details { container-type: inline-size; }
  #view-details .detail { --du: calc(0.9015px + 0.013989cqw); gap: 0; padding: 0; letter-spacing: 0.05em; }
  #view-details .detail > * { margin-top: 0; margin-bottom: 0; }
  #view-details .detail__label, #view-details .detail__time, #view-details .detail__date, #view-details .detail__venue, #view-details .detail__lunar, #view-details .detail > .link { letter-spacing: 0.05em; }
  #view-details .detail__title { font-size: calc(59.3 * var(--du)); line-height: calc(84 * var(--du)); font-weight: 500; margin-top: calc(23 * var(--du)); letter-spacing: 0; white-space: nowrap; }
  #view-details .detail__divider { width: calc(506 * var(--du)); height: calc(12.65 * var(--du)); }
  #view-details .detail__label { font-size: calc(29.6 * var(--du)); line-height: calc(30 * var(--du)); font-weight: 700; }
  #view-details .detail__time { font-size: calc(29.6 * var(--du)); line-height: calc(30 * var(--du)); font-weight: 400; }
  #view-details .detail__date { font-size: calc(39.5 * var(--du)); line-height: calc(40 * var(--du)); font-weight: 700; }
  #view-details .detail__lunar { font-size: calc(22.2 * var(--du)); line-height: calc(22 * var(--du)); font-style: italic; }
  #view-details .detail__venue { font-size: calc(29.6 * var(--du)); line-height: calc(30 * var(--du)); font-weight: 700; white-space: nowrap; }
  #view-details .detail > .link { font-size: calc(29.6 * var(--du)); line-height: calc(30 * var(--du)); font-weight: 400; }
  #view-details .detail__sub { font-size: calc(51.9 * var(--du)); line-height: calc(74 * var(--du)); font-weight: 500; letter-spacing: 0; }
  #view-details .detail__sub.script--xl { font-size: calc(59.3 * var(--du)); line-height: calc(84 * var(--du)); }
  #view-details .detail__gift { font-size: calc(22.2 * var(--du)); line-height: calc(30.5 * var(--du)); max-width: calc(470 * var(--du)); letter-spacing: 0; }
  #view-details .detail__icon { width: calc(157 * var(--du)); }
  #view-details .detail__icon--sm { width: calc(121 * var(--du)); }
  #view-details .gift-open .detail__icon--sm { width: calc(165 * var(--du)); }

  /* khối 1: icon top 70 -> tiêu đề 226 -> đường kẻ 340 -> các dòng -> đường kẻ 825 -> link 900 */
  #view-details .detail:nth-child(1) { padding: calc(70 * var(--du)) 0 calc(132 * var(--du)); }
  #view-details .detail:nth-child(1) .detail__divider:nth-of-type(1) { margin-top: calc(30 * var(--du)); }
  #view-details .detail__label { margin-top: calc(38 * var(--du)); }
  #view-details .detail__time { margin-top: calc(34 * var(--du)); }
  #view-details .detail__date { margin-top: calc(39 * var(--du)); }
  #view-details .detail__lunar { margin-top: calc(35 * var(--du)); }
  #view-details .detail__venue { margin-top: calc(73 * var(--du)); }
  #view-details .detail__venue + .detail__lunar { margin-top: calc(29 * var(--du)); }
  #view-details .detail__venue + .detail__lunar + .detail__divider { margin-top: calc(50 * var(--du)); }
  #view-details .detail > .link { margin-top: calc(56 * var(--du)); }
  #view-details .detail > .cal { margin-top: calc(70 * var(--du)); }
  /* khối 2: icon +52 -> tiêu đề +202 -> vệt màu +341 */
  #view-details .detail:nth-child(2) { padding: calc(52 * var(--du)) 0 calc(107 * var(--du)); }
  #view-details .detail:nth-child(2) .detail__sub { margin-top: calc(26 * var(--du)); }
  #view-details .detail:nth-child(2) .swatches { margin-top: calc(65 * var(--du)); gap: calc(11 * var(--du)); }
  #view-details .swatches li { width: calc(75 * var(--du)); }
  /* khối 3: icon +52 -> tiêu đề +203 -> chữ */
  #view-details .detail:nth-child(3) { padding: calc(52 * var(--du)) 0 calc(80 * var(--du)); }
  #view-details .detail:nth-child(3) .detail__sub { margin-top: calc(24 * var(--du)); }
  #view-details .detail:nth-child(3) .detail__gift:nth-of-type(1) { margin-top: calc(14 * var(--du)); }
  #view-details .detail:nth-child(3) .detail__gift + .detail__gift { margin-top: calc(61 * var(--du)); }
}
@media (min-width: 1110px) {
  #view-details .detail { --du: min(1.08px, calc(100cqw / 1265), calc(0.3675px + 0.05cqw)); }
}

.ft__credit { margin: 0; padding: 0.4rem 1rem 1.4rem; text-align: center; font-size: 0.72rem; letter-spacing: 0.08em; color: #863538; opacity: 0.6; }
