/* ============================================================
   invite.css — Phần riêng của thiệp (bổ sung cho tw.css)
   - Font cục bộ, biến màu nền
   - Keyframes & lớp hiệu ứng lấy từ mẫu gốc
   - Nút nổi (nhạc / lên đầu trang), thông báo, form xác nhận
   ============================================================ */

/* ---------- Font cục bộ ---------- */
@font-face {
  font-family: "Lora";
  src: url("../fonts/Lora-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Viaoda Libre";
  src: url("../fonts/ViaodaLibre-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Pattaya";
  src: url("../fonts/Pattaya-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --color-base-100: oklch(100% 0 0);
  --color-base-200: oklch(98% 0 0);
  --color-base-300: oklch(95% 0 0);
  --wine: #511419;
  --ivory: #ece4d8;
  --gold: #c9a24a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  -webkit-tap-highlight-color: transparent;
}

body.is-locked {
  overflow: hidden;
}

/* ---------- Keyframes gốc ---------- */
@keyframes envelope-away {
  0% {
    transform: translatey(0)rotate(0deg);
    opacity: 1
  }

  15% {
    transform: translatey(10px)rotate(.5deg);
    opacity: 1
  }

  100% {
    transform: translatey(-120vh)rotate(-2deg);
    opacity: 0
  }
}

@keyframes particle-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%)scale(0)rotate(0deg)
  }

  15% {
    opacity: 1;
    transform: translate(-50%, -50%)scale(1.3)rotate(var(--rot-start, 15deg))
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))scale(.6)rotate(var(--rot-end, 180deg))
  }
}

@keyframes seal-pulse {

  0%,
  100% {
    transform: translate(-50%, -50%)scale(1);
    box-shadow: 0 4px 20px var(--shadow-color)
  }

  50% {
    transform: translate(-50%, -50%)scale(1.06);
    box-shadow: 0 6px 35px var(--shadow-color)
  }
}

@keyframes seal-break {
  0% {
    transform: translate(-50%, -50%)scale(1)rotate(0deg);
    opacity: 1;
    filter: brightness(1)
  }

  30% {
    transform: translate(-50%, -50%)scale(1.15)rotate(5deg);
    opacity: .9;
    filter: brightness(1.3)
  }

  60% {
    transform: translate(-50%, -50%)scale(1.05)rotate(-3deg);
    opacity: .5;
    filter: brightness(1.5)
  }

  100% {
    transform: translate(-50%, -50%)scale(0)rotate(15deg);
    opacity: 0;
    filter: brightness(2)
  }
}

@keyframes seal-ring {
  0% {
    transform: translate(-50%, -50%)scale(.8);
    opacity: .8
  }

  100% {
    transform: translate(-50%, -50%)scale(2.5);
    opacity: 0
  }
}

@keyframes shine {
  0% {
    left: -100%
  }

  50%,
  100% {
    left: 100%
  }
}

@keyframes ambient-fall {
  0% {
    transform: translatey(-8vh)translatex(0)rotate(0deg);
    opacity: 0
  }

  10% {
    opacity: .5
  }

  50% {
    transform: translatey(48vh)translatex(var(--sway, 20px))rotate(180deg);
    opacity: .6
  }

  92% {
    opacity: .45
  }

  100% {
    transform: translatey(105vh)translatex(0)rotate(360deg);
    opacity: 0
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translatey(10px)
  }

  to {
    opacity: 1;
    transform: translatey(0)
  }
}

@keyframes ienvFloat {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -7px
  }
}

@keyframes ienvFloatMain {

  0%,
  100% {
    translate: -15% 0
  }

  50% {
    translate: -15% -7px
  }
}

@keyframes ienvShadowPulse {

  0%,
  100% {
    transform: scalex(1);
    opacity: .28
  }

  50% {
    transform: scalex(.9);
    opacity: .16
  }
}

@keyframes ienvSparkleAnim {

  0%,
  100% {
    opacity: 0;
    transform: scale(.4)
  }

  50% {
    opacity: 1;
    transform: scale(1.15)
  }
}

@keyframes ienvHintPulse {

  0%,
  100% {
    opacity: .45
  }

  50% {
    opacity: 1
  }
}

@keyframes ienvGrow {
  from {
    transform: scale(1)
  }

  to {
    transform: scale(1.12)
  }
}

@keyframes ienvWave {
  0% {
    transform: scale(1.12)rotate(0deg)
  }

  20% {
    transform: scale(1.12)rotate(-6deg)
  }

  40% {
    transform: scale(1.12)rotate(4.5deg)
  }

  60% {
    transform: scale(1.12)rotate(-3deg)
  }

  80% {
    transform: scale(1.12)rotate(1.5deg)
  }

  100% {
    transform: scale(1.12)rotate(0deg)
  }
}

@keyframes ienvBackWave {

  0%,
  100% {
    rotate: 0deg
  }

  20% {
    rotate: -1deg
  }

  40% {
    rotate: 2deg
  }

  60% {
    rotate: -2.5deg
  }

  80% {
    rotate: 1.5deg
  }
}

@keyframes drFloat {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-8px)
  }
}

@keyframes fab-spin {
  to {
    transform: rotate(360deg)
  }
}

/* ---------- Phong bì mừng cưới (gift) ---------- */
.ienv-shadow {
  animation: ienvShadowPulse 3s ease-in-out infinite
}

.ienv-card {
  transition: transform .35s ease;
  transform-origin: 50% 92%;
  animation: ienvFloatMain 3s ease-in-out infinite
}

