/* template71 "Long Phụng" — style.css: bảng màu, chữ, nút, bìa "Mở thiệp", hero, lời ngỏ, cặp đôi,
   và tô lại các module dùng chung (dock, nút nhạc, menu). Skin cho component dùng chung ở sections.css.

   Bảng màu (sơn mài):
     đỏ đô     #5A0A12 — nền sơn mài chính
     đỏ đô sâu #33050A — đáy sơn, bóng, viền ngoài
     đỏ son    #9E1820 — điểm nhấn (nút, dải ngày)
     vàng kim  #D4AA55 (nhạt #F2DC9B, đậm #9C7428) — chữ, chỉ viền, hoạ tiết
     ngà       #F7EBD2 / lụa #EFDDB8 — tấm thiệp đặt trong khung
     nâu mực   #3A1410 — chữ thân bài trên nền ngà (tương phản ≈ 14:1)
   Hướng chữ: dùng thuộc tính logic (inline-start/end) để dir="rtl" tự lật. */

:root {
  --t71-lacquer: #5A0A12;
  --t71-lacquer-deep: #33050A;
  --t71-lacquer-hi: #7A1420;
  --t71-vermilion: #9E1820;
  --t71-gold: #D4AA55;
  --t71-gold-light: #F2DC9B;
  --t71-gold-deep: #9C7428;
  --t71-ivory: #F7EBD2;
  --t71-silk: #EFDDB8;
  --t71-ink: #3A1410;
  --t71-serif: 'Cormorant Garamond', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --t71-sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t71-gold-text: linear-gradient(180deg, #F7E3A6 0%, #D4AA55 55%, #A8802F 100%);
  --t71-lacquer-bg: url('../img/pattern-wave.svg') repeat, radial-gradient(130% 70% at 50% 0%, var(--t71-lacquer-hi) 0%, var(--t71-lacquer) 45%, var(--t71-lacquer-deep) 100%);
}

/* ---------- Nền trang & cột nội dung ---------- */
body {
  margin: 0;
  font-family: var(--t71-sans);
  font-weight: 300;
  color: var(--t71-ink);
  background: #26040A url('../img/pattern-wave.svg') repeat;
  -webkit-font-smoothing: antialiased;
}
html.t71-cover-lock,
html.t71-cover-lock body { overflow: hidden; }

.t71-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Mọi hình rồng / phụng / ấn đều tô vàng kim; nét chạm lấy màu sơn đáy. */
.t71 { --t71-fill: url(#t71-gold); --t71-line: #3A060C; }

.t71 .wrapper {
  position: relative;
  width: 100%;
  max-width: 575px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--t71-lacquer);
  /* Viền hộp sơn mài: một chỉ vàng sát mép + bóng sâu ra nền. */
  box-shadow: 0 0 0 1px rgba(212, 170, 85, .55), 0 0 0 6px var(--t71-lacquer-deep), 0 0 0 7px rgba(212, 170, 85, .35), 0 0 80px rgba(0, 0, 0, .6);
}
.t71 img { max-width: 100%; }

/* Hai loại nền: sơn mài (tối) và lụa ngà (sáng). */
.t71-lacquer {
  position: relative;
  color: var(--t71-ivory);
  background: var(--t71-lacquer-bg);
}
.t71-silk {
  position: relative;
  color: var(--t71-ink);
  background: url('../img/pattern-silk.svg') repeat, linear-gradient(180deg, var(--t71-ivory), var(--t71-silk));
}

/* ---------- Chữ ---------- */
.t71 .section-title,
.t71 h1, .t71 h2, .t71 h3 {
  font-family: var(--t71-serif);
  font-weight: 600;
  line-height: 1.2;
}
.t71 .section-title {
  font-size: clamp(2rem, 8vw, 2.5rem);
  text-align: center;
  margin-bottom: .4rem;
}
.t71-silk .section-title { color: var(--t71-vermilion); }
.t71-lacquer .section-title {
  color: var(--t71-gold);
  background: var(--t71-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t71 .section-sub-title {
  font-family: var(--t71-sans);
  font-size: .97rem;
  font-weight: 300;
  line-height: 1.7;
  text-align: center;
  max-width: 30rem;
  margin: 0 auto 1.6rem;
  opacity: .92;
}
.t71-kicker {
  margin: 0;
  font-family: var(--t71-sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--t71-gold-light);
}
.t71-amp {
  display: block;
  font-family: var(--t71-serif);
  font-style: italic;
  font-size: .75em;
  line-height: 1.2;
  color: var(--t71-gold);
}

/* ---------- Nút ---------- */
.t71-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .7rem 2.1rem;
  /* Nút góc vát kiểu thẻ bài sơn mài — khác nút bo tròn của template70. */
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  border: 0;
  font-family: var(--t71-sans);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.t71-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.t71-btn:focus-visible { outline: 2px solid var(--t71-gold-light); outline-offset: 3px; }
.t71-btn--gold {
  color: var(--t71-lacquer-deep);
  background: linear-gradient(180deg, #F7E3A6, #D4AA55 60%, #B48A3B);
}
.t71-btn--lacquer {
  color: var(--t71-gold-light);
  background: linear-gradient(180deg, var(--t71-vermilion), var(--t71-lacquer));
  box-shadow: inset 0 0 0 1px var(--t71-gold);
}
.t71-btn--lacquer:hover { color: #fff; }

/* ---------- Ấn Song Hỷ, góc khung, điểm ngắt ---------- */
.t71-seal {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--t71-gold);
  box-shadow: 0 0 0 4px var(--t71-lacquer-deep), 0 0 0 5px rgba(212, 170, 85, .75), 0 0 24px rgba(242, 220, 155, .25);
  background: radial-gradient(circle at 50% 38%, #B4222A, var(--t71-vermilion) 45%, #5E0A12);
}
/* Vòng hạt châu chấm quanh ấn. */
.t71-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1.5px dotted rgba(242, 220, 155, .7);
}
.t71-seal svg { position: relative; width: 56%; height: auto; overflow: visible; }
.t71-seal--sm { width: 62px; height: 62px; }
.t71-seal--lg { width: 128px; height: 128px; }

.t71-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  color: var(--t71-gold);
  pointer-events: none;
}
.t71-corner--tl { top: 8px; left: 8px; }
.t71-corner--tr { top: 8px; right: 8px; transform: scaleX(-1); }
.t71-corner--bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.t71-corner--br { bottom: 8px; right: 8px; transform: scale(-1, -1); }

.t71-ruyi { display: block; width: 64px; height: 32px; margin: 0 auto .5rem; }

/* Điểm ngắt giữa các mục: hạt châu lửa giữa hai chỉ vàng. */
.t71-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 26px;
  max-width: 300px;
}
.t71-divider::before,
.t71-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--t71-gold));
}
.t71-divider::after { background: linear-gradient(90deg, var(--t71-gold), transparent); }
.t71-divider svg { width: 34px; height: 34px; flex: none; }

