/* Mẫu Hỷ Tròn — thẻ đỏ son trên nền giấy kem sợi, huy hiệu 囍 tròn, chữ vàng kem. Bố cục chảy theo nội dung. */

.t-hy-tron {
  --red: #a31c1c;
  --red-deep: #7e1212;
  --gold: #f3d9a4;
  --gold-soft: rgba(243, 217, 164, .78);
  --paper: #efe6d6;
  --ink: #5a1212;
  --f-song: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --f-soft: "Cormorant Garamond", Georgia, serif;
  --f-script: "Noto Serif Display", Georgia, serif;
  --gate-bg: #a31c1c;
  --gate-ink: #f3d9a4;
  --accent-strong: #a31c1c;
}
.t-hy-tron .vela-frame {
  padding: 22px 0 6px;
  background: url("paper.svg") 0 0 / 300px 300px, var(--paper);
  color: var(--ink);
  font-family: var(--f-song);
}
@media (min-width: 768px) {
  .t-hy-tron .vela-stage { background: url("paper.svg") 0 0 / 300px 300px, var(--paper); }
}

/* ---------- tấm thẻ ---------- */
.t-hy-tron .hy-card {
  position: relative;
  margin: 0 18px 26px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(90, 30, 10, .22), 0 2px 5px rgba(90, 30, 10, .16);
}
.t-hy-tron .hy-card--hero, .t-hy-tron .hy-card--events, .t-hy-tron .hy-card--red, .t-hy-tron .hy-card--thanks { background: var(--red); color: var(--gold); }
.t-hy-tron .hy-card--cream {
  padding: 30px 22px 30px;
  background: #fbf5ea;
  border: 1px solid #e6d3b3;
  text-align: center;
}
.t-hy-tron .hy-card--cream::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(163, 28, 28, .35);
  pointer-events: none;
}

.t-hy-tron .hy-photo { position: relative; overflow: hidden; background: var(--red-deep); }
.t-hy-tron .hy-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-hy-tron .hy-photo--hero { height: 330px; }
.t-hy-tron .hy-photo--hero img { object-position: 50% 22%; }
.t-hy-tron .hy-photo--mid { height: 250px; display: flex; gap: 3px; }
.t-hy-tron .hy-photo--mid img { flex: 1; min-width: 0; object-position: 50% 25%; }
.t-hy-tron .hy-photo--end { height: 300px; }
.t-hy-tron .hy-photo--end img { object-position: 50% 30%; }

/* chỉ vàng tách ảnh / thân thẻ + huy hiệu tròn */
.t-hy-tron .hy-seam { position: relative; z-index: 2; height: 4px; background: var(--gold); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.t-hy-tron .hy-seal {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(60, 0, 0, .35);
}
.t-hy-tron .hy-seal.is-in { animation-name: hy-seal-in; }
@keyframes hy-seal-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%); } }
.t-hy-tron .hy-seal svg { display: block; width: 100%; height: 100%; }

