/* The invitation starts with a choice between the two families. */
.entry-pending{overflow:hidden}
.entry-pending .site-header,.entry-pending main,.entry-pending footer,.entry-pending .skip-link,.entry-pending #reading-progress{visibility:hidden}

/* ==========================================================================
   UNIFIED CINEMATIC ENTRY & CHOICE DIALOG
   ========================================================================== */
.entry-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: none;
  padding: 52px 6% 44px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  overscroll-behavior: contain;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: radial-gradient(ellipse at 72% 22%, #fffdf5 0%, #f4f1e6 70%);
  color: #354b3b;
  transition: background 1.0s cubic-bezier(0.4, 0, 0.2, 1), color 0.9s ease;
}

.entry-dialog:not([open]) {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  z-index: -9999 !important;
}

.entry-dialog[open] {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  animation: entryDialogOpen .6s cubic-bezier(.16,1,.3,1) both;
}

@keyframes entryDialogOpen {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.entry-dialog::backdrop {
  background: #F4F1EA;
  backdrop-filter: none;
  transition: background 1.0s ease;
}

/* In Intro Mode */
.entry-dialog.is-intro-mode {
  background: #0b120e !important;
  color: #ffffff !important;
}

.entry-dialog.is-intro-mode::backdrop {
  background: #0b120e !important;
}

.entry-dialog:before {
  content: "";
  position: fixed;
  inset: 20px;
  border: 1px solid rgba(200, 158, 99, 0.25);
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.entry-dialog.is-intro-mode:before {
  opacity: 0;
}

/* ==========================================================================
   CHOICE STAGE BACKDROP (Ảnh Nền Tùy Chỉnh Sau Intro Từ Admin)
   ========================================================================== */
.choice-stage-backdrop {
  position: fixed;
  inset: -2%;
  width: 104%;
  height: 104%;
  pointer-events: none;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nền mặc định khi chưa tải ảnh: Sâm banh hoàng gia cổ điển với vignette tinh tế */
.entry-dialog.is-choice-mode .choice-stage-backdrop {
  opacity: 1;
  background-color: #f7f3ea;
  background-image: radial-gradient(ellipse at 50% 25%, #fffdf8 0%, #f4ece0 55%, #e6d8c3 100%);
}

.choice-stage-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(181, 136, 73, 0.08) 100%);
  pointer-events: none;
}

/* Khi có ảnh nền tùy chỉnh từ Admin Studio */
.choice-stage-backdrop.has-custom-bg {
  filter: contrast(1.02) saturate(1.05);
}

.choice-stage-backdrop.has-custom-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(15, 22, 18, 0.35) 0%, rgba(10, 16, 12, 0.68) 100%),
              linear-gradient(180deg, rgba(12, 18, 14, 0.32) 0%, rgba(12, 18, 14, 0.55) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* ==========================================================================
   FULL-PAGE UNIFIED SCENE LAYERS (SYNCHRONIZED SWEEP)
   ========================================================================== */
.intro-scenes-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

.intro-scene-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
}

.intro-scene-layer.scene-0 { z-index: 11; }
.intro-scene-layer.scene-1 { z-index: 12; }
.intro-scene-layer.scene-2 { z-index: 13; }

.intro-scene-layer.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Background within each scene (Giảm độ mờ đằng sau cho dễ nhìn theo yêu cầu) */
.scene-backdrop {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.70) saturate(1.05);
  transform: scale(1.02);
  pointer-events: none;
}

.scene-dark-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8, 14, 10, 0.22) 0%, rgba(4, 7, 5, 0.65) 100%),
              linear-gradient(180deg, rgba(4, 7, 5, 0.45) 0%, transparent 40%, rgba(4, 7, 5, 0.65) 100%);
  pointer-events: none;
}

/* Scene Shell (Chữ hiện trực tiếp trên nền ảnh, không đóng khung) */
.scene-shell {
  width: 100%;
  max-width: 960px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  text-align: center;
}

