/* ==========================================================================
   GIAO DIỆN CHÍNH 4 MÀN HÌNH – LỘNG LẪY, ĐỘNG & GỌN GÀNG
   ========================================================================== */

.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.silk-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
}

.silk-glow--top {
  width: 58vw;
  height: 58vw;
  top: -22vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.32), transparent 70%);
  animation: auraDrift 12s ease-in-out infinite alternate;
}

.silk-glow--bottom {
  width: 54vw;
  height: 54vw;
  bottom: -24vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(148, 18, 30, 0.42), transparent 70%);
  animation: auraDrift 15s ease-in-out infinite alternate-reverse;
}

.filigree-frame {
  position: fixed;
  inset: 12px;
  border: 1px solid rgba(232, 197, 88, 0.28);
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(212, 175, 55, 0.08);
}

#ambientCanvas,
#celebrationCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#ambientCanvas {
  z-index: 1;
}

#celebrationCanvas {
  z-index: 60;
}

/* ==========================================================================
   HEADER THƯƠNG HIỆU ĐỎ SON & VÀNG KIM
   ========================================================================== */
.brand-header {
  position: sticky;
  top: 0;
  z-index: 45;
  padding: 0.72rem 1.5rem;
  background: rgba(39, 3, 6, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 8px 24px rgba(19, 2, 3, 0.28);
}

.brand-header__inner {
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand-logo img {
  height: 46px;
  width: auto;
  transition: transform 0.25s ease;
}

.brand-logo:hover img {
  transform: scale(1.03);
}

.brand-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(73, 9, 15, 0.85);
  color: #f8e8be;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.24s ease;
}

.nav-pill:hover,
.nav-pill.is-active {
  background: var(--grad-gold-button);
  border-color: #fff3c4;
  color: #2a1904;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.nav-pill__icon {
  color: #f6df94;
}

.nav-pill:hover .nav-pill__icon,
.nav-pill.is-active .nav-pill__icon {
  color: #2a1904;
}

.nav-pill--subtle {
  background: rgba(39, 3, 6, 0.65);
  opacity: 0.88;
}

/* ==========================================================================
   THANH TIẾN TRÌNH 3 BƯỚC
   ========================================================================== */
.step-indicator {
  position: relative;
  z-index: 20;
  max-width: 680px;
  margin: 0.9rem auto 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.step-item {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.92rem;
  border-radius: var(--radius-pill);
  background: rgba(47, 5, 9, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.32);
  color: #d8c79e;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.step-item__num {
  font-weight: 800;
  color: #f6df94;
}

.step-item.is-active {
  background: var(--grad-gold-button);
  border-color: #fff3c4;
  color: #2a1904;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.step-item.is-active .step-item__num {
  color: #2a1904;
}

.step-item.is-done {
  background: rgba(115, 14, 23, 0.88);
  border-color: var(--color-gold-primary);
  color: #fff8e6;
}

.step-line {
  flex: 1;
  max-width: 44px;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), rgba(246, 223, 148, 0.75), rgba(212, 175, 55, 0.3));
}

/* ==========================================================================
   SÂN KHẤU CHÍNH
   ========================================================================== */
.app-stage {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.75rem;
  min-height: calc(100vh - 82px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.screen {
  display: none;
  width: 100%;
}

.screen.is-active {
  display: block;
}

/* ==========================================================================
   MÀN HÌNH 1: HERO BANNER WEBSITE LỘNG LẪY
   ========================================================================== */
.hero-showcase {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
}

.hero-banner-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: var(--grad-gold-metallic);
  box-shadow:
    0 24px 60px rgba(16, 1, 2, 0.55),
    0 0 38px rgba(212, 175, 55, 0.32);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-banner-frame:hover {
  box-shadow:
    0 28px 68px rgba(16, 1, 2, 0.62),
    0 0 48px rgba(246, 223, 148, 0.45);
}

.hero-banner-inner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #310509;
}

.hero-banner-img {
  width: 100%;
  max-height: 490px;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: bannerBreathing 9s ease-in-out infinite alternate;
}

/* Luồng ánh sáng vàng lướt qua banner */
.hero-banner-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 248, 220, 0.24) 48%,
    rgba(246, 223, 148, 0.32) 50%,
    transparent 68%
  );
  transform: translateX(-100%);
  animation: bannerSheenSweep 6s ease-in-out infinite;
  pointer-events: none;
}

/* Lớp phủ điều hướng tinh gọn ở chân banner */
.hero-banner-overlay {
  position: relative;
  background: linear-gradient(180deg, rgba(39, 4, 7, 0.92) 0%, rgba(28, 3, 5, 0.98) 100%);
  border-top: 1.5px solid rgba(212, 175, 55, 0.55);
  padding: 1.35rem 1.75rem 1.5rem;
  text-align: center;
}

.hero-tagline {
  margin: 0 auto 1rem;
  max-width: 680px;
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  color: #f7e8c3;
  font-weight: 400;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-tagline strong {
  color: #f6df94;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* 3 Thẻ Quyền Lợi Quà Tặng May Mắn bên dưới Banner */
.hero-perks-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.perk-card {
  background: var(--grad-ivory-card);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-luxury-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.perk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.28);
}

.perk-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-emerald-button);
  border: 1px solid var(--color-gold-primary);
  color: #f6df94;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.perk-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-emerald-dark);
}

