:root {
  --m3-nen: var(--thiep-nen, #fafafa);
  --m3-do: var(--thiep-nhan, #8b2f30);
  --m3-nau: var(--thiep-nhan-dam, #834343);
  --m3-hong: var(--thiep-nhan-nhat, #dfbaba);
  --m3-hong-dam: var(--thiep-nhan-mo, #e49696);
  --m3-than: var(--thiep-chu, #3b3232);
  --m3-kem: var(--thiep-nen-dam, #f8f1f1);
  --m3-chu: var(--thiep-than, "Quicksand", system-ui, sans-serif);
  --m3-viet: var(--thiep-tay, "Dancing Script", "Quicksand", cursive);
  --m3-serif: var(--thiep-de, "Playfair Display", Georgia, serif);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  background: #ece7e4;
  color: var(--m3-than);
  font-family: var(--m3-chu);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.m3 {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100svh;
  background: var(--m3-nen);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(59, 50, 50, 0.12);
}

/* ---------- cổng ---------- */

.m3-gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  padding: 38px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(120% 80% at 50% 12%, #fff, var(--m3-kem) 62%, var(--m3-nen));
  transition: opacity 0.55s ease;
}

.m3-gate > * {
  position: relative;
  z-index: 3;
}

.m3-gate--gone {
  opacity: 0;
  pointer-events: none;
}

.m3-gate__nen {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: m3-tho 26s ease-in-out infinite alternate;
}

.m3-gate__phu {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94),
    rgba(248, 241, 241, 0.78) 44%,
    rgba(248, 241, 241, 0.96)
  );
}

.m3-gate__vien {
  position: absolute;
  inset: 13px;
  z-index: 2;
  border: 1px solid rgba(139, 47, 48, 0.24);
}

.m3-gate__vien::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(139, 47, 48, 0.13);
}

@keyframes m3-tho {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.16) translateY(-1.5%);
  }
}

.m3-gate__hoa {
  position: absolute;
  z-index: 2;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 36%, rgba(228, 150, 150, 0.4), rgba(223, 186, 186, 0) 68%);
  filter: blur(2px);
  pointer-events: none;
}

.m3-gate__hoa--tl {
  top: -26px;
  left: -34px;
}

.m3-gate__hoa--br {
  right: -34px;
  bottom: -26px;
}

.m3-canh {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.m3-canh i {
  position: absolute;
  top: -10%;
  width: 9px;
  height: 9px;
  border-radius: 60% 0 60% 60%;
  background: linear-gradient(140deg, #f5d6d6, var(--m3-hong-dam));
  opacity: 0;
  animation: m3-roi linear infinite;
}

@keyframes m3-roi {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  88% {
    opacity: 0.7;
  }
  100% {
    transform: translate3d(var(--x, 20px), 118svh, 0) rotate(460deg);
    opacity: 0;
  }
}

.m3-gate__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-gate__vn {
  margin: 8px 0 0;
  font-family: var(--m3-serif);
  font-size: 1.3rem;
  color: var(--m3-nau);
}

.m3-gate__ten {
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--m3-viet);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--m3-than);
}

.m3-gate__amp {
  font-size: 1.6rem;
  color: var(--m3-nau);
}

.m3-gate__ngay {
  margin: 10px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--m3-do);
}

.m3-gate__ngay::before,
.m3-gate__ngay::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(139, 47, 48, 0.4);
}