/* VN Typewriter verse text - to hơn, rõ nét trên nền ảnh */
.intro-verse {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.85;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.9);
  margin: 0;
  letter-spacing: 0.3px;
  font-weight: 500;
  text-align: center;
  min-height: 2em;
  max-width: 900px;
}

/* Blinking typewriter caret */
.vn-caret {
  display: inline-block;
  margin-left: 3px;
  color: #dfb76c;
  font-weight: 300;
  font-size: 1.1em;
  vertical-align: baseline;
  animation: vnBlink 0.75s step-end infinite;
}

.vn-caret.finished {
  display: none;
}

@keyframes vnBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.intro-progress-bar {
  display: none !important;
}

/* Skip Button */
.intro-skip-btn {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  color: #f4f2e9;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
}

.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Tap zone covering screen */
.intro-tap-zone {
  position: fixed;
  inset: 0;
  z-index: 10;
  cursor: pointer;
}

/* Shell */
.entry-shell {
  width: 100%;
  max-width: 1060px;
  display: grid;
  grid-template-columns: 42% 58%;
  align-items: center;
  position: relative;
  gap: 0;
  margin: auto;
  z-index: 5;
}

.entry-dialog.is-choice-mode .entry-shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(35, 28, 24, 0.16), 0 4px 20px rgba(212, 175, 55, 0.12);
  padding: 22px;
  box-sizing: border-box;
}

.entry-dialog.is-choice-mode .entry-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(200, 158, 99, 0.35);
  border-radius: 14px;
  pointer-events: none;
}

/* THE VISUAL PHOTO FRAME (Editorial Luxury: Bỏ khung vòm đen, viền chỉ vàng kim sắc nét) */
.entry-visual {
  height: 560px;
  position: relative;
  overflow: hidden;
  background: #141d18;
  isolation: isolate;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(44, 34, 30, 0.16), 0 4px 16px rgba(44, 34, 30, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.45);
  transition: opacity 0.85s ease, transform 0.6s ease;
}

.visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(1.03) saturate(1.06) brightness(0.98);
}

/* Ken Burns Slow Breathing */
@keyframes kenBurnsBreathing {
  0% { transform: scale(1.0); }
  100% { transform: scale(1.04) translate3d(-0.5%, -0.5%, 0); }
}

.ken-burns {
  animation: kenBurnsBreathing 11s ease-in-out infinite alternate;
}

/* Photo inner border & shade */
.entry-visual:after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 244, 223, 0.35);
  border-radius: 6px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease 0.3s;
}

.entry-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 29, 24, 0.05) 0%, rgba(20, 29, 24, 0.4) 65%, rgba(15, 22, 18, 0.82) 100%);
  opacity: 1;
  transition: opacity 0.8s ease 0.3s;
}

.entry-photo-note {
  position: absolute;
  left: 37px;
  bottom: 210px;
  font-size: 7px;
  letter-spacing: 2px;
  color: #f4f0dd;
  opacity: 1;
  transition: opacity 0.8s ease 0.3s;
}

.entry-visual>p {
  position: absolute;
  left: 34px;
  bottom: 76px;
  font-family: var(--serif);
  font-size: 65px;
  letter-spacing: -2.4px;
  line-height: .98;
  color: #f9f4e6;
  opacity: 1;
  transition: opacity 0.8s ease 0.3s;
}

.entry-visual>p em {
  padding-left: 28px;
}

.entry-photo-date {
  position: absolute;
  left: 37px;
  bottom: 36px;
  font-size: 9px;
  letter-spacing: 3.8px;
  color: #d9dfc7;
  opacity: 1;
  transition: opacity 0.8s ease 0.3s;
}

/* Hide arch captions during intro */
.entry-dialog.is-intro-mode .entry-visual:after,
.entry-dialog.is-intro-mode .entry-visual-shade,
.entry-dialog.is-intro-mode .entry-photo-note,
.entry-dialog.is-intro-mode .entry-visual>p,
.entry-dialog.is-intro-mode .entry-photo-date {
  opacity: 0;
  pointer-events: none;
}

/* Right Column */
.entry-right-col {
  position: relative;
  width: 100%;
}