.ienv-back {
  transition: rotate .3s ease;
  animation: ienvFloat 5.2s ease-in-out .5s infinite
}

.group:hover .ienv-card,
.group:focus-visible .ienv-card {
  animation: ienvFloatMain 3s ease-in-out infinite, ienvGrow .35s ease forwards, ienvWave 1.1s ease-in-out .35s infinite
}

.group:hover .ienv-back,
.group:focus-visible .ienv-back {
  animation: ienvFloat 5.2s ease-in-out .5s infinite, ienvBackWave 2.2s ease-in-out infinite
}

.ienv-hint {
  animation: ienvHintPulse 2s ease-in-out infinite
}

.ienv-sparkle {
  animation: ienvSparkleAnim 2s ease-in-out infinite
}

.ienv-sparkle-2 {
  animation: ienvSparkleAnim 2s ease-in-out .6s infinite
}

.ienv-sparkle-3 {
  animation: ienvSparkleAnim 2s ease-in-out 1.2s infinite
}

.ienv-sparkle-4 {
  animation: ienvSparkleAnim 2s ease-in-out 1.7s infinite
}

/* ---------- Mở thiệp: vòng lan toả & tim bung ---------- */
.intro-ring {
  position: fixed;
  width: 56px;
  height: 56px;
  border: 2px solid #c9a24a;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  animation: seal-ring .8s ease-out forwards;
  pointer-events: none;
  z-index: 40
}

.intro-particle {
  position: fixed;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  line-height: 0
}

/* ---------- Tem dán bìa mở thiệp ---------- */
.intro-stamp {
  position: absolute;
  z-index: 25;
  pointer-events: none;
  width: 96px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  box-shadow: none;
  transition: transform .3s ease;
}

.intro-stamp-left {
  left: 10px;
  bottom: 20px;
  transform: rotate(-8deg);
}

.intro-stamp-right {
  right: 10px;
  bottom: 20px;
  transform: rotate(7deg);
}

@media (min-width:768px) {
  .intro-stamp {
    width: 142px;
    height: 165px
  }

  .intro-stamp-left {
    left: 24px;
    bottom: 28px
  }

  .intro-stamp-right {
    right: 24px;
    bottom: 28px
  }
}

.intro-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Hoa trôi theo cuộn ---------- */
[data-parallax] {
  will-change: transform
}

/* ---------- Nút nổi ---------- */
.fab-wrap {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity .4s ease
}

body.is-locked #btnTop {
  display: none
}

.fab {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: var(--ivory);
  border: 1px solid rgba(236, 228, 216, .35);
  box-shadow: 0 4px 16px rgba(81, 20, 25, .35);
  cursor: pointer;
  transition: transform .2s ease, opacity .3s ease, box-shadow .25s ease;
  position: relative
}

.fab:hover {
  transform: scale(1.08)
}

.fab svg {
  width: 20px;
  height: 20px
}

/* Nút nhạc tròn đỏ viền kép theo chuẩn thiết kế thiệp */
#btnMusic.fab-music {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 38% 36%, #781c24 0%, #511419 62%, #32080c 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, .2) !important;
  box-shadow: 0 6px 20px rgba(48, 6, 9, .45), inset 0 1px 2px rgba(255, 255, 255, .25) !important;
  overflow: visible;
}

#btnMusic .music-inner-ring {
  position: absolute;
  inset: 4px;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  pointer-events: none;
}

#btnMusic .music-note-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35));
}

#btnMusic .ico-on {
  display: none
}

#btnMusic .ico-off {
  display: block
}

#btnMusic.is-playing .ico-on {
  display: block
}

#btnMusic.is-playing .ico-off {
  display: none
}

#btnMusic.is-playing {
  animation: fab-spin 4s linear infinite
}

#btnMusic.is-playing:hover {
  animation-play-state: paused
}

/* Nốt nhạc bay lơ lửng khi phát */
.music-floating-note {
  position: absolute;
  top: -4px;
  color: #c9a24a;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  animation: floatNoteUp 1.8s ease-out forwards;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  z-index: 70;
}

@keyframes floatNoteUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0
  }

  20% {
    opacity: 1
  }

  100% {
    transform: translateY(-42px) scale(1.15) rotate(22deg);
    opacity: 0
  }
}

#btnTop {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px)
}

#btnTop.is-show {
  opacity: 1;
  visibility: visible;
  transform: none
}

#btnTop.is-show:hover {
  transform: scale(1.08)
}

/* ---------- Thông báo ---------- */
#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--wine);
  color: var(--ivory);
  font: 600 14px/1.4 "Times New Roman", serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s ease, transform .3s ease
}

#toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0)
}

/* ---------- Form xác nhận tham dự ---------- */
.rsvp-form input[type=text],
.rsvp-form input[type=number],
.rsvp-form textarea {
  border-color: rgba(81, 20, 25, .25);
  background: #fff;
  color: var(--wine)
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(81, 20, 25, .12)
}

.rsvp-form ::placeholder {
  color: rgba(81, 20, 25, .45)
}

.rsvp-chip {
  position: relative;
  display: block;
  cursor: pointer
}

.rsvp-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.rsvp-chip span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(81, 20, 25, .25);
  font-size: 14px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease
}

.rsvp-chip:hover span {
  border-color: var(--wine)
}

.rsvp-chip input:checked+span {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--ivory)
}

.rsvp-chip input:focus-visible+span {
  outline: 2px solid var(--gold);
  outline-offset: 2px
}

