/*
 * Trang /teaser theo landing public/landing/assets/teaser/index.html (psdcut,
 * 4 màn, mỗi màn một bản mobile 750 và một bản desktop 1920). Đi kèm
 * /landing/assets/teaser/css/wkit.css (popup, footer, float, nút đăng nhập)
 * và /landing/assets/web/heroes.css (khối tướng màn 4).
 */
@font-face { font-family: 'Lexend'; src: url('../teaser/sections/1/fonts/Lexend-Regular.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

body { margin: 0; font-family: 'Lexend', sans-serif; }
.page { container-type: inline-size; width: 100%; overflow: hidden; }
.screen { display: none; position: relative; width: 100%; overflow: hidden; overflow: clip; }
.l { position: absolute; box-sizing: border-box; }
img.l { display: block; }
.screen .l { pointer-events: none; }
.screen :is(a, button).l, .screen .l :is(a, button) { pointer-events: auto; }
[data-align] { white-space: pre; }
[data-align=center] { text-align: center; }
.pg { display: flex; flex-direction: column; }
.hidden { display: none !important; }

.screen-1-m { --u: calc(100cqw / 750); height: calc(1314 * var(--u)); }
.screen-1-d { --u: calc(100cqw / 1920); height: calc(1080 * var(--u)); }
.screen-2-m { --u: calc(100cqw / 750); height: calc(1476 * var(--u)); }
.screen-2-d { --u: calc(100cqw / 1920); height: calc(1080 * var(--u)); }
.screen-3-m { --u: calc(100cqw / 750); height: calc(792 * var(--u)); }
.screen-3-d { --u: calc(100cqw / 1920); height: calc(1080 * var(--u)); }
.screen-4-m { --u: calc(100cqw / 750); height: calc(1468 * var(--u)); }
.screen-4-d { --u: calc(100cqw / 1920); height: calc(1139 * var(--u)); }
@media (max-width: 767px) { .screen-1-m, .screen-2-m, .screen-3-m, .screen-4-m { display: block; } }
@media (min-width: 768px) { .screen-1-d, .screen-2-d, .screen-3-d, .screen-4-d { display: block; } }
/* khối tướng dùng chung (heroes.css) đọc --u của màn chứa nó */
.screen-4-m .h-chars, .screen-4-d .h-chars { z-index: 2; }

/* hiệu ứng nút (lấy từ landing) */
.fx { transition: filter .25s ease, scale .25s ease; }
a.fx { display: block; color: inherit; }
.fx-inner { position: relative; width: 100%; height: 100%; }
.fx-inner > img { display: block; width: 100%; height: 100%; }
.fx-hover-bright:hover { filter: brightness(1.25); }

/* nút "đăng ký trước": nhịp sáng nhẹ để nổi bật */
.t-cta { animation: t-glow 2.4s ease-in-out infinite; }
@keyframes t-glow { 50% { filter: brightness(1.15) drop-shadow(0 0 calc(14 * var(--u)) rgba(255, 210, 110, .9)); } }

/* ---- mốc quà (màn 2): số mốc lấy từ DB nên in chữ thay ảnh "20.000" ---- */
.t-moc { padding: 0; border: 0; background: none; cursor: pointer; transition: scale .2s, filter .2s; }
.t-moc:hover { scale: 1.04; filter: brightness(1.1); }
.t-moc-num {
  position: absolute; left: 0; width: 100%; text-align: center;
  font-weight: 800; color: #b01010; letter-spacing: .01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.t-moc.is-reached .t-moc-gift { animation: t-glow 2s ease-in-out infinite; }
.t-moc.is-reached::after {
  content: "Đã đạt"; position: absolute; right: 6%; top: 8%;
  padding: .15em .55em; border-radius: 1em; background: #d0021b; color: #fff;
  font-size: calc(18 * var(--u)); font-weight: 600; pointer-events: none;
}

/* ---- popup: phần bổ sung cho dữ liệu thật ---- */
.t-msg { margin: .6em 0 0; text-align: center; font-size: .9em; color: #b01010; }
.t-msg.is-ok { color: #1a7f37; }

/* ---- popup lỗi đăng nhập / báo danh: nổi trên popup form đang mở ---- */
#modal-alert.show { z-index: 10000; }
#modal-alert .wmodal-content { position: relative; max-width: 26em; padding: 2.4em 1.6em 1.6em; text-align: center; }
.t-alert-title { margin: 0 0 .6em; font-weight: 700; font-size: 1.15em; color: #b01010; text-transform: uppercase; }
.t-alert-text { margin: 0 0 1.3em; color: #333; line-height: 1.45; }
.t-alert-ok { padding: .6em 2.6em; border: 0; border-radius: .5em; background: #b01010; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.t-alert-ok:hover { filter: brightness(1.1); }
.t-count { margin: 0 0 .6em; text-align: center; font-size: .9em; color: #6b4b2a; }
.t-count b { color: #b01010; }
.t-fb {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  width: 100%; margin-top: .6em; padding: .65em; border: 0; border-radius: .4em;
  background: #1877f2; color: #fff; font: inherit; cursor: pointer;
}
.t-fb:hover { background: #166fe0; }
.t-fb svg { width: 1.2em; height: 1.2em; fill: #fff; }
.t-reg { margin-top: .8em; text-align: center; font-size: .9em; }
.t-reg a { color: #b01010; font-weight: 600; }
.t-empty { padding: 1.2em 0; text-align: center; color: #8a7466; }
.witem .t-item-name { display: block; margin-top: .2em; font-size: .75em; line-height: 1.2; text-align: center; }

/* ---- màn 3 (Họa Cảnh Kỳ Đàm): 5 tab ảnh, bấm để chọn ----
 * Tab đang chọn: có màu, phóng to, nổi lên trên. Tab còn lại: xám + tối.
 * Xám làm bằng CSS nên file shape-N(-2).png cần là bản CÓ MÀU; hiện chỉ
 * shape-3 có màu, các file còn lại đang xám sẵn nên chọn vào vẫn xám. */
.s3-tab { display: block; cursor: pointer; transform-origin: 50% 55%; filter: grayscale(1) brightness(.6); transition: filter .35s ease, scale .35s ease; -webkit-tap-highlight-color: transparent; }
.s3-tab:hover { filter: grayscale(1) brightness(.85); }
.s3-tab.is-active { z-index: 2; scale: 1.08; filter: drop-shadow(0 0 calc(18 * var(--u)) rgba(255, 214, 140, .75)); }
.s3-tab.is-active:hover { filter: brightness(1.1) drop-shadow(0 0 calc(18 * var(--u)) rgba(255, 214, 140, .75)); }
.s3-tab:focus-visible { outline: 2px solid #ffd68c; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .s3-tab { transition: none; } }
/* ảnh admin tải lên có thể lệch tỉ lệ khung: giữ nguyên tỉ lệ, không kéo méo */
.s3-tab > img { object-fit: contain; }

/* popup ảnh chi tiết họa cảnh (#modal-hoacanh): khung trong suốt, ảnh to giữ tỉ lệ */
.wmodal-content.t-hc {
  display: flex; flex-direction: column; align-items: center;
  width: auto; max-width: 94vw; padding: 0;
  background: transparent; border: 0; border-radius: 0;
}
.t-hc-img {
  display: block; max-width: min(94vw, 1500px); max-height: 82vh; width: auto; height: auto;
  border: .3em solid #141010; border-radius: .4em; background: #141010;
  box-shadow: 0 0 0 .12em rgba(255, 214, 140, .55), 0 1.2em 3em rgba(0, 0, 0, .6);
}
.t-hc .btn-close-modal { z-index: 2; }
.t-hc-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  display: grid; place-items: center; width: 2.8em; height: 2.8em; padding: 0;
  border: 1px solid rgba(255, 214, 140, .7); border-radius: 50%;
  background: rgba(20, 16, 16, .7); cursor: pointer; transition: background .2s, scale .2s;
}
.t-hc-nav:hover { background: rgba(179, 32, 15, .9); scale: 1.08; }
.t-hc-nav:focus-visible { outline: 2px solid #ffd68c; outline-offset: 2px; }
.t-hc-nav svg { width: 1.4em; height: 1.4em; fill: #ffd68c; }
.t-hc-nav.is-prev { left: .6em; }
.t-hc-nav.is-next { right: .6em; }
.t-hc-count { margin: .6em 0 0; color: #ffd68c; font-size: .9em; letter-spacing: .1em; }