/* ---------- Bìa "Mở thiệp": nắp hộp sơn mài tách trên / dưới ---------- */
.t71-cover {
  position: fixed;
  inset: 0;
  z-index: 100001;              /* trên nút nhạc (99999) và badge Wedding Plan (99998) */
  overflow: hidden;
  color: var(--t71-ivory);
}
.t71-cover[hidden] { display: none; }
.t71-cover__lid {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  display: flex;
  justify-content: center;
  padding: 22px;
  background: var(--t71-lacquer-bg);
  transition: transform 1.25s cubic-bezier(.75, 0, .2, 1) .2s;
}
.t71-cover__lid--top {
  top: 0;
  align-items: flex-end;
  padding-bottom: 76px;
  border-bottom: 2px solid var(--t71-gold);
  box-shadow: 0 1px 0 4px var(--t71-lacquer-deep), 0 4px 0 4px rgba(212, 170, 85, .5);
}
.t71-cover__lid--bottom {
  bottom: 0;
  align-items: flex-start;
  padding-top: 86px;
  background: url('../img/pattern-wave.svg') repeat, radial-gradient(130% 80% at 50% 100%, var(--t71-lacquer-hi) 0%, var(--t71-lacquer) 45%, var(--t71-lacquer-deep) 100%);
}
/* Khung chỉ vàng bên trong mỗi nửa nắp, ghép lại thành một khung lớn khi hộp khép. */
.t71-cover__lid::before {
  content: "";
  position: absolute;
  inset: 14px 14px 0;
  border: 1px solid rgba(212, 170, 85, .6);
  border-bottom: 0;
  pointer-events: none;
}
.t71-cover__lid--bottom::before { inset: 0 14px 14px; border-top: 0; border-bottom: 1px solid rgba(212, 170, 85, .6); }
.t71-cover__inner { width: min(100%, 420px); text-align: center; }
/* Rồng trái, phụng phải, mỗi con nửa bề ngang: hai đầu gặp nhau phía trên ấn niêm ("chầu"). */
.t71-cover__beasts {
  display: flex;
  align-items: flex-end;
  margin: 22px -8px 0;
}
.t71-cover__beasts svg { flex: 1 1 0; min-width: 0; height: auto; aspect-ratio: 240 / 170; overflow: visible; }
.t71-cover__beasts svg:first-child { transform: translateY(8px); }
.t71-cover__beasts svg:last-child { transform: translateY(-4px); }
.t71-cover .t71-corner { top: 20px; }
.t71-cover .t71-corner--tl { left: 20px; }
.t71-cover .t71-corner--tr { right: 20px; }
.t71-cover .t71-corner--bl, .t71-cover .t71-corner--br { top: auto; bottom: 20px; }
.t71-cover .t71-corner--bl { left: 20px; }
.t71-cover .t71-corner--br { right: 20px; }
.t71-cover__seal {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -64px 0 0 -64px;
  transition: transform .7s cubic-bezier(.5, 0, .5, 1), opacity .5s ease .25s;
}
.t71-cover__names {
  margin: 0 0 .5rem;
  font-family: var(--t71-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--t71-ivory);
}
.t71-cover__names > span:not(.t71-amp) { display: block; }
.t71-cover__names .t71-amp { font-size: 1.3rem; }
.t71-cover__date {
  margin: 0 0 1.4rem;
  font-family: var(--t71-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: .24em;
  color: var(--t71-gold-light);
}
.t71-cover__open { animation: t71-glint 2.6s ease-in-out infinite; }
.t71-cover.is-opening .t71-cover__seal { transform: rotate(200deg) scale(.4); opacity: 0; }
.t71-cover.is-opening .t71-cover__lid--top { transform: translateY(-102%); }
.t71-cover.is-opening .t71-cover__lid--bottom { transform: translateY(102%); }
@keyframes t71-glint {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.14) drop-shadow(0 0 10px rgba(242, 220, 155, .55)); }
}