/* ---------- Hiệu ứng nổi bật: Trái tim ngày cưới + Thêm vào lịch + Xác nhận tham dự ---------- */
/* Trái tim ngày cưới: đập nhịp tim nhẹ nhàng, sóng tim lan mảnh, không dùng màu vàng */
@keyframes calHeartBeat {

  0%,
  100% {
    transform: scale(1)
  }

  15% {
    transform: scale(1.16)
  }

  30% {
    transform: scale(1)
  }

  45% {
    transform: scale(1.1)
  }

  70% {
    transform: scale(1)
  }
}

@keyframes calHeartGlow {

  0%,
  70%,
  100% {
    filter: drop-shadow(0 1px 3px rgba(81, 20, 25, .35))
  }

  15%,
  45% {
    filter: drop-shadow(0 0 8px rgba(163, 24, 42, .75)) drop-shadow(0 1px 3px rgba(81, 20, 25, .4))
  }
}

@keyframes calHeartRipple {
  0% {
    transform: scale(.95);
    opacity: .75
  }

  100% {
    transform: scale(2.05);
    opacity: 0
  }
}

.cal-heart-active {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 33px;
  margin: -2px 0;
  display: flex;
  align-items: center;
  justify-content: center
}

.cal-heart-beat {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: calHeartBeat 1.5s ease-in-out infinite, calHeartGlow 1.5s ease-in-out infinite
}

.cal-heart-beat svg,
.cal-heart-ripple svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible
}

.cal-heart-num {
  position: relative;
  z-index: 1;
  margin-top: -4px;
  color: #fff;
  font: 700 13px/1 "Times New Roman", serif
}

.cal-heart-ripple {
  position: absolute;
  inset: 0;
  color: rgba(138, 24, 36, .65);
  pointer-events: none;
  animation: calHeartRipple 1.8s ease-out infinite
}

.cal-heart-ripple-2,
.cal-spark {
  display: none
}

@media (min-width:768px) {
  .cal-heart-active {
    width: 40px;
    height: 37px
  }

  .cal-heart-num {
    font-size: 14px
  }
}

/* Nút Thêm vào lịch: chữ kem gạch chân đơn giản, phát sáng trắng kem dịu nhẹ */
@keyframes addCalPulse {

  0%,
  100% {
    opacity: .88;
    text-shadow: 0 0 6px rgba(236, 228, 216, .2)
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(255, 252, 245, .85), 0 0 22px rgba(236, 228, 216, .45)
  }
}

.btn-add-cal {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px 5px;
  color: #ece4d8 !important;
  font: 700 14px/1.2 "Times New Roman", serif;
  letter-spacing: .03em;
  text-decoration: none !important;
  border-bottom: 1.5px solid rgba(236, 228, 216, .85);
  animation: addCalPulse 2.2s ease-in-out infinite;
  transition: transform .2s ease, border-color .2s ease
}

.btn-add-cal:hover {
  transform: translateY(-1px);
  border-bottom-color: #fff
}

/* Nút Xác nhận tham dự: viên thuốc màu kem nguyên bản, nhịp thở & phát sáng kem nhẹ nhàng */
@keyframes rsvpBreath {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25), 0 0 10px rgba(236, 228, 216, .22)
  }

  50% {
    transform: scale(1.035);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 22px rgba(255, 250, 240, .65)
  }
}

.btn-rsvp-glow {
  position: relative;
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: rsvpBreath 2.4s ease-in-out infinite;
  transition: transform .2s ease
}

.btn-rsvp-face {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: #ece4d8;
  color: #511419;
  font: 600 14px/1.2 Baskerville, "Times New Roman", serif;
  letter-spacing: .06em
}

@media (min-width:768px) {
  .btn-rsvp-face {
    padding: 13px 38px;
    font-size: 15px
  }
}

.btn-rsvp-glow:hover {
  animation-play-state: paused;
  transform: scale(1.04)
}

.btn-rsvp-glow:focus-visible {
  outline: 2px solid #ece4d8;
  outline-offset: 3px
}

.btn-rsvp-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-20deg);
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none
}

/* Chấm tròn lịch trình: sáng lần lượt từ trên xuống, kèm vòng sáng lan ra */
@keyframes tlDotGlow {

  0%,
  45%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(236, 228, 216, .15), 0 0 8px rgba(243, 220, 150, .55)
  }

  18% {
    transform: scale(1.4);
    box-shadow: 0 0 0 3px rgba(243, 220, 150, .35), 0 0 12px rgba(255, 236, 190, .95), 0 0 26px rgba(233, 196, 106, .75)
  }
}

@keyframes tlDotRing {
  0% {
    transform: scale(1);
    opacity: .85
  }

  55%,
  100% {
    transform: scale(3.2);
    opacity: 0
  }
}

.tl-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffaf0 0%, #f6e3b4 55%, #e2be6f 100%);
  box-shadow: 0 0 0 2px rgba(236, 228, 216, .15), 0 0 8px rgba(243, 220, 150, .6);
  animation: tlDotGlow 2.8s ease-in-out var(--d, 0s) infinite
}

.tl-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 220, 150, .9);
  pointer-events: none;
  animation: tlDotRing 2.8s ease-out var(--d, 0s) infinite
}

/* ---------- Khối Thông Tin Lễ Cưới (Bố cục cân đối, chữ rõ ràng, dãn dòng đều) ---------- */
.info-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 4px 4px 6px;
  font-family: Baskerville, 'Times New Roman', serif;
  color: var(--ivory);
}

