/* ==========================================================================
   CHỮ HỶ NỀN ĐỎ (theme chính của thiệp 24)
   Toàn trang nền đỏ thẫm chấm vàng, chữ 囍 lớn trên bìa và chìm khắp nền,
   chữ vàng kim / kem; các thẻ kem (gia đình, tiệc cưới, lời chúc) chữ đỏ nâu.
   Theo thiết kế "Khác biệt · Chữ Hỷ nền đỏ". Cơ chế dùng chung ở theme-core.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NỀN & BỐ CỤC CHUNG
   -------------------------------------------------------------------------- */
:root {
  --vn-card-max: 900px;
  --vn-content-max: 560px;
  --vn-gutter: 22px;
  --vn-inline-pad: max(var(--vn-gutter), (100% - var(--vn-content-max)) / 2);
  --vn-section-gap: 72px;
  --chy-dots: radial-gradient(rgba(255, 214, 130, .08) 1.5px, transparent 2px) 0 0 / 22px 22px;
}

body {
  background: var(--vn-outside);
  background-image: none;
  color: var(--vn-cream);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
}

::selection { background: var(--vn-gold); color: var(--vn-red-ink); }

:focus-visible {
  outline: 2px solid var(--vn-gold) !important;
  outline-offset: 3px;
}

.app-container {
  position: relative;
  width: min(var(--vn-card-max), 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  background: var(--chy-dots), radial-gradient(ellipse at 50% 0%, #C0262C, var(--vn-red) 40%, #8A1016 100%);
  color: var(--vn-cream);
  display: flex;
  flex-direction: column;
}

.vn-section {
  position: relative;
  margin: var(--vn-section-gap) 0 0;
  padding: 0 var(--vn-inline-pad);
}
.reveal-section { margin-bottom: 0; }

.chy-hy { font-family: var(--font-han); font-weight: 400; line-height: 1; }

/* Chữ Hỷ chìm rải khắp nền — mỗi chữ nằm trong một khối (không dùng một lớp phủ cao cả trang:
   lớp quá cao làm trình duyệt không vẽ được phần dưới) */
.app-container { isolation: isolate; }
.chy-wm {
  position: absolute;
  z-index: -1;
  color: rgba(255, 214, 130, .06);
  pointer-events: none;
}
.chy-wm--1 { top: 160px; left: -60px; font-size: 260px; }
.chy-wm--2 { top: -40px; right: -70px; font-size: 280px; }
.chy-wm--3 { top: 60px; left: -50px; font-size: 240px; }

/* Nhãn in hoa vàng kim — cũng là tiêu đề khối của mẫu này */
.vn-kicker,
.vn-section .vn-kicker.card-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  color: var(--vn-gold);
}
.vn-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  text-wrap: balance;
  color: var(--vn-cream);
  overflow-wrap: anywhere;
}

/* Nút dùng chung: vuông */
.vn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: filter .2s ease, background .2s ease, color .2s ease;
}
.vn-btn:hover { filter: brightness(1.06); }
.vn-btn svg { flex: none; }
.vn-btn[hidden] { display: none; }
.vn-btn--gold { background: var(--vn-gold); color: var(--vn-red-ink); }
.vn-btn--outline { border: 1.5px solid var(--vn-gold); background: transparent; color: var(--vn-gold); }
.vn-btn--outline:hover { background: rgba(242, 205, 116, .12); filter: none; }

/* --------------------------------------------------------------------------
   2. BÌA: CHỮ HỶ LỚN, KHUNG CHỈ VÀNG KÉP
   -------------------------------------------------------------------------- */
.envelope-screen { background: var(--vn-outside); }

.chy-cover {
  position: relative;
  flex: 1;
  box-sizing: border-box;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(44px, calc(env(safe-area-inset-top) + 32px)) max(36px, (100% - var(--vn-content-max)) / 2) max(48px, calc(env(safe-area-inset-bottom) + 36px));
  background: var(--chy-dots), radial-gradient(ellipse at 50% 0%, #C0262C, var(--vn-red) 40%, #8A1016 100%);
  color: var(--vn-cream);
  text-align: center;
  cursor: pointer;
}
/* Khung chỉ vàng kép — neo theo safe-area để không bị thanh điều hướng che */
.chy-cover::before,
.chy-cover::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.chy-cover::before {
  inset: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)) 16px;
  border: 1.5px solid var(--vn-gold-line);
}
.chy-cover::after {
  inset: calc(max(16px, env(safe-area-inset-top)) + 6px) 22px calc(max(16px, env(safe-area-inset-bottom)) + 6px) 22px;
  border: 1px solid rgba(232, 195, 106, .5);
}

