/* ===== Trang thiệp cưới (3 mẫu) ===== */
:root {
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

/* a11y: viền focus rõ khi dùng bàn phím */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px;
}

.invite { min-height: 100vh; min-height: 100dvh; /* dvh: đúng chiều cao thật khi URL bar mobile thu/phóng */ }
.sheet { max-width: 680px; margin: 0 auto; }

/* khối nội dung */
.blk { padding: 54px 28px; text-align: center; position: relative; }
.blk--tight { padding: 34px 28px; }
.divider { width: 120px; height: 1px; margin: 22px auto; opacity: .45; background: linear-gradient(90deg, transparent, currentColor 24%, currentColor 76%, transparent); }
.eyebrow { letter-spacing: 5px; text-transform: uppercase; font-size: 12px; font-weight: 600; }

.side-badge {
  display: inline-block; margin: 0 auto 14px; padding: 5px 16px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid currentColor;
}
.guest-greet { font-size: 15px; margin-bottom: 12px; opacity: .95; }
.guest-greet b { font-family: var(--font-display); font-weight: 700; }
.cover .save { font-size: 13px; letter-spacing: 4px; text-transform: uppercase; }
.names { font-family: var(--font-script); line-height: 1.05; margin: 14px 0; }
.names .n1, .names .n2 { display: block; font-size: clamp(44px, 11vw, 76px); }
.names .amp { font-size: clamp(26px, 6vw, 40px); margin: 2px 0; opacity: .8; }
/* Ngày cưới dạng đồ hoạ lớn: THỨ | DD | THÁNG · NĂM — cạnh dòng ngày/giờ chữ thường đã có */
.cover .wdate-big {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 10px 0 2px;
}
.wdate-big-wd {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  writing-mode: vertical-rl; opacity: .75;
}
.wdate-big-day {
  font-family: var(--font-display); font-size: clamp(40px, 11vw, 58px); font-weight: 800;
  line-height: 1; color: var(--orn, #c9973f);
}
.wdate-big-my {
  font-size: 12px; font-weight: 600; letter-spacing: .5px; text-align: left; line-height: 1.35; opacity: .85;
}
.cover .wdate { font-family: var(--font-display); font-size: clamp(18px, 4vw, 24px); margin-top: 6px; }
.cover .wlunar { font-size: 13.5px; opacity: .8; margin-top: 5px; font-style: italic; }
.cover .wsub { font-size: 14px; opacity: .8; margin-top: 8px; }
.cover .std-note { font-size: 13.5px; opacity: .8; margin-top: 8px; font-style: italic; }

.cover-photo { width: 100%; aspect-ratio: 3 / 2; max-height: 460px; object-fit: cover; display: block; animation: coverPhotoBlurIn .9s ease .1s both; }
@keyframes coverPhotoBlurIn { from { opacity: 0; filter: blur(8px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: scale(1); } }

/* Bố cục hero "photo-frame" (#197): ảnh cưới cỡ lớn trong khung vòm trên bìa.
   Kích hoạt khi mẫu khai báo hero: "photo-frame" (data/templates.ts) VÀ thiệp
   có ảnh — không ảnh thì invite.ts tự về bố cục cổ điển, không render khung. */
.cover--photo-frame .hero-photo {
  width: min(76%, 330px);
  margin: 20px auto 8px;
  padding: 10px;
  border: 1.5px solid var(--orn, #c9973f);
  border-radius: 999px 999px 20px 20px;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--orn, #c9973f) 16%, transparent),
    0 24px 50px -28px rgba(0, 0, 0, .55);
}
.cover--photo-frame .hero-photo img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 992px 992px 14px 14px;
  animation: coverPhotoBlurIn .9s ease .1s both;
}

/* Bố cục hero "twin-portrait" (#197): hai chân dung tròn hai bên chữ 囍,
   nhãn thứ bậc (Trưởng nam / Ái nữ) dưới mỗi chân dung. Kích hoạt khi mẫu
   khai báo hero: "twin-portrait" (data/templates.ts) VÀ thiệp có đủ 2 ảnh
   chân dung — thiếu thì invite.ts tự về bố cục cổ điển. */
.cover--twin-portrait .twin-hero {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(10px, 4vw, 24px);
  margin: 18px auto 4px;
}
.cover--twin-portrait .twin-hero .double-happy {
  font-size: clamp(36px, 9vw, 52px);
  line-height: 1;
  flex: none;
}
.twin-portrait {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  min-width: 0;
}
.twin-portrait img {
  display: block;
  width: clamp(88px, 24vw, 132px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--orn, #c9973f);
  padding: 4px;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--orn, #c9973f) 16%, transparent),
    0 18px 38px -24px rgba(0, 0, 0, .55);
  animation: coverPhotoBlurIn .9s ease .1s both;
}
.twin-role {
  font-size: 11.5px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; opacity: .8;
}
/* Màn hẹp: cụm nút nổi góc phải (VI/EN + A+, cao ~110px) đè lên chân dung
   bên phải — đẩy cụm chân dung xuống dưới các nút đó. */
@media (max-width: 768px) {
  .cover--twin-portrait .twin-hero { margin-top: 68px; }
}

.section-title { font-family: var(--font-display); font-size: clamp(22px, 5vw, 30px); margin: 0 0 6px; position: relative; }
.section-text { font-size: 16px; line-height: 1.8; max-width: 540px; margin: 8px auto 0; opacity: .92; white-space: pre-line; }

/* Chuyện của chúng tôi — chữ đầu đoạn nổi bật */
.story-section .section-text {
  font-style: italic;
  font-size: 16.5px;
  line-height: 1.9;
  text-align: center;
}
.story-section .section-text::first-letter {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 3.4em;
  line-height: 0.75;
  float: left;
  margin-right: 0.07em;
  margin-bottom: 0.05em;
}

/* Chế độ cảm ơn sau cưới */
.thankyou-banner { border-top: 1px solid rgba(128,128,128,.25); border-bottom: 1px solid rgba(128,128,128,.25); }
.thankyou-banner .section-text { max-width: 540px; margin: 8px auto 0; }

/* Cha mẹ hai bên */
.parents-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 540px; margin: 16px auto 0; }
@media (max-width: 480px) { .parents-grid { grid-template-columns: 1fr; gap: 10px; } }
.parent-side h3 { margin: 0 0 8px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; opacity: .85; }
.parent-name { font-family: var(--font-display); font-size: 18px; line-height: 1.5; }
.parent-role { font-size: 13px; opacity: .75; margin-top: 2px; }
.parent-address { font-size: 12.5px; opacity: .7; margin-top: 4px; line-height: 1.4; }

/* Loại lễ (Vu Quy / Tân Hôn) */
.vceremony { font-family: var(--font-script); font-size: 22px; line-height: 1.1; margin: 2px 0 6px; }

/* Countdown */
.countdown { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.cd-unit { min-width: 76px; padding: 16px 10px; border-radius: 14px; }
.cd-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-num.cd-tick { animation: cdTickPulse .22s cubic-bezier(.22,.61,.36,1) both; }
@keyframes cdTickPulse { from { opacity: .55; transform: scale(.80) translateY(-4px); } to { opacity: 1; transform: none; } }
.cd-lbl { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; opacity: .85; }
.cd-done { font-family: var(--font-display); font-size: 22px; margin-top: 10px; }

/* Thêm vào lịch */
.cal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.cal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; padding: 11px 18px; min-height: 44px; border-radius: 999px;
  border: 1px solid transparent; transition: transform .12s, opacity .15s;
}
.cal-btn:active { transform: translateY(1px); }
.cal-btn--ghost { background: transparent !important; }

/* Lịch tháng dạng lưới, khoanh ngày cưới — cạnh nút "Thêm vào lịch" */
.cal-grid {
  margin: 18px auto 0; max-width: 280px; padding: 14px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--orn, #c2a14d) 40%, transparent);
  border-radius: 14px; background: rgba(255,255,255,.05);
}
.cal-grid-month { text-align: center; font-weight: 700; font-size: 12.5px; letter-spacing: .4px; opacity: .85; margin-bottom: 8px; }
.cal-grid-head, .cal-grid-body { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid-wd { text-align: center; font-size: 10px; font-weight: 700; opacity: .55; padding-bottom: 4px; }
.cal-grid-day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 999px; font-size: 12px; }
.cal-grid-day--empty { visibility: hidden; }
.cal-grid-day--wedding {
  font-weight: 800;
  background: color-mix(in srgb, var(--orn, #c2a14d) 30%, transparent);
  box-shadow: 0 0 0 2px var(--orn, #c2a14d) inset;
}

/* Venues */
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 600px; margin: 22px auto 0; }
@media (max-width: 560px) { .venues { grid-template-columns: 1fr; } }
.venue { border-radius: 16px; padding: 22px 18px; text-align: center; }
.venue h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.venue .vname { font-family: var(--font-display); font-size: 20px; margin: 6px 0 2px; }
.venue .vtime { font-size: 14px; font-weight: 600; }
.venue .vlunar { font-size: 12.5px; opacity: .75; margin-top: 2px; font-style: italic; }
.venue .vaddr { font-size: 13.5px; opacity: .85; margin: 6px 0 14px; line-height: 1.5; }
.map-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
  font-size: 13.5px; font-weight: 600; padding: 11px 18px; min-height: 44px; border-radius: 999px;
}

/* Liên hệ nhanh (Gọi / Nhắn Zalo) — dùng currentColor để hợp mọi theme, khỏi
   phải khai báo lại cho từng theme như .venue/.map-btn. */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 600px; margin: 22px auto 0; }
@media (max-width: 560px) { .contacts { grid-template-columns: 1fr; } }
.contact-person {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 20px 16px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.contact-who { font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none;
  color: inherit; font-size: 14px; font-weight: 600; padding: 10px 18px; min-height: 44px;
  border-radius: 999px; border: 1.5px solid currentColor; background: transparent;
  transition: transform .15s, background .15s;
}
.contact-btn:hover { transform: translateY(-2px); }
.contact-zalo { background: color-mix(in srgb, currentColor 12%, transparent); }

/* Confetti RSVP */
.confetti-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; /* thang z của thiệp: fab 90 < lang 95 < lightbox 100 < toast 110 < intro 200 < confetti 300 */ }
.confetti-piece { position: absolute; top: -16px; display: block; animation: confettiFall linear both; }
@keyframes confettiFall {
  0%   { transform: translateY(0)    rotate(0deg);   opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(100vh) rotate(540deg); opacity: 0; }
}

/* RSVP */
.rsvp { max-width: 480px; margin: 0 auto; text-align: left; }
.rsvp .field { margin-bottom: 14px; }
.rsvp label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
@keyframes inputShake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-5px); }
  40%     { transform: translateX(5px); }
  60%     { transform: translateX(-3px); }
  80%     { transform: translateX(3px); }
}
.rsvp input, .rsvp textarea, .rsvp select {
  width: 100%; padding: 12px 14px; border-radius: 11px; font: inherit; border: 1px solid rgba(0,0,0,.14);
  transition: border-color .15s;
}
.rsvp input.input-shake { animation: inputShake .38s ease both; border-color: #d9534f; }
@media (prefers-reduced-motion: reduce) { .rsvp input.input-shake { animation: none; } }
.rsvp textarea { min-height: 70px; resize: vertical; }
/* Gợi ý lời chúc mẫu — để sổ lưu bút không trống */
.wish-suggest-btn {
  margin-top: 8px; border: none; background: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 12.5px;
  color: var(--orn, #c9973f); padding: 6px 2px; min-height: 32px;
}
.wish-suggest-btn:hover { text-decoration: underline; }
.wish-suggest-list { display: grid; gap: 6px; margin-top: 4px; }
.wish-suggest-item {
  text-align: left; border: 1px solid color-mix(in srgb, var(--orn, #c9973f) 35%, transparent);
  background: color-mix(in srgb, var(--orn, #c9973f) 8%, transparent);
  border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13px; cursor: pointer; min-height: 44px;
  transition: background .12s;
}
.wish-suggest-item:hover, .wish-suggest-item:focus-visible {
  background: color-mix(in srgb, var(--orn, #c9973f) 18%, transparent);
}
.attend-toggle { display: flex; gap: 10px; }
.attend-toggle label {
  flex: 1; text-align: center; padding: 12px; border-radius: 11px; cursor: pointer; position: relative;
  border: 1.5px solid rgba(0,0,0,.14); font-weight: 600; transition: all .22s ease; margin: 0;
}
.attend-toggle label.has-checked { transform: scale(1.03); }
/* radio ẩn kiểu sr-only (không display:none) để vẫn dùng được bàn phím/trình đọc màn hình */
.attend-toggle input {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.attend-toggle label:has(input:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
.attend-toggle input:checked + span { font-weight: 700; }
.consent-row { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 12px; padding: 4px 0; font-size: 13px; line-height: 1.5; cursor: pointer; text-align: left; }
.consent-row input { width: 20px; height: 20px; flex: none; margin-top: 0; }
.consent-row a { text-decoration: underline; }
.rsvp-btn { width: 100%; border: none; cursor: pointer; font: inherit; font-weight: 700; padding: 14px; border-radius: 12px; transition: transform .12s, opacity .15s; position: relative; overflow: hidden; }
.rsvp-btn:active { transform: translateY(1px); }
/* shimmer chạy bằng transform (không animate left — tránh reflow/paint mỗi frame) */
.rsvp-btn::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent); transform: translateX(-140%); animation: rsvpShimmer 3.5s ease-in-out 2s infinite; pointer-events: none; }
@keyframes rsvpShimmer { 0%,55% { transform: translateX(-140%); } 80%,100% { transform: translateX(260%); } }

/* Nút xem bản đồ — hover nhẹ */
.map-btn { transition: transform .15s, box-shadow .15s; }
.map-btn:hover { transform: translateY(-2px); }
.rsvp-msg { text-align: center; padding: 18px; border-radius: 14px; margin-top: 6px; font-size: 15px; }
.rsvp-thanks { text-align: center; }
.rsvp-thanks .big { font-family: var(--font-script); font-size: 40px; line-height: 1.1; }
.foot { font-size: 13px; opacity: .8; padding: 26px; text-align: center; }
/* CTA viral ở chân thiệp: mỗi thiệp được xem là một lời mời cho cặp đôi tiếp theo */
.foot-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; padding: 11px 18px; min-height: 44px; border-radius: 999px; font-weight: 600; font-size: 13px; text-decoration: none; color: inherit; border: 1px solid currentColor; opacity: .9; transition: transform .12s, opacity .12s; }
.foot-cta:hover { transform: translateY(-1px); opacity: 1; }
.rsvp-cta { margin-top: 16px; font-size: 13.5px; }
.rsvp-cta a { color: inherit; font-weight: 600; }
.err-inline { font-size: 13px; margin-top: 6px; min-height: 1px; }

.state-msg { text-align: center; padding: 80px 24px; font-family: var(--font-display); }
.state-msg .em { font-size: 40px; display: block; margin-bottom: 10px; }

/* Skeleton bìa thiệp — first paint on-brand thay dòng "Đang tải" trơ.
   Dựng dáng gần giống .cover (囍 + tên + ngày) để cảm giác tải nhanh hơn. */
.inv-skeleton { display: flex; justify-content: center; padding: 44px 20px 60px; min-height: 100dvh; }
.skel-sheet {
  position: relative; overflow: hidden;
  width: min(560px, 94%); align-self: flex-start; margin-top: 24px;
  padding: 46px 28px 54px; text-align: center;
  background: var(--paper, #fbf7f1); border: 1px solid #ece2d4;
  border-radius: 16px; box-shadow: var(--shadow, 0 18px 50px -20px rgba(70,50,30,.35));
}
.skel-happy { font-family: var(--font-display); font-size: 40px; line-height: 1; color: #dbcaa2; margin-bottom: 24px; }
.skel-line { border-radius: 8px; background: #ece3d6; margin: 0 auto 16px; }
.skel-save { width: 118px; height: 11px; }
.skel-name { width: 62%; height: 32px; margin-bottom: 14px; }
.skel-name--2 { width: 54%; }
.skel-amp { width: 34px; height: 18px; }
.skel-date { width: 46%; height: 15px; margin-top: 26px; }
/* shimmer bằng transform (không animate left) — nhất quán với .rsvp-btn */
.skel-sheet::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%); animation: skelShimmer 1.5s ease-in-out infinite;
}
@keyframes skelShimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skel-sheet::after { animation: none; } }
.state-cta { display: inline-block; margin-top: 22px; padding: 12px 26px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 15px; text-decoration: none; background: linear-gradient(135deg, #c2a14d, #9a7c2f); color: #2b2008; box-shadow: 0 12px 26px -10px rgba(154,124,47,.6); transition: transform .12s; }
.state-cta:hover { transform: translateY(-1px); }

/* Lịch trình sự kiện */
.timeline { max-width: 420px; margin: 18px auto 0; text-align: left; }
.tl-item { display: grid; grid-template-columns: 70px 16px 1fr; align-items: center; gap: 10px; padding: 9px 0; }
.tl-time { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-align: center; white-space: nowrap; box-shadow: 0 0 0 1.5px currentColor; border-radius: 7px; padding: 3px 7px; opacity: .85; }
.tl-dot { width: 11px; height: 11px; border-radius: 50%; background: currentColor; justify-self: center; opacity: .8; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.tl-title { font-size: 15px; }
.timeline .tl-item:not(:last-child) .tl-dot { position: relative; }
.timeline .tl-item:not(:last-child) .tl-dot::after { content: ""; position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 2px; height: 30px; background: currentColor; opacity: .3; }

/* Phát trực tiếp (livestream) */
.live-embed { max-width: 640px; margin: 18px auto 0; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px -24px rgba(0,0,0,.5); background: #000; }
.live-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Tra cứu bàn tiệc */
.seatfind { display: flex; gap: 8px; max-width: 420px; margin: 16px auto 0; }
.seatfind input { flex: 1; padding: 12px 14px; border-radius: 11px; font: inherit; border: 1px solid rgba(0,0,0,.14); }
.seatfind .map-btn { white-space: nowrap; cursor: pointer; border: none; }
.seatfind-result { margin-top: 14px; min-height: 1px; }
.seatfind-result > * { animation: seatResultIn .28s cubic-bezier(.22,.61,.36,1) both; }
@keyframes seatResultIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
.seatfind-ok { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.seatfind-ok::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #22a66a; color: #fff; font-size: 14px; font-weight: 700; flex: none; }
.seatfind-ok b { font-family: var(--font-display); font-size: 22px; }
.seatfind-no { font-size: 14px; opacity: .85; display: flex; align-items: center; gap: 8px; }
.seatfind-no::before { content: '·'; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.12); font-size: 18px; line-height: 1; flex: none; }

/* Nơi lưu trú */
.stay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 600px; margin: 20px auto 0; }
.stay-card { border-radius: 16px; padding: 18px; text-align: center; }
.stay-card .stay-name { font-family: var(--font-display); font-size: 18px; margin-bottom: 4px; }
.stay-card .stay-note { font-size: 13.5px; opacity: .85; margin-bottom: 12px; line-height: 1.5; }
.theme-truyen-thong .stay-card { background: rgba(255,216,122,.08); border: 1px solid rgba(255,216,122,.28); }
.theme-hien-dai .stay-card { background: #f4f0e9; border: 1px solid #e7dfd1; }
.theme-pastel .stay-card { background: rgba(255,255,255,.6); border: 1px solid rgba(176,107,134,.22); }

/* Hỏi & Đáp (FAQ accordion) */
.faq { max-width: 540px; margin: 18px auto 0; text-align: left; display: grid; gap: 10px; }
.faq-item { border: 1px solid rgba(128,128,128,.28); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, border-color .2s; }
.faq-item.open { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--orn, rgba(180,150,80,.45)); }
.faq-q { width: 100%; text-align: left; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; padding: 14px 16px; background: transparent; color: inherit; border: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-ic { font-size: 20px; line-height: 1; transition: transform .2s; flex: none; }
.faq-item.open .faq-ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { margin: 0; padding: 0 16px 14px; font-size: 14.5px; line-height: 1.65; opacity: .9; white-space: pre-line; }

/* Dress code */
.dress-swatches { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.swatch-dot { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.18); display: inline-block; }

/* Hành trình tình yêu (timeline mốc kỷ niệm) */
.love-timeline { max-width: 520px; margin: 22px auto 0; text-align: left; position: relative; padding-left: 26px; }
.love-timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: currentColor; opacity: .25; }
.love-item { position: relative; padding-bottom: 26px; }
.love-item:last-child { padding-bottom: 0; }
.love-dot { position: absolute; left: -26px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.love-photo { width: 100%; max-width: 320px; border-radius: 12px; display: block; margin-bottom: 8px; object-fit: cover; }
.love-time { font-family: var(--font-display); font-weight: 700; font-size: 15px; opacity: .85; }
.love-title { font-size: 17px; font-weight: 600; margin-top: 2px; }
.love-desc { margin: 4px 0 0; font-size: 14.5px; line-height: 1.6; opacity: .9; white-space: pre-line; }

/* Album ảnh cưới */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 600px; margin: 20px auto 0; }
@media (max-width: 480px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery-item { padding: 0; border: none; cursor: pointer; background: none; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery-item:hover img { transform: scale(1.06); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: grid; place-items: center; z-index: 100; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .14s ease, transform .14s ease; }
.lightbox img.lb-changing { opacity: 0; transform: scale(.95); }
/* Hiệu ứng mở lightbox */
.lightbox:not([hidden]) { animation: lb-open .22s ease both; }
.lightbox:not([hidden]) img { animation: lb-img-in .28s .05s ease both; }
@keyframes lb-open { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-img-in { from { opacity: 0; transform: scale(.91); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox:not([hidden]), .lightbox:not([hidden]) img { animation: none !important; }
}
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; line-height: 1; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.lightbox-nav:hover { background: rgba(255,255,255,.32); }
.lightbox-nav.lb-prev { left: 16px; }
.lightbox-nav.lb-next { right: 16px; }
@media (max-width: 520px) { .lightbox-nav { width: 42px; height: 42px; font-size: 28px; } .lightbox-nav.lb-prev { left: 8px; } .lightbox-nav.lb-next { right: 8px; } }

/* Hiệu ứng mở thiệp: phong bì 3D + dấu sáp 囍.
   Chuỗi (class .intro-open): sáp vỡ → nắp lật 3D → thiệp con trượt ra →
   phóng to hoà vào bìa thật. Chỉ animate transform/opacity (compositor). */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center;
  background:
    radial-gradient(58% 48% at 50% 2%, var(--intro-glow, color-mix(in srgb, var(--orn) 24%, transparent)), transparent 72%),
    var(--intro-bg, linear-gradient(168deg, color-mix(in srgb, var(--orn) 42%, #14100b), color-mix(in srgb, var(--orn) 15%, #0c0a07) 80%));
  color: var(--intro-ink, #f3e8d6); padding: 24px;
}
.intro[hidden] { display: none; }
.intro-inner { display: grid; justify-items: center; gap: 30px; animation: introIn .9s ease both; }
@keyframes introIn { from { opacity: 0; transform: translateY(26px) scale(.94); } to { opacity: 1; transform: none; } }
.intro-hint { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; opacity: .8; }

/* Giấy phong bì nhuộm nhẹ theo màu theme (--orn) để hợp cả 12 mẫu. */
.env {
  --env-paper: color-mix(in srgb, var(--orn) 16%, #f6edde);
  --env-paper-dark: color-mix(in srgb, var(--orn) 30%, #e6d7bd);
  --env-ink: color-mix(in srgb, var(--orn) 55%, #4a3320);
  position: relative; width: min(86vw, 400px); aspect-ratio: 8 / 5.4;
  perspective: 1100px;
  filter: drop-shadow(0 22px 38px rgba(0, 0, 0, .45));
}
.env-back {
  position: absolute; inset: 0; z-index: 1; border-radius: 10px;
  background: linear-gradient(var(--env-paper-dark), color-mix(in srgb, var(--orn) 38%, #d9c6a4));
}
/* Thiệp con nằm trong phong bì — phần dưới bị .env-front (đục) che, trượt lên là ló ra. */
.env-card {
  position: absolute; left: 6%; right: 6%; top: 6%; bottom: 12%; z-index: 2;
  display: grid; place-content: center; gap: 4px; padding: 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--orn) 7%, #fffdf7);
  border: 1px solid color-mix(in srgb, var(--orn) 45%, #d8c9a8);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--orn) 7%, #fffdf7), inset 0 0 0 5px color-mix(in srgb, var(--orn) 35%, #ddd0b4);
  color: var(--env-ink);
}
.env-card-happy { font-size: 20px; color: var(--primary, #b5232a); }
.env-card-names { font-family: var(--font-script); font-size: clamp(20px, 5.5vw, 27px); line-height: 1.15; }
.env-card-amp { opacity: .75; }
.env-card-date { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; opacity: .75; }
/* Thân phong bì: hai nếp gấp chéo hai bên như bì thư thật. */
.env-front { position: absolute; inset: 0; z-index: 3; border-radius: 10px; overflow: hidden; background: linear-gradient(178deg, var(--env-paper), color-mix(in srgb, var(--orn) 22%, #eee0c8)); }
.env-front::before, .env-front::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--env-paper-dark), var(--env-paper) 70%);
}
.env-front::before { clip-path: polygon(0 0, 52% 54%, 0 100%); }
.env-front::after { clip-path: polygon(100% 0, 48% 54%, 100% 100%); background: linear-gradient(-105deg, var(--env-paper-dark), var(--env-paper) 70%); }
.env-addr { position: absolute; left: 8%; right: 8%; top: 64%; bottom: 4%; z-index: 4; display: grid; align-content: center; gap: 1px; color: var(--env-ink); }
.env-addr-to { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; opacity: .85; }
.env-addr-name {
  font-family: var(--font-script); font-size: clamp(16px, 4.6vw, 23px); line-height: 1.15;
  max-width: 100%; text-wrap: balance; overflow-wrap: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.env-addr-date { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }
/* Nắp phong bì — tam giác úp xuống, lật quanh mép trên khi mở. */
.env-flap {
  position: absolute; top: 0; left: 0; right: 0; height: 56%; z-index: 5;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(184deg, color-mix(in srgb, var(--orn) 24%, #f0e3cb), var(--env-paper-dark) 85%);
  border-radius: 10px 10px 0 0;
  transform-origin: top center; will-change: transform;
}
/* Dấu sáp đỏ son 囍 ở chóp nắp — chính là nút "Mở thiệp" (giữ id introOpen cho nhạc nền). */
.env-seal {
  position: absolute; left: 50%; top: 52%; z-index: 6; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  font-family: inherit; font-size: 28px; line-height: 1; color: #f7e3c3;
  background: radial-gradient(circle at 32% 30%, #d84a50, #b5232a 55%, #7e1218 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .28), inset 0 2px 4px rgba(255, 255, 255, .28);
  animation: sealBreath 2.4s ease-in-out 1s infinite;
}
.env-seal::before {
  content: ''; position: absolute; inset: -7px; z-index: -1;
  border-radius: 48% 52% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 40% 35%, #c93a41, #a01c23 70%, #8a161d);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .3);
}
.env-seal:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@keyframes sealBreath { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }

/* Chuỗi mở — mốc thời gian khớp wireIntro (revealed @1.6s, hidden @2.7s). */
.intro.intro-open { pointer-events: none; opacity: 0; transition: opacity .9s ease 1.75s; }
.intro.intro-open .intro-hint { opacity: 0; transition: opacity .3s; }
.intro.intro-open .env-seal { animation: sealPop .5s ease both; }
@keyframes sealPop {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
  35%  { transform: translate(-50%, -50%) scale(1.22) rotate(-7deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(.5) rotate(12deg); opacity: 0; }
}
.intro.intro-open .env-flap { animation: flapOpen .8s cubic-bezier(.45, 0, .3, 1) .35s both; }
@keyframes flapOpen {
  0%   { transform: rotateX(0); z-index: 5; }
  49%  { z-index: 5; }
  50%  { z-index: 1; }
  100% { transform: rotateX(-178deg); z-index: 1; }
}
/* Thiệp con: trượt khỏi phong bì rồi phóng to che màn hình (z-index nhảy lên
   trên .env-front lúc bắt đầu phóng) — bìa thật hiện dần bên dưới lớp mờ. */
.intro.intro-open .env-card { animation: cardOut 1.6s cubic-bezier(.3, 0, .25, 1) .9s both; }
@keyframes cardOut {
  0%   { transform: translateY(0) scale(1); z-index: 2; }
  44%  { transform: translateY(-78%) scale(1); z-index: 2; }
  55%  { transform: translateY(-78%) scale(1); z-index: 7; }
  100% { transform: translateY(-30%) scale(4); z-index: 7; }
}

/* Cover hé lộ sau khi mở thiệp */
.sheet.revealed .cover > * { animation: coverReveal .9s ease both; }
.sheet.revealed .cover > *:nth-child(2) { animation-delay: .08s; }
.sheet.revealed .cover > *:nth-child(3) { animation-delay: .16s; }
.sheet.revealed .cover > *:nth-child(4) { animation-delay: .24s; }
.sheet.revealed .cover > *:nth-child(5) { animation-delay: .32s; }
@keyframes coverReveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Cover photo: slow Ken-Burns drift for a "living" feel ─────────────── */
.sheet.revealed .cover-photo {
  animation: kenBurns 22s ease-in-out .8s both;
  transform-origin: center 40%;
}
@keyframes kenBurns {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.05) translate(.6%, .4%); }
  85%  { transform: scale(1.03) translate(-.3%, -.2%); }
  100% { transform: scale(1.02); }
}

/* ── Section content cascade: children slide in sequentially ───────────── */
.sheet .blk.reveal-in > *              { animation: blkIn .52s cubic-bezier(.22,.61,.36,1) both; }
.sheet .blk.reveal-in > *:nth-child(2) { animation-delay: .07s; }
.sheet .blk.reveal-in > *:nth-child(3) { animation-delay: .14s; }
.sheet .blk.reveal-in > *:nth-child(4) { animation-delay: .21s; }
.sheet .blk.reveal-in > *:nth-child(5) { animation-delay: .28s; }
.sheet .blk.reveal-in > *:nth-child(6) { animation-delay: .35s; }
@keyframes blkIn { from { transform: translateY(10px); } to { transform: none; } }

/* ── Love story items: stagger within timeline block ───────────────────── */
.blk.reveal-in .love-item              { animation: blkIn .5s cubic-bezier(.22,.61,.36,1) both; }
.blk.reveal-in .love-item:nth-child(2) { animation-delay: .10s; }
.blk.reveal-in .love-item:nth-child(3) { animation-delay: .20s; }
.blk.reveal-in .love-item:nth-child(4) { animation-delay: .30s; }
.blk.reveal-in .love-item:nth-child(5) { animation-delay: .40s; }

/* ── Venue cards: stagger pair within event block ───────────────────────── */
.blk.reveal-in .venue              { animation: blkIn .42s cubic-bezier(.22,.61,.36,1) both; }
.blk.reveal-in .venue:nth-child(2) { animation-delay: .12s; }

/* ── Wish cards: stagger on load ────────────────────────────────────────── */
.blk.reveal-in .wish-card              { animation: blkIn .38s cubic-bezier(.22,.61,.36,1) both; }
.blk.reveal-in .wish-card:nth-child(2) { animation-delay: .07s; }
.blk.reveal-in .wish-card:nth-child(3) { animation-delay: .14s; }
.blk.reveal-in .wish-card:nth-child(4) { animation-delay: .21s; }
.blk.reveal-in .wish-card:nth-child(5) { animation-delay: .28s; }
.blk.reveal-in .wish-card:nth-child(6) { animation-delay: .35s; }

/* ── Countdown tick: brief scale pop on the seconds digit ──────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Bỏ chuỗi 3D: phong bì tĩnh, chạm sáp thì fade nhanh (wireIntro rút mốc thời gian theo). */
  .intro, .intro-inner, .sheet.revealed .cover > * { animation: none !important; transition: opacity .2s !important; }
  .env-seal, .intro.intro-open .env-seal, .intro.intro-open .env-flap, .intro.intro-open .env-card, .intro.intro-open .intro-hint { animation: none !important; transition: none !important; }
  .cover-photo, .sheet.revealed .cover-photo, .cover--photo-frame .hero-photo img, .twin-portrait img, .sheet .blk.reveal-in > *, .blk.reveal-in .love-item, .blk.reveal-in .venue, .blk.reveal-in .wish-card, .cd-num.cd-tick, .share-fab { animation: none !important; }
  .rsvp-btn::after, .music-btn.playing .music-icon i { animation: none !important; }
}

/* Nút in thiệp */
.print-btn {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(4px);
}

/* Nút chia sẻ thiệp (xếp trên nút in) */
.share-fab {
  position: fixed; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); left: calc(20px + env(safe-area-inset-left, 0px)); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(4px);
  transition: transform .12s, background .15s;
  animation: fabPop .45s cubic-bezier(.22,.61,.36,1) 1.8s both;
}
@keyframes fabPop { from { opacity: 0; transform: scale(.5) translateY(16px); } to { opacity: 1; transform: none; } }
.share-fab:hover { background: rgba(0,0,0,.72); transform: translateY(-2px) scale(1.06); }

/* Toast nhỏ trên thiệp */
.inv-toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(20,16,12,.92); color: #fff; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; max-width: 90vw; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 110;
}
.inv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Điện thoại nhỏ (≤390px: iPhone SE, Pixel 6a, Galaxy A12) */
@media (max-width: 390px) {
  .blk { padding: 40px 18px; }
  .blk--tight { padding: 26px 18px; }
  .cover-title { font-size: clamp(2rem, 11vw, 3.4rem) !important; }
  .cover-names { font-size: clamp(2.4rem, 13vw, 5rem) !important; }
  .names { font-size: clamp(2.4rem, 13vw, 5rem) !important; }
  .section-title { font-size: clamp(1.3rem, 7vw, 1.8rem) !important; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lightbox img { max-width: 98vw; max-height: 82vh; }
  .rsvp { max-width: 100%; }
  .gift-grid { gap: 10px; }
  .faq { max-width: 100%; }
  .cd-units { gap: 10px; }
  .cd-num { font-size: clamp(2rem, 11vw, 3.2rem) !important; }
}

/* In ấn: ẩn nút điều khiển, mở rộng nội dung, nền trắng tiết kiệm mực */
@media print {
  .lang-switch, .text-size-btn, .music-btn, .music-credit, .print-btn, .share-fab, .inv-toast, .intro, #intro, #lightbox,
  .cal-actions, .cal-grid, .seatfind, #rsvp-area, .gift-copy, .map-btn, .gift-envelope { display: none !important; }
  body, .invite, .sheet { background: #fff !important; box-shadow: none !important; }
  .faq-a { max-height: none !important; }
  .blk { break-inside: avoid; padding-top: 18px; padding-bottom: 18px; }
  /* Bản in không tap được — luôn hiện QR thật, bỏ qua trạng thái đóng/mở trên màn hình. */
  .gift-grid[hidden] { display: grid !important; }
}

/* Nút chuyển ngôn ngữ */
.lang-switch {
  position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); z-index: 95;
  display: flex; background: rgba(0,0,0,.5); border-radius: 999px; padding: 3px; backdrop-filter: blur(4px);
}
/* Trang demo mẫu (/mau-thiep/:slug) có thanh CTA sticky trên cùng — đẩy nút
   ngôn ngữ xuống dưới thanh đó để khỏi đè chữ (xem invite.ts, isDemo). */
html.is-demo .lang-switch { top: calc(60px + env(safe-area-inset-top, 0px)); }
@media (max-width: 480px) {
  html.is-demo .lang-switch { top: calc(100px + env(safe-area-inset-top, 0px)); }
}
.lang-opt {
  border: none; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700;
  padding: 9px 14px; border-radius: 999px; background: transparent; color: rgba(255,255,255,.78);
  position: relative;
}
/* mở rộng vùng chạm lên ≈44px mà không phóng to pill */
.lang-opt::after { content: ""; position: absolute; inset: -3px 0; }
.lang-opt.active { background: #fff; color: #2b2320; }

/* Nút chữ lớn (A+) — xếp dưới nút chuyển ngôn ngữ, góc trên phải */
.text-size-btn {
  position: fixed; top: calc(66px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); z-index: 95;
  min-width: 46px; height: 44px; padding: 0 12px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0,0,0,.5); color: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.text-size-btn sup { font-size: .7em; margin-left: 1px; }
.text-size-btn:hover { background: rgba(0,0,0,.7); }
.text-size-btn[aria-pressed="true"] { background: #fff; color: #2b2320; }
.text-size-btn[aria-pressed="true"]:hover { background: #f1f1f1; }

/* Chế độ chữ lớn cho ông bà / người lớn tuổi — phóng to các phần chữ đọc chính
   (không đụng tên trên bìa vốn đã rất lớn). Bật/tắt bằng nút A+, lưu localStorage. */
.invite.big-text .guest-greet { font-size: 18px; }
.invite.big-text .section-text { font-size: 19px; }
.invite.big-text .parent-name { font-size: 21px; }
.invite.big-text .parent-role { font-size: 15px; }
.invite.big-text .parent-address { font-size: 14px; }
.invite.big-text .venue .vname { font-size: 23px; }
.invite.big-text .venue .vtime { font-size: 16.5px; }
.invite.big-text .venue .vlunar { font-size: 14.5px; }
.invite.big-text .venue .vaddr { font-size: 16px; }
.invite.big-text .contact-who { font-size: 22px; }
.invite.big-text .contact-btn { font-size: 16.5px; }
.invite.big-text .rsvp label { font-size: 15.5px; }
.invite.big-text .rsvp input,
.invite.big-text .rsvp textarea,
.invite.big-text .rsvp select { font-size: 16.5px; }
.invite.big-text .consent-row { font-size: 15px; }
.invite.big-text .faq-q { font-size: 17.5px; }
.invite.big-text .faq-a p { font-size: 17px; }
.invite.big-text .tl-title { font-size: 17.5px; }
.invite.big-text .stay-card .stay-note { font-size: 16px; }
.invite.big-text .gift-bank { font-size: 16.5px; }
.invite.big-text .gift-acc { font-size: 17.5px; }
.invite.big-text .gift-holder { font-size: 14.5px; }
.invite.big-text .wish-name,
.invite.big-text .wish-msg { font-size: 16.5px; }

/* Nút nhạc nền */
.music-btn {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.3);
  display: grid; place-items: center; backdrop-filter: blur(4px);
  transition: background .2s, transform .15s;
}
.music-btn:hover { transform: scale(1.08); }
.music-btn.playing { background: rgba(0,0,0,.75); }

/* Credit tác giả (bản nhạc CC BY) — nằm ngay trên nút nhạc, kín đáo */
.music-credit {
  position: fixed; z-index: 89;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  max-width: 210px; text-align: right;
  font-size: 10.5px; line-height: 1.35; color: #fff;
  padding: 5px 9px; border-radius: 9px;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  opacity: .62; transition: opacity .2s;
  pointer-events: none;
}
.music-credit:hover { opacity: 1; }

/* Thanh sóng âm (4 cột) */
.music-icon { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.music-icon i { display: block; width: 4px; border-radius: 2px; background: currentColor; transition: height .2s; }
.music-icon i:nth-child(1) { height: 10px; }
.music-icon i:nth-child(2) { height: 18px; }
.music-icon i:nth-child(3) { height: 13px; }
.music-icon i:nth-child(4) { height: 7px; }
/* Đang phát — các thanh nhảy lên xuống so le (scaleY thay height: không reflow) */
.music-btn.playing .music-icon i { transform-origin: bottom; animation: barBounce .55s ease-in-out infinite alternate; }
.music-btn.playing .music-icon i:nth-child(2) { animation-delay: .11s; }
.music-btn.playing .music-icon i:nth-child(3) { animation-delay: .22s; }
.music-btn.playing .music-icon i:nth-child(4) { animation-delay: .33s; }
@keyframes barBounce {
  from { transform: scaleY(.35); }
  to   { transform: scaleY(1.2); }
}

/* Hộp mừng cưới */
.gift-grid[hidden] { display: none; } /* thắng .gift-grid{display:grid} cùng độ ưu tiên vì khai báo sau */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 600px; margin: 20px auto 0; }
@media (max-width: 560px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-card { border-radius: 16px; padding: 20px 18px; text-align: center; }
.gift-card h3 { margin: 0 0 12px; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.gift-qr { width: 168px; height: 168px; margin: 0 auto 12px; background: #fff; border-radius: 12px; padding: 8px; display: grid; place-items: center; }
.gift-qr img, .gift-qr canvas { width: 100%; height: 100%; display: block; }
.gift-bank { font-weight: 700; font-size: 14.5px; }
.gift-acc { font-size: 15px; letter-spacing: .5px; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.gift-holder { font-size: 12.5px; opacity: .85; text-transform: uppercase; }
.gift-copy { margin-top: 10px; border: none; cursor: pointer; font: inherit; font-weight: 600; font-size: 13px; padding: 11px 18px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }

/* Phong bao "nhấn để mở" bọc QR mừng cưới — đúng phong tục lì xì */
.gift-envelope[hidden] { display: none; } /* thắng .gift-envelope{display:flex} cùng lý do như .gift-grid[hidden] */
.gift-envelope {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: min(220px, 100%); margin: 4px auto 0; padding: 30px 20px 24px; border: none; border-radius: 16px; cursor: pointer;
  font: inherit; color: #fff; min-height: 44px;
  background: linear-gradient(165deg, color-mix(in srgb, var(--orn, #b5232a) 92%, #000 8%), color-mix(in srgb, var(--orn, #b5232a) 55%, #000 45%));
  transition: transform .15s ease;
}
.gift-envelope::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 48%;
  background: color-mix(in srgb, var(--orn, #b5232a) 70%, #000 30%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.gift-envelope:hover { transform: translateY(-2px); }
.gift-envelope:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .gift-envelope { transition: none; } }
.gift-envelope-icon { position: relative; font-size: 30px; line-height: 1; z-index: 1; }
.gift-envelope-label { position: relative; font-weight: 700; font-size: 14.5px; z-index: 1; }
.gift-envelope-hint { position: relative; font-size: 11.5px; opacity: .85; z-index: 1; }
@keyframes giftGridReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.gift-grid--reveal { animation: giftGridReveal .35s ease both; }
@media (prefers-reduced-motion: reduce) { .gift-grid--reveal { animation: none; } }

/* Sổ lưu bút */
.wishes { display: grid; gap: 14px; max-width: 540px; margin: 18px auto 0; text-align: left; }
.wish-card { border-radius: 14px; padding: 16px 18px; transition: box-shadow .2s, transform .2s; cursor: default; }
.wish-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.10); transform: translateY(-2px); }
.wish-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wish-ava { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.wish-name { font-weight: 700; font-size: 14.5px; }
.wish-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 4px; opacity: .9; }
.wish-msg { margin: 0; font-size: 14.5px; line-height: 1.6; opacity: .95; white-space: pre-line; }

/* ============================================================
   MẪU 1 — TRUYỀN THỐNG (đỏ & vàng kim)
   ============================================================ */
.theme-truyen-thong {
  background:
    radial-gradient(900px 500px at 50% -10%, #8c171d 0, transparent 60%),
    linear-gradient(180deg, #a51e24, #7c1418);
  color: #fdeccf;
}
.theme-truyen-thong .sheet {
  background:
    repeating-linear-gradient(45deg, rgba(255,216,122,.05) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #a8202a, #861519);
  box-shadow: 0 0 0 1px rgba(255,216,122,.25), 0 30px 80px -30px rgba(0,0,0,.6);
}
.theme-truyen-thong .double-happy { font-size: 56px; color: #ffd87a; }
.theme-truyen-thong .eyebrow, .theme-truyen-thong .cover .save { color: #ffd87a; }
.theme-truyen-thong .names { color: #ffe6ac; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.theme-truyen-thong .cd-unit { background: rgba(255,216,122,.1); border: 1px solid rgba(255,216,122,.3); }
.theme-truyen-thong .cd-num { color: #ffe6ac; }
.theme-truyen-thong .venue { background: rgba(255,216,122,.08); border: 1px solid rgba(255,216,122,.28); }
.theme-truyen-thong .venue h3 { color: #ffd87a; }
.theme-truyen-thong .map-btn { background: #ffd87a; color: #7c1418; }
.theme-truyen-thong .cal-btn { background: #ffd87a; color: #7c1418; }
.theme-truyen-thong .cal-btn--ghost { color: #ffd87a; border-color: rgba(255,216,122,.5); }
.theme-truyen-thong .rsvp input, .theme-truyen-thong .rsvp textarea, .theme-truyen-thong .rsvp select { background: rgba(255,248,235,.95); color: #4a1d12; border-color: rgba(255,216,122,.5); }
.theme-truyen-thong .attend-toggle label { border-color: rgba(255,216,122,.45); color: #fdeccf; }
.theme-truyen-thong .attend-toggle input:checked + span { color: #ffd87a; }
.theme-truyen-thong .has-checked { background: rgba(255,216,122,.18); border-color: #ffd87a; }
.theme-truyen-thong .rsvp-btn { background: linear-gradient(135deg,#ffd87a,#e0b352); color: #6e1116; }
.theme-truyen-thong .rsvp-msg, .theme-truyen-thong .rsvp-thanks { color: #fdeccf; }
.theme-truyen-thong .rsvp-thanks .big { color: #ffe6ac; }
.theme-truyen-thong .divider { background: linear-gradient(90deg, transparent, #ffd87a, transparent); height: 2px; }
.theme-truyen-thong .wish-card { background: rgba(255,216,122,.08); border: 1px solid rgba(255,216,122,.25); }
.theme-truyen-thong .wish-ava { background: #ffd87a; color: #7c1418; }
.theme-truyen-thong .wish-tag { background: rgba(255,216,122,.2); color: #ffd87a; }
.theme-truyen-thong .gift-card { background: rgba(255,216,122,.08); border: 1px solid rgba(255,216,122,.28); }
.theme-truyen-thong .gift-card h3 { color: #ffd87a; }
.theme-truyen-thong .gift-copy { background: #ffd87a; color: #7c1418; }
.theme-truyen-thong .parent-side h3 { color: #ffd87a; }
.theme-truyen-thong .vceremony { color: #ffe6ac; }

/* ============================================================
   MẪU 2 — HIỆN ĐẠI TỐI GIẢN
   ============================================================ */
.theme-hien-dai { background: #efece6; color: #2c2a26; }
.theme-hien-dai .sheet { background: #fbfaf7; box-shadow: 0 30px 80px -36px rgba(60,50,40,.4); }
.theme-hien-dai .double-happy { display: none; }
.theme-hien-dai .eyebrow, .theme-hien-dai .cover .save { color: #74634a; }
.theme-hien-dai .names { font-family: var(--font-display); font-weight: 600; color: #221f1b; }
.theme-hien-dai .names .n1, .theme-hien-dai .names .n2 { font-size: clamp(34px, 8vw, 56px); letter-spacing: 1px; }
.theme-hien-dai .names .amp { font-family: var(--font-script); }
.theme-hien-dai .cd-unit { background: #f1ece4; border: 1px solid #e3dbcd; }
.theme-hien-dai .cd-num { color: #2c2a26; }
.theme-hien-dai .venue { background: #f4f0e9; border: 1px solid #e7dfd1; }
.theme-hien-dai .venue h3 { color: #74634a; }
.theme-hien-dai .map-btn { background: #2c2a26; color: #fff; }
.theme-hien-dai .map-btn:hover { opacity: .9; }
.theme-hien-dai .cal-btn { background: #2c2a26; color: #fff; }
.theme-hien-dai .cal-btn--ghost { color: #2c2a26; border-color: #cfc4b0; }
.theme-hien-dai .attend-toggle .has-checked { background: #2c2a26; color: #fff; border-color: #2c2a26; }
.theme-hien-dai .rsvp-btn { background: #2c2a26; color: #fff; }
.theme-hien-dai .rsvp-msg, .theme-hien-dai .rsvp-thanks .big { color: #2c2a26; }
.theme-hien-dai .divider { background: #c9b98f; }
.theme-hien-dai .wish-card { background: #f4f0e9; border: 1px solid #e7dfd1; }
.theme-hien-dai .wish-ava { background: #2c2a26; color: #fff; }
.theme-hien-dai .wish-tag { background: #e7dfd1; color: #6b5e44; }
.theme-hien-dai .gift-card { background: #f4f0e9; border: 1px solid #e7dfd1; }
.theme-hien-dai .gift-card h3 { color: #74634a; }
.theme-hien-dai .gift-copy { background: #2c2a26; color: #fff; }
.theme-hien-dai .parent-side h3 { color: #74634a; }
.theme-hien-dai .vceremony { color: #74634a; }

/* ============================================================
   MẪU 3 — PASTEL HOA LÁ
   ============================================================ */
.theme-pastel { background: linear-gradient(180deg,#fdeef2,#eaf4ef); color: #5a4a52; }
.theme-pastel .sheet { background: rgba(255,255,255,.78); backdrop-filter: blur(2px); box-shadow: 0 30px 80px -34px rgba(176,107,134,.4); }
.theme-pastel .double-happy { font-size: 34px; color: #d98aa6; }
.theme-pastel .eyebrow, .theme-pastel .cover .save { color: #a05577; }
.theme-pastel .names { color: #b06b86; }
.theme-pastel .cd-unit { background: rgba(217,138,166,.12); border: 1px solid rgba(217,138,166,.28); }
.theme-pastel .cd-num { color: #b06b86; }
.theme-pastel .venue { background: rgba(255,255,255,.6); border: 1px solid rgba(176,107,134,.22); }
.theme-pastel .venue h3 { color: #a05577; }
.theme-pastel .map-btn { background: linear-gradient(135deg,#b25874,#94425c); color: #fff; }
.theme-pastel .cal-btn { background: linear-gradient(135deg,#b25874,#94425c); color: #fff; }
.theme-pastel .cal-btn--ghost { color: #a05577; border-color: rgba(176,107,134,.4); }
.theme-pastel .attend-toggle .has-checked { background: rgba(217,138,166,.2); border-color: #d98aa6; color: #8f4b66; }
.theme-pastel .rsvp-btn { background: linear-gradient(135deg,#b25874,#94425c); color: #fff; }
.theme-pastel .rsvp-msg, .theme-pastel .rsvp-thanks .big { color: #b06b86; }
.theme-pastel .divider { background: linear-gradient(90deg, transparent, #d98aa6, transparent); }
.theme-pastel .wish-card { background: rgba(255,255,255,.6); border: 1px solid rgba(176,107,134,.2); }
.theme-pastel .wish-ava { background: linear-gradient(135deg,#b25874,#94425c); color: #fff; }
.theme-pastel .wish-tag { background: rgba(217,138,166,.18); color: #b06b86; }
.theme-pastel .gift-card { background: rgba(255,255,255,.6); border: 1px solid rgba(176,107,134,.22); }
.theme-pastel .gift-card h3 { color: #a05577; }
.theme-pastel .gift-copy { background: linear-gradient(135deg,#b25874,#94425c); color: #fff; }
.theme-pastel .parent-side h3 { color: #a05577; }
.theme-pastel .vceremony { color: #b06b86; }

/* ============================================================
   MẪU 4 — HOÀNG GIA (navy + vàng kim, sang trọng tối)
   ============================================================ */
.theme-hoang-gia { background: radial-gradient(900px 500px at 50% -10%, #26304f 0, transparent 60%), linear-gradient(180deg, #1c2541, #0f1629); color: #e8e0c8; }
.theme-hoang-gia .sheet { background: linear-gradient(180deg, #26304f, #1a2238); box-shadow: 0 0 0 1px rgba(212,175,55,.25), 0 30px 80px -30px rgba(0,0,0,.6); }
.theme-hoang-gia .double-happy { color: #d4af37; }
.theme-hoang-gia .eyebrow, .theme-hoang-gia .cover .save { color: #d4af37; }
.theme-hoang-gia .names { color: #f0e6c8; text-shadow: 0 2px 14px rgba(0,0,0,.3); }
.theme-hoang-gia .cd-unit { background: rgba(212,175,55,.1); border: 1px solid rgba(212,175,55,.3); }
.theme-hoang-gia .cd-num { color: #f0e6c8; }
.theme-hoang-gia .venue { background: rgba(212,175,55,.07); border: 1px solid rgba(212,175,55,.25); }
.theme-hoang-gia .venue h3 { color: #d4af37; }
.theme-hoang-gia .map-btn, .theme-hoang-gia .cal-btn { background: #d4af37; color: #1c2541; }
.theme-hoang-gia .cal-btn--ghost { color: #d4af37; border-color: rgba(212,175,55,.5); background: transparent !important; }
.theme-hoang-gia .rsvp input, .theme-hoang-gia .rsvp textarea, .theme-hoang-gia .rsvp select { background: rgba(255,250,240,.96); color: #1c2541; border-color: rgba(212,175,55,.4); }
.theme-hoang-gia .attend-toggle label { color: #e8e0c8; border-color: rgba(212,175,55,.4); }
.theme-hoang-gia .attend-toggle .has-checked { background: rgba(212,175,55,.18); border-color: #d4af37; color: #d4af37; }
.theme-hoang-gia .rsvp-btn { background: linear-gradient(135deg,#d4af37,#b8932e); color: #1c2541; }
.theme-hoang-gia .rsvp-msg, .theme-hoang-gia .rsvp-thanks .big { color: #f0e6c8; }
.theme-hoang-gia .divider { background: linear-gradient(90deg, transparent, #d4af37, transparent); height: 2px; }
.theme-hoang-gia .wish-card { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); }
.theme-hoang-gia .wish-ava { background: #d4af37; color: #1c2541; }
.theme-hoang-gia .wish-tag { background: rgba(212,175,55,.2); color: #d4af37; }
.theme-hoang-gia .gift-card { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); }
.theme-hoang-gia .gift-card h3 { color: #d4af37; }
.theme-hoang-gia .gift-copy { background: #d4af37; color: #1c2541; }
.theme-hoang-gia .parent-side h3 { color: #d4af37; }
.theme-hoang-gia .vceremony { color: #f0e6c8; }
.theme-hoang-gia .stay-card { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); }

/* ============================================================
   MẪU 5 — XANH LÁ (greenery, cây cỏ nhẹ nhàng)
   ============================================================ */
.theme-xanh-la {
  background: linear-gradient(180deg, #f3f7f0, #e8f1e6); color: #3c4a3a;
  /* Cover/envelope screen inherits the theme palette (forest green) */
  --intro-bg: radial-gradient(120% 120% at 50% 16%, #2f5a3a 0%, #1d3c27 60%, #112619 100%);
  --intro-glow: rgba(176,216,166,.22);
  --intro-ink: #e8f2e1;
  --intro-accent: #b6d8ac;
  --intro-accent-soft: #eef6e8;
}
.theme-xanh-la .sheet { background: #fbfdf9; box-shadow: 0 30px 80px -34px rgba(91,140,90,.4); }
.theme-xanh-la .double-happy { color: #6aa06a; }
.theme-xanh-la .eyebrow, .theme-xanh-la .cover .save { color: #4f7042; }
.theme-xanh-la .names { color: #3f6b3f; }
.theme-xanh-la .cd-unit { background: rgba(106,160,106,.12); border: 1px solid rgba(106,160,106,.28); }
.theme-xanh-la .cd-num { color: #3f6b3f; }
.theme-xanh-la .venue { background: #f0f6ec; border: 1px solid #d8e8d2; }
.theme-xanh-la .venue h3 { color: #4f7042; }
.theme-xanh-la .map-btn, .theme-xanh-la .cal-btn { background: linear-gradient(135deg,#55804d,#3f6540); color: #fff; }
.theme-xanh-la .cal-btn--ghost { color: #4f7042; border-color: rgba(91,140,90,.4); background: transparent !important; }
.theme-xanh-la .attend-toggle .has-checked { background: rgba(123,174,110,.2); border-color: #7bae6e; color: #3f6b3f; }
.theme-xanh-la .rsvp-btn { background: linear-gradient(135deg,#55804d,#3f6540); color: #fff; }
.theme-xanh-la .rsvp-msg, .theme-xanh-la .rsvp-thanks .big { color: #3f6b3f; }
.theme-xanh-la .divider { background: linear-gradient(90deg, transparent, #7bae6e, transparent); }
.theme-xanh-la .wish-card { background: #f0f6ec; border: 1px solid #d8e8d2; }
.theme-xanh-la .wish-ava { background: linear-gradient(135deg,#55804d,#3f6540); color: #fff; }
.theme-xanh-la .wish-tag { background: rgba(123,174,110,.18); color: #3f6b3f; }
.theme-xanh-la .gift-card { background: #f0f6ec; border: 1px solid #d8e8d2; }
.theme-xanh-la .gift-card h3 { color: #4f7042; }
.theme-xanh-la .gift-copy { background: linear-gradient(135deg,#55804d,#3f6540); color: #fff; }
.theme-xanh-la .parent-side h3 { color: #4f7042; }
.theme-xanh-la .vceremony { color: #4f7042; }
.theme-xanh-la .stay-card { background: #f0f6ec; border: 1px solid #d8e8d2; }

/* ============================================================
   MẪU 6 — ĐỎ RƯỢU (burgundy + blush, ấm áp lãng mạn)
   ============================================================ */
.theme-do-ruou { background: linear-gradient(180deg, #fbeef0, #f4e2e6); color: #5a3a40; }
.theme-do-ruou .sheet { background: rgba(255,255,255,.85); box-shadow: 0 30px 80px -34px rgba(124,38,48,.4); }
.theme-do-ruou .double-happy { color: #8c2f39; }
.theme-do-ruou .eyebrow, .theme-do-ruou .cover .save { color: #9c3b46; }
.theme-do-ruou .names { color: #7c2630; }
.theme-do-ruou .cd-unit { background: rgba(140,47,57,.1); border: 1px solid rgba(140,47,57,.25); }
.theme-do-ruou .cd-num { color: #7c2630; }
.theme-do-ruou .venue { background: rgba(255,255,255,.6); border: 1px solid rgba(140,47,57,.2); }
.theme-do-ruou .venue h3 { color: #9c3b46; }
.theme-do-ruou .map-btn, .theme-do-ruou .cal-btn { background: linear-gradient(135deg,#a83a48,#7c2630); color: #fff; }
.theme-do-ruou .cal-btn--ghost { color: #7c2630; border-color: rgba(124,38,48,.4); background: transparent !important; }
.theme-do-ruou .attend-toggle .has-checked { background: rgba(168,58,72,.18); border-color: #a83a48; color: #7c2630; }
.theme-do-ruou .rsvp-btn { background: linear-gradient(135deg,#a83a48,#7c2630); color: #fff; }
.theme-do-ruou .rsvp-msg, .theme-do-ruou .rsvp-thanks .big { color: #7c2630; }
.theme-do-ruou .divider { background: linear-gradient(90deg, transparent, #a83a48, transparent); }
.theme-do-ruou .wish-card { background: rgba(255,255,255,.6); border: 1px solid rgba(140,47,57,.18); }
.theme-do-ruou .wish-ava { background: linear-gradient(135deg,#a83a48,#7c2630); color: #fff; }
.theme-do-ruou .wish-tag { background: rgba(168,58,72,.16); color: #7c2630; }
.theme-do-ruou .gift-card { background: rgba(255,255,255,.6); border: 1px solid rgba(140,47,57,.18); }
.theme-do-ruou .gift-card h3 { color: #9c3b46; }
.theme-do-ruou .gift-copy { background: linear-gradient(135deg,#a83a48,#7c2630); color: #fff; }
.theme-do-ruou .parent-side h3 { color: #9c3b46; }
.theme-do-ruou .vceremony { color: #8c2f39; }
.theme-do-ruou .stay-card { background: rgba(255,255,255,.6); border: 1px solid rgba(140,47,57,.18); }

/* ── Thanh cuộn nhuộm theo màu hoạ tiết theme (--orn) ──────────────────────
   invite.js phản chiếu --orn của theme lên <html> (scrollbar trang thuộc
   <html>, nằm ngoài #root nên không tự thấy biến của .theme-*). Fallback
   vàng kim khi chưa có JS. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--orn, #c2a14d) 72%, #fff),
    color-mix(in srgb, var(--orn, #c2a14d) 82%, #241a12));
  min-height: 44px;
}
::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg,
    color-mix(in srgb, var(--orn, #c2a14d) 92%, #fff),
    color-mix(in srgb, var(--orn, #c2a14d) 70%, #241a12));
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--orn, #c2a14d) 80%, #6b5744) transparent; }
}