/* ---------- Nút menu (mở offcanvas components/menu) ---------- */
.t71-menu-btn {
  position: fixed;
  top: 14px;
  right: max(14px, calc(50% - 287px + 14px));
  z-index: 120;
  display: grid;
  align-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(212, 170, 85, .75);
  border-radius: 6px;
  background: rgba(51, 5, 10, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.t71-menu-btn.is-visible { opacity: 1; visibility: visible; }
.t71[dir="rtl"] .t71-menu-btn { right: auto; left: max(14px, calc(50% - 287px + 14px)); }
.t71-menu-btn span { display: block; height: 1.5px; background: var(--t71-gold-light); border-radius: 2px; }
.t71-menu-btn:focus-visible { outline: 2px solid var(--t71-gold-light); outline-offset: 2px; }

/* ---------- Hero ---------- */
.t71-hero {
  padding: 46px 18px 54px;
  text-align: center;
  overflow: hidden;
}
.t71-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto 4px;
  max-width: 470px;
}
.t71-emblem__dragon,
.t71-emblem__phoenix { flex: 1 1 0; min-width: 0; height: auto; aspect-ratio: 240 / 170; overflow: visible; }
/* Rồng hơi nghiêng xuống, phụng hơi ngẩng — đối xứng qua ấn nhưng không cứng như soi gương. */
.t71-emblem__dragon { margin-inline-end: -6px; transform: translateY(4px); }
.t71-emblem__phoenix { margin-inline-start: -6px; transform: translateY(-2px); }
.t71-emblem .t71-seal { flex: none; width: 82px; height: 82px; }
/* RTL: hoạ tiết là hình, không lật theo hướng chữ — rồng vẫn bên trái nhìn vào ấn. */
.t71[dir="rtl"] .t71-emblem,
.t71[dir="rtl"] .t71-cover__beasts { direction: ltr; }

.t71-hero__title {
  margin: .2rem 0 1.4rem;
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--t71-gold);
  background: var(--t71-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Khung ảnh sơn mài: viền vàng dày, chỉ trong, góc mây như ý; góc vát chữ bát giác. */
.t71-frame {
  position: relative;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 14px;
  background: linear-gradient(180deg, #E7C676, #A8802F);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}
.t71-frame::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--t71-lacquer-deep);
  clip-path: inherit;
}
.t71-frame img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.t71-frame .t71-corner { z-index: 1; width: 40px; height: 40px; color: var(--t71-gold-light); --t71-fill: var(--t71-gold-light); }
.t71-frame .t71-corner--tl { top: 16px; left: 16px; }
.t71-frame .t71-corner--tr { top: 16px; right: 16px; }
.t71-frame .t71-corner--bl { bottom: 16px; left: 16px; }
.t71-frame .t71-corner--br { bottom: 16px; right: 16px; }

.t71-hero__names {
  margin: 28px 0 22px;
  font-size: clamp(2.1rem, 9vw, 2.75rem);
  font-weight: 600;
  line-height: 1.12;
  color: var(--t71-ivory);
  overflow-wrap: anywhere;
}
.t71-hero__names > span { display: block; }
.t71-hero__hy { display: block; width: 30px; height: 28px; margin: 10px auto; }

/* Dải ngày: thứ | huy chương vàng (ngày + tháng · năm) | giờ */
.t71-date {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}
.t71-date__side {
  padding: 8px 2px;
  border-block: 1px solid rgba(212, 170, 85, .7);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t71-gold-light);
}
.t71-date__side:empty { border-color: transparent; }
.t71-date__medal {
  display: grid;
  place-items: center;
  align-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  color: var(--t71-lacquer-deep);
  background: radial-gradient(circle at 50% 35%, #F7E3A6, #D4AA55 60%, #A8802F);
  box-shadow: 0 0 0 4px var(--t71-lacquer-deep), 0 0 0 5px rgba(212, 170, 85, .7);
}
.t71-date__day { font-family: var(--t71-serif); font-size: 2.8rem; font-weight: 700; line-height: .95; }
.t71-date__my { font-size: .72rem; font-weight: 600; letter-spacing: .12em; }
.t71-lunar {
  margin: 18px 0 0;
  font-family: var(--t71-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--t71-gold-light);
}

/* Màn xuất hiện của hero — chạy khi bìa mở (.t71-is-open do cover-opening.js gắn). Điều kiện ẩn ban
   đầu chỉ áp khi bìa đang chờ (html.t71-cover-lock): JS hỏng hay edit mode thì hero vẫn hiện nguyên. */
html.t71-cover-lock .t71:not(.t71-is-open) .t71-rise { opacity: 0; transform: translateY(18px); }
.t71-is-open .t71-rise {
  animation: t71-rise .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(.6s + var(--d, 0) * .12s);
}
@keyframes t71-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Tấm thiệp ngà trong khung sơn mài (lời ngỏ, sổ lưu bút…) ---------- */
.t71-invite { padding: 46px 16px 56px; }
.t71-panel {
  position: relative;
  padding: 50px 24px 60px;
  text-align: center;
  color: var(--t71-ink);
  background: url('../img/pattern-silk.svg') repeat, linear-gradient(180deg, var(--t71-ivory), var(--t71-silk));
  border: 6px solid transparent;
  border-image: linear-gradient(180deg, #E7C676, #A8802F) 1;
  outline: 1px solid rgba(212, 170, 85, .5);
  outline-offset: 5px;
  box-shadow: inset 0 0 0 1px rgba(156, 116, 40, .5), inset 0 0 0 7px var(--t71-ivory), inset 0 0 0 8px rgba(156, 116, 40, .4);
}
.t71-panel .t71-corner { color: var(--t71-gold-deep); --t71-fill: var(--t71-gold-deep); width: 40px; height: 40px; top: 12px; left: 12px; }
.t71-panel .t71-corner--tr { left: auto; right: 12px; }
.t71-panel .t71-corner--bl { top: auto; bottom: 12px; }
.t71-panel .t71-corner--br { top: auto; left: auto; bottom: 12px; right: 12px; }
.t71-panel .t71-ruyi { --t71-fill: var(--t71-gold-deep); }
.t71-panel .section-title { color: var(--t71-vermilion); background: none; -webkit-text-fill-color: currentColor; }
.t71-invite__body { margin: 1rem 0 1.6rem; font-size: 1rem; line-height: 1.85; }
.t71-invite__couple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 1.4rem;
}
.t71-invite__couple p { margin: 0; }
.t71-invite__couple svg { display: block; width: 76px; height: 54px; margin: 0 auto 4px; --t71-fill: var(--t71-gold-deep); --t71-line: var(--t71-ivory); }
.t71-invite__couple small {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--t71-gold-deep);
}
.t71-invite__couple span {
  display: block;
  font-family: var(--t71-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--t71-vermilion);
  overflow-wrap: anywhere;
}
.t71-invite__honor {
  margin: 0 auto 1.6rem;
  max-width: 24rem;
  font-family: var(--t71-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--t71-lacquer);
}

/* ---------- Cô dâu & chú rể ---------- */
.t71-couple { padding: 46px 20px 56px; text-align: center; }
.t71-couple__grid { display: grid; justify-items: center; gap: 22px; }
.t71-person { max-width: 340px; }
.t71-person__emblem { display: block; width: 120px; height: 85px; margin: 0 auto -6px; position: relative; z-index: 1; }
.t71-portrait {
  width: 210px;
  margin: 0 auto 16px;
  padding: 8px;
  background: linear-gradient(180deg, #E7C676, #A8802F);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
}
.t71-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: inherit;
}
.t71-person__role {
  margin: 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--t71-gold-light);
}
.t71-person__name { margin: .3rem 0 .6rem; font-size: 2rem; color: var(--t71-ivory); }
.t71-person__intro { margin: 0; font-size: .95rem; line-height: 1.75; opacity: .9; }