.chy-cover-hy {
  flex: none;
  font-size: clamp(130px, 24vh, 200px);
  line-height: .9;
  color: var(--vn-gold);
  text-shadow: 0 4px 0 var(--vn-red-ink);
}

.cover-kicker {
  margin: clamp(26px, 4.6vh, 42px) 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--vn-gold);
}
.envelope-invite-text {
  margin: clamp(8px, 1.4vh, 12px) 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.35;
  color: var(--vn-cream);
  overflow-wrap: anywhere;
}
.cover-line { margin: 8px 0 0; max-width: 320px; font-size: 14px; line-height: 1.6; }

.envelope-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(18px, 3.2vh, 28px) 0 0;
  font-family: var(--font-display);
}
.envelope-name-line {
  font-size: clamp(34px, 5.2vh, 42px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--vn-gold);
  overflow-wrap: anywhere;
}
.envelope-name-amp {
  margin: clamp(6px, 1vh, 10px) 0;
  font-size: 20px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--vn-cream);
}

.envelope-date {
  margin: clamp(20px, 3.4vh, 30px) 0 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.envelope-date:empty { display: none; }
.envelope-lunar { margin: 6px 0 0; font-size: 13px; font-style: italic; opacity: .9; }
.envelope-lunar[hidden] { display: none; }

.btn-open {
  flex: none;
  margin-top: clamp(26px, 4.4vh, 38px);
  min-height: 50px;
  padding: 0 44px;
  border: 0;
  border-radius: 0;
  background: var(--vn-gold);
  color: var(--vn-red-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter .2s ease, opacity .2s ease;
}
.btn-open:hover { filter: brightness(1.06); }
.btn-open:disabled { opacity: .5; cursor: progress; }

#envelope-screen .cover-loading-overlay { background: var(--vn-red); }
.cover-loading-spinner { border-color: var(--vn-gold-tint); border-top-color: var(--vn-gold); }

@media (max-height: 700px) {
  .chy-cover { padding-top: max(36px, calc(env(safe-area-inset-top) + 26px)); padding-bottom: max(36px, calc(env(safe-area-inset-bottom) + 26px)); }
  .chy-cover-hy { font-size: min(120px, 20vh); }
  .envelope-invite-text { font-size: 21px; }
  .envelope-name-line { font-size: 30px; }
  .btn-open { min-height: 46px; }
}

/* --------------------------------------------------------------------------
   3. SAVE THE DATE
   -------------------------------------------------------------------------- */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px !important;
  padding-top: 0;
  text-align: center;
}
.hero-section .vn-title { margin-top: 4px; }
.envelope-stage { width: 100%; margin-top: 18px; }
.hero-frame { padding: 8px; border: 1.5px solid var(--vn-gold-line); }
.photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--vn-cream);
  outline: none;
  box-shadow: none;
  cursor: zoom-in;
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.photo-frame:hover img { transform: scale(1.02); }

.hero-title-box { margin-top: 18px; }
.hero-names {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vn-gold);
  overflow-wrap: anywhere;
}
.hero-names .amp { color: var(--vn-gold); }
.hero-invite-guest {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vn-cream);
}
.hero-quote {
  margin: 4px auto 0;
  max-width: 300px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.7;
  color: var(--vn-cream);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   4. HAI GIA ĐÌNH: THẺ KEM TRÊN NỀN ĐỎ
   -------------------------------------------------------------------------- */
.red-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.red-card .card-heading { color: var(--vn-gold); }
.parents-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.family-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 16px 10px;
  background: var(--vn-cream);
  border: 0;
  outline: 0;
  box-shadow: none;
  color: var(--vn-ink);
  text-align: center;
}
.family-side small {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vn-red);
}
.family-portrait {
  width: 100%;
  aspect-ratio: 1;
  margin: 10px 0 12px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--vn-paper-mat);
  box-shadow: 0 0 0 3px var(--vn-cream), 0 0 0 4.5px var(--vn-gold-line);
}
.family-portrait[hidden] { display: none; }
.family-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.family-side h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(11.5px, 3.3vw, 13px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--vn-ink);
  white-space: nowrap;
  overflow-wrap: normal;
  /* Luôn giữ chỗ 2 dòng: thiếu bố hoặc mẹ thì địa chỉ hai bên vẫn thẳng hàng */
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-height: calc(2 * 1.6em);
}
.family-portrait[hidden] + h4 { margin-top: 8px; }
.family-side p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--vn-ink); overflow-wrap: anywhere; }
.family-side .groom-name,
.family-side .bride-name {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vn-red);
  overflow-wrap: anywhere;
}
.family-side .role-badge {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-ink);
}
.family-side .role-badge:empty { display: none; }