@media (min-width:768px) {
  .info-card-inner {
    gap: 26px;
    padding: 6px 14px 8px;
  }
}

.info-title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: -14px;
  color: rgba(243, 225, 182, 0.72);
  font-size: 13px;
  line-height: 1;
}

.info-title-ornament span {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 225, 182, 0.55), transparent);
}

.info-title-ornament i {
  font-style: normal;
}

.info-parents-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: start;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

@media (min-width:768px) {
  .info-parents-grid {
    gap: 24px;
    max-width: 470px;
  }
}

.info-parents-divider {
  width: 1px;
  align-self: stretch;
  min-height: 84px;
  background: linear-gradient(180deg, transparent 0%, rgba(243, 225, 182, 0.52) 20%, rgba(243, 225, 182, 0.52) 80%, transparent 100%);
}

.info-parent-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  gap: 4px;
}

.info-parent-side {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f3e1b6;
  margin-bottom: 2px;
}

.info-parent-prefix {
  font-size: 13px;
  color: rgba(236, 228, 216, 0.78);
  line-height: 1.3;
}

.info-parent-name {
  font-size: 15px;
  font-weight: 700;
  color: #fffdf9;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.info-parent-addr {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(236, 228, 216, 0.78);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

@media (min-width:768px) {
  .info-parent-side {
    font-size: 14px
  }

  .info-parent-prefix {
    font-size: 13.5px
  }

  .info-parent-name {
    font-size: 16.5px
  }

  .info-parent-addr {
    font-size: 13.5px
  }
}

.info-ceremony-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-top: 2px;
}

.info-ceremony-head {
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(236, 228, 216, 0.85);
}

.info-ceremony-sub {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f3e1b6;
  line-height: 1.4;
}

@media (min-width:768px) {
  .info-ceremony-head {
    font-size: 14.5px
  }

  .info-ceremony-sub {
    font-size: 17.5px
  }
}

.info-couple-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 10px;
  padding: 4px 0;
}

.info-person-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.info-person-name {
  margin: 0;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Viaoda Libre', 'The Nautigal', cursive;
  font-size: 42px;
  line-height: 1.18;
  color: #fffdf9;
  text-transform: capitalize;
  white-space: nowrap;
}

.info-person-role {
  margin-top: 3px;
  font-family: Baskerville, 'Times New Roman', serif;
  font-size: 11.5px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(236, 228, 216, 0.62);
}

.info-couple-amp {
  font-family: 'Ms Madi', 'The Nautigal', cursive;
  font-size: 36px;
  line-height: 1;
  color: rgba(236, 228, 216, 0.85);
  margin: 4px 0;
}

@media (min-width:768px) {
  .info-person-name {
    font-size: 48px
  }

  .info-person-role {
    font-size: 13px
  }

  .info-couple-amp {
    font-size: 40px
  }
}

.info-time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 100%;
  padding-top: 4px;
}

.info-place-label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 228, 216, 0.85);
}

.info-place-val {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3e1b6;
  margin-top: -6px;
  line-height: 1.35;
}

.info-time-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fffdf9;
  margin-top: 2px;
}

.info-time-dot {
  color: #f3e1b6;
}

.info-date-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 300px;
  margin: 2px auto;
}

.info-date-wing {
  border-top: 1px solid rgba(243, 225, 182, 0.42);
  border-bottom: 1px solid rgba(243, 225, 182, 0.42);
  padding: 6px 4px;
  font-family: 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fffdf9;
  text-align: center;
  white-space: nowrap;
}

.info-date-day {
  font-family: 'Times New Roman', serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: #f3e1b6;
  padding: 0 4px;
}

.info-lunar-row {
  font-size: 13.5px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: rgba(236, 228, 216, 0.82);
}

@media (min-width:768px) {
  .info-place-label {
    font-size: 15px
  }

  .info-place-val {
    font-size: 21px
  }

  .info-time-row {
    font-size: 15.5px
  }

  .info-date-banner {
    max-width: 340px;
    gap: 18px
  }

  .info-date-wing {
    font-size: 15.5px;
    padding: 7px 6px
  }

  .info-date-day {
    font-size: 50px
  }

  .info-lunar-row {
    font-size: 14.5px
  }
}

/* ---------- Khung Thiệp Sổ Lưu Bút (Rộng bằng khối trên + viền nét đứt + tem góc trên phải + giữ hoa góc dưới trái) ---------- */
.gb-card-box {
  position: relative;
  width: 100%;
  margin: 56px auto 68px;
}

@media (min-width:768px) {
  .gb-card-box {
    margin: 74px auto 86px;
  }
}