/* ---------- Module dùng chung: dock, nút nhạc, menu offcanvas ---------- */
#access-dock { font-family: var(--t71-sans); }
#access-dock .dock-items {
  border-color: rgba(212, 170, 85, .75);
  background: rgba(51, 5, 10, .92);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #access-dock .dock-items { background: rgba(51, 5, 10, .84); }
}
#access-dock .dock-link { color: var(--t71-gold-light); }
#access-dock .dock-link:hover,
#access-dock .dock-link:focus-visible,
#access-dock .dock-link[aria-current] { color: #fff; }

body .player .playerIcon {
  border-color: rgba(212, 170, 85, .75);
  background-color: rgba(51, 5, 10, .88);
  color: var(--t71-gold-light);
}
body .player.player--on .playerIcon {
  background-color: var(--t71-gold);
  border-color: var(--t71-gold-light);
  color: var(--t71-lacquer-deep);
}

.t71 .offcanvas-menu {
  max-width: 270px;
  color: var(--t71-ivory);
  background: var(--t71-lacquer-bg);
  border-inline-start: 2px solid var(--t71-gold);
}
.t71 .offcanvas-menu .nav-link {
  padding: .7rem .4rem;
  font-family: var(--t71-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--t71-ivory);
  border-bottom: 1px solid rgba(212, 170, 85, .25);
}
.t71 .offcanvas-menu .nav-link:hover { color: var(--t71-gold-light); }
.t71 .offcanvas-menu .btn-close { filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg); opacity: .9; }

