/* =========================================================
   Màn sân khấu sau khi chọn nhà: rèm kim tuyến kéo ra,
   đèn rọi xiên chiếu xuống cô dâu chú rể, tên hiện dần.
   ========================================================= */
.show {
  position: fixed; inset: 0; z-index: 1200; overflow: hidden; background: #070103;
  opacity: 0; transition: opacity .7s ease; touch-action: none;
}
.show.is-on { opacity: 1; }
.show.is-leaving { opacity: 0; transition-duration: .9s; }

/* Sân khấu phía sau rèm */
.show-back {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 34% at 50% 86%, rgba(255, 120, 140, .34), transparent 70%),
    radial-gradient(90% 60% at 50% 100%, rgba(120, 10, 30, .65), transparent 75%),
    radial-gradient(70% 50% at 30% 20%, rgba(80, 8, 20, .5), transparent 70%),
    #0b0204;
}
.show-smoke {
  position: absolute; left: -20%; right: -20%; bottom: 4%; height: 46%;
  background:
    radial-gradient(40% 40% at 30% 60%, rgba(255, 210, 220, .14), transparent 70%),
    radial-gradient(45% 35% at 70% 55%, rgba(255, 200, 210, .12), transparent 70%),
    radial-gradient(60% 40% at 50% 80%, rgba(255, 190, 200, .16), transparent 70%);
  filter: blur(14px); animation: smoke 12s ease-in-out infinite alternate;
}
@keyframes smoke { to { transform: translateX(6%) scale(1.06); } }

/* Đèn rọi xiên từ góc trên */
.show-beam {
  position: absolute; left: 6%; top: -20%; width: 34%; height: 140%;
  transform-origin: 50% 0; transform: rotate(-24deg) scaleY(0); opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 228, 228, .07) 25%, rgba(255, 240, 240, .30) 50%, rgba(255, 228, 228, .07) 75%, transparent);
  filter: blur(6px); mix-blend-mode: screen;
  transition: transform 2.2s cubic-bezier(.3, .8, .3, 1), opacity 1.6s ease;
}
.show-beam::after {
  content: ""; position: absolute; left: 47%; width: 2px; top: 0; bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .55) 40%, rgba(255, 255, 255, 0));
}
.show.s-open .show-beam { transform: rotate(-24deg) scaleY(1); opacity: 1; }

/* Bục tròn + vòng sáng */
.show-floor {
  position: absolute; left: 50%; bottom: 7%; width: min(92vw, 520px); aspect-ratio: 4 / 1; translate: -50% 0;
  border-radius: 50%; opacity: 0; transition: opacity 1.4s ease 1s;
  background: radial-gradient(closest-side, rgba(255, 170, 185, .35), rgba(120, 20, 40, .25) 70%, transparent);
}
.show-floor::before {
  content: ""; position: absolute; inset: 8% 4%; border-radius: 50%;
  border: 2px solid rgba(255, 200, 210, .9);
  box-shadow: 0 0 18px 4px rgba(255, 120, 150, .75), inset 0 0 18px 4px rgba(255, 120, 150, .55);
  animation: ring 2.6s ease-in-out infinite;
}
@keyframes ring { 50% { box-shadow: 0 0 28px 8px rgba(255, 130, 160, .9), inset 0 0 22px 6px rgba(255, 130, 160, .65); } }
.show.s-open .show-floor { opacity: 1; }

/* Cô dâu chú rể */
.show-couple {
  position: absolute; left: 50%; bottom: 9%; height: min(56svh, 640px); width: auto; max-width: 96vw; translate: -50% 0;
  filter: sepia(.15) saturate(1.1) brightness(.92) drop-shadow(0 0 22px rgba(255, 150, 170, .35));
  -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent);
  opacity: 0; transform: scale(.96); transition: opacity 2s ease 1s, transform 3.4s cubic-bezier(.2, .8, .2, 1) .8s;
}
.show.s-open .show-couple { opacity: 1; transform: none; }