.gb-paper-bg,
.gb-flower-keep {
  position: absolute;
  left: -19.55%;
  top: -25.45%;
  width: 136.98%;
  height: 147.28%;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.gb-paper-bg {
  z-index: 1;
  opacity: .97;
  filter: drop-shadow(4px 6px 10px rgba(0, 0, 0, 0.2));
}

.gb-flower-keep {
  z-index: 4;
  clip-path: circle(14.5% at 17.2% 79.2%);
}

.gb-card-overlay {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid rgba(122, 28, 36, 0.24);
  box-shadow: inset 0 0 26px rgba(181, 139, 47, 0.1);
  z-index: 2;
  pointer-events: none;
}

.gb-card-seal {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: radial-gradient(circle at 32% 32%, #7a1c24, #511419);
  border: 1.5px solid rgba(201, 162, 74, 0.78);
  color: #f3e8de;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  z-index: 3;
}

.gb-dashed-inner {
  position: absolute;
  inset: 12px;
  border: 1.5px dashed rgba(81, 20, 25, 0.46);
  border-radius: 10px;
}

@media (min-width:768px) {
  .gb-dashed-inner {
    inset: 16px;
    border-width: 1.75px;
  }

  .gb-card-seal {
    top: -16px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

.gb-corner {
  position: absolute;
  color: rgba(122, 28, 36, 0.55);
  font-size: 11px;
  line-height: 1;
}

.gb-tl {
  top: 5px;
  left: 7px
}

.gb-tr {
  top: 5px;
  right: 7px
}

.gb-br {
  bottom: 5px;
  right: 7px
}

.gb-corner-stamp {
  position: absolute;
  top: -28px;
  right: -22px;
  width: 108px;
  height: 124px;
  transform: rotate(11deg);
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  box-shadow: none;
}

@media (min-width:768px) {
  .gb-corner-stamp {
    top: -38px;
    right: -32px;
    width: 148px;
    height: 168px;
  }
}

.gb-corner-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gb-card-content {
  position: relative;
  z-index: 5;
  padding: 32px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width:768px) {
  .gb-card-content {
    padding: 44px 48px 46px;
  }
}

#formWish.gb-wish-form {
  width: 100%;
  max-width: 100% !important;
  margin: 14px auto 0;
}

@media (min-width:768px) {
  #formWish.gb-wish-form {
    margin: 18px auto 0;
  }
}

.gb-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 0;
}

@media (min-width:768px) {
  .gb-header-block {
    gap: 6px;
  }
}

.gb-header-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(122, 28, 36, 0.55);
  font-size: 12px;
  line-height: 1;
}

.gb-header-divider span {
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 28, 36, 0.45), transparent);
}

.gb-header-divider i {
  font-style: normal;
}

.gb-form-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px;
}

@media (min-width:768px) {
  .gb-form-inner {
    gap: 14px;
    padding: 6px 4px;
  }
}

.gb-sender-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1.5px dashed rgba(81, 20, 25, 0.44);
  background: rgba(255, 252, 246, 0.78);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

@media (min-width:768px) {
  .gb-sender-row {
    padding: 8px 14px;
    gap: 10px;
  }
}

.gb-sender-row:focus-within {
  border-color: #511419;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 2px 10px rgba(81, 20, 25, 0.08);
}

.gb-sender-tag {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a1c24;
  padding-right: 8px;
  border-right: 1px dashed rgba(81, 20, 25, 0.28);
  white-space: nowrap;
}

.gb-sender-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #511419;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 600;
}

.gb-sender-input::placeholder {
  color: rgba(81, 20, 25, 0.45);
  font-weight: 400;
  font-style: italic;
}

.gb-message-box {
  position: relative;
  border-radius: 11px;
  border: 1.5px dashed rgba(81, 20, 25, 0.44);
  background-color: rgba(255, 252, 246, 0.78);
  background-image: repeating-linear-gradient(transparent, transparent 25px, rgba(81, 20, 25, 0.07) 25px, rgba(81, 20, 25, 0.07) 26px);
  background-position: 0 8px;
  padding: 8px 12px;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

@media (min-width:768px) {
  .gb-message-box {
    padding: 10px 14px;
  }
}

.gb-message-box:focus-within {
  border-color: #511419;
  background-color: rgba(255, 253, 250, 0.96);
  box-shadow: 0 2px 10px rgba(81, 20, 25, 0.08);
}

.gb-message-textarea {
  width: 100%;
  height: 58px;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: #511419;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 13.5px;
  line-height: 26px;
}

@media (min-width:768px) {
  .gb-message-textarea {
    height: 98px;
    font-size: 14.5px;
  }
}

.gb-message-textarea::placeholder {
  color: rgba(81, 20, 25, 0.45);
  font-style: italic;
}

.gb-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-left: 20px;
}

@media (min-width:768px) {
  .gb-actions-row {
    padding-left: 28px;
  }
}

.gb-idea-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.25px dashed rgba(81, 20, 25, 0.42);
  background: rgba(255, 251, 243, 0.85);
  color: #511419;
  font-family: 'Times New Roman', serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.gb-idea-btn:hover {
  transform: translateY(-1px);
  background: #fffdf8;
  border-color: #511419;
}

.gb-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 74, 0.55);
  background: linear-gradient(135deg, #6b1a21 0%, #511419 100%);
  color: #f5ede2;
  font-family: 'Times New Roman', serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 3px 10px rgba(81, 20, 25, 0.22);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (min-width:768px) {
  .gb-submit-btn {
    padding: 8px 24px;
    font-size: 13.5px;
  }
}

.gb-submit-btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 5px 14px rgba(81, 20, 25, 0.3);
}

/* ---------- Lời chúc mới hiện lên (Thiết kế Bưu thiếp & Tem) ---------- */
#wishList>* {
  animation: fade-in .4s ease-out both
}

