/* Mẫu Hoạt Hình Xanh — minh hoạ phẳng: thẻ xanh periwinkle trên nền giấy kem, hoa tulip, lấp lánh, nơ hồng.
   Bố cục chảy (flow), mọi hình vẽ là SVG inline dùng lại từ <symbol> đầu thiệp. */

.t-hoat-hinh {
  --blue: #6f86d8;
  --blue-d: #4d63b8;
  --blue-l: #e6ebfb;
  --cream: #f1ecdc;
  --paper: #f8f4e8;
  --ink: #2d2a3e;
  --pink: #f4a6b8;
  --pink-d: #e0708c;
  --green: #3f8a4a;
  --gold: #f8d65f;
  --f-head: "Baloo 2", "Quicksand", sans-serif;
  --f-body: "Quicksand", "Nunito", Arial, sans-serif;
  --f-hand: "Pangolin", "Quicksand", cursive;
  --f-script: "Baloo 2", sans-serif;
  --gate-bg: var(--cream);
  --gate-ink: #fff;
  --accent-strong: var(--blue-d);
}
.t-hoat-hinh .vela-frame {
  background:
    radial-gradient(circle at 30% 40%, rgba(120, 100, 60, .05) 0 1px, transparent 1.6px) 0 0 / 9px 9px,
    radial-gradient(circle at 70% 70%, rgba(120, 100, 60, .04) 0 1px, transparent 1.6px) 0 0 / 13px 13px,
    var(--cream);
  color: var(--ink);
}
.t-hoat-hinh .hh-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.hh { font-family: var(--f-body); color: var(--ink); }
.hh img { width: 100%; height: 100%; object-fit: cover; }
.hh-ico { display: inline-block; width: .8em; height: .75em; vertical-align: -.02em; }