/* --------------------------------------------------------------------------
   5. LỄ THÀNH HÔN
   -------------------------------------------------------------------------- */
.ceremony-card {
  margin-top: var(--vn-section-gap);
  padding: 0 4px;
  background: none;
  color: var(--vn-cream);
  text-align: center;
  box-shadow: none;
}
.ceremony-inner { display: flex; flex-direction: column; align-items: center; }
.chy-hy--small { font-size: 44px; color: var(--vn-gold); }
.ceremony-type-title { margin-top: 8px; }

.ceremony-time-badge { width: 100%; margin-top: 14px; }
.ceremony-date-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.ceremony-dow,
.ceremony-month {
  padding: 6px 0;
  border-top: 1px solid var(--vn-gold-line);
  border-bottom: 1px solid var(--vn-gold-line);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  text-transform: uppercase;
}
.ceremony-day {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vn-gold);
  color: var(--vn-red-deep);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}
.ceremony-day:empty { display: none; }
.ceremony-time {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
}
.ceremony-time:empty { display: none; }
.ceremony-time-badge .lunar { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.ceremony-time-badge .lunar:empty { display: none; }

.ceremony-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 0;
  line-height: 1.6;
}
.ceremony-note-label { font-size: 14px; }
.ceremony-note-place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.venue-location-icon { flex: none; width: 15px; height: 15px; color: var(--vn-gold); }
.ceremony-direction { margin-top: 14px; }

/* --------------------------------------------------------------------------
   6. TIỆC CƯỚI: THẺ KEM VIỀN VÀNG
   -------------------------------------------------------------------------- */
.reception-card {
  padding: 28px 18px 22px;
  background: var(--vn-cream);
  border: 0;
  border-radius: 0;
  outline: 1.5px solid var(--vn-gold-line);
  outline-offset: 6px;
  box-shadow: none;
  color: var(--vn-ink);
  text-align: center;
}
.reception-header { display: flex; flex-direction: column; align-items: center; }
.reception-card .vn-kicker { font-weight: 700; color: var(--vn-red); text-wrap: balance; }
.reception-card .vn-title { margin-top: 2px; font-size: 28px; color: var(--vn-red); }
.reception-date-text { margin: 2px 0 0; font-size: 14px; line-height: 1.6; }
.reception-date-text:empty { display: none; }
.reception-lunar { margin: 0; font-size: 13px; font-style: italic; line-height: 1.6; color: var(--vn-ink-muted); }
.reception-lunar:empty { display: none; }

.reception-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.reception-time-col { min-width: 0; padding: 10px; background: var(--vn-red); color: var(--vn-cream); }
.reception-time-col small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vn-gold);
}
.reception-time-col strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.calendar-paper {
  margin-top: 12px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--vn-ink);
}
.calendar-paper-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--vn-red);
}
.calendar-grid-header,
.calendar-grid-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  font-size: 13px;
  text-align: center;
}
.calendar-grid-header span,
.calendar-grid-days span {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calendar-grid-header span { font-size: 11px; font-weight: 700; color: var(--vn-red); }
.calendar-grid-days .wedding-day {
  width: 32px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--vn-red);
  color: var(--vn-gold);
  font-weight: 700;
  box-shadow: none;
}