.t-hy-tron .hy-panel {
  position: relative;
  padding: 58px 22px 30px;
  text-align: center;
  background: url("peony.svg") 50% 0 / 420px 560px, radial-gradient(circle at 50% 0, #b52424, var(--red) 55%, #971616);
}
.t-hy-tron .hy-card--red .hy-panel { padding-top: 34px; }

/* ---------- chữ ---------- */
.t-hy-tron .hy-title {
  font-family: var(--f-song); font-weight: 600;
  font-size: 29px; line-height: 1.25; letter-spacing: .1em; white-space: nowrap;
  text-transform: uppercase; text-shadow: 0 2px 0 rgba(80, 0, 0, .35);
}
.t-hy-tron .hy-title--sm { font-size: 24px; letter-spacing: .08em; }
.t-hy-tron .hy-verse { margin-top: 16px; font-size: 16px; line-height: 1.7; letter-spacing: .02em; }
.t-hy-tron .hy-verse b { font-weight: 600; font-size: 1.12em; }
.t-hy-tron .hy-couple {
  display: grid; justify-items: center;
  margin-top: 16px;
  font-size: 22px; font-weight: 600; line-height: 1.35;
}
.t-hy-tron .hy-couple em { font-style: italic; font-family: var(--f-soft); font-size: 1.1em; line-height: 1.1; color: var(--gold-soft); }
.t-hy-tron .hy-rule { display: block; width: 280px; height: 18px; margin: 20px auto 16px; }
.t-hy-tron .hy-rule--sm { width: 240px; margin: 16px auto; }
.t-hy-tron .hy-label { margin-top: 14px; font-size: 16px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }
.t-hy-tron .hy-when { margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: .04em; }
.t-hy-tron .hy-sub { margin-top: 4px; font-family: var(--f-soft); font-size: 16px; line-height: 1.45; font-style: italic; color: var(--gold-soft); }
.t-hy-tron .hy-venue { margin-top: 4px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.t-hy-tron .hy-hosts { margin-top: 20px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.t-hy-tron .hy-hosts small { display: block; font-family: var(--f-soft); font-weight: 500; font-style: italic; font-size: 15px; color: var(--gold-soft); }
.t-hy-tron .hy-bye { margin-top: 20px; font-size: 16px; font-weight: 500; letter-spacing: .04em; }

.t-hy-tron .hy-kicker {
  display: inline-block;
  padding: 0 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}

/* ---------- 2. hai gia đình ---------- */
.t-hy-tron .hy-fam { display: grid; grid-template-columns: 1fr 34px 1fr; gap: 4px; margin-top: 18px; align-items: start; }
.t-hy-tron .hy-fam__side { min-width: 0; }
.t-hy-tron .hy-portrait {
  width: 128px; height: 168px; margin: 0 auto 12px;
  border: 3px solid #fbf5ea; outline: 1.5px solid #c9a15c;
  border-radius: 64px 64px 6px 6px; overflow: hidden;
}
.t-hy-tron .hy-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.t-hy-tron .hy-fam__hy { align-self: center; margin-top: -40px; font-family: "Vela Hy", serif; font-size: 30px; color: var(--red); text-align: center; }
.t-hy-tron .hy-fam__label { font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.t-hy-tron .hy-fam__parents { margin-top: 4px; font-size: 14px; line-height: 1.55; }
.t-hy-tron .hy-fam__addr { margin-top: 2px; font-family: var(--f-soft); font-style: italic; font-size: 14px; line-height: 1.35; color: #8a5a44; }
.t-hy-tron .hy-fam__role { margin-top: 12px; font-family: var(--f-soft); font-style: italic; font-size: 15px; color: #8a5a44; }
.t-hy-tron .hy-fam__name { font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--red); }
.t-hy-tron .hy-quote { margin-top: 20px; font-family: var(--f-soft); font-style: italic; font-size: 17px; line-height: 1.5; color: #7a2a1a; }

/* ---------- 3. lễ & tiệc ---------- */
.t-hy-tron .hy-event__title { font-size: 20px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.t-hy-tron .hy-event__time { margin-top: 4px; font-size: 38px; font-weight: 500; line-height: 1.15; letter-spacing: .04em; }
.t-hy-tron .hy-event__place { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.t-hy-tron .hy-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.t-hy-tron .hy-btn {
  display: inline-block;
  padding: 11px 22px;
  border: 1.5px solid var(--gold); border-radius: 3px;
  background: var(--gold); color: var(--red);
  font: 600 14px/1 var(--f-song); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(60, 0, 0, .25);
}
.t-hy-tron .hy-btn--ghost { background: transparent; color: var(--gold); box-shadow: none; }
.t-hy-tron .hy-btn--red { margin-top: 18px; border-color: var(--red); background: var(--red); color: var(--gold); }

/* ---------- 4. lịch + đếm ngược ---------- */
.t-hy-tron .hy-cal__month { margin-top: 6px; font-size: 30px; font-weight: 600; color: var(--red); letter-spacing: .06em; }
.t-hy-tron .hy-cal__month span { font-weight: 400; font-size: .7em; color: #8a5a44; }
.t-hy-tron .hy-cal__grid { margin-top: 12px; }
.t-hy-tron .hy-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-hy-tron .hy-cal__row span { position: relative; display: grid; place-items: center; height: 38px; font-size: 16px; }
.t-hy-tron .hy-cal__row--head span { height: 30px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: #fbf5ea; background: var(--red); }
.t-hy-tron .hy-cal__row span.is-sun { color: var(--red); }
.t-hy-tron .hy-cal__row span b { position: relative; font-weight: 500; }
.t-hy-tron .hy-cal__row span.is-day b { color: var(--gold); font-weight: 600; }
.t-hy-tron .hy-cal__row span.is-day::before {
  content: ""; position: absolute; width: 36px; height: 36px;
  border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fbf5ea, 0 0 0 3.5px #c9a15c;
  animation: vela-heart 2.4s ease-in-out infinite;
}
.t-hy-tron .hy-cal__row span.is-day i { position: absolute; top: -9px; right: 2px; z-index: 1; font-style: normal; font-family: "Vela Hy", serif; font-size: 13px; color: var(--red); }
.t-hy-tron .hy-cal__lunar { margin-top: 10px; font-family: var(--f-soft); font-style: italic; font-size: 16px; color: #8a5a44; }
.t-hy-tron .hy-count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.t-hy-tron .hy-count div { padding: 10px 0 8px; background: var(--red); color: var(--gold); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px var(--gold-soft); }
.t-hy-tron .hy-count span { display: block; font-size: 28px; font-weight: 600; line-height: 1.1; }
.t-hy-tron .hy-count small { display: block; margin-top: 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- 5. lịch trình ---------- */
.t-hy-tron .hy-prog__list { position: relative; max-width: 310px; margin: 6px auto 0; padding: 0; list-style: none; text-align: left; }
.t-hy-tron .hy-prog__list::before { content: ""; position: absolute; left: 110px; top: 14px; bottom: 14px; width: 1px; background: var(--gold-soft); }
.t-hy-tron .hy-prog__list li { position: relative; display: grid; grid-template-columns: 90px 20px 1fr; align-items: start; column-gap: 10px; padding: 9px 0; }
.t-hy-tron .hy-prog__time { justify-self: end; font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.t-hy-tron .hy-prog__dot { width: 11px; height: 11px; margin: 8px auto 0; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 3px var(--red), 0 0 0 4px var(--gold-soft); }
.t-hy-tron .hy-prog__what { font-size: 17px; font-weight: 500; line-height: 1.4; padding-top: 2px; }
.t-hy-tron .hy-prog__what small { display: block; font-family: var(--f-soft); font-style: italic; font-size: 15px; color: var(--gold-soft); }

/* ---------- 6. địa điểm ---------- */
.t-hy-tron .hy-venue__name { margin-top: 8px; font-size: 22px; font-weight: 600; line-height: 1.35; color: var(--red); }
.t-hy-tron .hy-venue__addr { margin-top: 4px; font-family: var(--f-soft); font-style: italic; font-size: 16px; line-height: 1.4; color: #8a5a44; }
.t-hy-tron .hy-map { position: relative; height: 220px; margin-top: 16px; border: 3px solid #fbf5ea; outline: 1.5px solid #c9a15c; background: #eadfcb; }
.t-hy-tron .hy-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- 7. album ---------- */
.t-hy-tron .hy-album__title { margin-top: 6px; font-size: 26px; font-weight: 600; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.t-hy-tron .hy-album__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.t-hy-tron .hy-album__item { overflow: hidden; border: 3px solid #fbf5ea; outline: 1.5px solid #c9a15c; background: #eadfcb; }
.t-hy-tron .hy-album__item img { width: 100%; height: 100%; object-fit: cover; }
.t-hy-tron .hy-album__item--wide { grid-column: span 2; height: 210px; }
.t-hy-tron .hy-album__item--tall { height: 230px; }

/* ---------- 8. xác nhận ---------- */
.t-hy-tron .hy-form { display: grid; gap: 10px; margin-top: 20px; }
.t-hy-tron .hy-form input, .t-hy-tron .hy-form select, .t-hy-tron .hy-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gold-soft); border-radius: 3px;
  background: rgba(255, 240, 215, .08); color: var(--gold);
  font: 16px/1.4 var(--f-song);
  -webkit-appearance: none; appearance: none;
}
.t-hy-tron .hy-form select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.t-hy-tron .hy-form option { color: #222; }
.t-hy-tron .hy-form ::placeholder { color: rgba(243, 217, 164, .6); }
.t-hy-tron .hy-form textarea { resize: vertical; }
.t-hy-tron .hy-form .hy-btn { justify-self: center; margin-top: 6px; cursor: pointer; }
.t-hy-tron .hy-form__msg { min-height: 20px; font-family: var(--f-soft); font-style: italic; font-size: 16px; }

/* ---------- mừng cưới ---------- */
.t-hy-tron .hy-gift__env { display: block; width: 110px; height: 78px; margin: 0 auto 8px; }
.t-hy-tron .hy-gift__text { margin-top: 8px; font-family: var(--f-soft); font-style: italic; font-size: 17px; color: #7a2a1a; }
.t-hy-tron .hy-gift .hy-btn--red { cursor: pointer; }

/* ---------- 9. cảm ơn ---------- */
.t-hy-tron .hy-card--thanks .hy-btn { margin-top: 20px; cursor: pointer; }

.t-hy-tron .hy-footer {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  padding: 4px 0 6px;
  font-size: 13px; letter-spacing: .06em; color: #8a5a44;
}
.t-hy-tron .hy-footer span:first-child { font-family: "Vela Hy", serif; color: var(--red); font-size: 16px; }

/* ---------- sự kiện thêm (gói 2) ---------- */
.t-hy-tron .vela-events { padding: 0 18px 10px; }
.t-hy-tron .vela-event { border: 0; border-radius: 0; background: var(--red); color: var(--gold); font-family: var(--f-song); box-shadow: 0 10px 24px rgba(90, 30, 10, .22); }
.t-hy-tron .vela-event__side, .t-hy-tron .vela-event__addr { color: var(--gold-soft); }
.t-hy-tron .vela-event__map { background: var(--gold); color: var(--red); border-radius: 3px; }

/* ---------- màn mở thiệp ---------- */
.t-hy-tron .vela-gate__door { background: url("peony.svg") 50% 0 / 420px 560px, var(--red); }
.t-hy-tron .vela-gate__card {
  padding: 96px 24px 34px;
  background: rgba(126, 18, 18, .55);
  box-shadow: inset 0 0 0 1px var(--gold-soft), inset 0 0 0 6px rgba(126, 18, 18, .55), inset 0 0 0 7px rgba(243, 217, 164, .4);
  font-family: var(--f-song);
}
.t-hy-tron .vela-gate__card::before {
  content: "囍";
  position: absolute; left: 50%; top: 14px;
  width: 58px; height: 58px; margin-left: -29px; margin-top: 8px;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 2.5px var(--gold), 0 0 0 7px var(--red), 0 0 0 8px var(--gold-soft);
  font: 32px/1 "Vela Hy", serif; color: var(--gold);
}
.t-hy-tron .vela-gate__label { font-size: 13px; letter-spacing: .2em; color: var(--gold-soft); }
.t-hy-tron .vela-gate__guest { font-weight: 600; font-size: 32px; letter-spacing: .04em; }
.t-hy-tron .vela-gate__names { font-weight: 600; font-size: 26px; letter-spacing: .04em; }
.t-hy-tron .vela-gate__date { color: var(--gold-soft); }
.t-hy-tron .vela-gate__open { border-radius: 3px; background: var(--gold); color: var(--red); font-family: var(--f-song); letter-spacing: .14em; text-transform: uppercase; }

/* tên / địa chỉ dài: chia dòng cân, không rớt 1 chữ */
.t-hy-tron .hy-venue, .t-hy-tron .hy-venue__name, .t-hy-tron .hy-event__place, .t-hy-tron .hy-sub, .t-hy-tron .hy-fam__addr, .t-hy-tron .hy-verse { text-wrap: balance; }