/* ---------- khối chung ---------- */
.hh-sec { position: relative; padding: 34px 20px; text-align: center; }
.hh-card {
  position: relative;
  background: var(--blue);
  border: 6px solid #fff;
  border-radius: 10px;
  box-shadow: 0 0 0 2px var(--ink), 0 10px 0 -2px rgba(45, 42, 62, .12);
  color: #fff;
}
.hh-title {
  font-family: var(--f-head); font-weight: 800;
  font-size: 32px; line-height: 1.1; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue);
  text-shadow: 2px 2px 0 #fff;
}
.hh-title--light { color: #fff; text-shadow: 2px 2px 0 var(--blue-d); }
.hh-btn {
  display: inline-block;
  margin-top: 18px; padding: 13px 30px;
  border: 2.5px solid var(--ink); border-radius: 999px;
  background: var(--blue); color: #fff;
  font-family: var(--f-head); font-weight: 700; font-size: 17px; letter-spacing: .5px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
}
.hh-btn--pink { background: var(--pink); color: var(--ink); }
.hh-btn--ghost { margin-top: 14px; padding: 8px 20px; font-size: 14px; background: #fff; color: var(--blue-d); box-shadow: 0 3px 0 var(--ink); }
.hh-spark { position: absolute; width: 26px; height: 26px; }

/* ---------- 1. bìa ---------- */
.hh-hero { padding: 22px 16px 26px; text-align: center; }
.hh-hero__card { padding: 22px 18px 34px; }
.hh-hero__title {
  font-family: var(--f-head); font-weight: 800;
  font-size: 46px; line-height: 1; letter-spacing: 2px; text-transform: uppercase;
  color: #fff; text-shadow: 3px 3px 0 var(--blue-d);
}
.hh-hero__date { margin-top: 6px; font-family: var(--f-head); font-weight: 700; font-size: 22px; letter-spacing: 3px; }
.hh-hero__photo-wrap { position: relative; width: 300px; height: 388px; margin: 20px auto 0; }
.hh-hero__photo {
  position: absolute; inset: 14px 16px 18px;
  overflow: hidden;
  border: 6px solid #fff; border-radius: 150px 150px 22px 22px;
  box-shadow: 0 0 0 2.5px var(--ink);
  background: var(--blue-l);
}
.hh-hero__deco { position: absolute; left: -20px; top: -26px; width: 340px; height: 440px; pointer-events: none; overflow: visible; }
.hh-spark--1 { left: -12px; top: 120px; }
.hh-spark--2 { right: -10px; top: 210px; width: 20px; height: 20px; }
.hh-hero__names {
  margin-top: 24px;
  font-family: var(--f-head); font-weight: 800; font-size: 36px; line-height: 1.15;
  color: var(--blue-d);
}
.hh-hero__names .hh-ico { width: 26px; height: 24px; vertical-align: 2px; }
.hh-hero__married { margin-top: 4px; font-family: var(--f-hand); font-size: 24px; color: var(--blue); }

/* ---------- 2. thư mời ---------- */
.hh-invite { margin: 0 16px; padding: 30px 18px 34px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 18px; overflow: hidden; }
.hh-couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-top: 20px; }
.hh-avatar { margin: 0; }
.hh-avatar__img {
  width: 116px; height: 116px; margin: 0 auto;
  overflow: hidden; border-radius: 50%;
  border: 5px solid var(--blue); box-shadow: 0 0 0 2.5px var(--ink), inset 0 0 0 3px #fff;
  background: var(--blue-l);
}
.hh-avatar__img img { object-position: 50% 22%; }
.hh-avatar figcaption { margin-top: 10px; display: grid; gap: 1px; }
.hh-avatar figcaption span { font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.hh-avatar figcaption b { font-family: var(--f-head); font-weight: 800; font-size: 22px; line-height: 1.15; }
.hh-hy { font-family: "Vela Hy", serif; font-size: 52px; line-height: 1; color: #d8323c; margin-bottom: 40px; }
.hh-invite__lead { margin-top: 24px; font-size: 16px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.hh-invite__guest { margin-top: 4px; font-family: var(--f-hand); font-size: 32px; line-height: 1.3; color: var(--pink-d); }
.hh-invite__text { margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.5; }
.hh-when {
  position: relative; z-index: 1;
  margin: 20px auto 0; padding: 16px 14px;
  max-width: 300px;
  border: 2.5px dashed var(--blue); border-radius: 16px;
  background: #fff;
}
.hh-when__time { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--blue-d); }
.hh-when__date { font-family: var(--f-head); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: 3px; }
.hh-when__lunar { margin-top: 2px; font-size: 14px; font-style: italic; }
.hh-when__venue { margin-top: 8px; font-weight: 700; font-size: 16px; }
.hh-invite__deco { position: absolute; bottom: -8px; width: 80px; height: 110px; pointer-events: none; }
.hh-invite__deco--l { left: -14px; }
.hh-invite__deco--r { right: -14px; }

/* ---------- 3. hai gia đình ---------- */
.hh-family { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: start; gap: 6px; padding-top: 36px; padding-bottom: 10px; }
.hh-family__side { font-family: var(--f-head); font-weight: 800; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); }
.hh-family__parents { margin-top: 6px; font-weight: 700; font-size: 15px; line-height: 1.55; }
.hh-family__addr { margin-top: 4px; font-size: 14px; line-height: 1.4; }
.hh-family__mid { width: 30px; height: 30px; margin-top: 30px; }
.hh-family__full { grid-column: 1 / -1; margin-top: 20px; font-size: 15px; font-weight: 600; line-height: 1.6; }
.hh-family__full b { font-family: var(--f-head); font-weight: 800; font-size: 21px; color: var(--blue-d); white-space: nowrap; }
.hh-family__full span { font-family: var(--f-hand); font-size: 20px; color: var(--pink-d); }

/* ---------- 4. lời hay ---------- */
.hh-quote { position: relative; margin: 16px 28px 0; padding: 18px 14px; text-align: center; }
.hh-quote p { font-family: var(--f-hand); font-size: 21px; line-height: 1.5; color: var(--blue-d); }
.hh-quote__spark { position: absolute; right: 0; top: 0; width: 22px; height: 22px; }

/* ---------- 5. lễ & tiệc ---------- */
.hh-events { display: grid; gap: 16px; padding-top: 22px; }
.hh-event {
  padding: 20px 16px 22px;
  border: 2.5px solid var(--ink); border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 var(--ink);
}
.hh-event--party { background: var(--blue-l); }
.hh-event__title { font-family: var(--f-head); font-weight: 800; font-size: 21px; letter-spacing: 1px; text-transform: uppercase; color: var(--blue-d); }
.hh-event__time { margin-top: 2px; font-family: var(--f-head); font-weight: 800; font-size: 40px; line-height: 1.1; }
.hh-event__date { font-weight: 700; font-size: 16px; }
.hh-event__lunar { margin-top: 2px; font-size: 14px; font-style: italic; }
.hh-event__place { margin-top: 8px; font-weight: 700; font-size: 16px; }
.hh-event__addr { margin-top: 2px; font-size: 14px; line-height: 1.45; }
.t-hoat-hinh .vela-event { border: 2.5px solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); font-family: var(--f-body); }
.t-hoat-hinh .vela-events { padding: 0 20px 10px; }

/* ---------- 6. lịch ---------- */
.hh-cal {
  padding: 18px 14px 18px;
  border: 2.5px solid var(--ink); border-radius: 18px;
  background: var(--paper);
}
.hh-cal__head { display: flex; align-items: baseline; justify-content: center; gap: 12px; }
.hh-cal__year { font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--blue-d); }
.hh-cal__month { font-family: var(--f-hand); font-size: 26px; color: var(--pink-d); }
.hh-cal__body { display: grid; grid-template-columns: 1fr 110px; gap: 12px; align-items: center; margin-top: 10px; }
.hh-cal__grid { display: grid; gap: 2px; }
.hh-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.hh-cal__row span { position: relative; display: grid; place-items: center; height: 30px; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.hh-cal__row--head span { height: 24px; font-size: 12px; font-weight: 800; color: var(--blue); }
.hh-cal__row span.is-sun { color: var(--pink-d); }
.hh-cal__row span i { position: relative; font-style: normal; }
.hh-cal__row span.is-day i { color: var(--ink); font-weight: 800; }
.hh-cal__heart { position: absolute; left: 50%; top: 50%; width: 34px; height: 31px; margin: -15px 0 0 -17px; }
.hh-cal__photo {
  height: 170px; overflow: hidden;
  border: 5px solid #fff; border-radius: 60px 60px 14px 14px;
  box-shadow: 0 0 0 2.5px var(--ink);
  transform: rotate(3deg);
}
.hh-countdown { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--blue); }
.hh-countdown__label { font-family: var(--f-hand); font-size: 20px; color: var(--blue-d); }
.hh-countdown__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.hh-countdown__row p { display: grid; gap: 2px; padding: 8px 0; border: 2.5px solid var(--ink); border-radius: 14px; background: var(--blue); color: #fff; }
.hh-countdown__row b { font-family: var(--f-head); font-weight: 800; font-size: 26px; line-height: 1.1; }
.hh-countdown__row span { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- 7. chương trình ---------- */
.hh-timeline__card { padding: 24px 16px 18px; }
.hh-tl { position: relative; margin: 18px 0 0; padding: 0; list-style: none; }
.hh-tl::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 0; border-left: 3px dotted rgba(255, 255, 255, .8); }
.hh-tl__item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; min-height: 84px; padding: 4px 0; }
.hh-tl__item::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border: 2.5px solid var(--ink); border-radius: 50%; background: var(--gold);
}
.hh-tl__text { display: grid; gap: 1px; text-align: left; }
.hh-tl__text b { font-family: var(--f-head); font-weight: 800; font-size: 24px; line-height: 1.1; }
.hh-tl__text span { font-weight: 700; font-size: 15px; line-height: 1.35; text-wrap: balance; }
.hh-tl__text small { font-size: 13px; opacity: .9; }
.hh-tl__icon { width: 84px; height: 63px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 2.5px var(--ink); justify-self: start; }
.hh-tl__item.is-left .hh-tl__text { order: -1; text-align: right; }
.hh-tl__item.is-left .hh-tl__icon { justify-self: start; }
.hh-tl__item:not(.is-left) .hh-tl__icon { order: -1; justify-self: end; }
.hh-spark--3 { right: 12px; top: 18px; }