.reception-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.reception-actions button {
  min-height: 48px;
  padding: 0 8px;
  border: 1.5px solid var(--vn-red);
  border-radius: 0;
  background: transparent;
  color: var(--vn-red);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  transition: background .2s ease, color .2s ease;
}
.reception-actions button[style*="none"] + button,
.reception-actions button:only-child { grid-column: 1 / -1; }
.reception-actions .btn-gold-outline:hover { background: var(--vn-red-tint); }
.reception-actions .btn-cream-solid { border-color: var(--vn-red); background: var(--vn-red); color: var(--vn-cream); }
.reception-actions .btn-cream-solid:hover { background: var(--vn-red-deep); border-color: var(--vn-red-deep); }

/* --------------------------------------------------------------------------
   7. ĐỊA ĐIỂM (& TIỆC NHÀ GÁI)
   -------------------------------------------------------------------------- */
.venue-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 4px;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}
.venue-card .venue-name { display: block; margin: 4px 0 0; font-size: 26px; }
.venue-address { margin: 0; font-size: 14px; line-height: 1.6; color: var(--vn-cream); }

.map-embed-wrapper {
  width: 100%;
  height: 214px;
  margin-top: 14px;
  padding: 6px;
  box-sizing: border-box;
  background: none;
  border: 1.5px solid var(--vn-gold-line);
  border-radius: 0;
}
.map-embed-wrapper iframe { display: block; width: 100%; height: 100%; background: var(--vn-cream); }
.venue-direction-btn { display: flex; margin-top: 12px; min-height: 48px; }

#reception-bride {
  --rb-ink: var(--vn-ink);
  --rb-muted: var(--vn-ink-muted);
  --rb-paper: transparent;
  --rb-border: var(--vn-line);
  max-width: none;
  margin: var(--vn-section-gap) 0 0;
  padding: 0 var(--vn-inline-pad);
  font-family: var(--font-body);
  text-align: center;
}
#reception-bride .bride-reception-card {
  padding: 28px 18px 22px;
  background: var(--vn-cream);
  border: 0;
  border-radius: 0;
  outline: 1.5px solid var(--vn-gold-line);
  outline-offset: 6px;
  box-shadow: none;
  color: var(--vn-ink);
}
#reception-bride .rb-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  color: var(--vn-red);
}
#reception-bride .rb-lead,
#reception-bride .rb-venue-label {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--vn-red);
}
#reception-bride .rb-weekday { margin: 4px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--vn-ink); }
#reception-bride .rb-date { justify-content: center; }
#reception-bride .rb-day { font-family: var(--font-display); font-size: 56px; font-weight: 800; line-height: 1; color: var(--vn-red); }
#reception-bride .rb-month { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--vn-ink); }
#reception-bride .rb-year { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--vn-ink); }
#reception-bride .rb-lunar { margin: 4px 0 0; font-size: 13px; font-style: italic; text-transform: none; color: var(--vn-ink-muted); }
#reception-bride .rb-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
#reception-bride .rb-time-col { padding: 10px; background: var(--vn-red); color: var(--vn-cream); }
#reception-bride .rb-time-col small { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--vn-gold); }
#reception-bride .rb-time-col strong { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.3; color: var(--vn-cream); }
#reception-bride .rb-venue { margin-top: 18px; }
#reception-bride .rb-venue-name-row { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 0; }
#reception-bride .rb-venue-name-row .venue-location-icon { color: var(--vn-red); }
#reception-bride .rb-venue-name { font-family: var(--font-body); font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--vn-ink); }
#reception-bride .rb-venue-address { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--vn-ink); }
#reception-bride .rb-direction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--vn-red);
  color: var(--vn-cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: none;
}
#reception-bride .rb-direction[hidden] { display: none; }
#reception-bride .rb-direction:hover { background: var(--vn-red-deep); }

/* --------------------------------------------------------------------------
   8. ALBUM ẢNH CƯỚI: 1 ẢNH LỚN 2×2 + 5 ẢNH VUÔNG, KHUNG VÀNG
   -------------------------------------------------------------------------- */