/* Intro Text Slides */
.entry-intro-text {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 12px 0 12px 64px;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), filter 0.65s ease;
}

.intro-text-slide {
  position: absolute;
  left: 64px;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateY(24px);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), filter 0.75s ease;
  will-change: opacity, transform, filter;
}

.intro-text-slide.active {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.intro-text-slide.exited {
  opacity: 0;
  transform: translateY(-50%) translateY(-22px);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}

/* Verse text */
.intro-verse {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.72;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85);
  margin: 0;
  letter-spacing: -0.2px;
  font-weight: 400;
}

/* Climax Slide (Slide 4) */
.climax-slide .finale-verse {
  font-size: 20px;
  line-height: 1.68;
  color: #f7f3e8;
  margin-bottom: 24px;
  font-style: italic;
  opacity: 0.95;
}

.intro-finale-names {
  font-family: 'Great Vibes', 'Playfair Display', Georgia, cursive;
  font-size: 68px;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: #fffaf0;
  text-shadow: 0 0 24px rgba(223, 183, 108, 0.55), 0 4px 26px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  margin-bottom: 12px;
  font-weight: 400;
}

.intro-finale-names span {
  display: inline-block;
}

.intro-finale-amp {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #dfb76c;
  font-size: 0.72em;
  margin: 0 10px;
  font-weight: 300;
}

.intro-finale-subtitle {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: #d8e2d2;
  margin: 0;
  opacity: 0.85;
}

/* Choice Content (Editorial Luxury: Kem Cát #F4F1EA & Nâu Đất #2C221E) */
.entry-content {
  padding: 14px 24px 14px 44px;
  text-align: center;
  position: relative;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.entry-edition {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 6px;
  color: #b58849;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 4px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.entry-names {
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.22;
  margin: 6px 0 10px;
  color: #1a1512;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-names span {
  font-weight: 700;
  color: #1a1512;
}

.entry-names em {
  font-family: 'Great Vibes', cursive;
  font-style: italic;
  font-size: 1.1em;
  color: #c49a55;
  padding: 0 4px;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(196, 154, 85, 0.25);
}

.entry-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #c49a55;
  font-size: 14px;
  margin: 8px 0 14px;
  opacity: 0.9;
}

.entry-rule i {
  height: 1px;
  width: 46px;
  background: linear-gradient(90deg, transparent, #c49a55, transparent);
}

/* Khối Kính Mời Tự Nhiên, Trang Trọng Chuẩn Phong Cách Thiệp Cưới Truyền Thống */
.entry-invitation-greeting {
  margin: 14px auto 16px;
  text-align: center;
}

.entry-kinh-moi {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #8b2b2b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.entry-guest-name {
  font-family: 'Great Vibes', 'Playfair Display', Georgia, cursive;
  font-size: 38px;
  line-height: 1.25;
  color: #7b1d1d;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(123, 29, 29, 0.12);
  word-break: break-word;
}

.entry-content #entry-description {
  font-size: 14.5px;
  line-height: 1.75;
  margin: 10px auto 20px;
  color: #4e443e;
  font-weight: 450;
  max-width: 480px;
}

.entry-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}

.entry-choice {
  position: relative;
  min-height: 110px;
  padding: 22px 20px 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(200, 158, 99, 0.45);
  background: #ffffff;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #2C221E;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(44, 34, 30, 0.05);
  text-align: center;
}

.entry-choice:hover {
  border-color: #c49a55;
  background: #fffdf9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 154, 85, 0.16);
}

.entry-choice strong {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #1f1915;
}

.entry-choice small {
  font-size: 13px;
  line-height: 1.45;
  margin-top: 6px;
  color: #6b6059;
  font-weight: 400;
}