/* ---------- 8. bản đồ ---------- */
.hh-map__art { display: block; margin-top: 16px; text-decoration: none; }
.hh-map__art svg { display: block; width: 100%; height: auto; }
.hh-map__pin { animation: hh-bounce 1.8s ease-in-out infinite; transform-origin: 234px 124px; }
@keyframes hh-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hh-map__name { margin-top: 14px; font-family: var(--f-head); font-weight: 800; font-size: 22px; color: var(--blue-d); }
.hh-map__addr { margin-top: 2px; font-size: 15px; line-height: 1.5; }

/* ---------- 9. album ---------- */
.hh-album__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 18px; }
.hh-album__item {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 6px solid #fff; border-radius: 16px;
  box-shadow: 0 0 0 2.5px var(--ink), 0 6px 0 rgba(45, 42, 62, .15);
  background: var(--blue-l);
}
.hh-album__item--wide { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.hh-album__item:nth-child(odd) { transform: rotate(-1.6deg); }
.hh-album__item:nth-child(even) { transform: rotate(1.6deg); }
.hh-album__item--wide:nth-child(n) { transform: rotate(-.6deg); }
.t-hoat-hinh .hh-album__item[data-anim].is-in { animation-name: vela-fade-in; }

/* ---------- 10. xác nhận ---------- */
.hh-rsvp { display: flex; flex-direction: column; align-items: center; padding-top: 16px; }
.hh-rsvp__env { width: 120px; height: 84px; }
.hh-rsvp__text { margin-top: 12px; max-width: 320px; font-size: 16px; font-weight: 600; line-height: 1.55; }
.hh-rsvp .hh-btn { min-width: 250px; }
.hh-rsvp .hh-btn + .hh-btn { margin-top: 14px; }

/* ---------- 11. cảm ơn ---------- */
.hh-thanks__card { padding: 26px 16px 0; overflow: hidden; }
.hh-thanks__text { position: relative; z-index: 1; margin-top: 10px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.hh-thanks__scene { position: relative; height: 330px; margin: 16px -16px 0; }
.hh-thanks__photo {
  position: absolute; left: 76px; right: 76px; top: 0; height: 260px;
  overflow: hidden;
  border: 6px solid #fff; border-radius: 120px 120px 0 0;
  box-shadow: 0 0 0 2.5px var(--ink);
}
.hh-thanks__photo img { object-position: 50% 30%; }
.hh-thanks__land { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; }
.hh-cloud { position: absolute; width: 72px; height: 36px; animation: hh-drift 7s ease-in-out infinite; }
.hh-cloud--1 { left: 6px; top: 232px; width: 60px; height: 30px; }
.hh-cloud--2 { right: 6px; top: 290px; width: 54px; height: 27px; animation-delay: -3s; }
@keyframes hh-drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(10px); } }