.perk-card__sub {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--color-brown-muted);
}

/* ==========================================================================
   TIÊU ĐỀ CÁC MÀN HÌNH (CHỮ GỌN GÀNG, TƯƠNG PHẢN CAO)
   ========================================================================== */
.screen-header {
  text-align: center;
  margin-bottom: 1.65rem;
}

.screen-header--compact {
  margin-bottom: 1.25rem;
}

.screen-eyebrow {
  display: inline-block;
  padding: 0.28rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(246, 223, 148, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #f6df94;
  margin-bottom: 0.5rem;
}

.luxury-modal .screen-eyebrow {
  background: rgba(85, 9, 16, 0.08);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--color-gold-deep);
}

.screen-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #fffdf7;
  text-shadow: 0 4px 18px rgba(15, 1, 2, 0.45);
  text-wrap: balance;
}

.screen-desc {
  margin: 0.5rem auto 0;
  max-width: 620px;
  font-size: 0.98rem;
  color: #eadbb6;
  line-height: 1.55;
  text-wrap: balance;
}

/* ==========================================================================
   MÀN HÌNH 2: 4 VẬT PHẨM MAY MẮN TRÊN BỆ VÀNG
   ========================================================================== */
.symbols-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.symbol-card {
  position: relative;
  background: var(--grad-ivory-card);
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.1rem 1.35rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-luxury-md), inset 0 0 0 4px rgba(255, 253, 247, 0.85);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.symbol-card:hover {
  transform: translateY(-9px) scale(1.02);
  border-color: #f6df94;
  box-shadow:
    0 24px 48px rgba(19, 2, 3, 0.45),
    0 0 28px rgba(246, 223, 148, 0.42);
}

.symbol-card.is-selected {
  transform: scale(1.04);
  border-color: var(--color-emerald-rich);
  box-shadow: 0 24px 52px rgba(212, 175, 55, 0.52);
}

.symbol-card__visual {
  position: relative;
  width: 138px;
  height: 138px;
  margin-bottom: 0.85rem;
  display: grid;
  place-items: center;
}

.symbol-card__aura {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 223, 148, 0.65) 0%, rgba(212, 175, 55, 0.15) 58%, transparent 74%);
  transition: transform 0.35s ease;
}

.symbol-card:hover .symbol-card__aura {
  transform: scale(1.2) rotate(25deg);
}

.symbol-card__visual img {
  position: relative;
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(133, 91, 16, 0.25));
  transition: transform 0.35s ease;
}

.symbol-card:hover .symbol-card__visual img {
  transform: translateY(-5px) scale(1.06);
}

.symbol-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-emerald-dark);
}

.symbol-card__meaning {
  margin: 0.45rem 0 0.65rem;
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--grad-emerald-button);
  border: 1px solid var(--color-gold-primary);
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8e8be;
}

.symbol-card__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-brown-muted);
}

.symbol-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  width: 100%;
}

.symbol-card__cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.46rem 1.05rem;
  border-radius: var(--radius-pill);
  background: var(--grad-gold-button);
  color: #2a1904;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.symbol-card:hover .symbol-card__cta-pill {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.48);
}

.screen-footer-nav {
  margin-top: 1.5rem;
  text-align: center;
}

/* ==========================================================================
   MÀN HÌNH 3: LỜI CHÚC & SẢN PHẨM KIM GIA BẢO GIFT
   ========================================================================== */
.selected-symbol-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 1.05rem;
  border-radius: var(--radius-pill);
  background: var(--grad-gold-button);
  color: #2a1904;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 1.45rem;
  align-items: stretch;
}

.blessing-panel,
.product-panel {
  background: var(--grad-ivory-card);
  border: 2px solid var(--color-gold-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-luxury-md), inset 0 0 0 5px rgba(255, 253, 247, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.blessing-panel__emblem {
  width: 104px;
  height: 104px;
  margin-bottom: 0.7rem;
  animation: gentleBob 3.6s ease-in-out infinite;
}

.blessing-panel__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blessing-panel__meaning {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--color-emerald-dark);
}

.luxury-line {
  width: 120px;
  height: 1.5px;
  margin: 0.85rem auto;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.blessing-quote {
  margin: 0.2rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.85vw, 1.48rem);
  font-style: italic;
  line-height: 1.58;
  color: var(--color-brown-dark);
  text-wrap: balance;
}

.blessing-signature {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-emerald-primary);
}

.product-panel__badge {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--grad-emerald-button);
  border: 1px solid var(--color-gold-primary);
  color: #f6df94;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.product-stage {
  position: relative;
  width: 230px;
  height: 210px;
  margin: 0.65rem auto 0.95rem;
  display: grid;
  place-items: center;
}

.product-stage__halo {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 223, 148, 0.85) 0%, rgba(212, 175, 55, 0.2) 55%, transparent 72%);
  animation: pulseHalo 3.5s ease-in-out infinite;
}

.product-stage__img {
  position: relative;
  max-width: 220px;
  max-height: 195px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 12px 22px rgba(39, 3, 6, 0.24));
}