#gallery { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.artwork-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
.artwork-wall:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.artwork-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 4px solid var(--vn-gold-line);
  border-radius: 0;
  background: var(--vn-cream);
  cursor: zoom-in;
}
.artwork-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.artwork-item:hover img { transform: scale(1.04); }
.artwork-item.is-feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.artwork-wall:has(> :nth-child(2):last-child) .artwork-item.is-feature { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
.artwork-item.is-feature img { position: absolute; inset: 0; }
.artwork-wall.is-single .artwork-item.is-feature { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }

.artwork-item.is-more { border-color: var(--vn-gold); }
.artwork-more {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--vn-gold);
  color: var(--vn-red-ink);
  font-size: 12px;
  font-weight: 600;
}
.artwork-more b {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   9. ĐẾM NGƯỢC: VÒNG TRÒN CHỈ VÀNG
   -------------------------------------------------------------------------- */
.countdown-card { padding: 0; background: none; border: 0; box-shadow: none; text-align: center; }
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  padding: 0;
}
.count-box {
  box-sizing: border-box;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1.5px solid var(--vn-gold);
  border-radius: 50%;
  background: none;
  color: var(--vn-cream);
  box-shadow: none;
}
.count-box .num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--vn-gold);
  font-variant-numeric: tabular-nums;
}
.count-box .lbl {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-cream);
}

/* --------------------------------------------------------------------------
   10. TRÌNH TỰ HÔN LỄ
   -------------------------------------------------------------------------- */
#timeline { padding: 0 max(26px, (100% - var(--vn-content-max)) / 2); }
.timeline-card { padding: 0; background: none; border: 0; box-shadow: none; }
.timeline-list { margin-top: 12px; padding: 0; background: none; border: 0; }
.timeline-list:empty { display: none; }
.timeline-item {
  display: grid;
  grid-template-columns: 24px 70px minmax(0, 1fr);
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(242, 205, 116, .3);
}
.timeline-line-col { grid-column: 1; grid-row: 1; }
.timeline-line-col::before {
  content: "囍";
  font-family: var(--font-han);
  font-size: 16px;
  line-height: 1;
  color: var(--vn-gold);
}
.timeline-dot { display: none; }
.timeline-left { grid-column: 2; grid-row: 1; }
.timeline-time {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--vn-gold);
}
.timeline-right { grid-column: 3; grid-row: 1; min-width: 0; }
.timeline-text { font-size: 15px; font-weight: 400; line-height: 1.6; color: var(--vn-cream); }

/* --------------------------------------------------------------------------
   11. TRANG PHỤC
   -------------------------------------------------------------------------- */
#dresscode { padding: 0 max(26px, (100% - var(--vn-content-max)) / 2); }
.dresscode-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  overflow: visible;
}
.dresscode-note {
  margin: 0 auto;
  max-width: 320px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: var(--vn-cream);
}
.dresscode-palettes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.dresscode-item { display: flex; flex-direction: column; align-items: center; gap: 0; width: auto; max-width: none; }
.dresscode-item:hover { transform: none; }
.dresscode-swatch {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--vn-red), 0 0 0 4.5px var(--vn-gold);
  transform: none !important;
}
/* Thiết kế chỉ có ô màu — tên màu vẫn đọc được cho trình đọc màn hình */
.dresscode-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   12. SỔ LƯU BÚT: THẺ KEM
   -------------------------------------------------------------------------- */
.chy-paper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  background: var(--vn-cream);
  color: var(--vn-ink);
}
.guestbook-card { padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.guestbook-card .vn-kicker { font-weight: 700; color: var(--vn-red); }
.guestbook-card .vn-title { margin: 0 0 6px; font-size: 26px; color: var(--vn-red); }
.guestbook-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.field-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-ink);
}
.form-input,
.form-textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--vn-input-border);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--vn-ink);
  font-family: var(--font-body);
  font-size: 15px;
  box-shadow: none;
}
.form-textarea { min-height: 100px; resize: none; }
.form-input::placeholder,
.form-textarea::placeholder { color: #94605A; }
.form-input:focus,
.form-textarea:focus { border-color: var(--vn-red); box-shadow: 0 0 0 2px var(--vn-red-tint); }

.guestbook-actions { display: flex; gap: 8px; }
.btn-wish-icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--vn-red);
  border-radius: 0;
  background: transparent;
  color: var(--vn-red);
}
.btn-wish-icon:hover { background: var(--vn-red-tint); }

.btn-submit-wish,
.rsvp-btn-submit,
.btn-modal-refresh {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--vn-red);
  color: var(--vn-cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}