/* Rèm nhung đỏ (hai cánh) */
.show-curtain {
  position: absolute; top: 0; bottom: 0; width: 51%; z-index: 3;
  background: url("images/velvet.jpg") center / auto 100% repeat-x, #5b0712;
  box-shadow: inset 0 0 120px rgba(0, 0, 0, .55);
  transition: transform 3.6s cubic-bezier(.55, 0, .2, 1);
}
.show-curtain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 30%, transparent 75%, rgba(0, 0, 0, .55)); }
.show-curtain.l { left: 0; transform-origin: 0 0; box-shadow: inset -40px 0 60px -20px rgba(0, 0, 0, .7), inset 0 0 120px rgba(0, 0, 0, .5); }
.show-curtain.r { right: 0; transform-origin: 100% 0; box-shadow: inset 40px 0 60px -20px rgba(0, 0, 0, .7), inset 0 0 120px rgba(0, 0, 0, .5); }
.show.s-open .show-curtain.l { transform: translateX(-82%) skewX(-4deg); }
.show.s-open .show-curtain.r { transform: translateX(82%) skewX(4deg); }

/* Kim tuyến rơi */
.show-glitter { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; pointer-events: none; }

/* Chữ */
.show-text {
  position: absolute; left: 50%; top: calc(6svh + env(safe-area-inset-top)); z-index: 5; translate: -50% 0;
  width: min(92vw, 520px); text-align: center; color: #fff;
  font-family: "Maitree VN", Maitree, Georgia, serif; text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}