.product-panel__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-emerald-dark);
  text-wrap: balance;
}

.product-panel__desc {
  margin: 0.55rem auto 0;
  max-width: 450px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-brown-muted);
}

.screen-actions-bar {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   MÀN HÌNH 4: HỘP QUÀ ĐỎ SON & KẾT QUẢ MỞ QUÀ
   ========================================================================== */
.gift-box-stage {
  text-align: center;
}

.luxury-gift-wrapper {
  position: relative;
  width: 300px;
  height: 290px;
  margin: 0.5rem auto 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  outline: none;
}

.gift-aura-rays {
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(246, 223, 148, 0.34) 0deg 10deg,
    transparent 10deg 22deg
  );
  mask-image: radial-gradient(circle, black 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 72%);
  animation: spinSlow 20s linear infinite;
}

.gift-aura-ring {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(246, 223, 148, 0.68);
  animation: spinReverse 26s linear infinite;
}

.gift-box-3d {
  position: relative;
  width: 214px;
  height: 206px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.3s ease;
}

.luxury-gift-wrapper:hover .gift-box-3d {
  transform: scale(1.05);
}

.gift-box-3d.is-floating {
  animation: giftGentleFloat 2.6s ease-in-out infinite;
}

/* Nắp hộp Đỏ Son & Nơ Vàng Kim 24K */
.gift-lid {
  position: relative;
  z-index: 4;
  width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: bottom right;
}

.gift-bow {
  position: relative;
  width: 116px;
  height: 46px;
  margin-bottom: -4px;
}

.bow-loop {
  position: absolute;
  top: 4px;
  width: 50px;
  height: 34px;
  border-radius: 50% 50% 10% 50%;
  background: linear-gradient(135deg, #f7e199, #b38322);
  border: 1.5px solid #fff8dc;
  box-shadow: 0 5px 12px rgba(26, 2, 4, 0.38);
}

.bow-loop--left {
  left: 6px;
  transform: rotate(-16deg);
}

.bow-loop--right {
  right: 6px;
  border-radius: 50% 50% 50% 10%;
  transform: rotate(16deg);
}

.bow-knot {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 30px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad-gold-button);
  border: 1.5px solid #fffdf5;
  color: #2a1904;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(26, 2, 4, 0.42);
}

.gift-lid__cap {
  position: relative;
  width: 100%;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #83111c 0%, #50090f 55%, #340409 100%);
  border: 2px solid #e8c558;
  box-shadow: 0 10px 20px rgba(19, 2, 3, 0.4);
  overflow: hidden;
}

.gift-lid__ribbon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  transform: translateX(-50%);
  background: var(--grad-gold-metallic);
}

.gift-inner-glow {
  position: absolute;
  top: 52px;
  width: 180px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #f6df94 50%, transparent 76%);
  opacity: 0;
  z-index: 3;
}

/* Thân hộp Đỏ Son đồng bộ ảnh mở quà */
.gift-body {
  position: relative;
  z-index: 2;
  width: 206px;
  height: 148px;
  margin-top: -2px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(160deg, #750f18 0%, #4c080e 55%, #2e0408 100%);
  border: 2px solid #e8c558;
  box-shadow:
    0 24px 46px rgba(19, 2, 3, 0.5),
    inset 0 6px 16px rgba(246, 223, 148, 0.22);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.gift-body__ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 36px;
  transform: translateX(-50%);
  background: var(--grad-gold-metallic);
}

.gift-body__ribbon-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 28px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #9c6f19, #f6df94, #9c6f19);
  opacity: 0.94;
}

.gift-body__crest {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #310509;
  border: 2px solid #f6df94;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  color: #f6df94;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.gift-box-3d.is-opened .gift-lid {
  transform: translate(34px, -74px) rotate(28deg);
  opacity: 0.15;
}

.gift-box-3d.is-opened .gift-inner-glow {
  opacity: 1;
  transform: scale(2);
}

/* ==========================================================================
   THẺ VINH DANH KẾT QUẢ MỞ QUÀ (TÍCH HỢP ẢNH MỞ HỘP QUÀ LỘNG LẪY)
   ========================================================================== */
.gift-result-stage {
  max-width: 780px;
  margin: 0 auto;
}

.result-card {
  background: var(--grad-ivory-card);
  border: 2.5px solid #e8c558;
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.65rem 1.85rem;
  text-align: center;
  box-shadow:
    0 30px 70px rgba(15, 1, 2, 0.52),
    0 0 42px rgba(212, 175, 55, 0.36);
  position: relative;
}

/* Khung hiển thị ảnh mở hộp quà rực rỡ của người dùng */
.result-banner-wrap {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto 1.15rem;
  border-radius: 18px;
  padding: 4px;
  background: var(--grad-gold-metallic);
  box-shadow: 0 14px 34px rgba(39, 3, 6, 0.28);
  overflow: hidden;
}

.result-banner-img {
  width: 100%;
  max-height: 290px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.result-card__badge {
  display: inline-block;
  padding: 0.36rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--grad-emerald-button);
  border: 1px solid var(--color-gold-primary);
  color: #f6df94;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.result-card__congrats {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-brown-muted);
}