/* Thẻ chỉ dẫn bên mời (?side=groom hoặc ?side=bride) */
.entry-choice-badge {
  display: none;
  margin-top: 8px;
  font-size: 11.5px;
  color: #8b2b2b;
  font-weight: 600;
  background: rgba(184, 134, 11, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
  transition: all 0.3s ease;
}

.entry-choice.is-invited-side {
  border-color: #b8860b !important;
  background: #fffef8 !important;
  box-shadow: 0 0 0 2px rgba(184, 134, 11, 0.25), 0 8px 24px rgba(184, 134, 11, 0.15) !important;
}

.entry-choice.is-invited-side .entry-choice-badge {
  display: inline-block;
}

.entry-choice[aria-pressed=true] {
  border-color: #b8860b;
  background: #ffffff;
}

@media(hover:hover) {
  .entry-choice:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #c89e63;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(200, 158, 99, 0.18);
  }
  .entry-choice:hover .entry-choice-arrow {
    transform: translate(3px, -3px);
    color: #9f753c;
  }
}

.entry-choice:active {
  transform: translateY(-1px) scale(.99);
}

.entry-choice:focus-visible,
.entry-back:focus-visible {
  outline: 2px solid #c89e63;
  outline-offset: 4px;
}

.entry-bottom-note {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #8C8C8C;
  margin-top: 24px;
}

.entry-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 16px auto 0;
  padding: 6px 0;
  border-bottom: 1px solid #bdc5ad;
  font-size: 10px;
  color: #647457;
  min-height: 35px;
}

.entry-demo {
  font-size: 6px;
  letter-spacing: 1.4px;
  line-height: 1.8;
  text-align: center;
  display: block;
  color: #8b947e;
  margin-top: 23px;
  flex-shrink: 0;
}

.entry-dialog.is-leaving .entry-choice {
  pointer-events: none;
}

.invite-family {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 7px 12px;
  margin: 11px auto -8px;
  background: #e8eddf94;
  border: 1px solid #cbd3ba;
  border-radius: 30px;
  font-size: 9px;
  line-height: 1.5;
  color: #5d7152;
}

.invite-family-change {
  font-size: 8px;
  border-left: 1px solid #c5ceb4;
  padding-left: 10px;
  color: #7b8b6e;
}

.invite-family:hover {
  background: #e0e7d4;
}

.rsvp-family-note {
  font-size: 10px;
  margin-top: 14px;
  color: #71815e;
}

.rsvp-family-note strong {
  font-weight: 400;
  color: #405d3e;
}

/* ==========================================================================
   STATE TRANSITIONS: INTRO -> MORPHING -> CHOICE
   ========================================================================== */
/* In Intro Mode: hide Choice stage */
.entry-dialog.is-intro-mode .choice-stage {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  position: absolute;
}

/* In Morphing Mode */
.entry-dialog.is-morphing {
  background: #F4F1EA !important;
  color: #2C221E !important;
  transition: background 0.85s ease;
}

.entry-dialog.is-morphing .choice-stage {
  visibility: visible;
  opacity: 1;
  position: relative;
  transition: opacity 0.75s ease;
}

.entry-dialog.is-morphing .intro-scenes-wrapper,
.entry-dialog.is-morphing .intro-progress-bar,
.entry-dialog.is-morphing .intro-skip-btn,
.entry-dialog.is-morphing .intro-tap-zone {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s ease;
}

/* In Choice Mode: completely clean up intro artifacts */
.entry-dialog.is-choice-mode {
  background: #F4F1EA !important;
  color: #2C221E !important;
}

.entry-dialog.is-choice-mode .intro-scenes-wrapper,
.entry-dialog.is-choice-mode .intro-progress-bar,
.entry-dialog.is-choice-mode .intro-skip-btn,
.entry-dialog.is-choice-mode .intro-tap-zone {
  display: none !important;
}