.wish-postcard {
  position: relative;
  background: linear-gradient(135deg, #fffdf9 0%, #f9f1e4 100%);
  border: 1px solid rgba(138, 28, 42, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 18px rgba(81, 20, 25, 0.08), inset 0 0 0 4px #fffdf9, inset 0 0 0 5px rgba(201, 162, 74, 0.38);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.wish-postcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(81, 20, 25, 0.13), inset 0 0 0 4px #fffdf9, inset 0 0 0 5px rgba(201, 162, 74, 0.55);
}

.wish-postcard::before {
  content: "❝";
  position: absolute;
  top: 2px;
  left: 10px;
  font-family: Georgia, serif;
  font-size: 44px;
  line-height: 1;
  color: rgba(81, 20, 25, 0.07);
  pointer-events: none;
}

.wish-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.wish-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(81, 20, 25, 0.18);
}

.wish-author {
  font-family: 'Viaoda Libre', 'Times New Roman', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--wine);
  letter-spacing: .02em;
}

.wish-badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(81, 20, 25, 0.08);
  color: var(--wine);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.wish-time {
  font-size: 11px;
  color: rgba(81, 20, 25, 0.55);
  margin-left: auto;
}

.wish-msg {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3b1014;
  font-style: italic;
  word-break: break-word;
}

.wish-stamp-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.wish-postmark {
  position: absolute;
  left: -28px;
  bottom: 2px;
  width: 52px;
  height: 52px;
  opacity: .24;
  pointer-events: none;
  transform: rotate(-14deg);
  z-index: 3;
}

.wish-stamp {
  width: 64px;
  height: 76px;
  padding: 5px;
  background-color: #fdf6e9;
  background-image: radial-gradient(circle, transparent 3px, #fdf6e9 3.5px);
  background-size: 10px 10px;
  background-position: -5px -5px;
  box-shadow: 0 3px 8px rgba(81, 20, 25, 0.2);
  transform: rotate(5deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wish-postcard:nth-child(even) .wish-stamp {
  transform: rotate(-5deg);
}

.wish-stamp-inner {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(138, 28, 42, 0.32);
  background: linear-gradient(160deg, #6e1a20 0%, #511419 100%);
  color: #f3e8de;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px;
  overflow: hidden;
}

.wish-stamp.has-custom-img {
  background: transparent;
  box-shadow: none;
  filter: none;
  padding: 0;
  width: 72px;
  height: 84px;
}

.wish-stamp.has-custom-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Thiết kế riêng cho Thiệp Báo Hỷ ---------- */
.baohy-intro-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 1px solid rgba(194, 160, 87, 0.55);
  background: rgba(81, 20, 25, 0.06);
  color: #511419;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.baohy-sub-eyebrow {
  position: relative;
  z-index: 10;
  margin-top: 6px;
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(81, 20, 25, 0.78);
  text-transform: uppercase;
}

@media (min-width:768px) {
  .baohy-sub-eyebrow {
    font-size: 17px;
  }
}

.baohy-header-quote {
  position: relative;
  z-index: 10;
  margin-top: 20px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.baohy-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(81, 20, 25, 0.65);
  font-size: 13px;
}

.baohy-ornament span {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81, 20, 25, 0.45), transparent);
}

.baohy-ornament i {
  font-style: normal;
}

.baohy-header-quote p {
  font-family: 'Lora', 'Times New Roman', serif;
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(81, 20, 25, 0.82);
}

.baohy-note-box {
  position: relative;
  margin: 4px auto 2px;
  padding: 14px 16px 13px;
  max-width: 380px;
  border-radius: 10px;
  border: 1px solid rgba(236, 228, 216, 0.35);
  background: rgba(255, 247, 235, 0.07);
  box-shadow: inset 0 0 0 3px rgba(81, 20, 25, 0.25), inset 0 0 0 3.75px rgba(201, 162, 74, 0.28);
  color: #f5ede2;
  font-family: 'Lora', Baskerville, 'Times New Roman', serif;
}

.baohy-note-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(201, 162, 74, 0.2);
  border: 1px solid rgba(201, 162, 74, 0.45);
  color: #f3e1b6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.baohy-note-box p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  font-style: italic;
  color: rgba(245, 237, 226, 0.92);
}

/* ---------- Lời cảm ơn cuối thiệp (hiện tên người nhận trang trọng) ---------- */
.footer-thank-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}

.footer-ornament {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(81, 20, 25, 0.55);
  font-size: 14px;
  margin-bottom: 2px;
}

.footer-ornament span {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(81, 20, 25, 0.4), transparent);
}

.footer-ornament i {
  font-style: normal;
}

.footer-thank-text {
  margin: 0;
  white-space: pre-line;
  font-family: 'Lora', 'Times New Roman', serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #511419;
  font-style: italic;
  letter-spacing: 0.01em;
}

@media (min-width:768px) {
  .footer-thank-text {
    font-size: 19px;
  }
}

.footer-guest-name {
  font-family: inherit;
  font-style: inherit;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
}

.footer-credit-text {
  margin: 4px 0 0;
  font-family: 'Times New Roman', serif;
  font-size: 12.5px;
  color: rgba(81, 20, 25, 0.7);
}

/* ---------- Khung Bản Đồ & Nút Chỉ Đường ---------- */
.venue-map-card {
  width: 100%;
  max-width: 348px;
  padding: 6px;
  border-radius: 16px;
  background: #fbf6ee;
  border: 1.5px solid rgba(81, 20, 25, 0.22);
  box-shadow: 0 8px 24px rgba(81, 20, 25, 0.14);
}

@media (min-width:768px) {
  .venue-map-card {
    max-width: 560px;
    padding: 8px;
    border-radius: 18px;
  }
}

.venue-map-iframe {
  display: block;
  width: 100%;
  height: 270px;
  border: 0;
  border-radius: 11px;
  background: #efe8dc;
}

@media (min-width:768px) {
  .venue-map-iframe {
    height: 370px;
    border-radius: 12px;
  }
}