.m3-gate__moi {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.m3-gate__moi-loi {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-gate__moi-ten {
  font-family: var(--m3-viet);
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--m3-do);
}

.m3-gate__cham {
  margin: 20px 0 0;
  font-family: var(--m3-viet);
  font-size: 1.28rem;
  color: var(--m3-do);
  animation: m3-nhap 2.6s ease-in-out infinite;
}

@keyframes m3-nhap {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

/* ---------- phong bì ---------- */

.m3-envelope {
  z-index: 5;
  margin-top: 24px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  width: min(56vw, 208px);
}

.m3-envelope__than {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  perspective: 1100px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.m3-envelope:hover .m3-envelope__than {
  transform: translateY(-7px);
}

.m3-envelope__lung {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 7px;
  background: linear-gradient(155deg, #a63f3f, var(--m3-do) 56%, #6d1f20);
  box-shadow: 0 26px 46px rgba(109, 31, 32, 0.3);
}

.m3-envelope__the {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  z-index: 2;
  aspect-ratio: 3 / 3.9;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(59, 50, 50, 0.3);
  transition: transform 0.8s cubic-bezier(0.32, 1.1, 0.4, 1), border-radius 0.5s ease, box-shadow 0.5s ease;
}

.m3-envelope__anh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m3-envelope__the-chu {
  position: relative;
  padding: 26px 8px 10px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92) 58%);
  transition: opacity 0.35s ease;
}

.m3-envelope__the-ten {
  display: block;
  font-family: var(--m3-viet);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--m3-than);
}

.m3-envelope__the-ngay {
  display: block;
  margin-top: 2px;
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--m3-do);
}