.btn-submit-wish:hover,
.rsvp-btn-submit:hover,
.btn-modal-refresh:hover { background: var(--vn-red-deep); }
.btn-submit-wish { flex: 1; }
.btn-submit-wish.is-submitting,
.rsvp-btn-submit.is-submitting { opacity: .6; cursor: progress; }

.wishes-list {
  margin-top: 6px;
  max-height: 460px;
  padding-right: 4px;
  gap: 8px;
}
.wishes-list::-webkit-scrollbar-thumb { background: var(--vn-line); border-radius: 0; }
.wish-item {
  padding: 10px 12px;
  background: #FFFFFF;
  border: 0;
  border-left: 3px solid var(--vn-red);
  border-radius: 0;
  box-shadow: none;
}
.wish-item:nth-child(even) { border-left-color: var(--vn-gold-line); }
.wish-item-header { justify-content: flex-start; gap: 6px; margin-bottom: 2px; font-size: 11px; }
.wish-author {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--vn-red);
  overflow-wrap: anywhere;
}
.wish-time { flex: none; font-size: 11px; color: var(--vn-ink); }
.wish-message {
  margin: 2px 0 0;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--vn-ink);
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   13. HỘP QUÀ MỪNG: HỘP VÀNG CHỮ HỶ
   -------------------------------------------------------------------------- */
.gift-section { padding: 0 max(26px, (100% - var(--vn-content-max)) / 2); text-align: center; }
.gift-wrapper { display: flex; flex-direction: column; align-items: center; max-width: none; }
.chy-giftbox {
  width: 150px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--vn-gold);
  color: var(--vn-red);
  font-size: 64px;
  box-shadow: inset 0 0 0 4px var(--vn-gold), inset 0 0 0 5.5px var(--vn-red);
}
.gift-heading { margin-top: 16px; font-size: 28px; color: var(--vn-gold); }
.gift-note { margin: 4px 0 0; font-size: 14px; line-height: 1.7; color: var(--vn-cream); }

.gift-envelope-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 30px;
  border: 1.5px solid var(--vn-gold);
  border-radius: 0;
  background: transparent;
  color: var(--vn-gold);
  box-shadow: none;
  cursor: pointer;
  transition: background .2s ease;
}
.gift-envelope-trigger:hover { background: rgba(242, 205, 116, .12); }
.gift-hint-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
}
.gift-envelope-trigger:hover .gift-hint-text { color: inherit; transform: none; }

/* --------------------------------------------------------------------------
   14. CẢM ƠN (FOOTER): KHUNG CHỈ VÀNG
   -------------------------------------------------------------------------- */
