/* =====================================================================
   Pure Elegance – Trắng ngà · Đỏ mận nhung · Vàng nhũ đồng
   Phong cách: mềm mại, sang trọng – các khối bo tròn chồng lớp, chữ thanh,
   chuyển động chậm và êm.
   ===================================================================== */
:root {
  --plum: #6E1A36;
  --plum-d: #4A0E22;
  --plum-l: #8C2D4D;
  --blush: #F6E7E4;
  --cream: #F6ECE1;
  --ivory: #FFFCF7;
  --paper: #FBF6EF;
  --gold: #B8864B;
  --gold-l: #E6C894;
  --gold-d: #8C5E2A;
  --ink: #3D2A30;
  --muted: #8A777C;
  --gold-grad: linear-gradient(110deg, #9A6A32 0%, #C99A5E 18%, #F7E7C4 38%, #D9B27C 55%, #FBEBC9 70%, #B8864B 86%, #8C5E2A 100%);
  --velvet: radial-gradient(130% 70% at 50% 0%, #8E2D4F 0%, #6E1A36 42%, #4A0E22 100%);
  --script: 'Mea Culpa', cursive;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --display: 'Playfair Display', Georgia, serif;
  --caps: 'Montserrat', system-ui, sans-serif;
  --w: 440px;
  --ease: cubic-bezier(.22, .68, .18, 1);
  --radius: 44px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); font-size: 17px; -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 15% 10%, #fff 0, transparent 45%), radial-gradient(circle at 85% 85%, #f4e4e2 0, transparent 50%), #EFE6E1;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.invite { max-width: var(--w); margin: 0 auto; background: var(--ivory); box-shadow: 0 0 80px rgba(74, 14, 34, .16); overflow: hidden; position: relative; }

/* ---------- Chữ ---------- */
.script { font-family: var(--script); font-weight: 400; margin: 0; line-height: 1; }
.gold-text, .plum .script, .cv-names em, .hero-names .amp {
  background: var(--gold-grad); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.shimmer .gold-text, .shimmer .plum .script, .shimmer .cv-names em, .shimmer .hero-names .amp { animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: 220% center; } }

.cap { font-family: var(--caps); font-weight: 400; font-size: 11.5px; letter-spacing: .42em; text-transform: uppercase; text-align: center; margin: 0 0 14px; color: var(--gold-l); position: relative; z-index: 2; }
.cap.lg { font-size: 13px; letter-spacing: .5em; margin-bottom: 30px; }
.cap.lg::after, .ev-title::after {
  content: ''; display: block; width: 150px; height: 9px; margin: 14px auto 0;
  background:
    radial-gradient(circle, currentColor 0 2.2px, transparent 2.6px) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, currentColor 35%, transparent 47%, transparent 53%, currentColor 65%, transparent) center / 100% 1px no-repeat;
  opacity: .8;
}
.cap.sm { font-size: 10.5px; line-height: 2.1; letter-spacing: .3em; }
.cap.dark { color: var(--gold-d); }

/* ---------- Các khối bo tròn chồng lớp ---------- */
.sec {
  position: relative; overflow: hidden; padding: 86px 28px 76px;
  margin-top: calc(var(--radius) * -1);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -18px 40px -10px rgba(74, 14, 34, .18);
}
.plum { background: var(--velvet); color: var(--cream); }
.plum::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle, rgba(246, 222, 178, .55) 0 1px, transparent 1.6px), radial-gradient(circle, rgba(246, 222, 178, .35) 0 .8px, transparent 1.4px);
  background-size: 90px 110px, 57px 63px; background-position: 0 0, 30px 40px;
  -webkit-mask: radial-gradient(120% 60% at 50% 0%, #000, transparent 75%); mask: radial-gradient(120% 60% at 50% 0%, #000, transparent 75%);
}
.paper { background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 100%); }
.paper::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 40% at 50% 0%, rgba(255,255,255,.9), transparent 70%); }

/* ---------- Trang trí ---------- */
.deco { position: absolute; pointer-events: none; user-select: none; z-index: 1; filter: drop-shadow(0 10px 16px rgba(60, 10, 25, .18)); }
.paper .deco { filter: drop-shadow(0 8px 14px rgba(140, 94, 42, .14)); }
.sway { animation: sway 9s ease-in-out infinite alternate; transform-origin: 60% 60%; }
@keyframes sway { from { translate: 0 0; scale: 1; } to { translate: 5px -7px; scale: 1.035; } }
img.deco[src*="gold-flakes"] { filter: none; opacity: .85; }

