/* ============ Bảng màu (10 giao diện) ============ */
:root, [data-theme="nude"] {
  --bg: #f2e6e0; --bg2: #eadad2; --card: #f7eeea; --ink: #6c5953; --ink2: #9d8881; --acc: #b09485; --acc-ink: #fff;
  --gold: #c99b4f; --line: #dcc8bf; --sh-d: rgba(160, 125, 112, .28); --sh-l: rgba(255, 255, 255, .9);
  --rsvp1: #c4a89b; --rsvp2: #a38677; --art: none; --pill: #fbf3f0;
}
[data-theme="nau"] { --bg: #f7f2ec; --bg2: #ede3d8; --card: #fbf7f2; --ink: #554239; --ink2: #8b766b; --acc: #7d6355; --gold: #b08d57; --line: #ddcfc2; --sh-d: rgba(110, 85, 70, .22); --rsvp1: #9b8070; --rsvp2: #6f5649; --pill: #fff; }
[data-theme="bacha"] { --bg: #e8f1ec; --bg2: #d9e9e1; --card: #f2f8f5; --ink: #3f5a50; --ink2: #7a978c; --acc: #6f9c8b; --gold: #c4a35a; --line: #c4dbd0; --sh-d: rgba(80, 130, 110, .22); --rsvp1: #8fb5a6; --rsvp2: #5f8a7a; --pill: #fff; }
[data-theme="oaihuong"] { --bg: #ede7f3; --bg2: #e0d7ec; --card: #f6f2fa; --ink: #574a6b; --ink2: #8f82a3; --acc: #9483b3; --gold: #c2a15c; --line: #d5cae4; --sh-d: rgba(110, 90, 150, .22); --rsvp1: #ab9cc7; --rsvp2: #7f6e9f; --pill: #fff; }
[data-theme="hoanghon"] { --bg: #fbebe3; --bg2: #f6dacd; --card: #fdf4ef; --ink: #7a4f43; --ink2: #b08a7e; --acc: #df8e74; --gold: #d99f4f; --line: #f0cfc1; --sh-d: rgba(200, 120, 95, .24); --rsvp1: #eaa58e; --rsvp2: #c87159; --pill: #fff; }
[data-theme="hoangkim"] { --bg: #f8f1e3; --bg2: #efe3c9; --card: #fdf9f0; --ink: #5e4a2a; --ink2: #9a865f; --acc: #b8913f; --gold: #c9a043; --line: #e5d5b0; --sh-d: rgba(150, 120, 60, .24); --rsvp1: #cdaa63; --rsvp2: #9c7a33; --pill: #fff; }
[data-theme="songhy"] { --bg: #faede7; --bg2: #f3dcd2; --card: #fff7f3; --ink: #8c1f1f; --ink2: #b35a4f; --acc: #b3261e; --gold: #d4a24c; --line: #efc9bd; --sh-d: rgba(160, 50, 40, .2); --rsvp1: #c9453b; --rsvp2: #93201a; --pill: #fff; --art: sepia(1) saturate(4) hue-rotate(-30deg) brightness(.8); }
[data-theme="vuonhoa"] { --bg: #eef1e7; --bg2: #e1e7d5; --card: #f7f9f1; --ink: #4d5a3f; --ink2: #87947a; --acc: #8a9b6e; --gold: #c2a35a; --line: #d3dcc2; --sh-d: rgba(100, 120, 80, .22); --rsvp1: #a3b388; --rsvp2: #6f8053; --pill: #fff; }
[data-theme="demsao"] { --bg: #151b30; --bg2: #0f1426; --card: #1d2645; --ink: #f1e7d0; --ink2: #b9b09d; --acc: #c9a35b; --acc-ink: #151b30; --gold: #e3c27b; --line: #3a4468; --sh-d: rgba(0, 0, 0, .45); --sh-l: rgba(255, 255, 255, .05); --rsvp1: #2a3560; --rsvp2: #1b2242; --pill: #27325a; --art: invert(.92) sepia(.35) saturate(1.6) hue-rotate(5deg); }

/* ============ Nền tảng ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg);
  font: 300 15px/1.65 'Be Vietnam Pro', system-ui, sans-serif;
}
body.is-cover { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
[data-t], [data-i] { white-space: pre-line; }
.center { text-align: center; }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }

.page { position: relative; overflow-x: clip; }
.wrap { position: relative; width: min(100% - 36px, 520px); margin-inline: auto; }
.sec { position: relative; padding: clamp(56px, 9vw, 120px) 0; text-align: center; }
.sec.alt, .duo-row { background: linear-gradient(180deg, var(--bg), var(--bg2) 50%, var(--bg)); }
.soft {
  background: var(--card); border-radius: 34px;
  box-shadow: 14px 14px 34px var(--sh-d), -12px -12px 28px var(--sh-l), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.card-pad { padding: clamp(30px, 5vw, 56px) clamp(20px, 4vw, 52px); position: relative; }

/* ============ Chữ ============ */
.script { font-family: 'Moon Dance', 'Ephesis', cursive; font-weight: 400; line-height: 1.05; }
.script-sm { font-family: 'Ephesis', 'Great Vibes', cursive; font-size: 1.55em; line-height: 1.2; color: var(--ink); }
.title-script { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: clamp(44px, 6vw, 72px); line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.title-serif { font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.title-serif.sm { font-size: 26px; }
.caps { font-family: 'Josefin Sans', sans-serif; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 400; }
.gold { color: var(--gold) !important; }
.light { color: #fff !important; }
.sub { color: var(--ink2); font-size: 14.5px; margin: 0 auto 22px; max-width: 460px; }
.amp { font-family: 'Great Vibes', cursive; font-style: normal; color: var(--ink2); }
.venue { font-family: 'Cormorant Garamond', serif; font-size: clamp(30px, 4vw, 44px); letter-spacing: .06em; text-transform: uppercase; margin: 4px 0; font-weight: 500; }
.split-line { overflow: hidden; display: block; }

/* ============ Ảnh: chỉ cắt (object-fit: cover), không kéo giãn; điểm lấy nét theo khuôn mặt ============ */
.photo { position: relative; margin: 0; overflow: hidden; background: var(--bg2); }
.photo img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.photo.empty img { display: none; }
.photo.empty { background: radial-gradient(120% 90% at 30% 20%, var(--card), var(--bg2)); }
.photo.empty::after { content: ''; position: absolute; inset: 14%; background: url(/img/lan-lon.png) center/contain no-repeat; opacity: .5; filter: var(--art); }
.photo.qr.empty::after, .photo.round.empty::after { inset: 22%; }
.arch { border-radius: 999px 999px 22px 22px; aspect-ratio: 3 / 4; }
.rounded { border-radius: 26px; }
.round { border-radius: 50%; aspect-ratio: 1; }
.oval { border-radius: 50%; aspect-ratio: 3 / 4.3; }
.tall { aspect-ratio: 3 / 4; }
.wide { aspect-ratio: 16 / 10; }
.heart {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M50 88C20 66 3 48 3 29 3 13 15 3 29 3c10 0 17 6 21 14 4-8 11-14 21-14 14 0 26 10 26 26 0 19-17 37-47 59z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='1.6'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' d='M50 88C20 66 3 48 3 29 3 13 15 3 29 3c10 0 17 6 21 14 4-8 11-14 21-14 14 0 26 10 26 26 0 19-17 37-47 59z'/%3E%3C/svg%3E") center/contain no-repeat;
  aspect-ratio: 100 / 92;
}
.deco, .monogram, .rings, .vinyl-leaf, .sig-deco, .wish-deco, .jr-flower { filter: var(--art); pointer-events: none; }
.kenburns img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateY(-2%); } }
[data-reveal] { clip-path: inset(0 0 0 0 round 26px); }

/* ============ Nút ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; text-decoration: none;
  padding: 13px 30px; border-radius: 999px; background: var(--acc); color: var(--acc-ink);
  font: 600 13px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 22px var(--sh-d), inset 0 0 0 2px rgba(255, 255, 255, .45); transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px var(--sh-d), inset 0 0 0 2px rgba(255, 255, 255, .6); }
.btn:active { transform: scale(.97); }
.btn-white { background: #fff; color: var(--rsvp2); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; padding: 9px 18px; border-radius: 12px; font-size: 13px; color: var(--ink2); }
.btn-ghost:hover { background: var(--bg2); }
.pill {
  display: inline-block; padding: 6px 24px; border-radius: 999px; background: var(--pill); box-shadow: 0 6px 16px var(--sh-d);
  font-family: 'Ephesis', cursive; font-size: 32px; line-height: 1.3; color: #a2322b; margin: 8px 0 14px;
}
[data-theme="demsao"] .pill { color: var(--gold); }
.heart-ico { color: #b04a42; font-size: .7em; margin-left: 2px; }
.i-cal::before { content: '📅'; font-style: normal; }

/* ============ Chibi ============ */
.chibi { display: block; }
.chibi-svg { width: 100%; height: auto; overflow: visible; }
.chibi-svg .leg, .chibi-svg .arm, .chibi-svg .head, .chibi-svg .skirt, .chibi-svg .veil, .chibi-svg .eyes, .chibi-svg .bouquet { transform-box: fill-box; }
.chibi-svg .leg, .chibi-svg .arm { transform-origin: 50% 0; }
.chibi-svg .head { transform-origin: 50% 100%; animation: headTilt 4.2s ease-in-out infinite; }
.chibi-svg .eyes { transform-origin: center; animation: blink 4.6s infinite; }
.chibi-svg .skirt { transform-origin: 50% 0; }
.chibi-svg .veil { transform-origin: 0 0; animation: veil 3.2s ease-in-out infinite; }
@keyframes headTilt { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes veil { 50% { transform: skewX(-4deg) rotate(2deg); } }
@keyframes legSwing { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes armSwing { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.chibi-heart { width: 100%; height: auto; }

/* ============ Bìa: phong bì ============ */
.cover {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, var(--card), var(--bg) 55%, var(--bg2));
  transition: opacity 1s ease 1.9s, visibility 1s 1.9s;
}
/* ảnh cưới phủ cả bìa, mờ dần xuống dưới để phong bì và chữ dễ đọc */
.cover-bg { position: absolute; left: 0; right: 0; top: 92px; z-index: 0; margin: 0; aspect-ratio: 3 / 4; max-height: calc(100% - 300px); overflow: hidden; }
.cover-bg img { width: 100%; height: 100%; animation: coverKen 18s ease-in-out infinite alternate; }
/* màn hình rộng: ảnh là khung dọc ở giữa, hai bên mờ dần vào nền (không phóng to làm nhòe ảnh) */
@media (min-width: 700px) {
  .cover-bg { left: 50%; right: auto; top: 0; bottom: 0; width: min(76vh, 88vw); max-height: none; aspect-ratio: auto; margin-left: calc(min(76vh, 88vw) / -2);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
}
/* máy tính: ảnh nửa trái, lời mời và phong bì nửa phải */
@media (min-width: 1024px) {
  .cover { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto auto 1fr; justify-items: center; }
  .cover-head { grid-column: 2; grid-row: 2; }
  .cover-title { grid-column: 2; grid-row: 3; margin: 18px 0 26px; }
  .cover-inner { grid-column: 2; grid-row: 4; }
  .cover-bg { left: 0; width: 52vw; margin-left: 0; -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent); mask-image: linear-gradient(90deg, #000 72%, transparent); }
  .cover::before { background: linear-gradient(90deg, transparent 0 46%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, transparent 100%); }
  .envelope { width: min(34vw, 400px); }
}
.cover-bg.empty { display: none; }
.cover::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 26%, transparent 46%, color-mix(in srgb, var(--bg) 80%, transparent) 68%, var(--bg) 88%); }
@keyframes coverKen { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.cover-head { position: relative; z-index: 2; text-align: center; animation: fadeUp 1s .1s both; }
.cover-title { position: relative; z-index: 2; margin-top: auto; text-align: center; animation: fadeUp 1s .25s both; }
.cover-names { margin: 6px 0 0; font-size: clamp(34px, 9vw, 60px); line-height: 1.1; color: var(--ink); text-shadow: 0 0 14px rgba(255, 255, 255, .95), 0 0 4px rgba(255, 255, 255, .9); }
.cover-date { margin: 2px 0 0; font-family: 'Josefin Sans', sans-serif; letter-spacing: .32em; font-size: 13px; color: var(--ink); text-shadow: 0 0 8px rgba(255, 255, 255, .95); }
.cover-inner { position: relative; z-index: 2; text-align: center; width: min(92vw, 520px); animation: fadeUp 1.1s .3s both; }
.cover-dear { font-family: 'Josefin Sans', sans-serif; font-style: italic; font-weight: 600; letter-spacing: .06em; font-size: clamp(18px, 4.4vw, 26px); margin: 0; color: var(--ink2); text-transform: uppercase; }
.cover-guest { margin: 6px auto 0; }
.envelope { position: relative; width: min(70vw, 340px); aspect-ratio: 1.42; margin: 0 auto 18px; perspective: 1400px; }
.env-back { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(160deg, #ead3c9, #dcbcb0); box-shadow: 0 30px 60px rgba(110, 70, 55, .28); }
[data-theme="demsao"] .env-back { background: linear-gradient(160deg, #2a3560, #1d2645); }
.env-letter {
  position: absolute; left: 5%; right: 5%; top: 5%; height: 90%; overflow: hidden; z-index: 2; border-radius: 8px; padding: 6% 6% 0;
  background: #fffaf6; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(0); text-align: center;
  transition: transform 1.1s cubic-bezier(.3, .8, .25, 1) .85s;
}
.env-letter .heart { width: 46%; margin: 0 auto; }
.env-names { font-size: clamp(30px, 7vw, 46px); margin: 4px 0 0; color: var(--ink); }
.env-date { font-family: 'Josefin Sans', sans-serif; letter-spacing: .3em; font-size: 12px; color: var(--ink2); margin: 2px 0 0; }
.env-front {
  position: absolute; inset: 0; z-index: 3; border-radius: 10px;
  background: linear-gradient(175deg, #f1ddd4, #e4c5b9); clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -8px 20px rgba(0, 0, 0, .04);
}
.env-front::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top right, transparent 49.6%, rgba(150, 100, 85, .14) 50%, transparent 50.6%), linear-gradient(to top left, transparent 49.6%, rgba(150, 100, 85, .14) 50%, transparent 50.6%); }
.env-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4; transform-origin: 50% 0; transform-style: preserve-3d;
  background: linear-gradient(180deg, #e8cbbf, #dbb7aa); clip-path: polygon(0 0, 100% 0, 50% 100%); border-radius: 10px 10px 0 0;
  transition: transform .8s cubic-bezier(.5, 0, .3, 1) .25s, z-index 0s .65s;
}
[data-theme="demsao"] .env-front, [data-theme="demsao"] .env-flap { background: linear-gradient(175deg, #33406e, #26305a); }
.env-seal {
  position: absolute; z-index: 5; left: 50%; top: 58%; width: 74px; height: 74px; margin: -37px 0 0 -37px; border: 0; padding: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c4525a, #8f2433 60%, #6e1625); box-shadow: 0 6px 16px rgba(110, 22, 37, .45), inset 0 -4px 8px rgba(0, 0, 0, .25), inset 0 3px 6px rgba(255, 255, 255, .25);
  animation: sealPulse 2.2s ease-in-out infinite; transition: transform .35s ease, opacity .35s;
}
.env-seal::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; background: inherit; z-index: -1; clip-path: polygon(50% 0, 60% 6%, 72% 3%, 78% 13%, 90% 15%, 90% 27%, 99% 36%, 94% 48%, 100% 60%, 91% 69%, 92% 82%, 80% 85%, 73% 96%, 61% 93%, 50% 100%, 39% 93%, 27% 96%, 20% 85%, 8% 82%, 9% 69%, 0 60%, 6% 48%, 1% 36%, 10% 27%, 10% 15%, 22% 13%, 28% 3%, 40% 6%); }
.env-seal img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(.85) sepia(.6) saturate(1.8); }
@keyframes sealPulse { 50% { transform: scale(1.08); } }
.cover-chibi { position: absolute; bottom: -14%; width: 24%; z-index: 6; animation: hop 2.6s ease-in-out infinite; }
.cover-chibi.l { left: -10%; }
.cover-chibi.r { right: -12%; width: 28%; animation-delay: .4s; }
.btn-open-text { animation: pulse 2.2s ease-in-out infinite; }
.cover-tap { font-size: 12px; color: var(--ink2); margin: 10px 0 0; letter-spacing: .04em; }
@keyframes pulse { 50% { transform: scale(1.04); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } }
.cover.opening { opacity: 0; visibility: hidden; pointer-events: none; }
.cover.opening .env-seal { transform: scale(0) rotate(90deg); opacity: 0; animation: none; }
.cover.opening .env-flap { transform: rotateX(180deg); z-index: 1; }
.cover.opening .env-letter { transform: translateY(-64%); }
.cover.opening .btn-open-text, .cover.opening .cover-tap { opacity: 0; transition: opacity .3s; }
.cover.opening .cover-inner { animation: coverZoom 1s cubic-bezier(.6, 0, .4, 1) 1.9s forwards; }
@keyframes coverZoom { to { transform: scale(1.15); filter: blur(6px); } }

/* ============ 1. Ảnh chính ============ */
.hero { padding-top: 28px; min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; gap: 10px; }
.hero-media { position: relative; }
.hero-card { padding: 54px 26px 40px; position: relative; }
.hero-top { position: absolute; top: 12px; left: 0; right: 0; font-family: 'Ephesis', cursive; font-size: 30px; color: var(--ink2); margin: 0; }
.hero-side { position: absolute; left: 4px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-family: 'Josefin Sans', sans-serif; letter-spacing: .5em; font-size: 14px; text-transform: uppercase; color: var(--line); margin: 0; }
.hero .arch { width: 84%; margin: 0 auto; box-shadow: 0 18px 30px var(--sh-d); }
.hero-names { font-size: clamp(66px, 16vw, 132px); margin: 18px 0 0; position: relative; z-index: 2; color: var(--ink); text-align: left; padding: 0 8px; }
.hero-names span { display: block; }
.hero-names .n2 { text-align: right; }
.hero-names .amp { display: block; font-size: .7em; text-align: center; margin: -.12em 0 -.22em; }
.deco-lan-hero { position: absolute; width: 58%; left: -14%; bottom: -60px; opacity: .45; transform: scaleX(-1); z-index: 1; }
.hero-date { font-family: 'Josefin Sans', sans-serif; letter-spacing: .35em; font-size: 15px; color: var(--ink2); margin: 18px 0 30px; }
.hero-guest { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: -12px auto 28px; padding: 12px 26px; max-width: 420px; border-radius: 22px; background: var(--pill); box-shadow: 0 8px 20px var(--sh-d); }
.hero-guest span { font-family: 'Josefin Sans', sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); }
.hero-guest b { font-family: 'Great Vibes', cursive; font-weight: 400; font-size: clamp(30px, 6vw, 40px); line-height: 1.15; color: var(--acc2, #a5584d); }
.scroll-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; color: var(--ink2); letter-spacing: .12em; text-transform: uppercase; padding: 8px 18px; border-radius: 999px; background: var(--pill); }
.scroll-hint i { width: 14px; height: 14px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); animation: bounce 1.6s infinite; }
@keyframes bounce { 50% { transform: translateY(5px) rotate(45deg); } }

/* ============ 2–3. Lời Chúa, gia đình ============ */
.monogram { width: 72px; margin: 0 auto 18px; }
.monogram.small { width: 46px; margin-top: 20px; }
.quote-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0; }
.fam-cols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.fam-sep { width: 1px; height: 100%; background: var(--line); }
.fam-col h3 { margin: 0 0 8px; font-weight: 600; }
.fam-parents { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: clamp(16px, 1.8vw, 20px); font-weight: 600; line-height: 1.45; }
.fam-parents::first-line { font-style: italic; font-weight: 500; color: var(--ink2); }
.fam-addr { margin: 4px 0 0; color: var(--ink2); font-size: 13px; }
.ann-lead { margin: 30px 0 18px; color: var(--ink2); line-height: 1.9; }
.ann { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ann-datecol { display: flex; flex-direction: column; align-items: center; font-family: 'Josefin Sans', sans-serif; font-weight: 300; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; color: var(--ink); padding: 0 6px; }
.ann-datecol::before, .ann-datecol::after { content: ''; width: 1px; height: 34px; background: var(--ink2); margin: 6px 0; }
.ann-name { font-family: 'Josefin Sans', sans-serif; font-weight: 300; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; margin: 6px 0; letter-spacing: .02em; }
.ann-roles { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.rings { width: 52px; }
.rings.big { width: 76px; margin: 0 auto 18px; }

/* ============ Ảnh tràn màn hình (parallax) ============ */
.banner { position: relative; aspect-ratio: 4 / 3.2; overflow: hidden; display: grid; place-items: end center; }
.banner-img { position: absolute; inset: -12% 0; }
.banner-img img { height: 100%; }
.banner-overlay { position: relative; z-index: 2; width: 100%; padding: 0 20px 7%; background: linear-gradient(transparent, rgba(30, 20, 18, .45)); text-align: center; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0, transparent 14%, transparent 70%, rgba(30, 20, 18, .35)); pointer-events: none; }
.banner-text { font-family: 'Great Vibes', cursive; font-size: clamp(40px, 8vw, 110px); color: #fff; margin: 0; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }

/* ============ 4. Cô dâu chú rể ============ */
.couple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.couple-card { position: relative; }
.couple-card.alt { margin-top: 60px; }
.couple-card .photo { box-shadow: 0 16px 30px var(--sh-d); border: 6px solid var(--card); }
.couple-label { font-family: 'Great Vibes', cursive; font-size: clamp(32px, 4vw, 52px); margin: 8px 0 0; color: var(--ink2); line-height: 1.1; }
.couple-name { margin: 2px 0 0; font-size: 11px; color: var(--ink2); }
.couple-heart { display: none; }

/* ============ 5. Hành trình yêu: dòng thời gian, đường chỉ đỏ chạy theo cuộn ============ */
.story { background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.st { position: relative; margin-top: 26px; --st: 1; }
.st-rail { position: absolute; left: 22px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
.st-fill { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(180deg, var(--acc), #d9465a); transform-origin: 50% 0; transform: scaleY(var(--st)); }
.st-dot { position: absolute; left: 50%; top: calc(var(--st) * 100%); transform: translate(-50%, -50%); color: #d9465a; font-size: 20px; line-height: 1; text-shadow: 0 2px 8px rgba(217, 70, 90, .35); }
.st-list { list-style: none; margin: 0; padding: 0 0 0 52px; display: grid; gap: 24px; }
.st-item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 22px; background: var(--card); box-shadow: 0 10px 24px var(--sh-d), -4px -4px 12px var(--sh-l); }
.st-item::before { content: ''; position: absolute; left: -37px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-radius: 50%; background: var(--card); border: 3px solid var(--acc); box-shadow: 0 0 0 4px var(--bg); }
.st-item .polaroid { width: 92px; }
.st-item:nth-child(even) .polaroid { transform: rotate(3deg); }
.st-item.final { grid-template-columns: 52px 1fr; }
.st-item.final .rings { width: 52px; }
.polaroid { width: clamp(96px, 22vw, 190px); aspect-ratio: 1; border: 6px solid #fff; border-bottom-width: 20px; border-radius: 4px; box-shadow: 0 8px 18px rgba(0, 0, 0, .15); transform: rotate(-3deg); }
.st-copy time { font-family: 'Josefin Sans', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-size: 12px; }
.st-copy h3 { margin: 2px 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; font-size: clamp(21px, 3vw, 32px); color: var(--ink); }
.st-copy p { margin: 0; color: var(--ink2); font-size: 14px; }

/* ============ Chibi đi cùng suốt trang (vị trí do chibi.js tính, chỉ đổi transform) ============ */
.walkers { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; transition: opacity .6s ease .4s; }
body.is-cover .walkers, body:not(.has-walkers) .walkers { opacity: 0; transition: none; }
.modal:not([hidden]) ~ .walkers, .lightbox:not([hidden]) ~ .walkers { opacity: 0; transition-delay: 0s; }
.wk { position: absolute; left: 0; top: 0; width: 60px; transform-origin: 0 0; will-change: transform; }
.wk-b { width: 70px; }
.wk-flip { display: block; }
.walkers.back .wk-flip { transform: scaleX(-1); }
.wk .chibi-svg { filter: drop-shadow(0 3px 5px rgba(60, 30, 20, .18)); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.walkers.walking .leg.l { animation: legSwing .3s ease-in-out infinite alternate; }
.walkers.walking .leg.r { animation: legSwing .3s ease-in-out infinite alternate-reverse; }
.walkers.walking .wk-g .arm.l { animation: armSwing .3s ease-in-out infinite alternate; }
.walkers.walking .wk-g .arm.r { animation: armSwing .3s ease-in-out infinite alternate-reverse; }
.walkers.walking .wk .chibi-svg { animation: bob .15s ease-in-out infinite alternate; }
.walkers.walking .wk-b .skirt { animation: sway .3s ease-in-out infinite alternate; }
.walkers.met .wk-g .chibi-svg { transform: rotate(8deg) translateX(4px); }
.walkers.met .wk-b .chibi-svg { transform: rotate(-8deg) translateX(-4px); }
.wk-heart { position: absolute; left: 0; top: 0; width: 40px; will-change: transform; }
.wk-heart .chibi-heart { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.8, .5, 1); }
.walkers.met .wk-heart .chibi-heart { transform: scale(1); animation: beat 1.3s ease-in-out .6s infinite; }
.has-walkers .gs-chibi { visibility: hidden; opacity: 1; transform: none; transition: none; }

/* thanh tiến độ cuộn mảnh ở mép trên */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 55; pointer-events: none; transition: opacity .4s; }
.scroll-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), #e88b9a, var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
body.is-cover .scroll-bar { opacity: 0; }

/* ============ 6. Đĩa nhạc ============ */
.vinyl-wrap { position: relative; width: clamp(230px, 28vw, 300px); aspect-ratio: 1; margin: 0 auto; }
.vinyl-leaf { position: absolute; width: 52%; top: 16%; opacity: .7; }
.vinyl-leaf.l { left: -28%; transform: rotate(-70deg); }
.vinyl-leaf.r { right: -28%; transform: scaleX(-1) rotate(-70deg); }
.vinyl { position: absolute; inset: 6%; border-radius: 50%; border: 0; padding: 0; background: repeating-radial-gradient(circle, #151515 0 2px, #2a2a2a 2px 3px), #111; box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 0 0 8px rgba(255, 255, 255, .6), 0 0 0 9px var(--line); animation: spin 7s linear infinite; animation-play-state: paused; }
.vinyl-grooves { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255, 255, 255, .14) 25%, transparent 30% 70%, rgba(255, 255, 255, .1) 75%, transparent 80%); }
.vinyl-label { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; border: 3px solid #eee; }
.vinyl-label .photo { width: 100%; height: 100%; }
.vinyl-label::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.tonearm { position: absolute; right: 1%; top: -3%; width: 10px; height: 48%; border-radius: 6px; background: linear-gradient(90deg, #c9c9c9, #f4f4f4, #b5b5b5); transform-origin: 50% 8px; transform: rotate(-28deg); transition: transform .8s ease; box-shadow: 2px 4px 8px rgba(0, 0, 0, .25); }
.tonearm::before { content: ''; position: absolute; top: -4px; left: -7px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(#eee, #999); }
.tonearm::after { content: ''; position: absolute; bottom: -8px; left: -4px; width: 18px; height: 22px; border-radius: 4px; background: #333; }
body.playing .vinyl { animation-play-state: running; }
body.playing .tonearm { transform: rotate(4deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.music-title { font-family: 'Great Vibes', cursive; font-size: 38px; margin: 22px 0 0; }
.music-track { color: var(--ink2); font-size: 13px; margin: 2px 0 10px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: inline-grid; place-items: center; box-shadow: 0 6px 14px var(--sh-d); }
.i-play::before { content: ''; display: block; border-left: 12px solid var(--ink); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
body.playing .i-play::before { border: 0; width: 12px; height: 15px; margin: 0; border-left: 4px solid var(--ink); border-right: 4px solid var(--ink); }
.music-ctrl { display: flex; gap: 14px; justify-content: center; }
.i-next { display: flex; align-items: center; }
.i-next::before { content: ''; border-left: 10px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.i-next::after { content: ''; width: 3px; height: 14px; margin-left: 1px; background: var(--ink); }
.playlist { list-style: none; margin: 16px -16px 0; padding: 4px 16px 8px; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.playlist::-webkit-scrollbar { display: none; }
.playlist li { flex: none; scroll-snap-align: center; display: flex; align-items: center; gap: 5px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; transition: background .3s, transform .3s; }
.playlist li button { border: 0; background: none; padding: 7px 0; color: var(--ink2); font: inherit; cursor: pointer; white-space: nowrap; }
.playlist li.on { background: var(--acc); border-color: transparent; transform: translateY(-1px); }
.playlist li.on button { color: var(--acc-ink); }
.playlist .eq { display: none; width: 12px; height: 10px; color: var(--acc-ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 3px 40% no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 3px 80% no-repeat, linear-gradient(currentColor, currentColor) 100% 100% / 3px 60% no-repeat; }
.playlist li.on .eq { display: inline-block; }
body.playing .playlist li.on .eq { animation: eq .9s ease-in-out infinite; }
@keyframes eq { 33% { background-size: 3px 90%, 3px 30%, 3px 70%; } 66% { background-size: 3px 55%, 3px 100%, 3px 35%; } }

/* ============ 7–8. Save the date, đếm ngược ============ */
.duo-row > .sec { padding-left: 18px; padding-right: 18px; }
.savedate .soft, .countdown .cd-inner { max-width: 520px; margin: 0 auto; }
.std-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 10px 0 24px; }
.std-side { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; font-weight: 600; color: var(--ink2); line-height: 1.2; }
.std-main { padding: 6px 18px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.std-main b { font-family: 'Josefin Sans', sans-serif; font-size: 58px; font-weight: 600; line-height: 1; color: var(--ink); }
.std-lbl { font-size: 13px; color: var(--ink2); letter-spacing: .08em; }
.calendar { background: var(--bg); border-radius: 22px; padding: 14px 10px 10px; box-shadow: inset 4px 4px 10px var(--sh-d), inset -4px -4px 10px var(--sh-l); }
.cal-head { margin: 0 0 8px; font-family: 'Josefin Sans', sans-serif; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--ink2); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; font-size: 14px; }
.cal-grid .dh { font-family: 'Josefin Sans', sans-serif; font-size: 12px; color: var(--ink2); padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.cal-grid .d { height: 36px; display: grid; place-items: center; position: relative; }
.cal-grid .d.on { color: #fff; font-weight: 600; z-index: 0; }
.cal-grid .d.on::before {
  content: ''; position: absolute; width: 38px; height: 35px; z-index: -1; left: 50%; top: 50%; margin: -17px 0 0 -19px; background: #c2615a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 88C20 66 3 48 3 29 3 13 15 3 29 3c10 0 17 6 21 14 4-8 11-14 21-14 14 0 26 10 26 26 0 19-17 37-47 59z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 88C20 66 3 48 3 29 3 13 15 3 29 3c10 0 17 6 21 14 4-8 11-14 21-14 14 0 26 10 26 26 0 19-17 37-47 59z'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
.lunar { margin: 16px 0 0; font-size: 13px; color: var(--ink2); font-style: italic; }
.cd-sub { font-size: 13px; font-style: italic; color: var(--gold); margin: 0 0 14px; }
.cd-photo { aspect-ratio: 3 / 4; width: min(100%, 380px); margin: 0 auto; box-shadow: 0 16px 30px var(--sh-d); border: 6px solid var(--card); }
.cd-clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
.cd-clock div { background: var(--card); border-radius: 18px; padding: 12px 4px 8px; box-shadow: 8px 8px 18px var(--sh-d), -6px -6px 14px var(--sh-l); }
.cd-clock b { display: block; font-family: 'Josefin Sans', sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.1; color: var(--ink); }
.cd-clock b.tick { animation: tick .45s ease; }
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cd-clock span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.cd-done { margin-top: 18px; }

/* ============ 9. Sự kiện ============ */
.ev-grid { display: grid; gap: 28px; margin-bottom: 28px; }
.event { padding: 14px 14px 26px; position: relative; }
.event .photo { margin-bottom: -22px; }
.btn-map { position: relative; display: inline-block; padding: 10px 34px 8px; border-radius: 999px 999px 0 0; background: var(--card); font-family: 'Josefin Sans', sans-serif; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--ink); }
.btn-map:not([href]) { pointer-events: none; }
.ev-name { margin: 16px 0 4px; font-weight: 600; font-size: 15px; }
.ev-time { margin: 0; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.ev-date { font-family: 'Josefin Sans', sans-serif; font-size: 32px; font-weight: 600; color: var(--gold); margin: 4px 0 0; letter-spacing: .04em; }
.ev-lunar { margin: 0 0 8px; font-size: 12.5px; font-style: italic; color: var(--ink2); }
.ev-place { margin: 6px 0 2px; }
.ev-sub { margin: 0; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.ev-addr { margin: 4px 0 14px; font-size: 14px; }
.timeline { padding: 26px 18px 22px; max-width: 760px; margin: 0 auto; }
.tl-title { margin: 0 0 18px; font-family: 'Be Vietnam Pro'; font-weight: 600; font-size: 18px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; }
.tl::before { content: ''; position: absolute; top: 5px; left: 16%; right: 16%; height: 1.5px; background: var(--acc); opacity: .6; }
.tl:has(> li[hidden])::before { left: 25%; right: 25%; }   /* nhà gái: 2 đợt tiệc */
.tl li { position: relative; padding-top: 20px; display: flex; flex-direction: column; font-size: 13.5px; }
.tl li::before { content: ''; position: absolute; top: 0; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line); }
.tl li b { font-weight: 600; }
.tl li span { color: var(--ink2); }
.tl-end { margin: 18px 0 0; color: var(--ink2); }
.tl-end::before { content: '— ✦ —'; display: block; font-family: serif; font-size: 12px; letter-spacing: .3em; color: var(--line); }

/* ============ 10–11. Lời mời, bản đồ ============ */
.invite-grid { display: grid; gap: 18px; overflow: hidden; }
.guest-pill { font-size: 34px; }
.inv-line { color: var(--ink2); line-height: 1.9; margin: 0 0 14px; }
.inv-photo { width: min(80%, 380px); margin: 0 auto; aspect-ratio: 4 / 5; border: 6px solid #fff; box-shadow: 0 14px 30px var(--sh-d); }
.inv-when { font-family: 'Josefin Sans', sans-serif; font-size: 20px; letter-spacing: .06em; margin: 4px 0 14px; text-transform: uppercase; }
.inv-closing { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0; position: relative; z-index: 2; }
.deco-lan-inv { position: absolute; width: 40%; left: -14%; bottom: -30px; opacity: .22; z-index: 0; }
.inv-text { position: relative; z-index: 1; }
.map-figure { margin: 10px 0 18px; padding: 10px; border-radius: 26px; background: var(--card); box-shadow: 0 12px 28px var(--sh-d); }
.map-img { display: block; width: 100%; height: auto; border-radius: 18px; background: #fff; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.map-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.map-zoom:hover .map-img { transform: scale(1.025); }
.map-cap { margin: 8px 0 0; font-size: 12px; color: var(--ink2); letter-spacing: .04em; }
.map-cap::before { content: '⤢ '; }
[data-theme="demsao"] .map-img { background: #f5efe8; }
.map-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ 12. Khoảnh khắc ============ */
.moments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.moment-text { grid-column: 1 / -1; }
.polaroid-card { margin: 0; padding: 10px 10px 0; background: #fff; border-radius: 4px; box-shadow: 0 18px 40px rgba(60, 30, 20, .18); transform: rotate(-3deg); transition: transform .4s; }
.polaroid-card.r { transform: rotate(3deg); margin-top: 40px; }
.polaroid-card img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg2); }
.polaroid-card figcaption { font-family: 'Ephesis', cursive; font-size: 24px; color: #6c5953; padding: 4px 0 8px; text-align: center; }

/* ============ 13–14. Album (masonry giữ nguyên tỉ lệ ảnh) ============ */
.album-head { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-bottom: 18px; }
.album-vert { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; color: var(--line); font-size: 22px; font-weight: 600; letter-spacing: .1em; }
.album-sub { margin: -8px 0 0; color: var(--ink2); font-family: 'Ephesis', cursive; font-size: 26px; }
.masonry { columns: 2; column-gap: 10px; }
.masonry .g { position: relative; margin: 0 0 10px; break-inside: avoid; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--bg2); box-shadow: 0 8px 18px var(--sh-d); }
.masonry .g img { width: 100%; height: auto; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .6s; }
.masonry .g:hover img { transform: scale(1.05); }
.masonry .g figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 6px; font-size: 11px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .45)); text-align: left; }
.masonry.small { columns: 3; margin-bottom: 20px; }
.masonry:empty { display: none; }
.lockbox { padding: 26px; border-radius: 24px; background: var(--card); }
.lock-form { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.lock-form input { flex: 1; max-width: 200px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; background: var(--bg); }
.lock-form .btn { padding: 10px 20px; }

/* ============ 15. Ký tên ============ */
.signature { overflow: hidden; }
.sig-deco { position: absolute; width: 110px; top: -10px; opacity: .55; }
.sig-deco.l { left: -40px; transform: rotate(-20deg); }
.sig-deco.r { right: -40px; transform: scaleX(-1) rotate(-20deg); }
.sig-small { margin: 0; color: var(--gold); font-family: 'Ephesis', cursive; font-size: 30px; }
.sig-board { position: relative; aspect-ratio: 3 / 4; max-width: 520px; margin: 10px auto 22px; border-radius: 6px; overflow: hidden; border: 3px solid var(--card); box-shadow: 0 16px 34px var(--sh-d); }
.sig-board .photo { position: absolute; inset: 0; }
.sig-board .photo:not(.empty)::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); z-index: 1; pointer-events: none; }
.sig-wreath { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .7); box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), inset 0 0 30px rgba(255, 255, 255, .25); z-index: 2; animation: spin 60s linear infinite; }
.sig-names { position: absolute; left: 0; right: 0; bottom: 8%; z-index: 3; color: #fff; font-size: 40px; display: flex; flex-direction: column; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.sig-names i { font-family: 'Great Vibes'; font-style: normal; font-size: 26px; }
.photo.empty ~ .sig-names { color: var(--ink2); text-shadow: none; }
.photo.empty ~ .sig-wreath { border-color: var(--line); }
.sig-layer { position: absolute; inset: 0; z-index: 4; }
.sig-item { position: absolute; width: 30%; text-align: center; animation: sigFloat 7s ease-in-out infinite; }
.sig-item img { width: 100%; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.sig-item span { display: block; font-size: 10px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); margin-top: -4px; }
.photo.empty ~ .sig-layer .sig-item img { filter: none; }
.sig-board .photo:not(.empty) ~ .sig-layer .sig-item img { filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.photo.empty ~ .sig-layer .sig-item span { color: var(--ink2); text-shadow: none; }
.sig-item.new { animation: sigIn 1.2s ease, sigFloat 7s 1.2s ease-in-out infinite; }
@keyframes sigFloat { 50% { transform: translateY(-6px) rotate(var(--r, 0deg)); } }
@keyframes sigIn { from { opacity: 0; transform: scale(2); } }
.sig-pad { width: 100%; height: auto; aspect-ratio: 15 / 8; border-radius: 16px; background: var(--bg); box-shadow: inset 3px 3px 8px var(--sh-d); touch-action: none; margin: 10px 0; cursor: crosshair; }

/* ============ 16–17. Xác nhận, lời chúc ============ */
.rsvp-card { max-width: 560px; margin: 0 auto; border-radius: 34px; padding: 36px 22px 30px; background: linear-gradient(170deg, var(--rsvp1), var(--rsvp2)); color: #fff; box-shadow: 0 20px 40px var(--sh-d), inset 0 0 0 10px rgba(255, 255, 255, .12); }
.rsvp-photo { width: 92%; margin: 4px auto 22px; aspect-ratio: 4 / 3; border: 4px solid rgba(255, 255, 255, .6); }
.form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.field { width: 100%; border: 1.5px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .14); color: inherit; border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .2s, background .2s; }
.field::placeholder { color: inherit; opacity: .75; }
.field:focus { background: rgba(255, 255, 255, .25); border-color: #fff; }
.radios { display: flex; flex-direction: column; gap: 4px; padding: 8px 14px; font-size: 14px; }
.radios.inline { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
.radios input { accent-color: var(--acc); }
.lbl { font-size: 13px; font-weight: 600; margin: 4px 0 -4px; display: block; }
.lbl.center { text-align: center; margin: 4px 0 0; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.form-msg { margin: 0; min-height: 1.2em; font-size: 14px; text-align: center; font-weight: 400; }
.form .btn { align-self: center; margin-top: 6px; }
.wish-form .field, .modal .field { border-color: var(--line); background: var(--bg); color: var(--ink); }
.wish-form .field:focus, .modal .field:focus { border-color: var(--acc); background: var(--card); }
.wishes > * { max-width: 560px; margin-left: auto; margin-right: auto; }
.wish-deco { position: absolute; width: 120px; left: -26px; top: 70px; opacity: .5; }
.wish-title { margin: 0 0 18px; display: flex; flex-direction: column; align-items: center; }
.wish-title .title-serif { margin: 0; color: var(--gold); font-style: normal; font-family: 'Be Vietnam Pro'; font-weight: 600; font-size: 28px; }
.wish-title .script { font-family: 'Moon Dance', cursive; font-size: 58px; margin-top: -6px; }
.wish-box { padding: 14px; border-radius: 30px; margin-bottom: 22px; }
.wish-list { max-height: 440px; overflow-y: auto; padding: 4px 6px; display: flex; flex-direction: column; gap: 12px; text-align: left; scrollbar-width: thin; overscroll-behavior: contain; }
.wish { background: #fff; border-radius: 14px; padding: 14px 16px; border-bottom: 1.5px dashed var(--gold); box-shadow: 0 4px 12px var(--sh-d); animation: fadeUp .6s both; }
[data-theme="demsao"] .wish { background: var(--bg2); }
.wish b { display: block; font-weight: 600; color: var(--gold); font-size: 16px; }
.wish p { margin: 2px 0 0; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.wish .reply { margin-top: 8px; padding: 8px 10px; border-left: 2px solid var(--acc); background: var(--bg); border-radius: 0 10px 10px 0; font-size: 13px; }
.wish .reply small { display: block; color: var(--ink2); font-size: 11px; }
.wish.private { opacity: .65; }
.wish-empty { text-align: center; color: var(--ink2); padding: 20px; }
.wish-form { padding: 20px 16px; border-radius: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink2); text-align: left; }
.chips button:hover { border-color: var(--acc); color: var(--ink); }

/* ============ 18. Cảm ơn ============ */
.oval-wrap { width: min(72%, 380px); margin: 0 auto; padding: 14px; border-radius: 50%; background: var(--bg2); box-shadow: 0 0 0 1px var(--line), 0 20px 40px var(--sh-d); }
.thanks-title { font-size: clamp(80px, 12vw, 140px); margin: 18px 0 0; color: var(--ink2); }
.shimmer { background: linear-gradient(100deg, var(--ink2) 30%, var(--gold) 50%, var(--ink2) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shimmer 5s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.thanks-sub { font-family: 'Ephesis', cursive; font-size: 28px; color: var(--ink2); margin: 0; }

/* ============ 19. Hộp quà cuối trang ============ */
.giftfin { padding-bottom: 120px; background: radial-gradient(80% 60% at 50% 70%, var(--card), var(--bg)); }
.gift-lead { color: var(--ink2); margin: 0 0 10px; }
.gift-scene { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(6px, 3vw, 40px); min-height: 260px; padding-top: 40px; }
.gs-chibi { width: clamp(70px, 12vw, 120px); opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s cubic-bezier(.3, 1.6, .5, 1); }
.gs-chibi.r { width: clamp(82px, 14vw, 140px); }
.giftfin.arrived .gs-chibi { opacity: 1; transform: none; }
.giftfin.arrived .gs-chibi.l { transition-delay: .5s; }
.giftfin.arrived .gs-chibi.r { transition-delay: .7s; }
.giftbox { position: relative; width: clamp(150px, 26vw, 210px); aspect-ratio: 1; border: 0; padding: 0; background: none; transform: translateY(-120vh) rotate(-12deg); opacity: 0; visibility: hidden; pointer-events: none; }
.giftfin.arrived .giftbox { visibility: visible; pointer-events: auto; }
.giftfin.opened .gb-lid, .gb-glow { pointer-events: none; }
.giftfin.arrived .giftbox { animation: drop 1s cubic-bezier(.3, 1.4, .5, 1) forwards, wiggle 2.6s ease-in-out 1.4s infinite; }
@keyframes drop { 0% { transform: translateY(-60vh) rotate(-12deg); opacity: 1; } 70% { transform: translateY(0) rotate(4deg); } 85% { transform: translateY(-14px) rotate(-2deg); } 100% { transform: none; opacity: 1; } }
@keyframes wiggle { 0%, 70%, 100% { transform: none; } 75% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 85% { transform: rotate(-3deg); } 90% { transform: rotate(2deg); } }
.gb-box { position: absolute; left: 8%; right: 8%; bottom: 0; height: 62%; border-radius: 6px; background: linear-gradient(160deg, var(--rsvp1), var(--rsvp2)); box-shadow: 0 18px 30px var(--sh-d), inset 0 -10px 20px rgba(0, 0, 0, .12); }
.gb-ribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: 16%; transform: translateX(-50%); background: linear-gradient(90deg, #d8b46a, #f3dc9c, #d8b46a); }
.gb-lid { position: absolute; left: 3%; right: 3%; top: 26%; height: 18%; z-index: 2; border-radius: 6px; background: linear-gradient(160deg, var(--rsvp1), var(--rsvp2)); box-shadow: 0 6px 12px rgba(0, 0, 0, .15); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.gb-lid::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 15%; transform: translateX(-50%); background: linear-gradient(90deg, #d8b46a, #f3dc9c, #d8b46a); }
.gb-bow { position: absolute; left: 50%; bottom: 92%; width: 46%; height: 60%; transform: translateX(-50%); }
.gb-bow::before, .gb-bow::after { content: ''; position: absolute; bottom: 0; width: 50%; height: 100%; border: 7px solid #e3c27b; border-radius: 50% 50% 10% 50%; }
.gb-bow::before { left: 0; transform: rotate(-30deg); transform-origin: 100% 100%; }
.gb-bow::after { right: 0; transform: scaleX(-1) rotate(-30deg); transform-origin: 0 100%; }
.gb-glow { position: absolute; left: 50%; top: 40%; width: 10%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 240, 200, .95), transparent 70%); opacity: 0; transition: transform 1s, opacity .6s; }
.giftfin.opened .giftbox { animation: none; transform: none; opacity: 1; }
.giftfin.opened .gb-lid { transform: translate(40%, -170%) rotate(32deg); }
.giftfin.opened .gb-glow { opacity: 1; transform: translate(-50%, -50%) scale(18); }
.gift-tap { color: var(--ink2); font-size: 13px; margin: 14px 0 0; animation: pulse 2s ease-in-out infinite; }
.giftfin.opened .gift-tap { display: none; }
.gift-cards { display: grid; gap: 18px; margin-top: 26px; }
.gift-cards { position: relative; z-index: 41; }   /* nằm trên lớp sao/cánh hoa (#fx) để mã QR sạch, dễ quét */
.qr-card { background: #fff; color: #4a3a34; border-radius: 22px; padding: 20px 18px 16px; box-shadow: 0 18px 40px var(--sh-d); animation: rise .8s cubic-bezier(.2, 1.3, .4, 1) both; }
.qr-card + .qr-card { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(60px) scale(.6); } }
.qr-card .caps { font-weight: 600; margin: 0 0 10px; }
.qr-box { width: min(260px, 72vw); margin: 0 auto; }
@media (min-width: 1024px) { .qr-box { width: 290px; } }
.qr-box canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 10px 26px rgba(110, 60, 50, .14), 0 0 0 1px rgba(143, 36, 51, .12); }
.qr-brand { margin: 8px 0 2px; font-family: 'Josefin Sans', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; color: #8f2433; }
.photo.qr { aspect-ratio: 1; border-radius: 12px; background: #fff; }
.photo.qr img { object-fit: contain; }
/* thông tin tài khoản: ngân hàng, số tài khoản (bấm để chép), chủ tài khoản */
.qr-info { margin: 12px 0 14px; display: grid; justify-items: center; gap: 6px; }
.qr-bank { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #9d8881; }
.qr-acc { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 16px; border: 1px dashed rgba(143, 36, 51, .35); border-radius: 999px; background: #fbf4f1; color: #4a2a26; font: 600 clamp(18px, 5.4vw, 22px)/1.2 'Josefin Sans', sans-serif; letter-spacing: .06em; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.qr-acc:hover { background: #f6e8e3; }
.qr-acc:focus-visible { outline: 2px solid #c4525a; outline-offset: 2px; }
.qr-copy { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: #8f2433; color: #fff; font: 600 11px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .02em; white-space: nowrap; transition: background .2s; }
.qr-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.qr-acc.copied { border-color: #5f8a5a; background: #eef5ec; }
.qr-acc.copied .qr-copy { background: #5f8a5a; }
.qr-holder { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #6b5148; }
.qr-hint { margin: 12px auto 0; max-width: 300px; font-size: 12px; line-height: 1.5; color: #9d8881; }
@media (pointer: fine) { .qr-hint { display: none; } }
.row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.qr-card .btn-ghost { color: #6c5953; border-color: #e5d6cf; }
.gift-none { color: var(--ink2); font-style: italic; }
.footer-credit { margin: 40px 0 0; font-size: 11px; color: var(--ink2); opacity: .8; }

/* ============ Nút nổi ============ */
.fab-music { position: fixed; left: 14px; bottom: 16px; z-index: 50; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: var(--card); box-shadow: 0 6px 18px var(--sh-d); padding: 0; }
.fab-music .disc { position: absolute; inset: 5px; border-radius: 50%; background: repeating-radial-gradient(circle, #222 0 1.5px, #3a3a3a 1.5px 2.5px); animation: spin 4s linear infinite paused; }
.fab-music .disc::after { content: ''; position: absolute; inset: 36%; border-radius: 50%; background: var(--acc); }
body.playing .fab-music .disc { animation-play-state: running; }
.fab-music::after { content: ''; position: absolute; left: 20%; top: 50%; width: 60%; height: 2px; background: #fff; transform: rotate(-45deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
body.playing .fab-music::after { display: none; }
body.is-cover .fab-music, body.is-cover .lang-switch { opacity: 0; pointer-events: none; }
.lang-switch { position: fixed; right: 12px; top: 12px; z-index: 50; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px); box-shadow: 0 4px 14px var(--sh-d); }
.lang-switch button { border: 0; background: none; padding: 5px 9px; border-radius: 999px; font-size: 12px; color: #6c5953; }
.lang-switch button.on { background: var(--acc); color: var(--acc-ink); }

/* ============ Hộp thoại ============ */
.modal, .lock-screen { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(40, 28, 24, .45); backdrop-filter: blur(6px); animation: fade .3s; }
.lock-screen { background: var(--bg); z-index: 90; }
.modal-card { position: relative; width: min(100%, 440px); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 26px; padding: 26px 20px 20px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .25); animation: pop .35s cubic-bezier(.2, .9, .3, 1.3); }
.modal-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink2); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } }
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgba(15, 10, 8, .94); display: grid; place-items: center; animation: fade .25s; }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: pop .3s; }
.lb-x, .lb-nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lb-x { top: 14px; right: 14px; }
.lb-nav.prev { left: 10px; top: 50%; }
.lb-nav.next { right: 10px; top: 50%; }
.lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; color: #eee; font-size: 13px; text-align: center; pointer-events: none; }
.lightbox.single .lb-nav { display: none; }
.lightbox.can-zoom img { background: #fff; cursor: zoom-in; }
.lightbox.zoomed { display: block; overflow: auto; overscroll-behavior: contain; }
.lightbox.zoomed img { max-width: none; max-height: none; width: max(200vw, 1100px); border-radius: 0; animation: none; cursor: zoom-out; }
.lightbox.zoomed .lb-cap { display: none; }
.toast { position: fixed; left: 50%; bottom: 84px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: rgba(40, 30, 26, .9); color: #fff; font-size: 14px; transition: .3s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Hiện dần khi cuộn ============ */
[data-anim] { opacity: 0; transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1.2s cubic-bezier(.22, 1, .36, 1), filter 1s ease, clip-path 2.2s cubic-bezier(.6, .1, .3, 1); }
[data-anim="up"] { transform: translateY(42px); }
[data-anim="left"] { transform: translateX(-46px); }
[data-anim="right"] { transform: translateX(46px); }
[data-anim="zoom"] { transform: scale(.8); }
[data-anim="blur"] { transform: translateY(28px) scale(.965); }
@media (hover: hover) and (pointer: fine) { [data-anim="blur"] { filter: blur(8px); transform: scale(1.04); } }
[data-anim="write"] { opacity: 1; clip-path: inset(0 100% 0 0); }
[data-anim="draw"] { clip-path: inset(0 0 100% 0); opacity: 1; transition: clip-path 2.4s ease; }
[data-anim].in { opacity: 1; transform: none; filter: none; clip-path: inset(-30% -10% -30% -10%); }
[data-anim="right"].deco-lan-hero.in { transform: scaleX(-1); }
.polaroid-card[data-anim].in { transform: rotate(-3deg); }
.polaroid-card.r[data-anim].in { transform: rotate(3deg); }

/* ============ Tablet ============ */
@media (min-width: 640px) {
  .wrap { width: min(100% - 64px, 760px); }
  .wrap.narrow { width: min(100% - 64px, 680px); }
  .hero-card { max-width: 520px; margin: 0 auto; }
  .hero-names { text-align: center; }
  .hero-names .n2 { text-align: center; }
  .couple-grid { gap: 26px; }
  .couple-name { font-size: 12px; }
  .ev-grid { grid-template-columns: 1fr 1fr; }
  .ev-grid.single { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .masonry { columns: 3; column-gap: 14px; }
  .masonry .g { margin-bottom: 14px; }
  .masonry.small { columns: 4; }
  .moments-grid { gap: 30px; }
  .gift-cards { grid-template-columns: 1fr 1fr; }
  .cover-chibi { bottom: -10%; }
  .lang-switch { right: 18px; top: 16px; }
  .banner { aspect-ratio: 16 / 8; }
  .fab-music { left: 20px; bottom: 20px; }
  .wk { width: 86px; } .wk-b { width: 100px; } .wk-heart { width: 52px; }
  .playlist { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 18px auto 0; padding: 0; max-width: 640px; -webkit-mask-image: none; mask-image: none; }
  .st-item { grid-template-columns: 120px 1fr; padding: 14px 20px; }
  .st-item .polaroid { width: 120px; }
}

/* dòng thời gian so le hai bên trên màn hình rộng */
@media (min-width: 900px) {
  .st-rail { left: 50%; margin-left: -1.5px; }
  .st-list { padding: 0; gap: 0; }
  .st-item { width: calc(50% - 46px); grid-template-columns: 150px 1fr; margin-bottom: -36px; }
  .st-item:nth-child(odd) { justify-self: start; }
  .st-item:nth-child(even) { justify-self: end; }
  .st-item::before { left: auto; right: -54px; }
  .st-item:nth-child(even)::before { left: -54px; right: auto; }
  .st-item .polaroid { width: 150px; }
  .st-item.final { justify-self: center; width: min(440px, 60%); margin: 80px 0 0; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .st-item.final::before { display: none; }
}

/* ============ Desktop ============ */
@media (min-width: 1024px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 96px, 1160px); }
  .wrap.narrow { width: min(100% - 96px, 820px); }
  .wrap.wide { width: min(100% - 96px, 1320px); }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
  .hero-card { max-width: none; }
  .hero-names { text-align: left; padding: 0; }
  .hero-names .n2 { text-align: right; }
  .hero-text { text-align: center; }
  .deco-lan-hero { width: 46%; left: -18%; bottom: -40px; }
  .couple-grid { grid-template-columns: 1fr 160px 1fr; gap: 40px; align-items: center; }
  .couple-card.alt { margin-top: 120px; }
  .couple-heart { display: block; width: 90px; margin: 0 auto; animation: beat 1.6s ease-in-out infinite; }
  .duo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; width: min(100% - 96px, 1160px); margin: 0 auto; background: none; align-items: start; }
  .duo-row.wide { width: min(100% - 96px, 1240px); }
  .duo-row > .sec { padding-left: 0; padding-right: 0; }
  .countdown .cd-inner { padding-top: 10px; }
  .invite-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
  .inv-photo { width: 100%; max-width: none; }
  .deco-lan-inv { left: auto; right: -16%; bottom: -70px; width: 34%; transform: scaleX(-1); opacity: .16; }
  .moments-grid { grid-template-columns: 1fr 1.1fr .9fr; gap: 48px; }
  .moment-text { grid-column: auto; text-align: left; }
  .moment-text .sub { margin-left: 0; }
  .polaroid-card.r { margin-top: 120px; }
  .tilt:hover { transform: rotate(0) scale(1.03) !important; }
  .masonry { columns: 4; column-gap: 18px; }
  .masonry .g { margin-bottom: 18px; }
  .masonry.small { columns: 5; }
  .banner { aspect-ratio: auto; height: 82vh; }
  .polaroid { width: clamp(150px, 14vw, 220px); }
  .rsvp-card { padding: 44px 36px 36px; }
  .wk { width: 116px; } .wk-b { width: 134px; } .wk-heart { width: 64px; }
}

@media (max-width: 380px) {
  .cover-names, .env-names { font-size: 30px; }
  .ann-name { font-size: 18px; }
  .cd-clock b { font-size: 26px; }
  .pill { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-anim] { opacity: 1; transform: none; filter: none; clip-path: none; }
  .walkers { display: none; }
}

.footer-credit summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--ink2); }
.footer-credit summary::-webkit-details-marker { display: none; }
.footer-credit p { margin: 6px auto 0; max-width: 560px; font-size: 10.5px; line-height: 1.5; opacity: .8; }