/* Chuyển động: người đã tắt thì bìa mở bằng một cú mờ, hero hiện ngay. */
@media (prefers-reduced-motion: reduce) {
  .t71-cover__open { animation: none; }
  .t71-cover__lid, .t71-cover__seal { transition: opacity .25s ease; }
  .t71-cover.is-opening { opacity: 0; transition: opacity .25s ease; }
  .t71-cover.is-opening .t71-cover__lid--top,
  .t71-cover.is-opening .t71-cover__lid--bottom,
  .t71-cover.is-opening .t71-cover__seal { transform: none; }
  .t71-is-open .t71-rise { animation: none; }
}

/* ---------- Màn rộng: rồng và phụng lớn hai bên cột, chầu vào giữa ---------- */
.t71-side { display: none; }
@media (min-width: 1100px) {
  .t71-side {
    display: block;
    position: fixed;
    top: 50%;
    z-index: 0;
    width: min(380px, calc(50vw - 300px));
    height: auto;
    aspect-ratio: 240 / 170;
    opacity: .5;
    pointer-events: none;
    overflow: visible;
  }
  .t71-side--dragon { left: max(10px, calc(50% - 287px - 30px - min(380px, calc(50vw - 300px)))); transform: translateY(-60%); }
  .t71-side--phoenix { right: max(10px, calc(50% - 287px - 30px - min(380px, calc(50vw - 300px)))); transform: translateY(-40%); }
  .t71 .wrapper { z-index: 1; }
}

/* Màn rộng: bìa lớn hơn cho rồng / phụng không lọt thỏm giữa khung. */
@media (min-width: 768px) {
  .t71-cover__lid--top .t71-cover__inner { width: min(100%, 620px); }
  .t71-cover__lid--bottom { padding-top: 96px; }
  .t71-cover__names { font-size: 2.5rem; }
}

@media (max-width: 374px) {
  .t71-emblem .t71-seal { width: 64px; height: 64px; }
  .t71-date__medal { width: 90px; height: 90px; }
  .t71-date__day { font-size: 2.3rem; }
  .t71-cover__names { font-size: 1.7rem; }
}