/* ---------- Bìa / phong bì ---------- */
.cover { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; overflow: hidden; background: var(--velvet); transition: opacity 1.4s var(--ease), visibility 1.4s; }
.cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(246,222,178,.5) 0 1px, transparent 1.6px); background-size: 70px 80px; opacity: .5; }
.cover.gone { opacity: 0; visibility: hidden; }
.cover.gone .cover-card { transform: scale(1.08) translateY(-10px); filter: blur(4px); }
.cv-tl { width: 250px; top: -50px; left: -80px; rotate: 165deg; }
.cv-br { width: 290px; bottom: -70px; right: -90px; }
.cv-gold { width: 220px; top: 10px; right: -10px; }
.cover-card {
  position: relative; z-index: 2; width: min(350px, 100%); padding: 58px 28px 40px; text-align: center; color: var(--plum);
  background: linear-gradient(180deg, #fffdf9, #fbf3ea); border-radius: 175px 175px 26px 26px;
  box-shadow: 0 40px 90px rgba(20, 0, 8, .45), 0 0 0 1px rgba(230, 200, 148, .6), inset 0 0 60px rgba(230, 200, 148, .18);
  transition: transform 1.4s var(--ease), filter 1.4s;
  animation: floatIn 1.6s var(--ease) both;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(30px) scale(.97); filter: blur(6px); } }
.cover-card::before { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(184, 134, 75, .55); border-radius: 165px 165px 18px 18px; pointer-events: none; }
.cv-kicker { font-family: var(--caps); letter-spacing: .45em; font-size: 10px; color: var(--gold-d); text-transform: uppercase; margin: 6px 0 14px; }
.cv-names { font-size: 64px; color: var(--plum); line-height: .92; font-weight: 400; }
.cv-names span { display: block; }
.cv-names em { display: block; font-style: normal; font-size: 46px; padding: 4px 0; }
.cv-date { font-family: var(--caps); font-weight: 300; letter-spacing: .4em; font-size: 13px; margin: 18px 0 22px; color: var(--ink); }
.cover-guest { padding: 14px 0; margin: 0 10px 24px; position: relative; }
.cover-guest::before, .cover-guest::after { content: ''; position: absolute; left: 15%; right: 15%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l), transparent); }
.cover-guest::before { top: 0; } .cover-guest::after { bottom: 0; }
.cover-guest p { margin: 0; font-style: italic; color: var(--muted); font-size: 16px; }
.cover-guest strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--plum); }
.btn-open {
  position: relative; border: 0; border-radius: 999px; padding: 14px 38px; font-family: var(--caps); font-size: 11px; letter-spacing: .4em; text-transform: uppercase; font-weight: 500;
  color: var(--plum-d); background: var(--gold-grad); background-size: 220% auto; box-shadow: 0 14px 30px rgba(140, 94, 42, .35), inset 0 1px 0 rgba(255,255,255,.6);
  animation: shimmer 6s linear infinite, breathe 3s ease-in-out infinite;
}
@keyframes breathe { 50% { box-shadow: 0 14px 40px rgba(140, 94, 42, .5), 0 0 0 8px rgba(230, 200, 148, .15), inset 0 1px 0 rgba(255,255,255,.6); } }

/* ---------- 1. Ảnh bìa ---------- */
.hero { position: relative; height: 100svh; min-height: 660px; max-height: 880px; background: var(--ivory); overflow: hidden; }
.hero-img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 82%; object-fit: cover; object-position: center 25%; animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 50% 30%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }
.hero::after { content: ''; position: absolute; inset: 18px 18px auto 18px; height: calc(82% - 70px); border: 1px solid rgba(255, 255, 255, .55); border-radius: 160px 160px 0 0; pointer-events: none; z-index: 1; }
.hero-fade { position: absolute; left: 0; right: 0; top: 38%; height: 45%; background: linear-gradient(180deg, rgba(255,252,247,0) 0%, rgba(255,252,247,.6) 50%, var(--ivory) 92%); z-index: 1; }
.hero-flower { width: 190px; right: -70px; bottom: 0; z-index: 2; }
.hero-gold { width: 160px; left: -10px; top: 60%; z-index: 2; }
.hero-names { position: absolute; z-index: 3; left: 0; right: 0; bottom: 140px; color: var(--plum); }
.hero-names .n1 { font-size: 76px; margin-left: 28px; text-shadow: 0 2px 30px rgba(255,255,255,.9); }
.hero-names .amp { display: block; font-size: 50px; margin: -12px 0 -16px 47%; width: max-content; }
.hero-names .n2 { font-size: 76px; text-align: right; margin-right: 40px; text-shadow: 0 2px 30px rgba(255,255,255,.9); }
.hero-std { position: absolute; z-index: 3; left: 0; right: 0; bottom: 74px; margin: 0; text-align: center; font-family: var(--caps); font-size: 10px; font-weight: 400; letter-spacing: .5em; text-transform: uppercase; color: var(--gold-d); }
.hero-std b { display: block; font-weight: 300; color: var(--plum); font-size: 15px; margin-top: 8px; letter-spacing: .45em; }