.show-text > * { margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1), filter 1.2s ease; filter: blur(6px); }
.show-text > .on { opacity: 1; transform: none; filter: none; }
.sh-kicker { font: italic 400 clamp(12px, 3.4vw, 15px)/1.4 "Maitree VN", Georgia, serif; letter-spacing: .04em; color: rgba(255, 255, 255, .9); }
.sh-name { margin-top: 6px; font-size: clamp(46px, 13.5vw, 72px); line-height: 1; }
.sh-name .name-art { height: auto; width: auto !important; max-width: 92%; height: .95em; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)); }
.sh-amp { margin: 2px 0; font: 400 clamp(26px, 7vw, 38px)/1 "Great Vibes VN", cursive; color: #EFD27C; }
.sh-invite { margin-top: 14px !important; font: 400 clamp(12.5px, 3.5vw, 15px)/1.5 "Maitree VN", Georgia, serif; }
.sh-date { margin-top: 10px !important; font: 400 clamp(16px, 4.6vw, 20px)/1 "Maitree VN", Georgia, serif; letter-spacing: .32em; padding-left: .32em; color: #EFD27C; }
.sh-place { margin-top: 8px !important; font: 400 clamp(11.5px, 3.2vw, 13.5px)/1.4 "Maitree VN", Georgia, serif; letter-spacing: .12em; color: rgba(255, 255, 255, .85); }

.sh-go {
  position: absolute; left: 50%; bottom: calc(2.4svh + env(safe-area-inset-bottom)); z-index: 6; translate: -50% 0;
  min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, #EBB45C, #F0DD8A 55%, #F0EF9C); color: #3A0612;
  font: 600 12px/1 "Maitree VN", Georgia, serif; letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 10px 26px -8px rgba(240, 200, 110, .7);
  opacity: 0; pointer-events: none; transition: opacity .8s ease;
}
.sh-go.on { opacity: 1; pointer-events: auto; animation: gopulse 2s ease-in-out infinite; }
@keyframes gopulse { 50% { box-shadow: 0 10px 34px -4px rgba(240, 200, 110, .95); } }
.sh-skip {
  position: absolute; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 6; min-height: 36px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(0, 0, 0, .25); color: rgba(255, 255, 255, .8);
  font: 400 11px/1 "Maitree VN", Georgia, serif; letter-spacing: .14em; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .show *, .show { transition-duration: .01s !important; animation: none !important; }
}
.show.s-open .show-curtain.l { transform: translateX(-74%) skewX(-3deg); }
.show.s-open .show-curtain.r { transform: translateX(74%) skewX(3deg); }
.show-couple { height: min(46svh, 560px); bottom: 10%; -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); filter: sepia(.25) saturate(1.15) brightness(.82) hue-rotate(-8deg) drop-shadow(0 0 22px rgba(255, 150, 170, .3)); }
.show-floor { bottom: 8%; width: min(78vw, 440px); }
.show-beam { mix-blend-mode: normal; z-index: 2; } .show-couple { z-index: 1; }

/* ===== Cảnh sân khấu từ ảnh (cô dâu chú rể hôn nhau dưới đèn rọi) ===== */
.show-scene {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  height: max(100svh, calc(100vw / .5628)); aspect-ratio: 941 / 1672;
  transform: scale(1.08); transform-origin: 50% 70%; transition: transform 6s cubic-bezier(.2, .7, .2, 1);
}
.show.s-open .show-scene { transform: scale(1); }
.sc-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc-couple {
  position: absolute; left: 27.63%; top: 34.211%; width: 72.37%; height: 60.407%;
  perspective: 900px;
}
.sc-couple img {
  display: block; width: 100%; height: 100%;
  transform-origin: 26% 100%; animation: sway 7s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 140, 160, .25));
}
@keyframes sway {
  0% { transform: rotateY(-16deg) translateX(-1.5%); }
  50% { transform: rotateY(16deg) translateX(1.5%); }
  100% { transform: rotateY(-16deg) translateX(-1.5%); }
}
/* vòng sáng chạy quanh bục như bục đang quay */
.sc-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; mix-blend-mode: screen; }
.sc-dash { fill: none; stroke: #ff7d96; stroke-width: 5; stroke-dasharray: 60 140; opacity: .55; animation: dash 5s linear infinite; filter: drop-shadow(0 0 8px #ff4d6d); }
@keyframes dash { to { stroke-dashoffset: -1000; } }
/* đèn rọi chập chờn */
.sc-beam {
  position: absolute; left: 4%; top: 0; width: 34%; height: 62%; transform-origin: 30% 0; transform: rotate(-17deg);
  background: linear-gradient(90deg, transparent, rgba(255, 220, 210, .22) 50%, transparent); filter: blur(10px); mix-blend-mode: screen;
  animation: beam 3.2s ease-in-out infinite;
}
@keyframes beam { 50% { opacity: .35; } }
.sc-smoke {
  position: absolute; left: -10%; right: -10%; bottom: 6%; height: 22%;
  background: radial-gradient(45% 50% at 25% 60%, rgba(255, 190, 200, .22), transparent 70%), radial-gradient(45% 50% at 78% 55%, rgba(255, 180, 195, .2), transparent 70%);
  filter: blur(16px); animation: smoke 9s ease-in-out infinite alternate;
}
.show-back, .show-smoke, .show-beam, .show-floor, .show-couple { display: none !important; }
.show.s-open .show-curtain.l { transform: translateX(-102%) skewX(-3deg); }
.show.s-open .show-curtain.r { transform: translateX(102%) skewX(3deg); }
@media (prefers-reduced-motion: reduce) { .sc-couple img, .sc-dash, .sc-beam, .sc-smoke { animation: none; } }

/* Ảnh tĩnh: người ở dưới, chữ ở trên */
.show-scene { height: min(82svh, calc(100vw / .5628 * 1.15)); max-height: calc(100vw / .5628 * 1.15); transform: none !important; transition: none; }
.show-scene::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; z-index: 1; background: linear-gradient(#070103, transparent); }
.sc-couple, .sc-ring, .sc-beam, .sc-smoke { display: none !important; }
@media (min-aspect-ratio: 3/4) { .show-scene { height: 86svh; } }

/* Bản máy tính: ảnh cao hết màn hình, hai bên là rèm nhung + ảnh mờ, chữ to hơn */
@media (min-aspect-ratio: 3/4) {
  .show::before {
    content: ""; position: absolute; inset: -40px; z-index: 0;
    background: url("images/stage-kiss.jpg") center 70% / cover no-repeat;
    filter: blur(28px) brightness(.38) saturate(1.2);
  }
  .show::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .0) 0, transparent 22%),
      url("images/velvet.jpg") left center / auto 100% no-repeat,
      url("images/velvet.jpg") right center / auto 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 14%, transparent 30%, transparent 70%, #000 86%, #000 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 14%, transparent 30%, transparent 70%, #000 86%, #000 100%);
    opacity: .85;
  }
  .show-scene { z-index: 1; height: 100svh; max-height: none; }
  .show-scene::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, #070103, transparent 10%, transparent 90%, #070103);
  }
  .show-text { width: min(60vw, 640px); top: 5svh; }
  .sh-kicker { font-size: 17px; }
  .sh-name { font-size: clamp(64px, 8vh, 92px); }
  .sh-amp { font-size: 44px; }
  .sh-invite { font-size: 17px; }
  .sh-date { font-size: 24px; }
  .sh-place { font-size: 15px; }
  .sh-go { min-height: 52px; padding: 0 36px; font-size: 13px; bottom: 4svh; }
}
@media (min-aspect-ratio: 3/4) {
  .show-scene { height: 80svh; }
  .show-scene::before { height: 30%; }
  .show-text { top: 3svh; }
  .sh-kicker { font-size: clamp(13px, 1.9vh, 17px); }
  .sh-name { font-size: clamp(44px, 7vh, 84px); margin-top: 2px; }
  .sh-amp { font-size: clamp(26px, 3.6vh, 40px); }
  .sh-invite { margin-top: 1.2vh !important; font-size: clamp(13px, 1.9vh, 17px); }
  .sh-date { margin-top: .9vh !important; font-size: clamp(17px, 2.6vh, 24px); }
  .sh-place { margin-top: .6vh !important; font-size: clamp(12px, 1.6vh, 15px); }
}
@media (min-aspect-ratio: 3/4) {
  .show-scene::before, .show-scene::after { display: none; }
  .show-scene {
    -webkit-mask-image: linear-gradient(transparent, #000 24%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(transparent, #000 24%), linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-composite: intersect;
  }
}
/* Bỏ vệt tối hai bên: rèm mở xong thì ẩn hẳn, nền hai bên chỉ là ảnh mờ */
.show.s-open .show-curtain { opacity: 0; transition: transform 3.6s cubic-bezier(.55, 0, .2, 1), opacity 1.2s ease 2.6s; }
@media (min-aspect-ratio: 3/4) {
  .show::after { display: none; }
  .show::before { filter: blur(34px) brightness(.5) saturate(1.25); }
  .show-scene {
    -webkit-mask-image: linear-gradient(transparent, #000 24%), linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
    mask-image: linear-gradient(transparent, #000 24%), linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  }
}

/* ===== Ảnh sân khấu ngang (1672×941): người ở dưới, chữ ở trên ===== */
.show-scene {
  left: 0; right: 0; bottom: 0; top: auto; translate: none; width: 100%; aspect-ratio: auto;
  height: 60svh; max-height: none; overflow: hidden; z-index: 1;
  -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%);
}
.show-scene::before, .show-scene::after { display: none !important; }
.sc-bg { object-fit: cover; object-position: 58.6% 100%; }
@media (min-aspect-ratio: 3/4) {
  .show::before { background-position: center bottom; filter: blur(30px) brightness(.45) saturate(1.2); }
  .show-scene {
    left: 50%; right: auto; translate: -50% 0; height: 74svh; width: auto; aspect-ratio: 1672 / 941; max-width: 100vw;
    -webkit-mask-image: linear-gradient(transparent, #000 26%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(transparent, #000 26%), linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
  }
  .sc-bg { object-position: 50% 100%; }
}

/* Nút Mở thiệp mềm mại: chữ nghệ thuật vàng, hai nét mảnh hai bên, thở nhẹ */
.sh-skip { display: none !important; }
.sh-go {
  display: grid; grid-template-columns: auto auto auto; align-items: center; justify-items: center; column-gap: 14px; row-gap: 2px;
  min-height: 0; padding: 10px 22px 12px; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #F0DD8A; text-transform: none; letter-spacing: 0; -webkit-tap-highlight-color: transparent; outline: none;
  bottom: calc(3svh + env(safe-area-inset-bottom)); transform: translateY(12px); transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2, .8, .2, 1);
}
.sh-go::before {
  content: ""; position: absolute; inset: -6px -16px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(10, 2, 4, .72), rgba(10, 2, 4, .35) 60%, transparent);
}
.sh-go.on { transform: none; animation: none; }
.go-txt {
  font: 400 clamp(34px, 9.5vw, 46px)/1.15 "Great Vibes VN", "Great Vibes", cursive; padding: 0 .12em;
  background: linear-gradient(90deg, #EBB45C 0%, #EAC16B 30%, #F0DD8A 55%, #EFEC9A 80%, #F0EF9C 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(240, 210, 130, .35));
  animation: goshine 3.6s ease-in-out infinite, gobreath 3.6s ease-in-out infinite;
}
.go-line { width: clamp(28px, 9vw, 54px); height: 1px; background: linear-gradient(90deg, transparent, #EFD27C); }
.go-line:nth-of-type(3) { background: linear-gradient(90deg, #EFD27C, transparent); }
.go-hint {
  grid-column: 1 / -1; font: 400 10.5px/1.4 "Maitree VN", Georgia, serif; letter-spacing: .32em; padding-left: .32em;
  text-transform: uppercase; color: rgba(255, 255, 255, .75); animation: gohint 3.6s ease-in-out infinite;
}
.sh-go:hover .go-txt, .sh-go:active .go-txt { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(240, 210, 130, .7)); }
.sh-go:active { transform: scale(.97); }
@keyframes goshine { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
@keyframes gobreath { 50% { transform: scale(1.04); } }
@keyframes gohint { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (min-aspect-ratio: 3/4) { .sh-go { min-height: 0; padding: 10px 26px 12px; bottom: 3.5svh; } .go-txt { font-size: clamp(40px, 5.4vh, 54px); } .go-hint { font-size: 11px; } }
.sh-go { width: max-content; white-space: nowrap; }
.sh-go::before { inset: -14px -30px; background: radial-gradient(closest-side, rgba(10, 2, 4, .85), rgba(10, 2, 4, .5) 60%, transparent); }
/* Mở thiệp: bỏ mảng bóng tối phía sau chữ */
.sh-go::before { display: none !important; }
.go-txt, .sh-go:hover .go-txt, .sh-go:active .go-txt { filter: drop-shadow(0 0 12px rgba(240, 210, 130, .45)) !important; }
.go-hint { text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.sh-place { letter-spacing: .06em; }
/* Nút Mở thiệp nằm ngay dưới địa điểm, trên nền tối (không đè lên váy cưới) */
.show-text .sh-go { position: relative; left: auto; bottom: auto; translate: none; margin: 16px auto 0 !important; z-index: 6; }
@media (min-aspect-ratio: 3/4) { .show-text .sh-go { margin-top: 1.6vh !important; } }
/* Tên khách mời (tự điền theo link ?to=) */
.sh-guest {
  display: block; margin: 4px 0 2px; font: 400 clamp(30px, 8.6vw, 40px)/1.25 "Great Vibes VN", "Great Vibes", cursive;
  background: linear-gradient(90deg, #EBB45C 0%, #EAC16B 30%, #F0DD8A 55%, #EFEC9A 80%, #F0EF9C 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); padding: 0 .15em;
}
@media (min-aspect-ratio: 3/4) { .sh-guest { font-size: clamp(30px, 4.6vh, 44px); } }
@media (min-aspect-ratio: 3/4) {
  .show-scene { height: 68svh; }
  .sh-name { font-size: clamp(40px, 6.2vh, 76px); }
  .sh-amp { font-size: clamp(22px, 3vh, 34px); }
  .show-text .sh-go { margin-top: 1vh !important; }
  .go-txt { font-size: clamp(34px, 4.6vh, 48px); }
}

/* Điện thoại: nền ảnh sân khấu làm mờ phủ kín, ánh đèn chuyển mượt lên trên, không còn mảng đen */
@media (max-aspect-ratio: 3/4) {
  .show::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: url("images/stage-kiss.jpg") 56% 0 / auto 100% no-repeat;
    filter: blur(26px) brightness(.62) saturate(1.2); transform: scale(1.15);
  }
  .show-scene {
    height: 63svh;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 10%, rgba(0,0,0,.55) 22%, rgba(0,0,0,.88) 34%, #000 46%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.18) 10%, rgba(0,0,0,.55) 22%, rgba(0,0,0,.88) 34%, #000 46%);
  }
  .sc-bg { object-position: 58.6% 100%; }
}

/* Rèm mở đầu: bỏ viền đen, đổ bóng chuyển màu mượt; chữ không còn quầng đen */
.show-curtain, .show-curtain.l, .show-curtain.r { box-shadow: none !important; }
.show-curtain::after { background: linear-gradient(180deg, rgba(20, 0, 4, .18), transparent 35%, transparent 70%, rgba(20, 0, 4, .35)) !important; }
.show-curtain.l::before, .show-curtain.r::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.show-curtain.l::before { background: linear-gradient(90deg, transparent 70%, rgba(30, 0, 6, .28)); }
.show-curtain.r::before { background: linear-gradient(270deg, transparent 70%, rgba(30, 0, 6, .28)); }
.show-text { text-shadow: 0 0 14px rgba(40, 10, 0, .35) !important; }
.sh-name .name-art, .sh-guest { filter: drop-shadow(0 0 10px rgba(240, 200, 120, .22)) !important; }

/* Điện thoại: ảnh sân khấu (đã nối dài phía trên) phủ kín màn hình, không còn đường nối */
@media (max-aspect-ratio: 3/4) {
  .show::before { display: none !important; }
  .show-scene { top: 0; bottom: 0; height: 100% !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .sc-bg { object-fit: cover; object-position: 58.6% 100% !important; }
}
@media (min-aspect-ratio: 3/4) {
  .sc-bg { object-fit: cover; object-position: 50% 100% !important; }
}

/* Mở một lần là hiện hết: không rèm kéo, không hiện từng dòng */
.show.s-instant .show-curtain { display: none !important; }
.show.s-instant .show-text > *, .show.s-instant .show-text .sh-go { transition: opacity .6s ease, transform .6s ease, filter .6s ease !important; transition-delay: 0s !important; }
.show.s-instant .show-scene, .show.s-instant .sc-bg { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
.sh-guest { max-width: 94vw; margin-left: auto; margin-right: auto; overflow-wrap: anywhere; }
.sh-name .name-art { max-width: 88vw !important; }
@media (max-aspect-ratio: 3/4) and (max-height: 800px) {
  .show-text { top: 2.5svh !important; }
  .sh-name { font-size: clamp(44px, 13vw, 54px) !important; }
  .sh-guest { font-size: clamp(26px, 7.6vw, 34px) !important; }
  .show-text .sh-go { margin-top: 6px !important; }
  .go-txt { font-size: clamp(30px, 8.4vw, 38px) !important; }
}
@media (max-aspect-ratio: 3/4) { .sc-bg { object-position: 50% 100% !important; } }

/* ===== Ảnh sảnh tiệc đèn chùm (dọc): chữ phía trên, cô dâu chú rể phía dưới ===== */
.show { background: #0b0605 !important; }
.show::before { display: block !important; content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("images/ballroom.jpg") 50% 30% / cover no-repeat !important; filter: blur(30px) brightness(.38) saturate(1.1) !important; transform: scale(1.15); }
.show-scene { top: auto !important; bottom: 0 !important; left: 50% !important; right: auto !important; translate: -50% 0 !important;
  height: 78svh !important; width: auto !important; aspect-ratio: 1400 / 1863 !important; max-width: none !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 12%, rgba(0,0,0,.8) 26%, #000 40%) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.35) 12%, rgba(0,0,0,.8) 26%, #000 40%) !important; }
.sc-bg { object-fit: cover !important; object-position: 50% 100% !important; }
.show-scene::after { content: ""; display: block !important; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,6,5,.55), rgba(11,6,5,.15) 45%, transparent 60%); }
@media (min-aspect-ratio: 3/4) {
  .show-scene { height: 100svh !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent) !important; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent) !important; }
  .show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.7), rgba(11,6,5,.35) 40%, transparent 55%); }
}
.show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.9) 0%, rgba(11,6,5,.72) 30%, rgba(11,6,5,.35) 46%, transparent 58%) !important; }
.show::before { filter: blur(34px) brightness(.24) saturate(1.1) !important; }
@media (min-aspect-ratio: 3/4) {
  .show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.88) 0%, rgba(11,6,5,.7) 35%, rgba(11,6,5,.3) 50%, transparent 58%) !important; }
}