.m3-envelope__truoc {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 7px;
  clip-path: polygon(0 0, 50% 34%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(200deg, #a13a3a, var(--m3-do) 44%, #752223);
  filter: drop-shadow(0 -3px 5px rgba(58, 12, 13, 0.34));
  transition: opacity 0.45s ease;
}

.m3-envelope__truoc::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(233, 200, 130, 0.3);
  border-radius: 4px;
}

.m3-envelope__nap {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: 52%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(#bd4f4f, #903233 78%);
  filter: drop-shadow(0 4px 7px rgba(58, 12, 13, 0.4));
  transform-origin: 50% 0;
  transition: transform 0.8s cubic-bezier(0.55, 0.05, 0.2, 1);
}

.m3-envelope__xi {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.0625rem;
  color: #6b4f0c;
  background: radial-gradient(circle at 36% 32%, #f7e3ad, #d9b45c 46%, #a8801f 82%);
  box-shadow: 0 5px 14px rgba(109, 31, 32, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.55);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.m3-gate--b1 .m3-envelope__xi {
  transform: scale(0.35) rotate(-35deg);
  opacity: 0;
}

.m3-gate--b1 .m3-envelope__nap {
  transform: rotateX(-178deg);
}

.m3-gate--b1 .m3-gate__cham,
.m3-gate--b1 .m3-envelope__than {
  animation: none;
  transform: none;
}

.m3-gate--b1 .m3-gate__eyebrow,
.m3-gate--b1 .m3-gate__vn,
.m3-gate--b1 .m3-gate__ten,
.m3-gate--b1 .m3-gate__ngay,
.m3-gate--b1 .m3-gate__moi,
.m3-gate--b1 .m3-gate__cham {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.m3-gate--b2 .m3-envelope__nap {
  z-index: 0;
}

.m3-gate--b2 .m3-envelope__the {
  transform: translateY(-102%);
}

.m3-gate--b3 .m3-envelope__the {
  z-index: 30;
  border-radius: 0;
  box-shadow: none;
  transition-duration: 0.7s;
  transition-timing-function: cubic-bezier(0.5, 0, 0.2, 1);
}

.m3-gate--b3 .m3-envelope__the-chu,
.m3-gate--b3 .m3-envelope__lung,
.m3-gate--b3 .m3-envelope__truoc,
.m3-gate--b3 .m3-envelope__nap,
.m3-gate--b3 .m3-gate__nen,
.m3-gate--b3 .m3-gate__phu,
.m3-gate--b3 .m3-gate__vien,
.m3-gate--b3 .m3-canh,
.m3-gate--b3 .m3-gate__eyebrow,
.m3-gate--b3 .m3-gate__vn,
.m3-gate--b3 .m3-gate__ten,
.m3-gate--b3 .m3-gate__ngay,
.m3-gate--b3 .m3-gate__moi,
.m3-gate--b3 .m3-gate__cham {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ---------- chung ---------- */

.m3-main {
  display: block;
}

.m3-main section {
  padding: 46px 24px;
}

.m3-nhan,
.m3-thu__nhan,
.m3-album__nhan,
.m3-story__nhan,
.m3-lich__nhan,
.m3-save__nhan,
.m3-rsvp__nhan,
.m3-wish__nhan,
.m3-qua__nhan {
  margin: 0 0 6px;
  text-align: center;
  font-family: var(--m3-serif);
  font-size: 1.22rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--m3-do);
}

.m3-nut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  padding: 11px 26px;
  border: 1px solid var(--m3-do);
  border-radius: 999px;
  background: #fff;
  color: var(--m3-do);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.m3-nut--dac {
  background: var(--m3-do);
  color: #fff;
  width: 100%;
}

a.m3-nut {
  display: flex;
  max-width: 220px;
}

/* ---------- hero ---------- */

.m3-hero {
  position: relative;
  padding: 0 !important;
  overflow: hidden;
}

.m3-hero__anh {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: var(--m3-kem);
  animation: m3-tho-nhe 34s ease-in-out infinite alternate;
}

@keyframes m3-tho-nhe {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.m3-hero__trong {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 3 / 2.4;
  background: radial-gradient(110% 90% at 50% 20%, #fff, var(--m3-kem) 70%);
  border-bottom: 1px solid rgba(139, 47, 48, 0.12);
}

.m3-hero__chu {
  margin: 0;
  font-family: var(--m3-viet);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--m3-do);
}

.m3-hero__phu {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-dem {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: -34px 24px 0;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(139, 47, 48, 0.25);
  box-shadow: 0 14px 28px rgba(59, 50, 50, 0.18);
}

.m3-dem div {
  padding: 12px 4px;
  text-align: center;
  background: var(--m3-do);
  color: #fff;
}

.m3-dem b {
  display: block;
  font-family: var(--m3-serif);
  font-size: 1.4rem;
  line-height: 1.1;
}

.m3-dem span {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* ---------- thư mời ---------- */

.m3-thu__card {
  padding: 26px 22px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(139, 47, 48, 0.18);
  box-shadow: 0 12px 26px rgba(59, 50, 50, 0.07);
}

.m3-thu__moi {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
}

.m3-thu__moi-loi {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-thu__moi-ten {
  font-family: var(--m3-viet);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--m3-do);
}

.m3-thu__chu {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.85;
  color: #5c4f4f;
}

/* ---------- lễ thành hôn ---------- */

.m3-le {
  background: var(--m3-kem);
}

.m3-le__ten {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.m3-le__nguoi {
  margin: 0;
  font-family: var(--m3-viet);
  font-size: 1.52rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--m3-do);
}

.m3-le__giua {
  margin: 0;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-left: 1px solid rgba(139, 47, 48, 0.25);
  border-right: 1px solid rgba(139, 47, 48, 0.25);
  font-family: var(--m3-serif);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-ho {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  text-align: center;
}

.m3-ho__nhan {
  margin: 0 0 8px;
  font-family: var(--m3-viet);
  font-size: 1.24rem;
  color: var(--m3-nau);
}

.m3-ho__cha {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--m3-than);
}

.m3-ho__que {
  margin: 6px 0 0;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

/* ---------- tiệc ---------- */

.m3-tiec {
  text-align: center;
}

.m3-tiec__tieu-de {
  margin: 0;
  font-family: var(--m3-viet);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--m3-than);
}

.m3-tiec__gio {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #5c4f4f;
}

.m3-ngay {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0 10px;
}

.m3-ngay__thang,
.m3-ngay__nam {
  font-family: var(--m3-serif);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: var(--m3-than);
}

.m3-ngay__so {
  font-family: var(--m3-serif);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--m3-do);
}

.m3-tiec__am {
  margin: 0;
  font-size: 0.78rem;
  font-style: italic;
  color: #6f6161;
}

.m3-tiec__nhan {
  margin: 26px 0 4px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-tiec__noi {
  margin: 0;
  font-family: var(--m3-serif);
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--m3-than);
}

.m3-tiec__dia-chi {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #6f6161;
}

.m3-map {
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 12px 26px rgba(59, 50, 50, 0.12);
  background: var(--m3-kem);
}

.m3-map iframe {
  display: block;
  width: 100%;
  height: 210px;
  border: 0;
}

/* ---------- album ---------- */

.m3-album {
  background: var(--m3-kem);
  text-align: center;
}

.m3-album__lead {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #6f6161;
}

.m3-album__luoi {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 18px;
}

.m3-album__luoi button {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(59, 50, 50, 0.1);
}

.m3-album__luoi button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.m3-album__luoi img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.m3-album__luoi button:hover img,
.m3-album__luoi button:active img {
  transform: scale(1.06);
}

.m3-album__luoi button:hover::after {
  opacity: 1;
}

.m3-o--rong,
.m3-o--don {
  grid-column: span 2;
}

.m3-o--rong img {
  aspect-ratio: 3 / 2;
}

.m3-o--don img {
  aspect-ratio: 4 / 5;
}

.m3-album__chu {
  margin: 22px 0 0;
  font-family: var(--m3-viet);
  font-size: 1.9rem;
  color: var(--m3-nau);
}

.m3-album__chu em {
  font-style: normal;
  color: var(--m3-do);
}

/* ---------- chuyện của chúng mình ---------- */

.m3-story__lead {
  margin: 0 auto 22px;
  max-width: 30ch;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #6f6161;
}

.m3-story__list {
  position: relative;
  display: grid;
  gap: 22px;
}

.m3-story__list::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 7px;
  width: 1px;
  background: linear-gradient(rgba(139, 47, 48, 0), rgba(139, 47, 48, 0.35) 14%, rgba(139, 47, 48, 0.35) 86%, rgba(139, 47, 48, 0));
}

.m3-story__item {
  position: relative;
  padding-left: 28px;
}

.m3-story__item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--m3-do);
  box-shadow: 0 0 0 3px var(--m3-nen);
}

.m3-story__moc {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--m3-hong-dam);
}

.m3-story__td {
  margin: 4px 0 0;
  font-family: var(--m3-viet);
  font-size: 1.36rem;
  font-weight: 700;
  color: var(--m3-do);
}

.m3-story__anh {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 20px rgba(59, 50, 50, 0.14);
}

.m3-story__anh img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
}

.m3-story__text {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: #5c4f4f;
}

/* ---------- lịch trình ---------- */

.m3-lich {
  background: var(--m3-kem);
}

.m3-lich__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.m3-lich__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(59, 50, 50, 0.07);
}

.m3-lich__cham {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--m3-hong-dam);
  box-shadow: 0 0 0 4px rgba(228, 150, 150, 0.25);
}