/* ---------- 2. Thông tin lễ cưới ---------- */
.fam-flower { width: 200px; top: -30px; right: -64px; rotate: -18deg; }
.fam-flower2 { width: 140px; bottom: 20px; left: -60px; }
.fam-gold { width: 140px; top: 34px; left: 6px; }
.frame { position: relative; z-index: 2; padding: 84px 22px 50px; text-align: center; border-radius: 150px 150px 30px 30px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0) 60%); }
.frame::before, .frame::after { content: ''; position: absolute; pointer-events: none; border-radius: inherit; }
.frame::before { inset: 0; padding: 1.5px; background: var(--gold-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .9; }
.frame::after { inset: 9px; border: 1px solid rgba(230, 200, 148, .3); border-radius: 141px 141px 22px 22px; }
.parents { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 12px; margin: 22px 0 30px; font-size: 15.5px; line-height: 1.55; }
.parents::before { content: ''; grid-column: 2; grid-row: 1; background: linear-gradient(transparent, rgba(230,200,148,.6), transparent); }
.parents > div:first-child { grid-column: 1; grid-row: 1; } .parents > div:last-child { grid-column: 3; grid-row: 1; }
.parents p { margin: 0; }
.parents small { display: block; margin-top: 8px; font-size: 13.5px; font-style: italic; opacity: .78; }
.names h3 { font-size: 64px; }
.names .amp { display: block; font-size: 46px; margin: -8px 0 -10px; }
.cer-cap { margin-top: 30px; }
.cer-place { font-family: var(--display); font-size: 21px; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 0; font-weight: 400; }
.vao-luc { font-size: 38px; margin: 10px 0 4px; }
.cer-time { font-family: var(--caps); font-weight: 300; font-size: 14.5px; letter-spacing: .14em; line-height: 1.9; text-transform: uppercase; margin: 0; }
.lunar { font-style: italic; font-size: 15px; opacity: .8; margin: 8px 0 0; }
.guest-line { margin-top: 28px; padding-top: 18px; position: relative; }
.guest-line::before { content: ''; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l), transparent); }
.guest-line p { margin: 0; font-style: italic; opacity: .85; }
.guest-line strong { font-size: 26px; font-weight: 600; color: var(--gold-l); }