/* Sảnh tiệc: hắt đèn sáng hơn */
.sc-bg { filter: brightness(1.22) contrast(1.06) saturate(1.08); }
.show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.78) 0%, rgba(11,6,5,.5) 28%, rgba(11,6,5,.15) 44%, transparent 54%) !important; }
.show-scene::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 58%; width: 120%; height: 70%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 220, 160, .38), rgba(255, 200, 130, .12) 55%, transparent);
  mix-blend-mode: screen; animation: spotPulse 4.5s ease-in-out infinite; display: block !important; }
@keyframes spotPulse { 50% { opacity: .65; } }
.show::before { filter: blur(30px) brightness(.4) saturate(1.15) !important; }
@media (min-aspect-ratio: 3/4) {
  .show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.75) 0%, rgba(11,6,5,.48) 32%, rgba(11,6,5,.12) 48%, transparent 56%) !important; }
}
/* Điện thoại (Safari thanh địa chỉ thấp): ảnh luôn phủ kín bề ngang, không hở 2 bên */
@media (max-aspect-ratio: 3/4) {
  .show-scene { min-width: 100vw !important; height: 80svh !important; }
  .sc-bg { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: 50% 100% !important; }
}
@media (max-aspect-ratio: 3/4) {
  .show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.86) 0%, rgba(11,6,5,.72) 30%, rgba(11,6,5,.5) 45%, rgba(11,6,5,.15) 56%, transparent 64%) !important; }
}