.m3-lich__gio {
  flex: none;
  font-family: var(--m3-serif);
  font-size: 1rem;
  color: var(--m3-do);
}

.m3-lich__ten {
  font-size: 0.86rem;
  color: var(--m3-than);
}

/* ---------- save the date ---------- */

.m3-save {
  text-align: center;
}

.m3-save__lich {
  margin-top: 16px;
  padding: 16px 12px;
  border-radius: 12px;
  background: var(--m3-kem);
}

.m3-lich-bang {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.m3-lich-bang th {
  padding: 6px 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m3-nau);
}

.m3-lich-bang td {
  padding: 6px 0;
  text-align: center;
  color: #6f6161;
}

.m3-lich-bang .m3-hom-nay {
  position: relative;
  font-weight: 700;
  color: #fff;
}

.m3-lich-bang .m3-hom-nay span {
  position: relative;
  z-index: 1;
}

.m3-lich-bang .m3-hom-nay::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--m3-do);
}

/* ---------- form ---------- */

.m3-rsvp,
.m3-wish {
  text-align: center;
}

.m3-rsvp__chu {
  margin: 0 auto 18px;
  max-width: 32ch;
  font-size: 0.84rem;
  line-height: 1.7;
  color: #6f6161;
}

.m3-form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.m3-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(139, 47, 48, 0.2);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  color: var(--m3-than);
}

.m3-input:focus {
  outline: none;
  border-color: var(--m3-do);
}

.m3-input--area {
  resize: vertical;
}

.m3-chon {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
}

.m3-chon label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.m3-form__status {
  margin: 0;
  min-height: 18px;
  font-size: 0.8rem;
  color: var(--m3-do);
}