/* ---------- 12. nơ + tên ---------- */
.hh-end { padding: 30px 20px 10px; text-align: center; }
.hh-bow { display: block; width: 190px; height: 114px; margin: 0 auto; }
.hh-end__names { margin-top: 10px; font-family: var(--f-head); font-weight: 800; font-size: 30px; color: var(--blue-d); }
.hh-end__names .hh-ico { width: 22px; height: 20px; vertical-align: 1px; }
.hh-end__date { font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: 4px; }
.hh-end__flowers { display: block; width: 120px; height: 50px; margin: 10px auto 0; }
.hh-footer { display: flex; justify-content: center; gap: 6px; padding: 10px 0 4px; font-size: 13px; color: #6b6780; }

/* ---------- màn mở thiệp ---------- */
.t-hoat-hinh .vela-gate__door {
  background:
    radial-gradient(circle, rgba(111, 134, 216, .18) 0 3px, transparent 3.5px) 0 0 / 26px 26px,
    var(--cream);
}
.t-hoat-hinh .vela-gate__card {
  background: var(--blue);
  border: 6px solid #fff; border-radius: 22px;
  box-shadow: 0 0 0 2.5px var(--ink), 0 12px 30px rgba(45, 42, 62, .25);
  font-family: var(--f-body);
}
.t-hoat-hinh .vela-gate__card::before {
  content: ""; position: absolute; left: 50%; top: -46px;
  width: 120px; height: 72px; margin-left: -60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120'%3E%3Cg stroke='%232d2a3e' stroke-width='5' stroke-linejoin='round' fill='%23f7b9c8'%3E%3Cpath d='M92 58C70 30 30 8 14 20C0 32 8 70 22 84C38 98 72 80 92 66Z'/%3E%3Cpath d='M108 58C130 30 170 8 186 20C200 32 192 70 178 84C162 98 128 80 108 66Z'/%3E%3Cpath d='M92 70C84 90 72 104 60 116L78 116L88 104L96 118C98 100 100 84 100 72Z' fill='%23f4a6b8'/%3E%3Cpath d='M108 70C116 90 128 104 140 116L122 116L112 104L104 118C102 100 100 84 100 72Z' fill='%23f4a6b8'/%3E%3Crect x='86' y='48' width='28' height='26' rx='10' fill='%23f4a6b8'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.t-hoat-hinh .vela-gate__label { font-weight: 700; font-size: 14px; }
.t-hoat-hinh .vela-gate__guest { font-family: var(--f-hand); font-size: 38px; color: #fff; text-shadow: 2px 2px 0 var(--blue-d); }
.t-hoat-hinh .vela-gate__names { font-family: var(--f-head); font-weight: 800; font-size: 30px; }
.t-hoat-hinh .vela-gate__date { font-family: var(--f-head); font-weight: 700; }
.t-hoat-hinh .vela-gate__open { border: 2.5px solid var(--ink); background: var(--pink); color: var(--ink); font-family: var(--f-head); box-shadow: 0 4px 0 var(--ink); }
.t-hoat-hinh .vela-btn { background: var(--blue); color: #fff; }