.btn-venue-dir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 9999px;
  background: #511419;
  color: #ece4d8 !important;
  border: 1px solid rgba(81, 20, 25, 0.15);
  font-family: Baskerville, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(81, 20, 25, 0.18);
  transition: transform .2s ease, background-color .2s ease;
}

.btn-venue-dir:hover {
  transform: translateY(-1px) scale(1.03);
  background: #681a21;
  box-shadow: 0 6px 18px rgba(81, 20, 25, 0.32);
}

/* ============================================================
   CHIM BỒ CÂU TRẮNG ĐẬU TRÊN MÉP THIỆP (đi qua lại, dừng ngẫu nhiên)
   ============================================================ */
.dove-perch{position:absolute;z-index:28;left:0;bottom:calc(100% - 3px);width:72px;height:51px;padding:0;border:0;background:none;cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;filter:drop-shadow(0 3px 5px rgba(45,9,13,.3));will-change:transform}
.dove-perch:focus-visible{outline:2px solid #e9c46a;outline-offset:4px;border-radius:8px}
@media (min-width:768px){.dove-perch{width:86px;height:61px}}
.dove-flip{display:block;width:100%;height:100%;transition:transform .3s ease}
.dove-perch.is-left .dove-flip{transform:scaleX(-1)}
.dove-svg{display:block;width:100%;height:100%;overflow:visible;transform-origin:50% 100%}

/* Lúc đứng: thở, vẫy đuôi, chớp mắt */
@keyframes doveBreathe{0%,100%{transform:scale(1)}50%{transform:scale(1.015,1.03)}}
@keyframes doveTail{0%,40%,100%{transform:rotate(0)}44%{transform:rotate(-5deg)}48%{transform:rotate(3deg)}52%{transform:rotate(0)}}
@keyframes doveBlink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
.dove-body{transform-origin:46px 49px;animation:doveBreathe 2.6s ease-in-out infinite}
.dove-head{transform-origin:57px 24px}
.dove-tail{transform-origin:32px 43px;animation:doveTail 5.2s ease-in-out infinite}
.dove-wing{transform-origin:53px 25px}
.dove-eye{transform-box:fill-box;transform-origin:50% 50%;animation:doveBlink 4.6s linear infinite}
.dove-leg{transform-box:fill-box;transform-origin:50% 0}
.dove-perch[data-dove="party"] .dove-body{animation-delay:-.8s}
.dove-perch[data-dove="party"] .dove-eye{animation-delay:-2.9s}
.dove-perch[data-dove="timeline"] .dove-body{animation-delay:-1.6s}
.dove-perch[data-dove="timeline"] .dove-eye{animation-delay:-1.4s}

/* Khi đi: đầu gật tới lui kiểu bồ câu, chân bước so le, thân nhún nhẹ */
@keyframes doveWalkBob{0%,50%,100%{transform:translateY(0)}25%,75%{transform:translateY(-.9px)}}
@keyframes doveWalkHead{0%{transform:translateX(-1.4px)}28%{transform:translateX(2px)}100%{transform:translateX(-1.4px)}}
@keyframes doveStep{0%,50%,100%{transform:translate(0,0)}22%{transform:translate(1.6px,-1.8px)}}
@keyframes doveWalkTail{0%,100%{transform:rotate(0)}50%{transform:rotate(-2.5deg)}}
.dove-perch.is-walking .dove-svg{animation:doveWalkBob .4s ease-in-out infinite}
.dove-perch.is-walking .dove-head{animation:doveWalkHead .4s ease-in-out infinite}
.dove-perch.is-walking .dove-leg-1{animation:doveStep .4s ease-in-out infinite}
.dove-perch.is-walking .dove-leg-2{animation:doveStep .4s ease-in-out -.2s infinite}
.dove-perch.is-walking .dove-tail{animation:doveWalkTail .4s ease-in-out infinite}

/* Động tác khi dừng: lắc đầu, chớp mắt 2 lần, rỉa lông, phồng ngực gù gù, mổ */
@keyframes doveShake{0%,100%{transform:rotate(0)}15%{transform:rotate(13deg)}32%{transform:rotate(-12deg)}48%{transform:rotate(9deg)}64%{transform:rotate(-7deg)}80%{transform:rotate(3deg)}}
@keyframes doveBlink2{0%,40%,100%{transform:scaleY(1)}20%,60%{transform:scaleY(.1)}80%{transform:scaleY(1)}}
@keyframes dovePreenHead{0%,100%{transform:translate(0,0) rotate(0)}25%,75%{transform:translate(-5px,4px) rotate(-38deg)}40%{transform:translate(-5.5px,4.5px) rotate(-34deg)}55%{transform:translate(-4.6px,4px) rotate(-40deg)}}
@keyframes dovePreenWing{0%,100%{transform:rotate(0)}25%,75%{transform:rotate(9deg)}}
@keyframes dovePuffBody{0%,100%{transform:scale(1)}30%,70%{transform:scale(1.06,1.09)}}
@keyframes dovePuffHead{0%,100%{transform:translate(0,0)}20%{transform:translate(0,-1.5px)}35%{transform:translate(.8px,1.2px)}50%{transform:translate(0,-1.5px)}65%{transform:translate(.8px,1.2px)}80%{transform:translate(0,0)}}
@keyframes dovePeck{0%,100%{transform:translate(0,0) rotate(0)}22%,30%{transform:translate(3px,5px) rotate(48deg)}45%{transform:translate(0,0) rotate(0)}62%,70%{transform:translate(3px,5px) rotate(48deg)}85%{transform:translate(0,0) rotate(0)}}
.dove-perch.act-shake .dove-head{animation:doveShake .75s ease-in-out}
.dove-perch.act-blink .dove-eye{animation:doveBlink2 .5s linear}
.dove-perch.act-preen .dove-head{animation:dovePreenHead 1.5s ease-in-out}
.dove-perch.act-preen .dove-wing{animation:dovePreenWing 1.5s ease-in-out}
.dove-perch.act-puff .dove-body{animation:dovePuffBody 1.4s ease-in-out}
.dove-perch.act-puff .dove-head{animation:dovePuffHead 1.4s ease-in-out}
.dove-perch.act-peck .dove-head{animation:dovePeck 1.1s ease-in-out}

/* Vui mừng: nhảy nhỏ liên tục qua lại */
@keyframes doveBounce{0%{transform:translateY(0) scale(1,1)}18%{transform:translateY(.5px) scale(1.06,.9)}50%{transform:translateY(-11px) scale(.97,1.04)}82%{transform:translateY(0) scale(1.05,.93)}100%{transform:translateY(0) scale(1,1)}}
@keyframes doveBounceWing{0%,100%{transform:rotate(0)}45%{transform:rotate(22deg)}65%{transform:rotate(6deg)}}
.dove-perch.is-bouncing .dove-svg{animation:doveBounce .44s ease-out}
.dove-perch.is-bouncing .dove-wing{animation:doveBounceWing .44s ease-in-out}
.dove-perch.is-bouncing .dove-head{animation:none}

/* Nhấn vào: nhún, bật lên, xoè cánh rồi đáp xuống */
@keyframes doveHop{
  0%{transform:translateY(0) scale(1,1)}
  14%{transform:translateY(1px) scale(1.07,.88)}
  38%{transform:translateY(-18px) scale(.96,1.05)}
  55%{transform:translateY(-18px) scale(1,1)}
  76%{transform:translateY(0) scale(1.06,.92)}
  88%{transform:translateY(-3px) scale(1,1)}
  100%{transform:translateY(0) scale(1,1)}
}
@keyframes doveWingLift{0%,14%,80%,100%{transform:rotate(0)}34%{transform:rotate(30deg)}44%{transform:rotate(10deg)}54%{transform:rotate(26deg)}66%{transform:rotate(8deg)}}
.dove-perch.is-hopping .dove-svg{animation:doveHop .9s cubic-bezier(.3,.7,.4,1)}
.dove-perch.is-hopping .dove-wing{animation:doveWingLift .9s ease-in-out}

/* Chim trên thiệp mời (màn mở thiệp): nhỏ hơn một chút cho vừa 4 con */
.dove-perch[data-dove^="intro"]{width:50px;height:35px}
@media (min-width:768px){.dove-perch[data-dove^="intro"]{width:74px;height:52px}}

/* Bay: đập cánh nhanh (thêm cánh phía xa), co chân, ngóc đầu lên */
.dove-wing-far{display:none;transform-origin:53px 25px}
@keyframes doveFlap{0%{transform:rotate(-10deg)}100%{transform:rotate(80deg)}}
@keyframes doveFlapFar{0%{transform:rotate(-4deg)}100%{transform:rotate(98deg)}}
.dove-perch.is-flying .dove-svg{transform:rotate(-14deg);transition:transform .25s ease}
.dove-perch.is-flying .dove-wing{animation:doveFlap .14s ease-in-out infinite alternate}
.dove-perch.is-flying .dove-wing-far{display:block;animation:doveFlapFar .14s ease-in-out infinite alternate}
.dove-perch.is-flying .dove-feet{opacity:0;transition:opacity .15s}
.dove-perch.is-flying .dove-head,.dove-perch.is-flying .dove-tail{animation:none}

/* Tim bay lơ lửng trên đầu */
@keyframes doveHeartFloat{
  0%{opacity:0;transform:translate(-50%,0) scale(.2)}
  15%{opacity:1;transform:translate(calc(-50% + var(--sw)),-10px) scale(var(--s))}
  40%{transform:translate(calc(-50% - var(--sw) + var(--dx) * .4),-26px) scale(var(--s))}
  65%{opacity:.95;transform:translate(calc(-50% + var(--sw) + var(--dx) * .7),-42px) scale(var(--s))}
  100%{opacity:0;transform:translate(calc(-50% + var(--dx)),-62px) scale(calc(var(--s) * .8))}
}
.dove-heart{position:absolute;top:-18px;left:78%;width:13px;height:13px;opacity:0;pointer-events:none;z-index:35;filter:drop-shadow(0 0 3px rgba(255,255,255,.9)) drop-shadow(0 1px 2px rgba(81,20,25,.3));animation:doveHeartFloat 2.6s ease-out forwards}
.dove-perch.is-left .dove-heart{left:22%}
.dove-heart svg{display:block;width:100%;height:100%;fill:currentColor}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }

  .cal-heart-ripple,
  .cal-spark,
  .btn-rsvp-ring,
  .tl-dot::after {
    display: none
  }
}

/* Ẩn hoàn toàn huy hiệu / thanh công cụ Netlify (Powered by Netlify) */
#nl-badge-frame,
#nl-hud-frame,
iframe[id^="nl-"],
iframe[title*="Netlify"],
iframe[title="Powered by Netlify"],
[data-netlify-hud],
.netlify-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  clip-path: circle(0) !important;
}