.m3-wish__list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}

.m3-wish__the {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--m3-kem);
  border-left: 3px solid var(--m3-hong-dam);
}

.m3-wish__ten {
  margin: 0;
  font-family: var(--m3-viet);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--m3-do);
}

.m3-wish__chu {
  margin: 4px 0 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: #5c4f4f;
}

/* ---------- quà mừng ---------- */

.m3-qua {
  background: var(--m3-kem);
}

.m3-qua__list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.m3-qua__the {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(59, 50, 50, 0.08);
}

.m3-qua__ben {
  margin: 0 0 10px;
  font-family: var(--m3-viet);
  font-size: 1.24rem;
  color: var(--m3-do);
}

.m3-qua__ma {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(139, 47, 48, 0.16);
}

.m3-qua__ma canvas,
.m3-qua__ma img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m3-qua__ngan-hang {
  margin: 12px 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--m3-nau);
}

.m3-qua__stk {
  margin: 2px 0 0;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--m3-than);
}

.m3-qua__chu-tk {
  margin: 2px 0 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #6f6161;
}

.m3-qua__luu {
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid rgba(139, 47, 48, 0.3);
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--m3-do);
  cursor: pointer;
}

/* ---------- chân thiệp ---------- */

.m3-cuoi {
  position: relative;
  padding: 0 0 44px !important;
  text-align: center;
}

.m3-cuoi__anh {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
  background: var(--m3-kem);
}

.m3-cuoi__cam-on {
  margin: 26px 0 0;
  font-family: var(--m3-viet);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--m3-do);
}

.m3-cuoi__ten {
  margin: 10px 0 0;
  font-family: var(--m3-serif);
  font-size: 1.04rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m3-than);
}

.m3-cuoi__ngay {
  margin: 4px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--m3-nau);
}

/* ---------- nút nhạc ---------- */

.m3-nhac {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 40;
  transform: translateX(calc(-50% - 158px));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m3-do);
  box-shadow: 0 8px 18px rgba(109, 31, 32, 0.35);
  cursor: pointer;
}

@media (max-width: 430px) {
  .m3-nhac {
    left: auto;
    right: 16px;
    transform: none;
  }
}

.m3-nhac svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.m3-nhac[aria-pressed="true"] svg rect {
  animation: m3-song 1s ease-in-out infinite alternate;
}

.m3-nhac svg rect:nth-child(2) {
  animation-delay: 0.14s;
}

.m3-nhac svg rect:nth-child(3) {
  animation-delay: 0.28s;
}

.m3-nhac svg rect:nth-child(4) {
  animation-delay: 0.42s;
}

@keyframes m3-song {
  from {
    transform: scaleY(0.6);
  }
  to {
    transform: scaleY(1.25);
  }
}

/* ---------- xem ảnh ---------- */

.m3-xem {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(35, 26, 26, 0.92);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.m3-xem--mo {
  opacity: 1;
}

.m3-xem img {
  max-width: 100%;
  max-height: 86svh;
  border-radius: 8px;
  transform: scale(0.94);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.m3-xem--mo img {
  transform: none;
  opacity: 1;
}

.m3-xem__dong,
.m3-xem__di {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  line-height: 1;
  cursor: pointer;
}

.m3-xem__dong {
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  font-size: 1.375rem;
}

.m3-xem__di {
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  font-size: 1.625rem;
  font-family: var(--m3-serif);
}

.m3-xem__di--truoc {
  left: 12px;
}

.m3-xem__di--sau {
  right: 12px;
}

.m3-xem__dem {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .m3-gate__cham,
  .m3-gate__nen,
  .m3-hero__anh,
  .m3-canh i,
  .m3-nhac svg rect {
    animation: none;
  }

  .m3-envelope__nap,
  .m3-envelope__the,
  .m3-envelope__than,
  .m3-album__luoi img,
  .m3-gate {
    transition: none;
  }
}

/* Nut va o nhap khong tu thua ke font, khong dat lai thi trinh duyet rot ve Arial */
button,
input,
select,
textarea {
  font-family: inherit;
}