.result-card__prize-name {
  margin: 0.25rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--color-emerald-dark);
  text-wrap: balance;
}

.result-card__prize-desc {
  margin: 0 auto;
  max-width: 560px;
  font-size: 0.95rem;
  color: var(--color-brown-muted);
  line-height: 1.55;
}

.result-meta-box {
  margin: 1rem auto;
  padding: 0.72rem 1.15rem;
  max-width: 580px;
  border-radius: var(--radius-md);
  background: var(--color-emerald-soft);
  border: 1px solid rgba(85, 9, 16, 0.25);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--color-emerald-dark);
}

.result-meta-item strong {
  color: var(--color-brown-dark);
  margin-left: 0.25rem;
}

.result-blessing-note {
  margin: 0.65rem auto;
  max-width: 580px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--color-emerald-primary);
}

.result-disclaimer {
  margin: 0.65rem auto 0;
  max-width: 600px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-brown-muted);
}

.result-actions {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Bộ sưu tập trong Modal */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.collection-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(212, 175, 55, 0.55);
}

.collection-item img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.collection-item h4 {
  margin: 0.2rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-emerald-dark);
}

.collection-item p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-brown-muted);
  line-height: 1.45;
}

.collection-item__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-gold-deep);
}

.rules-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: var(--color-brown-gold);
  font-size: 0.94rem;
}

/* Keyframes chuyển động mượt mà */
@keyframes bannerBreathing {
  0% { transform: scale(1); }
  100% { transform: scale(1.028); }
}

@keyframes bannerSheenSweep {
  0%, 45% { transform: translateX(-110%); }
  100% { transform: translateX(120%); }
}

@keyframes auraDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.08); }
}