/* ---------- 3. Trân trọng kính mời ---------- */
#events { text-align: center; color: var(--plum); }
.inv-l { width: 190px; left: -80px; top: 10px; rotate: 150deg; }
.inv-r { width: 190px; right: -80px; top: 46%; rotate: -30deg; }
.inv-gold { width: 120px; right: 14px; top: 46px; transform: scaleX(-1); }
.inv-gold2 { width: 120px; left: 0; top: 56%; }
#mainEvent, .others { position: relative; z-index: 2; }
.ev-title { font-family: var(--display); font-size: 25px; letter-spacing: .12em; text-transform: uppercase; margin: 0; color: var(--plum); font-weight: 400; }
.ev-title::after { color: var(--gold); }
.ev-sub { font-style: italic; font-size: 17px; color: var(--muted); margin: 14px auto 6px; max-width: 260px; line-height: 1.45; }
.ev-script { font-size: 42px; color: var(--gold-d); margin: 6px 0 2px; }
.ev-time { font-family: var(--caps); font-weight: 300; font-size: 22px; letter-spacing: .25em; color: var(--plum); margin: 0 0 10px; }
.dayrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 4px 6px 8px; color: var(--plum); }
.dayrow span { font-family: var(--caps); font-weight: 400; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; padding: 10px 0; border-top: 1px solid rgba(184,134,75,.45); border-bottom: 1px solid rgba(184,134,75,.45); }
.dayrow b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; padding: 0 24px; }
#events .lunar { color: var(--muted); opacity: 1; }
.venue { font-family: var(--display); font-size: 23px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); margin: 2px 0 8px; font-weight: 400; line-height: 1.35; }
.addr { font-style: italic; font-size: 16px; color: var(--muted); margin: 0 auto 20px; max-width: 280px; line-height: 1.45; }
.map { padding: 6px; background: #fff; border-radius: 24px; box-shadow: 0 20px 40px rgba(110, 26, 54, .12), 0 0 0 1px rgba(184,134,75,.3); }
.map iframe { width: 100%; aspect-ratio: 16/11; border: 0; display: block; border-radius: 18px; background: #f2ece6; }
.ev-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.chip-btn { border: 1px solid rgba(184,134,75,.55); background: rgba(255,255,255,.8); color: var(--plum); border-radius: 999px; padding: 9px 18px; font-family: var(--caps); font-size: 11px; letter-spacing: .08em; font-weight: 500; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; transition: all .4s var(--ease); }
.chip-btn:hover { background: var(--plum); color: #fff; border-color: var(--plum); box-shadow: 0 10px 24px rgba(110,26,54,.25); }
.others { margin-top: 40px; display: grid; gap: 14px; }
.others h4 { font-family: var(--caps); font-weight: 400; letter-spacing: .4em; font-size: 10.5px; color: var(--gold-d); text-transform: uppercase; margin: 0 0 6px; }
.mini-ev { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; text-align: left; background: rgba(255,255,255,.85); border-radius: 22px; padding: 16px 18px; box-shadow: 0 12px 30px rgba(110,26,54,.08), 0 0 0 1px rgba(184,134,75,.2); }
.mini-ev .d { text-align: center; color: var(--plum); border-right: 1px solid rgba(184,134,75,.4); padding-right: 14px; }
.mini-ev .d b { display: block; font-family: var(--display); font-size: 22px; font-weight: 400; }
.mini-ev .d small { font-family: var(--caps); font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.mini-ev h5 { margin: 0 0 2px; font-family: var(--display); font-size: 17px; color: var(--plum); font-weight: 400; letter-spacing: .03em; }
.mini-ev p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.mini-ev a { color: var(--gold-d); }

/* ---------- 4. Couple ---------- */
.cp-gold { width: 150px; top: 40px; left: -10px; }
.cp-flower { width: 160px; top: 150px; right: -100px; rotate: -10deg; }
.couple { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; z-index: 2; }
.person { margin: 0; text-align: center; }
.arch-ph { aspect-ratio: 3/4.4; border-radius: 999px 999px 26px 26px; padding: 5px; background: linear-gradient(180deg, rgba(246,222,178,.7), rgba(184,134,75,.25)); box-shadow: 0 24px 40px rgba(20,0,8,.35); }
.arch-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 22px 22px; }
.person:nth-child(2) { margin-top: 48px; }
.person h3 { font-size: clamp(36px, 10.5vw, 48px); margin: 16px 0 6px; white-space: nowrap; }
.person p { margin: 0; font-style: italic; font-size: 15.5px; line-height: 1.45; opacity: .85; }
.quote { position: relative; z-index: 2; font-style: italic; font-size: 21px; font-weight: 400; line-height: 1.55; text-align: center; margin: 42px 8px 0; color: var(--cream); }
.quote::before { content: '❝'; display: block; font-size: 24px; color: var(--gold-l); margin-bottom: 8px; font-style: normal; }
.quote.sm { font-size: 18px; margin: 0 6px 28px; }
.quote.sm::before { display: none; }

.cal-sec { padding-top: 70px; }
.cal-flower { width: 140px; left: -74px; bottom: -40px; }
.cal-leaves { width: 70px; right: -4px; top: 50px; rotate: 10deg; }
.cal { position: relative; z-index: 2; max-width: 320px; margin: 0 auto 34px; padding: 26px 18px 18px; border-radius: 28px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(230,200,148,.28); }
.cal-title { font-family: var(--display); font-weight: 400; font-style: italic; font-size: 26px; text-align: center; margin: 0 0 14px; color: #fff; letter-spacing: .03em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-family: var(--caps); }
.cal-grid .h { font-size: 9.5px; letter-spacing: .15em; font-weight: 500; padding: 8px 0 10px; color: var(--gold-l); }
.cal-grid .d { padding: 9px 0; font-size: 13px; font-weight: 300; color: #fff; position: relative; z-index: 0; }
.cal-grid .d.wed { font-weight: 600; color: var(--plum); }
.cal-grid .d.wed::before { content: '♥'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #F8E9DC; z-index: -1; animation: beat 1.8s ease-in-out infinite; text-shadow: 0 0 18px rgba(246,222,178,.8); }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.countdown { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 320px; margin: 0 auto; }
.countdown div { aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), rgba(255,255,255,.02)); box-shadow: inset 0 0 0 1px rgba(230,200,148,.55); }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; line-height: 1.1; }
.countdown small { font-family: var(--caps); font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.countdown .done { grid-column: 1 / -1; aspect-ratio: auto; border-radius: 20px; padding: 14px; font-style: italic; font-size: 19px; }

/* ---------- 5. Album ---------- */
.al-gold { width: 140px; top: 40px; right: -6px; transform: scaleX(-1); }
.al-leaves { width: 70px; left: -16px; top: 300px; rotate: -12deg; }
.al-flower { width: 200px; right: -96px; top: 54%; }
.gallery { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gallery button { padding: 0; border: 0; background: none; aspect-ratio: 3/4; position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 16px 30px rgba(110, 26, 54, .14); }
.gallery button::after { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.7); border-radius: 16px; pointer-events: none; }
.gallery button:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 4/3; border-radius: 120px 120px 22px 22px; }
.gallery button:nth-child(3n+1)::after { border-radius: 114px 114px 16px 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.gallery button:hover img { transform: scale(1.06); }
.btn-pill { position: relative; z-index: 2; display: block; margin: 28px auto 0; border: 1px solid rgba(184,134,75,.6); border-radius: 999px; padding: 12px 34px; background: rgba(255,255,255,.7); color: var(--plum); font-family: var(--caps); font-size: 11px; letter-spacing: .35em; text-transform: uppercase; font-weight: 500; transition: all .4s var(--ease); }
.btn-pill:hover { background: var(--plum); color: #fff; border-color: var(--plum); }
.quotes { position: relative; z-index: 2; margin-top: 52px; display: grid; gap: 34px; }
.q-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: center; }
.q-card:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.q-card:nth-child(even) .q-text { order: -1; text-align: right; }
.q-card img { width: 100%; aspect-ratio: 3/4.3; object-fit: cover; border-radius: 999px 999px 24px 24px; box-shadow: 0 20px 40px rgba(110, 26, 54, .18); }
.q-text { font-family: var(--script); font-size: 46px; line-height: 1.02; color: var(--plum); }

/* ---------- 6. RSVP ---------- */
.rs-gold { width: 140px; top: 40px; left: -4px; }
.rs-flower { width: 180px; right: -80px; bottom: -40px; }
.rsvp-card { position: relative; z-index: 2; background: linear-gradient(180deg, #fffdf9, #fbf4eb); color: var(--ink); border-radius: 32px; padding: 36px 24px 28px; box-shadow: 0 30px 60px rgba(20, 0, 8, .35), inset 0 0 0 1px rgba(230,200,148,.5); }
.rsvp-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(184,134,75,.25); border-radius: 24px; pointer-events: none; }
.rsvp-card h3 { font-family: var(--display); font-weight: 400; font-style: italic; text-align: center; color: var(--plum); font-size: 28px; margin: 0 0 6px; }
.deadline { text-align: center; font-family: var(--caps); font-size: 10.5px; letter-spacing: .15em; color: var(--gold-d); margin: 0 0 24px; }
.rsvp-card label, .rsvp-card legend { position: relative; display: block; font-family: var(--caps); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 18px; }
.rsvp-card fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.rsvp-card input:not([type=radio]):not([type=checkbox]), .rsvp-card select, .rsvp-card textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 2px; border: 0; border-bottom: 1px solid rgba(184,134,75,.45); border-radius: 0; background: transparent;
  font-family: var(--serif); font-size: 18px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; transition: border-color .4s;
}
.rsvp-card textarea { resize: none; }
.rsvp-card input:focus, .rsvp-card select:focus, .rsvp-card textarea:focus { outline: 0; border-bottom-color: var(--plum); }
.rsvp-card ::placeholder { color: #b9a9a0; font-style: italic; font-weight: 400; }
.rsvp-card .radio { display: flex; align-items: center; gap: 12px; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--ink); margin: 12px 0 0; cursor: pointer; padding: 12px 16px; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(184,134,75,.25); transition: all .35s var(--ease); }
.rsvp-card .radio:has(input:checked) { background: var(--blush); box-shadow: inset 0 0 0 1px var(--plum-l); }
.rsvp-card input[type=radio], .rsvp-card input[type=checkbox] { accent-color: var(--plum); width: 17px; height: 17px; flex: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: grid; gap: 8px; margin-top: 10px; }
.checks label { display: flex; gap: 10px; align-items: center; text-transform: none; letter-spacing: 0; font-family: var(--serif); font-weight: 500; font-size: 16px; margin: 0; color: var(--ink); }
.form-error { color: #A8323F; font-family: var(--caps); font-size: 12px; min-height: 1em; margin: 0 0 12px; position: relative; }
.btn-send { position: relative; display: block; width: 100%; border: 0; border-radius: 999px; padding: 15px; background: linear-gradient(135deg, var(--plum-l), var(--plum) 55%, var(--plum-d)); color: #fff; font-family: var(--caps); font-size: 11px; letter-spacing: .35em; text-transform: uppercase; font-weight: 500; box-shadow: 0 14px 30px rgba(110,26,54,.35), inset 0 1px 0 rgba(255,255,255,.2); transition: transform .4s var(--ease), box-shadow .4s; }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(110,26,54,.45); }
.btn-send:disabled { opacity: .6; cursor: wait; }
.rsvp-done { position: relative; margin-top: 16px; text-align: center; font-size: 16px; background: var(--blush); border-radius: 20px; padding: 14px 16px; color: var(--plum-d); line-height: 1.5; }
.rsvp-done small { font-size: 13px; opacity: .8; }

/* ---------- 7. Quà & cảm ơn ---------- */
.gf-l { width: 180px; left: -90px; top: 50px; rotate: 160deg; }
.gf-r { width: 160px; right: -70px; top: 180px; }
.gf-gold { width: 130px; right: 20px; top: 40px; transform: scaleX(-1); }
.gift-box { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 auto; border: 0; background: none; color: var(--cream); font-family: var(--caps); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; }
.gift-box img { width: 170px; animation: floaty 4s ease-in-out infinite; filter: drop-shadow(0 18px 22px rgba(20,0,8,.35)); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
.thanks { text-align: center; padding: 86px 28px 110px; }
.th-l { width: 160px; left: -86px; bottom: -40px; rotate: 200deg; }
.th-r { width: 180px; right: -96px; bottom: -60px; }
.thanks h2 { position: relative; z-index: 2; font-size: 66px; margin-bottom: 14px; }
.thanks .foot { position: relative; z-index: 2; font-style: italic; font-size: 17px; opacity: .85; max-width: 300px; margin: 8px auto 0; line-height: 1.55; }

.gift-msg { font-style: italic; font-size: 17px; color: var(--muted); text-align: center; margin: 0 0 18px; line-height: 1.5; }
.gift-accounts { display: grid; gap: 16px; }
.acc { border-radius: 26px; padding: 22px 18px; text-align: center; background: linear-gradient(180deg, #fff, #fbf4eb); box-shadow: 0 14px 30px rgba(110,26,54,.1), inset 0 0 0 1px rgba(184,134,75,.25); }
.acc h4 { margin: 0 0 10px; font-family: var(--caps); font-weight: 500; font-size: 10px; letter-spacing: .35em; text-transform: uppercase; color: var(--gold-d); }
.acc img { width: 160px; height: 160px; object-fit: contain; margin: 0 auto 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #f0e6dc; }
.acc .bank { font-family: var(--display); font-weight: 400; color: var(--plum); font-size: 20px; }
.acc .num { font-family: var(--caps); font-weight: 300; font-size: 21px; letter-spacing: .14em; margin: 6px 0; color: var(--ink); }
.acc .holder { font-family: var(--caps); font-size: 11px; letter-spacing: .2em; color: var(--muted); margin-bottom: 14px; }

/* ---------- Chân trang gọn: nhạc · Xác nhận tham dự · Gửi lời chúc ---------- */
.bottom-bar {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom));
  width: min(calc(var(--w) - 32px), calc(100% - 32px));
  display: flex; align-items: center; gap: 6px; padding: 5px;
  border-radius: 999px; background: rgba(255, 252, 247, .8);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 28px rgba(74, 14, 34, .16), inset 0 0 0 1px rgba(184, 134, 75, .25);
}
.sound { flex: none; border: 0; background: none; padding: 0; border-radius: 50%; }
.disc { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-grad); background-size: 200%; color: var(--plum-d); display: grid; place-items: center; box-shadow: 0 3px 8px rgba(140, 94, 42, .3); }
.sound[aria-pressed=true] .disc { animation: spin 4s linear infinite; }
.sound[aria-pressed=false] .disc { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar-btn {
  flex: 1 1 0; min-width: 0; height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 0 10px; white-space: nowrap;
  font-family: var(--caps); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.bar-btn svg { flex: none; }
.rsvp-btn { background: #fff; color: var(--plum); box-shadow: inset 0 0 0 1px rgba(184, 134, 75, .45); }
.wish-btn { background: linear-gradient(135deg, var(--plum-l), var(--plum)); color: #fff; box-shadow: 0 6px 14px rgba(110, 26, 54, .28); }
.bar-btn:active { transform: scale(.97); }
@media (max-width: 350px) { .bar-btn { font-size: 9px; letter-spacing: .06em; padding: 0 6px; } .bar-btn svg { display: none; } }

/* ---------- Sheet / Modal ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(40, 8, 18, .38); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .4s var(--ease); }
.sheet.center { align-items: center; padding: 18px; }
@keyframes fade { from { opacity: 0; } }
.sheet-panel { width: min(var(--w), 100%); background: var(--ivory); border-radius: 34px 34px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); animation: up .5s var(--ease); max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 -20px 50px rgba(20,0,8,.25); }
.sheet-panel::before { content: ''; width: 44px; height: 4px; border-radius: 4px; background: #e6d8cc; margin: -8px auto 14px; flex: none; }
.sheet-panel.tall { height: 86vh; }
.sheet-panel.modal { border-radius: 32px; overflow: auto; }
.sheet-panel.modal::before { display: none; }
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.sheet-head h3 { margin: 0; color: var(--plum); font-family: var(--display); font-weight: 400; font-style: italic; font-size: 24px; }
.x { border: 0; background: #f3e9e1; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; color: var(--plum); line-height: 1; }
.menu-list { list-style: none; margin: 0; padding: 0 0 6px; text-align: center; }
.menu-list a { display: block; padding: 14px; color: var(--ink); text-decoration: none; font-family: var(--display); font-style: italic; font-size: 19px; border-radius: 18px; transition: all .3s; }
.menu-list a:hover { color: var(--plum); background: var(--blush); }
.wish-feed { flex: 1; overflow: auto; display: grid; gap: 12px; align-content: start; padding: 4px 2px 14px; }
.wish { background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: 0 6px 18px rgba(110,26,54,.06), inset 0 0 0 1px rgba(184,134,75,.15); }
.wish .who { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); color: var(--plum-d); display: grid; place-items: center; font-family: var(--caps); font-weight: 600; font-size: 11px; flex: none; }
.wish b { font-family: var(--caps); font-weight: 500; font-size: 13px; color: var(--plum-d); }
.wish time { font-family: var(--caps); font-size: 10.5px; color: var(--muted); }
.wish p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.empty { text-align: center; color: var(--muted); font-style: italic; }
.wish-form { padding-top: 14px; display: grid; gap: 10px; position: relative; }
.wish-form::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l), transparent); }
.wish-form input, .wish-form textarea { display: block; width: 100%; padding: 12px 16px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px rgba(184,134,75,.3); font-family: var(--serif); font-size: 17px; color: var(--ink); resize: none; }
.wish-form input:focus, .wish-form textarea:focus { outline: 0; box-shadow: inset 0 0 0 1.5px var(--plum-l); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips button { flex: none; border: 0; background: var(--blush); color: var(--plum-d); border-radius: 999px; padding: 7px 14px; font-family: var(--serif); font-style: italic; font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(30, 6, 14, .92); backdrop-filter: blur(8px); display: grid; place-items: center; animation: fade .4s; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox figcaption { color: var(--gold-l); font-style: italic; margin-top: 12px; }
.lb-x { position: absolute; top: 16px; right: 16px; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 28px; line-height: 1; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-count { position: absolute; bottom: 20px; color: #fff; font-family: var(--caps); font-size: 11px; letter-spacing: .3em; }

.toast { position: fixed; z-index: 120; left: 50%; top: 18px; transform: translate(-50%, -90px); background: rgba(74, 14, 34, .94); backdrop-filter: blur(10px); color: #fff; padding: 13px 22px; border-radius: 999px; font-family: var(--caps); font-size: 12px; box-shadow: 0 14px 34px rgba(0,0,0,.25); transition: transform .6s var(--ease); max-width: 90vw; text-align: center; }
.toast.show { transform: translate(-50%, 0); }

/* ---------- Cánh hoa rơi ---------- */
.petals { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.petal { position: absolute; top: -30px; width: 10px; height: 13px; border-radius: 80% 0 80% 0; opacity: .75; filter: blur(.3px); animation: fall linear forwards; }
@keyframes fall { 100% { transform: translate(var(--dx), 110vh) rotate(540deg); opacity: .1; } }

/* ---------- Hiệu ứng xuất hiện: mờ → rõ, nổi nhẹ ---------- */
.reveal { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(8px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease), filter 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-img, .sway, .btn-open, .gift-box img, .cal-grid .d.wed::before, .gold-text, .plum .script { animation: none !important; }
  .petals { display: none; }
}
@media (max-width: 360px) {
  .hero-names .n1, .hero-names .n2 { font-size: 62px; } .names h3 { font-size: 52px; } .dayrow b { font-size: 52px; padding: 0 16px; } .q-text { font-size: 38px; }
}

/* =====================================================================
   Trang trí ép kim (nét chỉ vàng) – ghi đè vị trí cũ
   corner.svg vẽ cho góc trên-trái; lật bằng transform cho các góc khác
   ===================================================================== */
.deco, .paper .deco { filter: none; rotate: 0deg; opacity: .95; }
.paper .deco { opacity: 1; }
.tr { transform: scaleX(-1); } .bl { transform: scaleY(-1); } .br { transform: scale(-1, -1); }
img.deco[src*="sparkle"] { animation: twinkle 5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }
.divider { display: block; width: 170px; margin: 12px auto 0; position: relative; z-index: 2; }
.thanks .divider { margin: 4px auto 10px; }

.cv-tl { width: 220px; top: -6px; left: -6px; }
.cv-br { width: 220px; bottom: -6px; right: -6px; top: auto; left: auto; transform: scale(-1, -1); }
.cv-gold { width: 150px; top: 26px; right: 16px; }

.hero-img { -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.6) 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, rgba(0,0,0,.6) 78%, transparent 100%); }
.hero-fade { top: 45%; height: 40%; background: linear-gradient(180deg, rgba(255,252,247,0) 0%, rgba(255,252,247,.5) 60%, rgba(255,252,247,0) 100%); }
.hero-flower { width: 150px; right: -4px; bottom: 34px; transform: scale(-1, -1); }
.hero-gold { width: 130px; left: 4px; top: 60%; }

.fam-flower { width: 190px; top: 0; right: 0; transform: scaleX(-1); }
.fam-flower2 { width: 120px; bottom: 26px; left: -20px; }
.fam-gold { width: 120px; top: 40px; left: 8px; }

.inv-l { width: 170px; top: 6px; left: 0; }
.inv-r { width: 170px; top: auto; bottom: 30px; right: 0; transform: scale(-1, -1); }
.inv-gold { width: 110px; right: 12px; top: 56px; transform: none; }
.inv-gold2 { width: 100px; left: 6px; top: 52%; }

.cp-gold { width: 130px; top: 40px; left: 4px; }
.cp-flower { width: 160px; top: 0; right: 0; transform: scaleX(-1); }

.cal-flower { width: 120px; bottom: 30px; left: -26px; }
.cal-leaves { width: 46px; right: 10px; top: 60px; }

.al-gold { width: 120px; top: 40px; right: 6px; transform: scaleX(-1); }
.al-leaves { width: 42px; left: 6px; top: 280px; }
.al-flower { width: 150px; top: 50%; right: 0; transform: scaleX(-1); opacity: .9; }

.rs-gold { width: 120px; top: 40px; left: 4px; }
.rs-flower { width: 160px; bottom: 0; right: 0; transform: scale(-1, -1); }

.gf-l { width: 160px; top: 0; left: 0; }
.gf-r { width: 160px; top: 0; right: 0; transform: scaleX(-1); }
.gf-gold { width: 110px; right: 40px; top: 150px; transform: none; }

.th-l { width: 160px; bottom: 0; left: 0; transform: scaleY(-1); }
.th-r { width: 160px; bottom: 0; right: 0; transform: scale(-1, -1); }

/* =====================================================================
   Chữ viết tay nhũ vàng: nét uốn (swash) của font Mea Culpa vượt ra ngoài
   khung chữ, mà background-clip:text chỉ tô bên trong khung → bị cắt.
   Nới vùng tô bằng padding rồi bù lại bằng margin âm để bố cục không đổi.
   ===================================================================== */
.plum .names h3 { padding: .32em .4em .22em; margin: -.32em -.4em -.22em; }
.plum .names .amp { padding: .32em .4em .22em; margin: calc(-8px - .32em) -.4em calc(-10px - .22em); }
.plum .vao-luc { padding: .32em .4em .22em; margin: calc(10px - .32em) -.4em calc(4px - .22em); }
.plum .person h3 { font-size: clamp(32px, 9.4vw, 44px); padding: .32em .5em .22em; margin: calc(16px - .32em) -.5em calc(6px - .22em); overflow: visible; }
.plum.thanks h2 { padding: .32em .4em .22em; margin: -.32em -.4em calc(14px - .22em); }
.cv-names em { padding: .32em .4em .22em; margin: -.32em auto -.22em; width: max-content; }
.hero-names .amp { padding: .32em .4em .22em; margin: calc(-12px - .32em) 0 calc(-16px - .22em) calc(47% - .4em); }
/* cột ảnh đôi không cắt phần chữ tràn */
.couple, .person { overflow: visible; }

/* =====================================================================
   Tên trên ảnh bìa: nhũ vàng đồng lấp lánh giống chữ "&"
   ===================================================================== */
.hero-names .n1, .hero-names .n2 {
  background: linear-gradient(110deg, #6A3F14 0%, #9A6A32 20%, #C99A5E 36%, #EBCB91 46%, #B8864B 58%, #8C5E2A 76%, #6A3F14 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 0 12px rgba(255, 252, 247, .95)) drop-shadow(0 1px 1.5px rgba(74, 14, 34, .45));
  padding: .32em .4em .22em;
}
.hero-names .n1 { margin: -.32em 0 -.22em calc(28px - .4em); }
.hero-names .n2 { margin: -.32em calc(40px - .4em) -.22em 0; }
.shimmer .hero-names .n1, .shimmer .hero-names .n2 { animation: shimmer 7s linear infinite; }

.hero-names .amp { filter: drop-shadow(0 1px 1.5px rgba(74, 14, 34, .4)); }

/* =====================================================================
   Nút bật / tắt nhạc ở chân trang (cạnh 2 nút)
   ===================================================================== */
.sound { position: relative; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--plum); background: #fff; box-shadow: inset 0 0 0 1px rgba(184, 134, 75, .55); transition: all .4s var(--ease); }
.sound svg { grid-area: 1 / 1; transition: opacity .3s, transform .3s; }
.sound .ic-on { opacity: 0; transform: scale(.6); }
.sound[aria-pressed=true] { color: var(--plum-d); background: var(--gold-grad); background-size: 200% auto; box-shadow: 0 4px 12px rgba(140, 94, 42, .35); animation: shimmer 6s linear infinite; }
.sound[aria-pressed=true] .ic-on { opacity: 1; transform: none; animation: noteBob 1.6s ease-in-out infinite; }
.sound[aria-pressed=true] .ic-off { opacity: 0; transform: scale(.6); }
@keyframes noteBob { 50% { transform: translateY(-1.5px) rotate(-6deg); } }
.sound-ring { position: absolute; inset: -3px; border-radius: 50%; border: 1px solid rgba(184, 134, 75, .6); opacity: 0; pointer-events: none; }
.sound[aria-pressed=true] .sound-ring { animation: ripple 2.2s ease-out infinite; }
@keyframes ripple { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }
.sound:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.bottom-bar.has-sound .bar-btn { letter-spacing: .07em; padding: 0 8px; gap: 5px; font-size: 9.5px; }
@media (max-width: 360px) { .bottom-bar.has-sound .bar-btn svg { display: none; } }

/* Trái tim ngày cưới: dùng hình SVG căn đúng tâm ô (ký tự ♥ bị lệch theo phông chữ) */
.cal-grid .d.wed { display: grid; place-items: center; }
.cal-grid .d.wed::before {
  content: ''; position: absolute; inset: auto; left: 50%; top: 50%; width: 34px; height: 31px;
  translate: -50% -46%; transform: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 31'><path d='M17 30.2C14.6 28.2 1 19.6 1 9.6 1 4.6 4.9 1 9.4 1c3.4 0 6 1.9 7.6 4.6C18.6 2.9 21.2 1 24.6 1 29.1 1 33 4.6 33 9.6c0 10-13.6 18.6-16 20.6Z' fill='%23F8E9DC'/></svg>") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(246, 222, 178, .75));
  font-size: 0; text-shadow: none; animation: beatHeart 1.8s ease-in-out infinite;
}
@keyframes beatHeart { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }

/* Bìa thiệp: giãn khoảng cách tên – "&" – ngày cho thoáng */
.cover-card { padding: 62px 30px 44px; }
.cv-kicker { margin: 10px 0 22px; }
.cv-names { font-size: 58px; line-height: 1.12; }
.cv-names span { padding: .06em 0; }
.cv-names em { font-size: 40px; line-height: 1; padding: .22em .4em .18em; margin: 2px auto 6px; }
.cover-card .divider { margin: 22px auto 0; }
.cv-date { margin: 14px 0 28px; }
@media (max-height: 700px) { .cv-names { font-size: 50px; } .cover-card { padding: 50px 26px 36px; } .cv-date { margin-bottom: 20px; } }

/* Chữ "&" nhỏ hơn tên ở phần cảm ơn */
.thanks .amp-sm { font-size: .55em; vertical-align: .12em; margin: 0 .04em; }