/* ===== Hiện màn sảnh tiệc: kéo nét như máy quay (mờ → rõ, xa → gần, tối → sáng); chữ hiện lần lượt từng dòng ===== */
.show.s-instant .sc-bg { animation: scFocus 2.4s cubic-bezier(.2, .7, .2, 1) both !important; }
@keyframes scFocus {
  0%   { opacity: 0; transform: scale(1.14); filter: blur(14px) brightness(.4) contrast(1.06) saturate(1.08); }
  45%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1); filter: blur(0) brightness(1.22) contrast(1.06) saturate(1.08); }
}
.show-scene::before { animation: spotIn 2.6s ease .8s both, spotPulse 4.5s ease-in-out 3.4s infinite !important; }
@keyframes spotIn { from { opacity: 0; transform: scale(.6); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
.show.s-instant .show-text > * { opacity: 0; transform: translateY(14px); filter: blur(6px);
  transition: opacity .9s ease, transform 1s cubic-bezier(.2, .8, .2, 1), filter .9s ease !important; }
.show.s-instant .show-text > .on { opacity: 1; transform: none; filter: none; }
.show.s-instant .show-text .sh-go { opacity: 0; transform: translateY(12px); }
.show.s-instant .show-text .sh-go.on { opacity: 1; transform: none; }
@media (min-aspect-ratio: 3/4) {
  .show-scene::after { background: linear-gradient(to bottom, rgba(11,6,5,.86) 0%, rgba(11,6,5,.7) 32%, rgba(11,6,5,.5) 44%, rgba(11,6,5,.15) 54%, transparent 60%) !important; }
}
.show-text .sh-invite.i1 { margin-bottom: 0 !important; } .show-text .sh-invite.i2 { margin: 0 !important; } .show-text .sh-invite.i3 { margin-top: 0 !important; }

/* Chỉ ảnh gốc + chữ: bỏ mọi lớp phủ tối/xám */
.show-scene::after, .show-scene::before { display: none !important; animation: none !important; }
.show-scene { -webkit-mask-image: none !important; mask-image: none !important; }
.show.s-instant .sc-bg { animation: scIn 1.2s ease both !important; }
@keyframes scIn { from { opacity: 0; } to { opacity: 1; } }
.sc-bg { filter: none !important; }
.show-text, .show-text > * { text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.55) !important; }
.show-text .name-art { filter: drop-shadow(0 1px 3px rgba(0,0,0,.85)) drop-shadow(0 0 10px rgba(0,0,0,.5)) !important; }
.show-scene { top: 0 !important; bottom: 0 !important; height: 100% !important; left: 0 !important; right: 0 !important; translate: none !important; width: 100% !important; aspect-ratio: auto !important; max-width: none !important; min-width: 0 !important; }
.sc-bg { object-fit: cover !important; object-position: 50% 100% !important; }
.show::before { display: none !important; }
.go-txt, .sh-go:hover .go-txt { filter: drop-shadow(0 1px 2px rgba(0,0,0,.95)) drop-shadow(0 0 10px rgba(0,0,0,.8)) !important; }
.go-hint { text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8) !important; color: #fff !important; }
@media (min-aspect-ratio: 3/4) {
  .show-scene { left: 50% !important; right: auto !important; translate: -50% 0 !important; width: auto !important; aspect-ratio: 1400 / 1863 !important; }
  .sc-bg { object-position: 50% 50% !important; }
}

/* Bỏ quầng xám quanh chữ: chỉ viền chữ sắc nét, không bóng mờ */
.show-text, .show-text > * {
  text-shadow: -1px -1px 0 rgba(30,8,4,.9), 1px -1px 0 rgba(30,8,4,.9), -1px 1px 0 rgba(30,8,4,.9), 1px 1px 0 rgba(30,8,4,.9), 0 2px 2px rgba(0,0,0,.6) !important;
}
.show-text .name-art, .sh-guest {
  filter: drop-shadow(1px 0 0 rgba(40,12,4,.95)) drop-shadow(-1px 0 0 rgba(40,12,4,.95)) drop-shadow(0 1px 0 rgba(40,12,4,.95)) drop-shadow(0 -1px 0 rgba(40,12,4,.95)) !important;
}
.go-txt, .sh-go:hover .go-txt, .sh-go:active .go-txt {
  animation: none !important; background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: #F3D98A !important; -webkit-text-fill-color: #F3D98A !important;
  -webkit-text-stroke: 1.2px #3A1606; paint-order: stroke fill; filter: none !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.55) !important;
}
.go-hint { color: #fff !important; -webkit-text-stroke: .4px #3A1606; text-shadow: 0 1px 2px rgba(0,0,0,.7) !important; }
.go-line { background: linear-gradient(90deg, transparent, #F3D98A) !important; }
.go-line:nth-of-type(3) { background: linear-gradient(90deg, #F3D98A, transparent) !important; }

/* Hiện ảnh mượt: chờ ảnh tải xong rồi mới mờ dần vào + lùi nhẹ */
.show.s-instant .sc-bg { opacity: 0; transform: scale(1.05); animation: none !important; transition: opacity 1.6s cubic-bezier(.25,.1,.25,1), transform 3s cubic-bezier(.16,1,.3,1) !important; will-change: opacity, transform; }
.show.s-instant .sc-bg.ready { opacity: 1; transform: none; }

/* Bỏ hẳn viền/bóng chữ: chỉ chữ sạch trên ảnh */
.show-text, .show-text > *, .go-hint { text-shadow: none !important; -webkit-text-stroke: 0 !important; }
.show-text .name-art, .sh-guest { filter: none !important; }
.go-txt, .sh-go:hover .go-txt, .sh-go:active .go-txt { -webkit-text-stroke: 0 !important; text-shadow: none !important; filter: none !important; color: #F6DE92 !important; -webkit-text-fill-color: #F6DE92 !important; }

/* Đổ bóng sát chân chữ: đậm nhưng không lan, không viền */
.show-text, .show-text > *, .go-hint { text-shadow: 0 1px 0 rgba(20,6,2,.75), 0 2px 1px rgba(20,6,2,.45) !important; }
.go-txt, .sh-go:hover .go-txt, .sh-go:active .go-txt { text-shadow: 0 1.5px 0 rgba(20,6,2,.8), 0 3px 2px rgba(20,6,2,.4) !important; }
.show-text .name-art, .sh-guest { filter: drop-shadow(0 1.5px 0 rgba(20,6,2,.8)) drop-shadow(0 3px 1.5px rgba(20,6,2,.35)) !important; }