.entry-dialog.is-choice-mode .choice-stage {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS (PC & MOBILE)
   ========================================================================== */
@media(min-width: 601px) and (max-height: 740px) {
  .entry-dialog { padding-top: 32px; padding-bottom: 28px; }
  .entry-visual { height: 500px; }
  .entry-names { font-size: 66px; }
  .entry-rule { margin-bottom: 12px; }
  .entry-choices { margin-top: 23px; }
  .entry-choice { min-height: 164px; }
  .entry-bottom-note { margin-top: 18px; }
}

@media(max-width: 950px) {
  .entry-shell { grid-template-columns: 39% 61%; }
  .entry-content { padding-left: 40px; }
  .entry-intro-text { padding-left: 40px; }
  .intro-text-slide { left: 40px; }
  .entry-names { font-size: 64px; }
  .entry-choice { padding-inline: 10px; }
  .entry-choice strong { font-size: 34px; }
  .entry-photo-note { font-size: 6px; left: 25px; }
  .entry-visual>p { font-size: 56px; left: 22px; }
  .entry-photo-date { left: 25px; }
  .entry-choices { gap: 13px; }
}

@media(max-width: 600px) {
  .entry-dialog {
    padding: 24px 14px 20px;
    justify-content: flex-start;
  }
  .entry-dialog:before { inset: 8px; }
  .entry-shell {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 100%;
    max-width: 440px;
    align-items: center;
    padding: 14px 12px 18px;
    border-radius: 16px;
  }

  .scene-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    margin: auto;
  }

  .intro-verse {
    font-size: 22px;
    line-height: 1.68;
    font-weight: 500;
    max-width: 100%;
  }

  .entry-visual {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .entry-visual-shade {
    background: linear-gradient(0deg, rgba(20, 29, 24, 0.8) 0%, rgba(20, 29, 24, 0.2) 100%);
  }
  .entry-visual:after { inset: 8px; border-radius: 6px; }
  .entry-photo-note, .entry-photo-date { display: none; }
  .entry-visual>p { font-size: 32px; bottom: 16px; left: 20px; letter-spacing: -0.5px; }
  .entry-visual>p br { display: none; }
  .entry-visual>p em { padding-left: 6px; }

  .entry-content {
    width: 100%;
    padding: 14px 4px 0;
  }
  .entry-edition { font-size: 10px; letter-spacing: 4px; }
  .entry-names { font-size: 34px; line-height: 1.2; margin: 6px 0 8px; gap: 6px; }
  .entry-rule { margin: 6px 0 10px; font-size: 14px; }
  .entry-rule i { width: 28px; }

  .entry-invitation-greeting {
    margin: 8px auto 12px;
  }
  .entry-kinh-moi { font-size: 20px; letter-spacing: 1.5px; margin-bottom: 4px; }
  .entry-guest-name { font-size: 30px; }
  .entry-content #entry-description { font-size: 13px; line-height: 1.55; margin: 6px auto 14px; }
  .entry-choices {
    grid-template-columns: 1fr;
    margin-top: 10px;
    gap: 10px;
    width: 100%;
  }
  .entry-choice {
    min-height: auto;
    padding: 16px 14px;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
  }
  .entry-choice strong { font-size: 24px; }
  .entry-choice small { font-size: 12px; margin-top: 4px; }
  .entry-bottom-note { font-size: 8px; letter-spacing: 2px; margin-top: 14px; }
  .entry-demo { font-size: 7px; letter-spacing: 1px; margin-top: 16px; }
  .entry-back { font-size: 10px; margin-top: 12px; }
  .invite-family { font-size: 9px; padding: 6px 11px; margin-top: 10px; margin-bottom: -10px; }
  .invitation-paper { min-height: 620px; }
  .intro-progress-bar { top: 16px; width: 84%; }
  .intro-skip-btn { top: 12px; right: 14px; padding: 5px 12px; font-size: 10px; }
}

@media(max-width: 600px) and (max-height: 750px) {
  .entry-dialog { padding-top: 26px; padding-bottom: 24px; }
  .entry-content { padding-top: 21px; }
  .entry-names { font-size: 48px; }
  .entry-rule { margin: 6px 0 11px; }
  .entry-choices { margin-top: 18px; }
  .entry-choice { min-height: 143px; }
  .entry-bottom-note { margin-top: 16px; }
  .entry-demo { margin-top: 19px; }
}

@media(prefers-reduced-motion: reduce) {
  .entry-choice, .entry-choice-arrow, .entry-visual, .entry-content, .visual-layer, .intro-text-slide {
    transition: none !important;
  }
  .entry-choice:hover { transform: none; }
}