.exit-room {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--vn-section-gap) 16px max(16px, env(safe-area-inset-bottom));
  padding: 34px 20px;
  border: 1.5px solid var(--vn-gold-line);
  background: none;
  color: var(--vn-cream);
  text-align: center;
}
.chy-hy--exit { font-size: 80px; color: var(--vn-gold); }
.exit-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vn-gold);
}
.exit-lead { margin: 4px 0 0; font-size: 14px; line-height: 1.7; }
.exit-names {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.exit-names:empty { display: none; }
.exit-room .gift-brand-footer {
  margin-top: 12px;
  opacity: .7;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: inherit;
}

/* --------------------------------------------------------------------------
   15. MÀN HÌNH LỖI, NÚT NỔI, MODAL (chỉ chỉnh chi tiết riêng)
   -------------------------------------------------------------------------- */
.not-found-screen { background: var(--vn-red); }
.not-found-card { background: var(--vn-cream); border-color: var(--vn-gold-line); outline-color: var(--vn-gold-line); }
.not-found-icon { font-size: 56px; color: var(--vn-red); }
.not-found-title { color: var(--vn-red); }

.floating-music { border-color: var(--vn-gold); background: var(--vn-cream); color: var(--vn-red); }
.floating-music.playing { background: var(--vn-red); color: var(--vn-gold); border-color: var(--vn-gold); box-shadow: 0 0 0 3px rgba(0, 0, 0, .18); }
.lang-trigger-btn:hover,
.floating-lang.is-open .lang-trigger-btn { background: var(--vn-red-deep); }
.lang-btn.active { color: var(--vn-red-ink); }

.modal-box,
.wish-modal-card,
.gift-modal-box { background: var(--vn-cream); border-color: var(--vn-red); outline-color: var(--vn-gold-line); }
.modal-title,
.wish-modal-title h3,
.gift-modal-title { font-family: var(--font-display); color: var(--vn-red); }
.modal-close,
.wish-modal-close,
.gift-modal-close { background: var(--vn-cream); }
.gift-person-card { border-color: var(--vn-gold-line); }
.gift-qr-card { background: var(--vn-red); }
.rsvp-radio-label { background: #FFFFFF; }
.toast { background: var(--vn-red-deep); border-color: var(--vn-gold); color: var(--vn-cream); }
.lightbox-modal img { border-color: var(--vn-gold); outline: 0; }

/* --------------------------------------------------------------------------
   16. MÀN HÌNH NHỎ / RỘNG
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .app-container { box-shadow: 0 0 0 1px rgba(232, 195, 106, .35); }
}

@media (max-width: 360px) {
  :root { --vn-gutter: 16px; }
  .vn-title { font-size: 28px; }
  .envelope-name-line { font-size: 34px; }
  .ceremony-day { width: 74px; height: 74px; font-size: 34px; }
  .count-box .num { font-size: 22px; }
  .timeline-item { grid-template-columns: 22px 62px minmax(0, 1fr); }
  .reception-actions { grid-template-columns: 1fr; }
  .family-side .groom-name,
  .family-side .bride-name { font-size: 18px; }
}

/* --------------------------------------------------------------------------
   Chuẩn hoá chữ theo cấp (cùng cấp → cùng cỡ / đậm / giãn chữ)
   - Tiêu đề khối: 28px Playfair 700
   - Tên địa điểm trong thẻ: 16px Be Vietnam Pro 700; địa chỉ: 14px
   - Nhãn dẫn (lead / "được cử hành tại"): 12px 700 in hoa giãn 3px
   - Ngày: 14px 600; âm lịch: 13px nghiêng; nút chỉ đường: cao 46px
   -------------------------------------------------------------------------- */
.reception-card .vn-title,
.guestbook-card .vn-title { font-size: 28px; line-height: 1.25; }

.ceremony-note-place { font-size: 16px; font-weight: 700; line-height: 1.4; }
.ceremony-note-label,
#reception-bride .rb-lead,
#reception-bride .rb-venue-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-wrap: balance;
}
.ceremony-note-label { color: var(--vn-gold); }

.venue-address,
#reception-bride .rb-venue-address,
.family-side p { font-size: 14px; line-height: 1.6; }

.reception-date-text { font-weight: 600; }
.ceremony-time-badge .lunar { font-size: 13px; font-style: italic; }
.venue-direction-btn { min-height: 46px; }

/* Nhãn "Groom's Family / Bride's Family" không được xuống dòng làm lệch hàng 2 thẻ */
.family-side small { text-wrap: balance; }
@media (max-width: 380px) {
  .family-side small { letter-spacing: 1.5px; }
}

/* Tiêu đề khối dạng nhãn (kicker) cho đồng nhất: Hộp quà mừng, Thông tin tiệc cưới nhà gái */
.gift-wrapper .gift-heading,
#reception-bride .rb-heading {
  margin: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}
.gift-wrapper .gift-heading { margin-top: 16px; font-weight: 600; color: var(--vn-gold); }
#reception-bride .rb-heading { color: var(--vn-red); }

/* Tên địa điểm (nơi làm lễ / nhà hàng / tư gia nhà gái): cùng kiểu chữ, đều có biểu tượng ghim */
.ceremony-note-place,
.venue-card .venue-name,
#reception-bride .rb-venue-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}
.venue-card .venue-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
}
.venue-card .venue-name .venue-location-icon,
.ceremony-note-place .venue-location-icon,
#reception-bride .rb-venue-name-row .venue-location-icon { width: 18px; height: 18px; }

/* Placeholder nhỏ hơn chữ nhập (ô nhập vẫn 16px để Safari không tự phóng to; placeholder không ảnh hưởng việc này) */
.form-input::placeholder,
.form-textarea::placeholder,
.rsvp-input::placeholder,
.rsvp-textarea::placeholder { font-size: 14px; }