@keyframes gentleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes giftGentleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-7px) rotate(-1.6deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
  75% { transform: translateY(-7px) rotate(1.6deg); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes pulseHalo {
  0%, 100% { transform: scale(0.95); opacity: 0.78; }
  50% { transform: scale(1.07); opacity: 1; }
}

/* Responsive Mobile, Tablet & Màn hình LED */
@media (max-width: 1024px) {
  .symbols-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-layout {
    grid-template-columns: 1fr;
  }

  .hero-perks-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-header {
    padding: 0.65rem 0.9rem;
  }

  .brand-logo img {
    height: 38px;
  }

  .symbols-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner-overlay {
    padding: 1.1rem 1rem 1.25rem;
  }

  .step-item__label {
    display: none;
  }

  .btn-luxury--xl {
    padding: 0.95rem 1.75rem;
    font-size: 0.98rem;
  }
}

/* Campaign landing */
.hero-showcase { max-width: 1280px; gap: 1rem; }
.hero-banner-frame {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  padding: 0;
  border: 1px solid #ad8954;
  border-radius: 14px;
  background: #2a0609;
  box-shadow: 0 28px 80px #0f0102b0;
}
.hero-banner-overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  border: 0;
  padding: clamp(2rem, 5vw, 5rem);
  background: radial-gradient(ellipse at 0 100%, #4d161b, transparent 75%), #2a0609;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.3rem;
  color: #e5c78f;
  letter-spacing: .19em;
  font-size: .72rem;
  font-weight: 700;
}
.hero-kicker span { width: 28px; height: 1px; background: currentColor; }
.hero-banner-overlay h1 {
  margin: 0 0 1.25rem;
  font: 600 clamp(2.6rem, 5vw, 5.4rem)/1.08 "Playfair Display", Georgia, serif;
  letter-spacing: -.045em;
  color: #fff7e7;
}
.hero-banner-overlay h1 em { color: #f0ce8c; }
.hero-tagline { text-wrap: pretty; margin: 0 0 1.75rem; color: #e8dfc8; max-width: 34rem; }
.hero-cta-group { justify-content: flex-start; }
.hero-banner-inner { border-radius: 0; min-height: 0; isolation: isolate; }
.hero-banner-img { height: 100%; min-height: 420px; max-height: none; aspect-ratio: 1; }
.hero-banner-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #2a060965, transparent 20%);
}
.perk-card {
  border-radius: 10px;
  border: 1px solid #ac89546e;
  background: linear-gradient(145deg, #fff8e9, #eddfc5);
}
.perk-card__icon { font-family: Georgia, serif; }
.symbol-card, .blessing-panel, .product-panel, .result-card { border-radius: 14px; }
.symbol-card { position: relative; isolation: isolate; }
.symbol-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, #fffcdf6b 50%, transparent 72%);
  background-size: 300% 100%;
  background-position: 100% 0;
  opacity: 0;
  transition: background-position .65s, opacity .3s;
}
.symbol-card:hover::after, .symbol-card:focus-visible::after { background-position: 0 0; opacity: 1; }
:where(button, a, [role="button"]):focus-visible { outline: 2px solid #f1c77d; outline-offset: 4px; }
@media (max-width: 900px) {
  .hero-banner-frame { grid-template-columns: 1fr; }
  .hero-banner-img { min-height: 0; height: auto; aspect-ratio: 4/3; }
  .hero-banner-inner::after { background: linear-gradient(180deg, #2a060940, transparent 22%); }
}
@media (max-width: 480px) {
  .hero-banner-overlay { padding: 1.65rem 1.25rem; }
  .hero-cta-group { width: 100%; }
  .hero-cta-group .btn-luxury { width: 100%; }
  .brand-header__inner { flex-wrap: wrap; }
  .brand-nav { gap: .35rem; }
  .brand-nav .nav-pill { padding: .35rem .55rem; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner-img, .hero-banner-sheen, .silk-glow, .gift-aura-rays, .gift-aura-ring,
  .gift-box-3d.is-floating { animation: none; }
  #ambientCanvas, #celebrationCanvas { visibility: hidden; }
  .hero-banner-frame, .symbol-card, .symbol-card::after { transition: none; }
}

/* Symbol photography */
.symbol-card {
  overflow: hidden;
  padding: 0 0 1.2rem;
  box-shadow: 0 18px 40px #14000266;
}
.symbol-card__visual {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  background: #33080c;
  border-bottom: 1px solid #be9955;
  margin: 0 0 1rem;
}
.symbol-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}
.symbol-card:hover .symbol-card__visual img,
.symbol-card:focus-visible .symbol-card__visual img { transform: scale(1.055); }
.symbol-card__name, .symbol-card__desc { padding-inline: 1rem; }
@media (max-width: 640px) {
  .symbols-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .symbol-card__name { font-size: 1rem; }
  .symbol-card__meaning, .symbol-card__cta-pill { font-size: .66rem; text-align: center; }
  .symbol-card__cta-pill { padding-inline: .5rem; }
  .symbol-card__desc { padding-inline: .65rem; }
}
@media (max-width: 350px) {
  .symbols-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .symbol-card__visual img { transition: none; }
  .symbol-card:hover .symbol-card__visual img,
  .symbol-card:focus-visible .symbol-card__visual img { transform: none; }
}

/* Red and gold campaign */
.brand-header { background: #390911eb; }
.hero-banner-overlay {
  background: radial-gradient(ellipse at 0 100%, #801529, transparent 74%), #350711;
}
.hero-banner-overlay h1 { text-wrap: balance; }
.hero-banner-img, .symbol-card__visual img, .product-stage__img { object-fit: contain; }
.hero-banner-img { animation: none; }
.result-banner-wrap { background: #3e0a14; border: 1px solid #d6ab63; }
.result-banner-img {
  height: auto;
  max-height: min(54svh, 480px);
  object-fit: contain;
}
.collection-item {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  background: #fff8ed;
  transition: border-color .25s, box-shadow .25s;
}
.collection-item:hover { border-color: #b47628; box-shadow: 0 8px 22px #66122522; }
.collection-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: #420d16;
}
.perk-card { border-top: 2px solid #ca9a46; }
.perk-card__icon { background: linear-gradient(145deg, #8e172e, #500a17); }
@media (prefers-reduced-motion: no-preference) {
  #btnStartGame { animation: invitation-glow 3.5s ease-in-out infinite; }
  .collection-item img { transition: filter .3s; }
  .collection-item:hover img { filter: brightness(1.12); }
  .perk-card { animation: perk-rise .55s ease-out both; }
  .perk-card:nth-child(2) { animation-delay: .1s; }
  .perk-card:nth-child(3) { animation-delay: .2s; }
}
@keyframes invitation-glow {
  50% { box-shadow: 0 0 26px #ffd78a86; }
}
@keyframes perk-rise {
  from { opacity: 0; translate: 0 8px; }
}

/* Vẹn Tròn Hương Sắc */
.symbol-card__visual { background: #fff; }
.symbol-card__visual img { padding: 5%; }
.product-stage__img { object-fit: contain; }
.product-collection-link {
  display: inline-block;
  margin-top: .85rem;
  color: #76172c;
  font-weight: 700;
  text-underline-offset: .25em;
}
@media (prefers-reduced-motion: no-preference) {
  .brand-logo img { animation: logo-glow 5s ease-in-out infinite; }
  .screen.is-active .screen-title { animation: title-rise .55s ease-out both; }
  .screen.is-active .product-stage__img { animation: title-rise .65s ease-out both; }
  .symbol-card:hover .symbol-card__visual img { transform: scale(1.08) rotate(-2deg); }
  .gift-aura-ring { animation: ring-glow 2.5s ease-in-out infinite; }
}
@keyframes logo-glow { 50% { filter: drop-shadow(0 0 8px #eac77b66); } }
@keyframes title-rise { from { opacity: 0; translate: 0 12px; } }
@keyframes ring-glow { 50% { filter: drop-shadow(0 0 20px #ffd275); } }

/* Video background for the flower selection screen */
.symbols-video {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: #420c16 url('../assets/images/video-vang-poster.webp') center / cover no-repeat;
  transition: opacity .5s ease;
}
.symbols-video.is-active { opacity: 1; visibility: visible; }
.symbols-video video { width: 100%; height: 100%; display: block; object-fit: cover; }
.symbols-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #300810b8, #30081052 50%, #24060baf);
}
@media (prefers-reduced-motion: no-preference) {
  .screen--symbols.is-active .symbol-card {
    animation: flower-card-reveal .8s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: .18s;
  }
  .screen--symbols.is-active .symbol-card:nth-child(2) { animation-delay: .34s; }
  .screen--symbols.is-active .symbol-card:nth-child(3) { animation-delay: .50s; }
  .screen--symbols.is-active .symbol-card:nth-child(4) { animation-delay: .66s; }
}
@keyframes flower-card-reveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .symbols-video { transition: none; }
  .symbols-video video { visibility: hidden; }
}

/* Branded flower cards */
.symbol-card {
  background: linear-gradient(160deg, #74172a, #3a0913 68%);
  border-color: #d4aa60;
  color: #fff0d1;
  box-shadow: inset 0 0 0 4px #d4aa6026, 0 14px 32px #24030b78;
}
.symbol-card__visual {
  display: grid;
  grid-template-rows: auto 1fr;
  justify-items: center;
  align-items: center;
  aspect-ratio: 1.18;
  padding: .65rem .75rem .45rem;
  background: radial-gradient(ellipse at 50% 68%, #a64b36, #6f1528 62%, #410a16);
  border-bottom-color: #ddae6466;
}
.symbol-card__visual .symbol-card__logo {
  width: min(51%, 112px);
  height: auto;
  padding: 0;
  filter: brightness(0) invert(90%) sepia(31%) saturate(766%) hue-rotate(326deg);
}
.symbol-card__visual .symbol-card__coin {
  width: 75%;
  height: 100%;
  min-height: 0;
  padding: .28rem 0;
  filter: drop-shadow(0 8px 12px #27020a99);
}
.symbol-card:hover .symbol-card__visual .symbol-card__logo { transform: none; }
.symbol-card__name { color: #fff0d1; }
.symbol-card__desc { color: #f4d7ba; }
.symbol-card__meaning { border-color: #d4aa608c; }

.welcome-video { background: transparent; }
.welcome-video::after { background: linear-gradient(180deg, #31060f40, #31060f15, #31060f62); }
.brand-logo img { filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) {
  .welcome-video { background: url('https://baotinmanhhai.vn/poster-homepage.webp') center / cover no-repeat; }
}

/* Open hero composition with the campaign video visible behind the content. */
.hero-banner-frame, .hero-banner-frame:hover {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.hero-banner-overlay {
  background: transparent;
  text-shadow: 0 2px 16px #220007;
  padding: clamp(1rem, 4vw, 4rem);
}
.hero-banner-inner {
  background: transparent;
  mask-image: radial-gradient(ellipse at center, black 48%, transparent 74%);
}
.hero-banner-inner::after { display: none; }
.hero-perks-grid { display: none; }
.welcome-video { background: radial-gradient(ellipse, #aa1735, #32060e 74%); }
.welcome-video::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 20deg, transparent, #d62c4d55, transparent, #f2aa5b30, transparent);
  animation: spinSlow 24s linear infinite;
}
.gift-body {
  border-radius: 0 0 22px 22px;
  background: repeating-linear-gradient(126deg,#fff1d40a 0 1px,transparent 1px 6px),
    linear-gradient(145deg,#a52341,#4e0819 64%,#28020d);
  box-shadow: inset 0 0 0 5px #daa65a48, inset 0 0 28px #3c0416, 0 20px 40px #28020b9c;
}
.gift-body__ribbon-h { display: none; }
.gift-body__ribbon-v { opacity: .52; }
.gift-body__crest {
  width: 76%;
  height: 58%;
  border-radius: 14px;
  background: linear-gradient(135deg,#761429,#350612);
  box-shadow: inset 0 0 0 3px #e5b96b33, 0 5px 20px #280313;
}
.gift-body__crest img { width: 82%; filter: brightness(0) invert(1); }
.gift-orbit { position: absolute; inset: 5%; border-radius: 50%; pointer-events: none; }
.gift-orbit i { position: absolute; inset: 0; transform: rotate(var(--orbit-angle)); }
.gift-orbit i::before { content: '✦'; color: #ffe3a1; text-shadow: 0 0 12px #ffd273; }
.gift-orbit i:nth-child(2) { --orbit-angle: 120deg; }
.gift-orbit i:nth-child(3) { --orbit-angle: 240deg; }
.gift-orbit i:first-child { --orbit-angle: 0deg; }
@media (prefers-reduced-motion: no-preference) {
  .gift-orbit { animation: spinSlow 9s linear infinite; }
  .gift-box-3d.is-opened .gift-orbit { animation-play-state: paused; }
}
@media (max-width: 900px) {
  .hero-banner-img { aspect-ratio: 1; max-height: 42vh; }
  .hero-banner-overlay { align-items: center; text-align: center; }
  .hero-cta-group { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-video::before { animation: none; }
}

/* The reveal uses a gold-framed stage inspired by the campaign artwork. */
.result-card {
  background: radial-gradient(ellipse at top, #fffdf3, #f2e1b9 75%, #d8b575);
  border: 3px double #b17d32;
  box-shadow: 0 0 0 4px #492311, 0 0 0 6px #e2b95c, 0 0 55px #ffd47564;
}
.result-banner-wrap {
  max-width: 680px;
  background: var(--grad-gold-metallic);
  box-shadow: 0 10px 28px #332b1966;
}
.result-banner-img { max-height: min(62svh, 580px); }
.result-card__badge {
  background: linear-gradient(150deg,#8c1933,#410813);
  border-color: #c69236;
}
.result-card__congrats {
  width: fit-content;
  margin: 0 auto .8rem;
  padding: .5rem clamp(.8rem, 2vw, 1.5rem);
  border: 1px solid #e2b95c;
  border-radius: 999px;
  color: #ffe8ab;
  background: linear-gradient(145deg, #8c1933, #410813);
  font-family: var(--font-display);
  font-size: clamp(.85rem, 2.25vw, 1.15rem);
  box-shadow: 0 4px 18px #6630103d;
}
.result-banner-img { aspect-ratio: 1; width: 100%; height: auto; }

.gift-layout { display:grid; grid-template-columns:minmax(210px,250px) minmax(0,1fr); align-items:start; gap:clamp(20px,4vw,56px); }
.gift-main { min-width:0; }
.winners-panel, .player-dialog {
  border:1px solid #dcb465; border-radius:18px;
  background:linear-gradient(150deg,#711b30,#360910);
  color:#fff0d0; box-shadow:0 14px 45px #24000880,inset 0 0 0 4px #f8cc761c;
}
.winners-panel { padding:1.25rem; }
.winners-panel img,.player-dialog img { display:block; width:110px; margin:0 auto .75rem; filter:brightness(0) invert(1); }
.winners-panel h2,.player-dialog h2 { font-family:var(--font-display); text-align:center; color:#ffe2a0; margin:.35rem 0 1rem; }
.winners-panel ol { margin:0; padding:0; list-style:none; }
.winners-panel li { display:grid; gap:.18rem; padding:.65rem 0; border-top:1px solid #f3c77940; overflow-wrap:anywhere; }
.winners-panel li span,.winners-panel p,.player-dialog p { font-size:.83rem; color:#f0d9b4; }
.player-dialog { position:fixed; inset:0; margin:auto; padding:1.65rem; width:min(420px,calc(100% - 30px)); max-height:90dvh; }
.player-dialog::backdrop { background:#21040bba; backdrop-filter:blur(5px); }
.player-dialog label,.player-dialog input { display:block; width:100%; }
.player-dialog label { margin:.7rem 0 .25rem; }
.player-dialog input { border-radius:9px; border:1px solid #dcb465; padding:.7rem; background:#fff8e8; color:#330a12; font:inherit; }
.player-close { position:absolute; right:12px; top:9px; padding:.2rem .55rem; border:0; background:transparent; color:#fff0d0; font-size:1.5rem; cursor:pointer; }
.player-dialog .btn-luxury { width:100%; margin-top:.5rem; }
.symbol-card__seal {
  position:absolute; bottom:6%; right:6%; z-index:2; padding:.16rem .4rem;
  border:1px solid #e3b961; border-radius:4px; background:#4b1020; color:#ffe2a0;
  font-size:clamp(.45rem,.7vw,.65rem); letter-spacing:.06em; font-weight:800;
}
@media(max-width:760px) {
  .gift-layout { grid-template-columns:1fr; }
  .winners-panel { order:1; }
}

/* Keep the winner list anchored low and clear of the gift controls. */
.winners-panel { align-self:end; max-height:min(42vh, 340px); overflow:auto; }
@media(max-width:760px) {
  .winners-panel { width:min(100%, 280px); justify-self:start; max-height:290px; }
}
.symbol-card__visual::before {
  content:""; position:absolute; inset:7%; pointer-events:none;
  border:1px solid #ecc77a55; border-radius:50%;
  box-shadow:0 0 0 5px #e7af5c1c,inset 0 0 18px #efb76c35;
}
.campaign-music { position:fixed; z-index:44; bottom:14px; right:14px; color:#ffe8ad; }
.campaign-music summary { cursor:pointer; width:fit-content; margin-left:auto; border:1px solid #d9ab59; border-radius:999px; padding:.45rem .8rem; background:#4d0d1b; }
.campaign-music__body { margin-top:6px; padding:.6rem; border:1px solid #d9ab59; border-radius:12px; background:#3c0b15; max-width:calc(100vw - 28px); }
.campaign-music iframe { border:0; display:block; max-width:100%; }
.campaign-music p,.campaign-music a { color:inherit; font-size:.75rem; }

/* Fit the main game screens to the usable viewport. */
body { min-height: 100dvh; display: flex; flex-direction: column; }
.brand-header, .step-indicator { flex-shrink: 0; }
.app-stage { width: 100%; flex: 1; min-height: 0; padding-block: clamp(12px, 2.4vh, 30px); }
.screen-header { margin-bottom: clamp(10px, 2vh, 22px); }
.gift-layout { display: block; }
.winners-panel {
  position: fixed;
  z-index: 25;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(8px, env(safe-area-inset-bottom));
  width: clamp(190px, 17vw, 260px);
  max-height: min(39dvh, 325px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: .65rem .8rem;
}
.winners-panel[hidden] { display: none; }
.winners-panel ol { min-height: 0; overflow-y: auto; scrollbar-color: #bd8a48 #4d0d1b; }
.winners-panel h2 { font-size: clamp(1rem, 1.35vw, 1.3rem); margin-bottom: .45rem; }
.winners-panel img { width: 78px; margin-bottom: .35rem; }
.winners-panel li { padding-block: .42rem; }
@media (min-width: 861px) {
  .hero-banner-img { min-height: 0; max-height: min(60dvh, 580px); }
  .hero-banner-overlay { padding-block: 1rem; }
  .hero-banner-overlay h1 { font-size: clamp(2.45rem, min(5vw, 8vh), 5rem); }
  .symbols-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.55rem,1.3vw,1.2rem); }
  .symbol-card__visual { max-height: min(34dvh, 255px); }
  .symbol-card__visual .symbol-card__coin { max-height: min(24dvh, 190px); }
  .showcase-layout { grid-template-columns: 1fr 1.12fr; }
  .blessing-panel,.product-panel { padding: clamp(.75rem,2vh,1.5rem); }
  .product-stage { height: min(24dvh,210px); }
  .product-stage__img { max-height: min(22dvh,195px); }
  .result-card { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); align-items:center; gap:.7rem 1.25rem; padding:1rem; }
  .result-card__congrats { grid-column:1 / -1; margin-bottom:0; }
  .result-banner-wrap { margin:0; }
  .result-banner-img { aspect-ratio:auto; max-height:50dvh; }
  .result-details .result-meta-box { margin-block:.6rem; }
  .gift-main { width: min(100%, calc(100vw - clamp(190px, 17vw, 260px) - 40px)); margin-left:auto; }
}
@media(max-width:860px) {
  .hero-banner-overlay h1 { font-size:clamp(2.1rem,8vw,3.5rem); }
  .hero-banner-img { max-height:34dvh; }
  .screen--gift { padding-bottom: min(34dvh, 285px); }
  .winners-panel { width:min(55vw,225px); max-height:29dvh; }
  .result-banner-img { aspect-ratio:auto; }
}

/* Botanical accents around the campaign stage */
.landscape-decor {
  position:absolute;
  inset:0;
  pointer-events:none;
  overflow:hidden;
}
.landscape-decor img {
  position:absolute;
  display:block;
  height:auto;
  filter:sepia(.38) saturate(1.14);
  mix-blend-mode:screen;
}
.landscape-decor__mai {
  width:clamp(170px,27vw,490px);
  left:-5%;
  top:4%;
  opacity:.64;
  mask-image:radial-gradient(ellipse at 15% 39%,#000 20%,transparent 73%);
}
.landscape-decor__tung {
  width:clamp(165px,29vw,525px);
  right:-4%;
  bottom:-4%;
  opacity:.46;
  mask-image:radial-gradient(ellipse at 83% 51%,#000 18%,transparent 73%);
}
.landscape-decor__cuc {
  width:clamp(120px,18vw,325px);
  right:-6%;
  top:3%;
  transform:scaleX(-1);
  opacity:.49;
  mask-image:radial-gradient(ellipse at 12% 38%,#000 18%,transparent 68%);
}
@media(prefers-reduced-motion:no-preference) {
  .landscape-decor__mai { animation:landscape-drift 9s ease-in-out infinite alternate; }
  .landscape-decor__tung { animation:landscape-drift 12s ease-in-out infinite alternate-reverse; }
}
@keyframes landscape-drift {
  to { translate:0 -10px; }
}
@media(max-width:700px) {
  .landscape-decor__mai { left:-52px; opacity:.38; }
  .landscape-decor__tung { right:-50px; opacity:.27; }
  .landscape-decor__cuc { right:-44px; opacity:.30; }
}

.mythic-flight {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  overflow: hidden;
}
.mythic-flight[hidden] { display: none; }
.mythic-flight canvas {
  position: absolute;
  width: clamp(158px, 27vw, 410px);
  height: auto;
  top: 0;
  left: 0;
  filter: drop-shadow(0 0 10px #f8c36680) drop-shadow(0 5px 7px #3f0617a0);
}
.hero-brand-reveal {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 17%;
  translate: -50% 8px;
  padding: .35rem .75rem;
  border: 1px solid #e9b968;
  border-radius: 9px;
  background: #4e0a19;
  box-shadow: 0 0 24px #ffc15d70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s, translate .6s;
}
.hero-brand-reveal.is-revealed { opacity: 1; translate: -50% 0; }
.hero-brand-reveal img { display: block; width: clamp(76px, 9vw, 142px); filter: brightness(0) invert(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-brand-reveal { transition: none; }
}


/* Keep motion visible while the remote video loads or cannot play. */
.welcome-video video { opacity: 0; transition: opacity .45s ease; }
.welcome-video.is-video-playing video { opacity: 1; }
.welcome-video::before {
  background:
    url('https://baotinmanhhai.vn/poster-homepage.webp') center / cover no-repeat,
    conic-gradient(from 20deg, #410612, #d82d4c, #6c0b20, #d3753c, #410612);
  animation-duration: 36s;
  transition: opacity .45s ease;
}
.welcome-video.is-video-playing::before { opacity: 0; animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .welcome-video::before { animation: none; transition: none; }
}
