/* =========================================================
   Strinova – Landing Đăng Ký Trước
   Dựng từ Figma "GP02" › frame "đăng ký trước" (203:5128)
   Artboard 1920×1080 (desktop) / 640×1080 (mobile).
   Trang cuộn kiểu fullpage: mỗi section cao đúng 1 màn hình.
   Nội dung mỗi section là 1 "stage" được scale vừa khít phần màn hình
   dưới header (--kc), ảnh nền phủ kín toàn màn hình.
   Các biến --kw, --kc, --hdr, --vh do js/main.js tính.
   ========================================================= */

:root {
  /* Design tokens lấy từ Figma */
  --c-key: #f76821;
  /* key */
  --c-white: #ffffff;
  /* trắng */
  --c-grey: #6b6b6b;
  /* xám */
  --c-dark: #2f2f2f;
  /* xám-đen */
  --c-blue: #4b82ff;
  /* pus */
  --c-gold: #ffc038;
  /* urbino */
  --c-red: #ee3333;
  /* scissors */
  --c-cream: #fff1be;
  --c-ivory: #fffdf5;

  --f-saira: "Saira", sans-serif;
  --f-cond: "Saira Condensed", sans-serif;
  --f-semi: "Saira Semi Condensed", sans-serif;
  --f-exo: "Exo 2", sans-serif;

  --kw: 1;
  /* scale theo bề rộng (header, footer, section Giới thiệu) */
  --kc: 1;
  /* scale vừa khít (nội dung các section) */
  --hdr: 75px;
  /* chiều cao header thực tế */
  --vh: 100vh;
  /* chiều cao màn hình thực tế */
  --header-h: 75px;
  /* chiều cao header trong artboard */
  --fp-speed: 300ms;
  /* tốc độ chuyển section (giống trang tham khảo) */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.fp-on,
html.fp-on body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  margin: 0;
  background: #000;
  color: var(--c-dark);
  font-family: var(--f-semi);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--c-gold);
  outline-offset: 3px;
}

/* ---------- Stage scaling ---------- */
/* ---------- Fullpage ---------- */
.fp {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.fp__track {
  transition: transform var(--fp-speed) ease;
  will-change: transform;
}

.fp__track.no-anim {
  transition: none;
}

.sec {
  position: relative;
  height: var(--vh);
  overflow: hidden;
}

.stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform: scale(var(--kw));
  transform-origin: 0 0;
}

.stage>* {
  position: absolute;
}

/* Stage nội dung: căn giữa phần màn hình dưới header, scale vừa khít */
.sec:not(.sec--footer):not(.sec--about)>.stage {
  left: 50%;
  top: calc(var(--hdr) + (var(--vh) - var(--hdr)) / 2);
  transform: translate(-50%, -50%) scale(var(--kc));
  transform-origin: 50% 50%;
}

/* Ảnh nền phủ kín cả màn hình */
.sec__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#register .sec__bg {
  object-position: left center;
}

/* ---------- Button (orange, vát góc) ---------- */
.btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-key);
  color: var(--c-white);
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -0.264px;
  text-transform: capitalize;
  white-space: nowrap;
  clip-path: polygon(10px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 4px 100%, 0 calc(100% - 4px), 0 10px);
  transition: filter .2s, transform .2s;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  width: 213.57px;
  height: 49.29px;
}

.btn--lg {
  width: 213px;
  height: 66px;
  clip-path: polygon(12px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 5px 100%, 0 calc(100% - 5px), 0 12px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 50;
  left: 0;
  top: 0;
  right: 0;
  height: var(--hdr);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, .025) 62% 70%, transparent 70%),
    linear-gradient(60deg, transparent 0 20%, rgba(255, 255, 255, .02) 20% 26%, transparent 26%),
    #191919;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 4px 16px rgba(0, 0, 0, .35);
}

.stage--header {
  height: 75px;
}

.header__logo {
  left: 56px;
  top: 12px;
}

.header__nav {
  left: 320px;
  top: 22px;
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.nav-link {
  position: relative;
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: 20px;
  color: var(--c-white);
  text-transform: capitalize;
  white-space: pre;
  padding-bottom: 20px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--c-key);
  transform: scaleX(0);
  transition: transform .25s;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  left: 1678px;
  top: 12px;
}

/* ---------- Tagline chung ---------- */
.tagline {
  left: 560px;
  top: 26px;
  transform: translateX(-50%);
  font-family: var(--f-saira);
  font-weight: 100;
  font-size: 28px;
  line-height: 1.5;
  letter-spacing: 16.52px;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap;
}

.tagline--50 {
  opacity: .5;
}

.tagline--5 {
  opacity: .05;
}

/* Hiển thị theo breakpoint */
.m-only {
  display: none !important;
}

.mh__icon,
.mh__name,
.mh__store,
.mh__burger,
.drawer {
  display: none;
}

/* ---------- TAB 1 – Hero ---------- */
.sec--hero {
  background: #0d0c14;
}

.hero__content {
  left: 315px;
  top: 460px;
  width: 1290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--c-white);
}

.hero__title {
  font-family: var(--f-cond);
  font-weight: 900;
  font-size: 80px;
  line-height: 1.5;
  letter-spacing: -0.88px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__subtitle {
  font-family: var(--f-semi);
  font-weight: 100;
  font-size: 34px;
  line-height: 1.5;
  letter-spacing: 8.84px;
  white-space: nowrap;
}

.hero__subtitle .dash {
  letter-spacing: -5.1px;
}

.hero__banner {
  margin: 0;
  line-height: 0;
}

.hero__banner img {
  width: 1290px;
  height: auto;
  filter: drop-shadow(0 6px 24px rgba(40, 0, 70, .45));
}

.hero__cta {
  left: 853.5px;
  top: 692.9px;
}

.hero__cta img {
  width: 30px;
  height: 30px;
}

.hero__scroll {
  left: 897px;
  top: 809px;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  50% {
    transform: translateY(8px);
  }
}

/* ---------- Page title (tab 2, 3) ---------- */
.page-title {
  left: 130.66px;
  top: 18.67px;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 9.33px;
}

.page-title__row {
  display: flex;
  align-items: center;
  gap: 14.67px;
}

.page-title__marker {
  width: 25.33px;
  height: 25.33px;
  background: var(--c-dark);
}

.page-title h2 {
  font-family: var(--f-semi);
  font-weight: 700;
  font-size: 36px;
  line-height: .9;
  letter-spacing: -0.54px;
  text-transform: uppercase;
  color: var(--c-dark);
}

.page-title__rule {
  width: 380px;
  height: 1.33px;
  background: var(--c-dark);
  opacity: .42;
}

.page-title__deco {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 47px;
}

.page-title__deco .plus {
  font-family: var(--f-saira);
  font-size: 38.67px;
  letter-spacing: 3.09px;
  color: var(--c-grey);
}

.page-title__deco .hatch {
  width: 146.67px;
  height: 21.33px;
  /* 22 vạch 2.67px nghiêng 25°, bước 18.81px (Hatch marks) */
  background: repeating-linear-gradient(115deg, rgba(107, 107, 107, .38) 0 2.67px, transparent 2.67px 17.05px);
}

/* ---------- Right rail ---------- */
.right-rail {
  left: 1824px;
  top: 0;
  width: 96px;
  height: 1080px;
  background: rgba(255, 255, 255, .1);
  border-left: 1.33px solid rgba(0, 0, 0, .2);
}

/* ---------- TAB 2 – Đăng ký trước ---------- */
.sec--light {
  background: #efefef;
}

.register__char {
  left: 778px;
  top: 0;
  width: 1142px;
  height: 1080px;
}

.register {
  left: 200px;
  top: 370.67px;
  width: 808px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10.67px;
}

.register__count {
  font-family: var(--f-semi);
  font-weight: 700;
  font-size: 112px;
  line-height: .88;
  letter-spacing: -2.24px;
  color: var(--c-blue);
  font-variant-numeric: tabular-nums;
  text-shadow: 1px 1px #FFF, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

.register__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-semi);
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.64px;
  color: var(--c-dark);
}

.register__status img {
  width: 26.67px;
  height: 26.67px;
}

.register__accent {
  width: 381.33px;
  height: 4px;
  background: var(--c-key);
}

.milestones {
  display: flex;
  gap: 10.67px;
}

.milestone {
  position: relative;
  width: 194px;
  height: 192px;
  overflow: hidden;
  background: var(--c-white);
  border: 1.33px solid var(--c-dark);
  border-radius: 4px;
  cursor: pointer;
}

.milestone.is-done {
  background: var(--c-grey);
}

.milestone__head {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 5.33px;
  padding: 0 13.33px;
  background: var(--c-dark);
  color: var(--c-white);
  white-space: nowrap;
}

.milestone.is-done .milestone__head {
  color: var(--c-grey);
}

.milestone__head b {
  font-weight: 700;
  font-size: 32px;
  line-height: .9;
  letter-spacing: -0.96px;
}

.milestone__head small {
  font-weight: 500;
  font-size: 12px;
}

.milestone__chest {
  position: absolute;
  left: 38.2px;
  top: 42.7px;
  width: 115px;
  height: 115px;
}

.milestone__desc {
  position: absolute;
  left: 9.34px;
  right: 9px;
  top: 157.3px;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  color: var(--c-dark);
}

/* Dấu "đã đạt": tự sinh theo class is-done, không cần img trong HTML */
.milestone.is-done::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  background: url("../images/check.png") center / contain no-repeat;
  pointer-events: none;
}

.final-reward {
  position: relative;
  display: flex;
  width: 808px;
  height: 218px;
  overflow: hidden;
  background: var(--c-dark);
  border: 1.33px solid var(--c-blue);
  cursor: pointer;
}

/* Lớp phủ xám "đã đạt": che mờ art + chữ, cùng ngôn ngữ xám với milestone */
.final-reward.is-done::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--c-grey) 50%, transparent);
  pointer-events: none;
  z-index: 1;
}

/* Dấu "đã đạt" của phần thưởng cuối: tự sinh theo class is-done */
.final-reward.is-done::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  transform: translate(-50%, -50%);
  background: url("../images/check.png") center / contain no-repeat;
  pointer-events: none;
  z-index: 2;
}

.final-reward__art {
  width: 213.33px;
  height: 216px;
  object-fit: cover;
  flex: none;
}

.final-reward__info {
  display: flex;
  flex-direction: column;
  gap: 10.67px;
  padding: 26.67px 21.33px 21.33px 29.33px;
  font-family: var(--f-semi);
  font-weight: 700;
  white-space: nowrap;
}

.final-reward__goal {
  display: flex;
  align-items: flex-end;
  gap: 13.33px;
  color: var(--c-white);
}

.final-reward__goal b {
  font-size: 90px;
  line-height: .84;
  letter-spacing: -3.6px;
}

.final-reward__goal span {
  font-size: 32px;
  line-height: 1;
  text-transform: capitalize;
}

.final-reward__name {
  font-size: 48px;
  line-height: 1;
  letter-spacing: .48px;
  color: var(--c-gold);
}

/* ---------- Lớp phủ toàn trang khi gọi API ----------
   Bấm milestone/phần thưởng → phủ kín màn hình như màn hình tải, xong thì
   kéo lên. Bám sát .loader: nền #0d0c12, logo pulse, bar cam --c-key glow,
   transition clip-path cùng công thức với .loader.is-done. */
.milestone,
.final-reward {
  cursor: pointer;
}

.api-loader {
  position: fixed;
  inset: 0;
  z-index: 290;
  /* ngay dưới màn hình tải đầu trang (300) */
  display: grid;
  place-items: center;
  background: rgb(13 12 18 / .55);
  /* sậm màu nhẹ, không che đặc */
  backdrop-filter: blur(10px);
  /* làm mờ toàn trang phía sau */
  -webkit-backdrop-filter: blur(10px);
  /* mở: hiện ngay để wipe chạy nhìn thấy (visibility không trễ) */
  transition: clip-path .9s var(--ease-io), visibility 0s;
  clip-path: inset(0 0 0 0);
}

.api-loader.is-done {
  clip-path: inset(0 0 100% 0);
  /* ẩn: màn bị cắt từ dưới lên */
  visibility: hidden;
  /* đóng: giữ hiện hình trong lúc kéo lên, kéo xong mới ẩn */
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}

/* Vòng tròn xoay, logo đứng yên ở giữa */
.api-loader__spin {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
}

.api-loader__spin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12);
  /* rãnh track trắng mờ */
  border-top-color: var(--c-key);
  /* cung cam như thanh tải */
  filter: drop-shadow(0 0 6px rgb(247 104 33 / .6));
  animation: spinBusy .7s linear infinite;
  /* tái dùng keyframe có sẵn */
}

.api-loader__logo {
  position: relative;
  /* vẽ trên vòng xoay */
  width: 120px;
  height: auto;
  animation: loaderPulse 1.6s ease-in-out infinite;
  /* tái dùng keyframe loader */
}

/* ---------- TAB 3 – Vòng quay ---------- */
.wheel__char--right {
  left: 1172px;
  top: 89px;
  width: 748px;
  height: 991px;
}

.wheel__char--left {
  left: 0;
  top: 149px;
  width: 858px;
  height: 931px;
}

.lucky {
  left: 420px;
  top: 0;
  width: 1080px;
  height: 1080px;
}

.lucky>* {
  position: absolute;
}

.lucky__bg {
  left: 0;
  top: 0;
  width: 1080px;
  height: 1080px;
}

.lucky__bg--m {
  display: none;
}

.lb-rules {
  left: 0;
  top: 232px;
}

.lb-history {
  left: 0;
  top: 310px;
}

.lb-missions {
  left: 866px;
  top: 232px;
}

.lb-invite {
  left: 866px;
  top: 310px;
}

.lucky__heading {
  left: 180px;
  top: 63px;
  width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7.2px;
  font-family: var(--f-semi);
  font-weight: 700;
  text-align: center;
}

.lucky__badge {
  display: inline-flex;
  align-items: center;
  gap: 7.2px;
  padding: 5.4px 12.6px;
  border-radius: 5.4px;
  background: var(--c-red);
  color: var(--c-ivory);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 2.16px;
}

.lucky__badge i {
  width: 5.4px;
  height: 5.4px;
  border-radius: 50%;
  background: var(--c-cream);
}

.lucky__title {
  font-size: 39.6px;
  letter-spacing: 1.584px;
  text-transform: uppercase;
  color: var(--c-dark);
  line-height: normal;
}

.lucky__sub {
  display: flex;
  align-items: center;
  gap: 10.8px;
  color: var(--c-red);
  font-size: 32px;
  letter-spacing: 2.56px;
  text-transform: uppercase;
}

.lucky__sub i {
  width: 64.8px;
  height: 1.8px;
  background: var(--c-red);
}

.wheel {
  left: 162px;
  top: 236px;
  width: 756px;
  height: 795px;
}

.wheel__layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 756px;
  height: 795px;
  pointer-events: none;
}

.wheel__disk {
  transform-origin: 378px 383.5px;
  transition: transform 5.2s cubic-bezier(.12, .7, .1, 1);
  will-change: transform;
}

.wheel__spin {
  position: absolute;
  left: 290px;
  top: 295.5px;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  font-family: var(--f-semi);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(150, 40, 0, .45);
  transition: transform .15s, filter .2s;
}

.wheel__spin:hover {
  filter: drop-shadow(0 0 12px rgba(255, 200, 90, .9));
  transform: scale(1.04);
}

.wheel__spin:disabled {
  cursor: default;
}

.wheel.is-spinning .wheel__spin {
  transform: none;
  filter: none;
}

.lucky__note {
  left: 351px;
  top: 1020.6px;
  width: 378px;
  height: 30.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  background: rgba(17, 18, 20, .8);
  border: .9px solid #504735;
  font-family: var(--f-semi);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-white);
}

.lucky__note img {
  width: 14.4px;
  height: 14.4px;
}

/* ---------- TAB 4 – Giới thiệu: 2 panel hình thang trượt ----------
   Tham khảo section giới thiệu trên ff.garena.com/vn:
   - Ban đầu: 2 panel hình thang chia đôi, ngăn bởi đường chéo.
   - Bấm 1 panel: cả dải trượt ngang, panel đó phủ gần hết khung,
     panel kia còn 1 dải hẹp ở mép kèm nút "Khám phá …" để chuyển qua.
   - Panel đang mở: hiện tiêu đề, mô tả, ảnh nền tự chuyển (có vòng tiến trình) + thumbnail. */
.sec--about {
  background: #000;
}

/* Section này scale theo bề rộng, chiều cao kéo giãn đúng bằng màn hình */
.sec--about>.stage {
  height: calc(var(--vh) / var(--kw));
}

.duo {
  left: 0;
  top: 0;
  width: 1920px;
  height: 100%;
  overflow: hidden;
  --pw: 1814px;
  /* bề rộng mỗi panel */
  --slant: 15%;
  /* độ vát (15% bề rộng panel ≈ 272px) */
  --ax: -714px;
  --bx: 820px;
  /* vị trí ban đầu */
  --ease: cubic-bezier(.7, 0, .2, 1);
}

.duo.is-a {
  --ax: -4px;
  --bx: 1530px;
}

.duo.is-b {
  --ax: -1424px;
  --bx: 110px;
}

.duo>* {
  position: absolute;
}

.duo__panel {
  top: 0;
  left: 0;
  width: var(--pw);
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform .3s ease;
}

.duo__panel--a {
  transform: translateX(var(--ax));
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.duo__panel--b {
  transform: translateX(var(--bx));
  clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
}

.duo__covers,
.duo__layer {
  position: absolute;
  inset: 0;
}

.duo__cover {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1920px;
  height: 100%;
  object-fit: cover;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .6s;
}

.duo__cover.is-on {
  opacity: 1;
}

.duo__layer {
  background: linear-gradient(rgba(0, 0, 0, 0) 20%, #000);
  transition: background-color .6s;
}

.duo.is-a .duo__panel--b .duo__layer,
.duo.is-b .duo__panel--a .duo__layer {
  background-color: rgba(0, 0, 0, .6);
}

.duo__cover {
  transition: opacity .6s, transform .3s ease;
}

/* Rê chuột vào panel chưa mở: ảnh phóng 1.1 có độ nảy (giống ff.garena.com) */
.duo__panel:not(.is-open):hover .duo__cover.is-on {
  transform: translateX(-50%) scale(1.1);
  transition: opacity .6s, transform .3s cubic-bezier(.18, .89, .32, 1.28);
}

/* Con trỏ riêng trên panel chưa mở: mũi tên chỉ hướng panel sẽ trượt tới */
.duo__panel--a:not(.is-open) {
  cursor: url("../images/cursor-right.svg") 42 40, pointer;
}

.duo__panel--b:not(.is-open) {
  cursor: url("../images/cursor-left.svg") 42 40, pointer;
}

.duo__panel.is-open {
  cursor: default;
}

/* Viền vàng trang trí */
.duo__corner {
  bottom: 21.6px;
  width: 134.4px;
  height: 243px;
  border: 1px solid transparent;
  pointer-events: none;
}

.duo__corner--l {
  left: 0;
  border-left-color: var(--c-key);
  border-top-color: var(--c-key);
  transform: skewX(-25deg);
}

.duo__corner--r {
  right: 0;
  border-right-color: var(--c-key);
  border-top-color: var(--c-key);
  transform: skewX(25deg);
}

.duo__seamframe {
  left: 42%;
  bottom: 24%;
  width: 11%;
  height: 76%;
  pointer-events: none;
  border-right: 1px solid var(--c-key);
  border-bottom: 1px solid var(--c-key);
  transform: skewX(-15deg);
  transition: .3s;
}

.duo.is-a .duo__seamframe,
.duo.is-b .duo__seamframe {
  width: 48%;
}

/* Nhãn trạng thái ban đầu */
.duo__label {
  bottom: 22%;
  font-family: var(--f-cond);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
  transition: opacity .4s, transform .6s var(--ease);
}

.duo__label--a {
  left: 250px;
}

.duo__label--b {
  right: 12%;
  bottom: 21.5%;
}

.duo.is-a .duo__label,
.duo.is-b .duo__label {
  opacity: 0;
  transform: translateY(20px);
}

/* Nội dung panel đang mở */
.duo__info {
  left: 230px;
  bottom: 90px;
  width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: opacity .5s, transform .7s var(--ease), visibility 0s .7s;
}

.duo.is-a .duo__info[data-for="a"],
.duo.is-b .duo__info[data-for="b"] {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .45s, .45s, 0s;
}

.duo__title {
  font-family: var(--f-cond);
  font-weight: 900;
  font-size: 88px;
  line-height: .95;
  letter-spacing: 1px;
}

.duo__desc {
  font-family: var(--f-saira);
  font-size: 26px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .6);
}

.duo__btn {
  position: relative;
}

.duo__pager {
  display: flex;
  gap: 8px;
}

.duo__pager:empty {
  display: none;
}

.duo__dot {
  width: 35px;
  height: 35px;
}

.duo__dot circle.ring {
  fill: none;
  stroke: rgba(255, 255, 255, .35);
  stroke-width: 1.5;
}

.duo__dot circle.prog {
  fill: none;
  stroke: var(--c-key);
  stroke-width: 1.5;
  stroke-dasharray: 100.5;
  stroke-dashoffset: 100.5;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.duo__dot.is-on circle.prog {
  animation: duoProg var(--dur, 6s) linear forwards;
}

.duo__dot circle.pip {
  fill: var(--c-key);
}

@keyframes duoProg {
  to {
    stroke-dashoffset: 0;
  }
}

.duo__thumbs {
  left: 1080px;
  bottom: 110px;
  display: flex;
  gap: 24px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s, visibility 0s .5s;
}

.duo.is-b .duo__thumbs[data-for="b"] {
  opacity: 1;
  visibility: visible;
  transition-delay: .55s, 0s;
}

.duo__thumb {
  width: 188px;
  height: 107px;
  overflow: hidden;
  border: 1px solid transparent;
  filter: grayscale(.6);
  transition: transform .3s ease-out, border-color .3s, filter .3s;
}

.duo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.duo__thumb.is-on {
  transform: scale(1.2);
  filter: none;
  border-color: var(--c-key);
}

/* Nút chuyển panel ở dải hẹp */
.duo__toggle {
  top: 130px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  padding: 10px 18px;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility 0s .4s, color .2s;
}

.duo__toggle b {
  color: var(--c-key);
  display: inline-block;
  animation: cue 1.2s ease-in-out infinite;
}

.duo__toggle:hover {
  color: #fff;
}

.duo__toggle--to-a {
  left: 50px;
}

.duo__toggle--to-b {
  right: 50px;
}

.duo.is-b .duo__toggle--to-a,
.duo.is-a .duo__toggle--to-b {
  opacity: 1;
  visibility: visible;
  transition-delay: .6s, 0s, 0s;
}

@keyframes cue {
  50% {
    transform: translateX(6px);
  }
}

/* ---------- TAB 5 – Tính năng đặc sắc ---------- */
.sec--features {
  background: #e4e2e3;
}

.features__title {
  left: 960.5px;
  top: 50px;
  transform: translateX(-50%);
  font-family: var(--f-semi);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: -0.44px;
  text-transform: uppercase;
  color: var(--c-dark);
  white-space: nowrap;
}

.slider {
  left: 360px;
  top: 203px;
  width: 1200px;
  height: 675px;
  overflow: hidden;
}

.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3.5px solid var(--c-key);
  pointer-events: none;
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.3, .8, .2, 1);
}

.slider__slide {
  width: 1200px;
  height: 675px;
  flex: none;
  object-fit: cover;
}

.slider__arrow {
  top: 497.6px;
  width: 52px;
  height: 85.7px;
  transition: transform .2s;
}

.slider__arrow--prev {
  left: 276px;
}

.slider__arrow--next {
  left: 1592px;
}

.slider__arrow--prev:hover {
  transform: translateX(-6px);
}

.slider__arrow--next:hover {
  transform: translateX(6px);
}

.slider__dots {
  left: 1121px;
  top: 903px;
  display: flex;
}

.slider__dot {
  width: 38px;
  height: 38px;
  background: url("../images/dot.png") center / 38px no-repeat;
}

.slider__dot.is-active {
  background-image: url("../images/dot-active.png");
}

/* ---------- Footer ---------- */
.sec--footer {
  height: calc(272px * var(--kw));
  background: #000;
}

.stage--footer {
  height: 272px;
}

.footer__license {
  left: 1315px;
  top: 120px;
  width: 130px;
  height: 50px;
}

.footer__license img {
  display: block;
  width: 100%;
  height: 100%;
}

.footer__gzone {
  left: 551px;
  top: 122px;
  width: 124px;
  height: 33px;
}

.footer__age {
  left: 1245px;
  top: 109px;
  width: 50px;
  height: 72px;
}

.footer__text {
  left: 724px;
  top: 45px;
  width: 473px;
  font-family: var(--f-exo);
  font-size: 16px;
  line-height: normal;
  text-align: center;
  color: var(--c-white);
  white-space: nowrap;
}

.footer__text p+p {
  margin-top: 5px;
}

.footer__text a:hover {
  color: var(--c-key);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, .6);
}

.modal[hidden] {
  display: none;
}

/* =========================================================
   MOBILE – artboard 640px (Figma 274:13947)
   Áp dụng cho màn hình < 1024px hoặc đang dựng đứng.
   Breakpoint này phải khớp với MOBILE_MQ trong js/main.js
   ========================================================= */
@media (max-width: 1023px),
(orientation: portrait) {
  :root {
    --header-h: 94px;
  }

  .d-only {
    display: none !important;
  }

  .m-only {
    display: block !important;
  }

  span.m-only {
    display: inline !important;
  }

  .stage {
    width: 640px;
  }

  /* ảnh nền 1920px được canh giữa như trong Figma (x = -640) */

  /* Header mobile */
  .site-header {
    background: #000;
    box-shadow: none;
  }

  .stage--header {
    height: 94px;
  }

  .header__logo,
  .header__nav,
  .header__cta {
    display: none;
  }

  .mh__icon {
    display: block;
    left: 14px;
    top: 7px;
    width: 81px;
    height: 81px;
    border-radius: 18px;
    overflow: hidden;
  }

  .mh__name {
    display: block;
    left: 105px;
    top: 46.5px;
    transform: translateY(-50%);
    font-family: var(--f-exo);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .96px;
    color: #ffc971;
    text-transform: capitalize;
  }

  .mh__store {
    display: block;
    left: 331px;
    top: 9px;
  }

  .mh__burger {
    display: block;
    left: 560px;
    top: 26px;
    width: 67px;
    height: 40px;
  }

  .mh__burger i {
    position: absolute;
    left: 0;
    width: 67px;
    height: 9px;
    border-radius: 6px;
    background: #d9d9d9;
    transition: transform .25s, opacity .2s;
  }

  .mh__burger i:nth-child(1) {
    top: 0;
  }

  .mh__burger i:nth-child(2) {
    top: 15px;
  }

  .mh__burger i:nth-child(3) {
    top: 31px;
  }

  .mh__burger[aria-expanded="true"] i:nth-child(1) {
    transform: translateY(15.5px) rotate(45deg);
  }

  .mh__burger[aria-expanded="true"] i:nth-child(2) {
    opacity: 0;
  }

  .mh__burger[aria-expanded="true"] i:nth-child(3) {
    transform: translateY(-15.5px) rotate(-45deg);
  }

  /* Menu mobile */
  .drawer {
    display: block;
    position: fixed;
    z-index: 49;
    left: 0;
    top: var(--hdr);
  }

  .drawer[hidden] {
    display: none;
  }

  .drawer__stage {
    position: relative;
    width: 117px;
    height: 924px;
    transform: scale(var(--kw));
    transform-origin: 0 0;
    animation: slideIn .25s ease-out;
  }

  .drawer__stage>* {
    position: absolute;
  }

  .drawer__stage img {
    left: 0;
    top: 0;
  }

  .drawer__stage a {
    left: 0;
    width: 93px;
    height: 117px;
    font-size: 0;
  }

  .drawer__stage a:focus-visible {
    outline-offset: -4px;
  }

  .drawer__close {
    left: 93px;
    top: 585px;
    width: 24px;
    height: 76px;
  }

  @keyframes slideIn {
    from {
      transform: translateX(-100%) scale(var(--kw));
    }
  }

  /* Tab 1 */
  .hero__content {
    left: 10px;
    top: 548px;
    width: 620px;
  }

  .hero__banner img {
    width: 620px;
  }

  .hero__title {
    font-size: 40px;
    letter-spacing: -0.44px;
    white-space: normal;
  }

  .hero__subtitle {
    font-size: 18px;
    letter-spacing: 4.68px;
  }

  .hero__subtitle .dash {
    letter-spacing: -2.7px;
  }

  .hero__cta {
    left: 213.5px;
  }

  .hero__scroll {
    left: 257px;
  }

  .tagline {
    display: none;
  }

  /* Tab 2 */
  .register__char--m {
    left: 0;
    top: 34px;
    width: 640px;
    height: 1046px;
  }

  .register {
    left: 21px;
    top: 599px;
    transform: scale(.76);
    transform-origin: 0 0;
  }

  /* Tab 3 */
  #wheel .page-title,
  .wheel__char {
    display: none;
  }

  .lucky {
    left: -220px;
  }

  .lucky__bg--m {
    left: 220px;
    top: 0;
    width: 640px;
    height: 1080px;
  }

  .lb-missions {
    left: 239px;
    top: 232px;
  }

  .lb-rules {
    left: 619px;
    top: 232px;
  }

  .lb-history {
    left: 239px;
    top: 310px;
  }

  .lb-invite {
    left: 619px;
    top: 310px;
  }

  .wheel {
    left: 219.27px;
    top: 356.5px;
    transform: scale(.8485);
    transform-origin: 0 0;
  }

  /* Tab 4 – mobile (artboard 640): cùng cơ chế, thu nhỏ theo tỉ lệ */
  .duo {
    width: 640px;
    --pw: 605px;
    --ax: -238px;
    --bx: 273px;
  }

  .duo.is-a {
    --ax: -1px;
    --bx: 540px;
  }

  .duo.is-b {
    --ax: -505px;
    --bx: 36px;
  }

  .duo__panel {
    width: var(--pw);
  }

  .duo__cover {
    left: 50%;
  }

  .duo__label {
    font-size: 32px;
  }

  .duo__label--a {
    left: 30px;
    bottom: 260px;
  }

  .duo__label--b {
    right: 30px;
    bottom: 150px;
  }

  .duo__info {
    left: 40px;
    right: 40px;
    width: auto;
    bottom: 200px;
    gap: 16px;
  }

  .duo__title {
    font-size: 60px;
  }

  .duo__desc {
    font-size: 21px;
  }

  .duo__thumbs {
    left: 40px;
    bottom: 60px;
  }

  .duo__thumb {
    width: 150px;
    height: 85px;
  }

  .duo__toggle {
    top: 130px;
    font-size: 16px;
  }

  .duo__toggle--to-a {
    left: 24px;
  }

  .duo__toggle--to-b {
    right: 24px;
  }

  .duo.is-b .duo__info[data-for="b"] {
    bottom: 200px;
  }

  /* Tab 5 */
  .features__title {
    left: 320.5px;
  }

  .slider {
    left: 21px;
    top: 339.7px;
    width: 597px;
    height: 336px;
  }

  .slider__slide {
    width: 597px;
    height: 336px;
  }

  .slider__arrow--prev {
    left: 73px;
    top: 234px;
  }

  .slider__arrow--next {
    left: 566px;
    top: 695.6px;
  }

  .slider__dots {
    left: 206px;
    top: 807px;
  }

  /* Footer */
  .sec--footer {
    height: calc(310px * var(--kw));
  }

  .stage--footer {
    height: 290px;
  }

  .footer__license {
    left: 360px;
    top: 28px;
    width: 115px;
    height: 44px;
  }

  .footer__gzone {
    left: 190px;
    top: 40px;
    width: 76px;
    height: 20px;
  }

  .footer__age {
    left: 298px;
    top: 23px;
    width: 38px;
    height: 55px;
  }

  .footer__text {
    left: 0;
    top: 93px;
    width: 640px;
    font-weight: 500;
    font-size: 14px;
  }

  .footer__text p+p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp__track {
    transition: none;
  }

  .hero__scroll {
    animation: none;
  }

  .wheel__disk {
    transition-duration: .01s;
  }
}

/* =========================================================
   CHUYỂN ĐỘNG & TƯƠNG TÁC
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

/* ---------- Màn hình tải ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #0d0c12;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
  clip-path: inset(0 0 0 0);
}

.loader.is-done {
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}

.loader__inner {
  width: min(360px, 70vw);
  display: grid;
  gap: 18px;
  justify-items: start;
  transition: opacity .4s, translate .6s var(--ease-io);
}

.loader.is-done .loader__inner {
  opacity: 0;
  translate: 0 -40px;
}

.loader__logo {
  width: 174px;
  height: auto;
  animation: loaderPulse 1.6s ease-in-out infinite;
}

@keyframes loaderPulse {
  50% {
    opacity: .55;
  }
}

.loader__bar {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.loader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--c-key);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  transition: transform .3s var(--ease-out);
  box-shadow: 0 0 12px var(--c-key);
}

.loader__meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-semi);
  font-size: 13px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .45);
}

.loader__meta b {
  color: #fff;
  font-weight: 600;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Hiện dần khi vào section ----------
   Dùng thuộc tính translate/scale/rotate riêng để không đè transform định vị sẵn có. */
html.js [data-reveal] {
  opacity: 0;
  transition:
    opacity .7s ease var(--d, 0s),
    translate 1s var(--ease-out) var(--d, 0s),
    scale 1s var(--ease-out) var(--d, 0s),
    rotate 1.2s var(--ease-out) var(--d, 0s),
    clip-path 1s var(--ease-io) var(--d, 0s);
}

html.js [data-reveal="up"] {
  translate: 0 48px;
}

html.js [data-reveal="down"] {
  translate: 0 -40px;
}

html.js [data-reveal="left"] {
  translate: -80px 0;
}

html.js [data-reveal="right"] {
  translate: 80px 0;
}

html.js [data-reveal="zoom"] {
  scale: .9;
}

html.js [data-reveal="spin"] {
  scale: .7;
  rotate: -40deg;
}

html.js [data-reveal="clip"] {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}

html.is-ready .sec.is-in [data-reveal] {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  rotate: 0deg;
  clip-path: inset(0 -20% 0 0);
}

/* các panel Giới thiệu: rời nhanh hơn để không cản thao tác */
.duo__panel[data-reveal] {
  transition: transform .3s ease, opacity .6s ease var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s) !important;
}

/* Ảnh nền hero chuyển động chậm */
.sec--hero .sec__bg {
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: 60% 40%;
}

@keyframes kenburns {
  from {
    scale: 1;
  }

  to {
    scale: 1.07;
  }
}

/* ---------- Nút: vệt sáng quét khi rê chuột ---------- */
.btn {
  overflow: hidden;
  isolation: isolate;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  translate: -110% 0;
  transition: translate .7s var(--ease-out);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--c-key);
  transition: background .3s;
}

.btn:hover::after {
  translate: 110% 0;
}

.btn:hover::before {
  background: #ff7a35;
}

.btn:active {
  transform: translateY(1px) scale(.98);
}

.hero__cta {
  box-shadow: none;
  animation: ctaGlow 2.4s ease-in-out infinite 2s;
}

@keyframes ctaGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(247, 104, 33, 0));
  }

  50% {
    filter: drop-shadow(0 0 18px rgba(247, 104, 33, .75));
  }
}

/* ---------- Chỉ mục section (fullpage) ---------- */
.fp-nav {
  position: fixed;
  z-index: 40;
  right: 26px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 0;
  --fg: #2f2f2f;
  transition: opacity .4s;
}

.fp-nav::before {
  content: "";
  position: absolute;
  right: 9px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--fg);
  opacity: .35;
  transition: background .4s;
}

html[data-theme="dark"] .fp-nav {
  --fg: #ffffff;
}

.fp-nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  height: 26px;
  padding-right: 0;
  color: var(--fg);
}

.fp-nav button i {
  width: 1.5px;
  height: 20px;
  margin-right: 8.5px;
  background: var(--fg);
  opacity: .6;
  transition: width .35s var(--ease-out), background .3s, opacity .3s, margin .35s var(--ease-out);
}

.fp-nav button.is-on i {
  width: 4px;
  height: 26px;
  margin-right: 7px;
  background: var(--c-blue);
  opacity: 1;
}

.fp-nav button span {
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  translate: 8px 0;
  transition: opacity .3s, translate .4s var(--ease-out);
  pointer-events: none;
}

.fp-nav button:hover span,
.fp-nav button:focus-visible span {
  opacity: 1;
  translate: 0 0;
}

.fp-nav button:hover i {
  opacity: 1;
}

html[data-section="footer"] .fp-nav {
  opacity: 0;
  pointer-events: none;
}

/* ---------- Hiệu ứng pháo sáng khi quay trúng ---------- */
.lucky__fx {
  left: 0;
  top: 0;
  width: 1080px;
  height: 1080px;
  pointer-events: none;
}

/* ---------- Modal: nền mờ ---------- */
.modal {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
}

@media (max-width: 1023px),
(orientation: portrait) {
  .fp-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  .sec--hero .sec__bg,
  .hero__cta,
  .loader__logo {
    animation: none;
  }

  .loader {
    transition: none;
  }
}

/* =========================================================
   POPUP theo thiết kế Figma (popup 640×400, viền cam, nút sao đóng)
   --ps: tỉ lệ kích thước, --pf: tỉ lệ chữ (không nhỏ hơn 0.85 để dễ đọc)
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pop {
  --u: var(--ps, 1);
  position: relative;
  isolation: isolate;
  width: calc(640px * var(--u));
  min-height: calc(400px * var(--u));
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  padding: calc(22px * var(--u)) calc(44px * var(--u)) calc(30px * var(--u));
  border: 2px solid var(--c-key);
  background: #ededed;
  color: var(--c-dark);
  font-family: var(--f-semi);
  font-size: calc(15px * var(--pf, 1));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.modal.is-in .pop {
  animation: popIn .55s var(--ease-out) both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.94);
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

.pop__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pop__line {
  position: absolute;
  left: 6.875%;
  top: 0;
  width: 86.25%;
  height: calc(5px * var(--u));
  background: var(--c-key);
}

.pop__close {
  position: absolute;
  right: calc(-19px * var(--u));
  top: calc(-19px * var(--u));
  z-index: 2;
  width: max(34px, calc(38px * var(--u)));
  height: max(34px, calc(38px * var(--u)));
  filter: drop-shadow(0 0 0 #fff) drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
  transition: rotate .3s var(--ease-out), scale .2s;
}

.pop__close img {
  width: 100%;
  height: 100%;
}

.pop__close:hover {
  rotate: 90deg;
  scale: 1.08;
}

.pop__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  margin: 0 0 calc(18px * var(--u));
  text-align: center;
  font-weight: 800;
  font-size: calc(30px * var(--pf, 1));
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--c-key);
}

.pop__title i {
  flex: none;
  width: .3em;
  height: .3em;
  background: #f7a21b;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.pop__title i:last-child {
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.pop__body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

.pop-empty {
  text-align: center;
  font-size: 1.15em;
  line-height: 1.6;
  padding: 1.2em 0;
}

.pop-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
}

.pop-hint {
  font-size: .95em;
  color: #555;
  text-align: center;
}

.pop-btn {
  position: relative;
  height: max(42px, calc(49px * var(--u)));
  padding: 0 calc(30px * var(--u));
  font-size: calc(22px * var(--pf, 1));
  flex: none;
}

.pop-btn--wide {
  min-width: 58%;
}

.pop-btn.is-done::before {
  background: #3aa76d;
}

/* Ô sao chép giftcode / mã mời */
.pop-copy {
  display: flex;
  gap: calc(8px * var(--u));
  align-items: stretch;
  width: 100%;
}

.pop-copy__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .3em;
  padding: 0 .9em;
  height: max(42px, calc(48px * var(--u)));
  background: #fff;
  border: 1px solid var(--c-dark);
  border-radius: 4px;
  font-size: 1.05em;
  color: var(--c-key);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pop-copy__field b {
  font-weight: 600;
  letter-spacing: .04em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Thẻ quà (giống thẻ mốc quà ở section Đăng ký trước) */
.pop-prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(22px * var(--u));
}

.prize-card {
  width: max(150px, calc(194px * var(--u)));
  aspect-ratio: 194 / 192;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.33px solid var(--c-dark);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(247, 104, 33, .25);
}

.prize-card__head {
  height: 23%;
  background: var(--c-dark);
  flex: none;
}

.prize-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2%;
}

.prize-card__img {
  width: 59%;
  aspect-ratio: 1;
  object-fit: contain;
}

.prize-card__lines {
  font-weight: 500;
  font-size: .8em;
  line-height: 1.15;
  text-align: center;
}

/* Nhận lượt */
.pop-missions {
  display: grid;
  gap: calc(10px * var(--u));
}

.pop-missions li {
  display: grid;
  grid-template-columns: 1fr auto 34%;
  align-items: center;
  gap: .6em;
  min-height: max(52px, calc(62px * var(--u)));
  padding-left: 1.2em;
  background: linear-gradient(106deg, #2f2f2f 0 66%, var(--c-key) 66%);
  color: #fff;
  font-weight: 700;
  font-size: 1em;
}

.pop-missions__note {
  text-align: right;
  white-space: nowrap;
}

.pop-missions__cta {
  display: flex;
  justify-content: center;
}

.pop-missions button {
  min-width: 70%;
  height: max(38px, calc(46px * var(--u)));
  padding: 0 1em;
  background: #fff;
  color: var(--c-key);
  font-weight: 600;
  font-size: 1.45em;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transition: transform .15s, background .2s, color .2s;
}

.pop-missions button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.pop-missions button.is-got {
  background: #fff1be;
}

.pop-missions button:disabled {
  background: #d7d7d7;
  color: #8a8a8a;
  font-size: 1.1em;
  cursor: default;
}

/* Thể lệ */
.pop-rules {
  font-size: .92em;
  line-height: 1.5;
}

.pop-rules p+p {
  margin-top: .35em;
}

.pop-rules table {
  width: 100%;
  border-collapse: collapse;
  margin: .6em 0 .8em;
  background: #fff;
  font-size: .95em;
}

.pop-rules th {
  background: #f7941d;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  padding: .35em;
}

.pop-rules td {
  border: 1px solid #c9c9c9;
  padding: .2em .6em;
}

.pop-rules td+td,
.pop-rules th+th {
  width: 36%;
  text-align: center;
}

/* Tab chuyển đổi trong popup Lịch Sử */
.pop-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pop-tabs__btn {
  padding: .55em .6em;
  font-weight: 700;
  font-size: .95em;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #555;
  background: #ececec;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}

.pop-tabs__btn.is-on {
  color: var(--c-key);
  background: #fff;
  border-color: var(--c-key);
}

/* Lịch sử */
.pop-history {
  display: grid;
  gap: 8px;
}

.pop-history li {
  display: grid;
  grid-template-columns: 52px 1fr auto auto;
  gap: .8em;
  align-items: center;
  padding: .5em .8em;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-left: 3px solid var(--c-key);
}

.pop-history img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #2f2f2f;
  border-radius: 4px;
  padding: 4px;
}

.pop-history b {
  display: block;
  color: var(--c-key);
  text-transform: uppercase;
  font-size: .85em;
  letter-spacing: .06em;
}

.pop-history span {
  font-size: .95em;
}

.pop-history em {
  font-style: normal;
  font-size: .85em;
  color: #777;
}

.pop-history time {
  font-size: .85em;
  color: #777;
  white-space: nowrap;
}

.pop-history__code {
  font-family: ui-monospace, monospace;
  font-size: .85em;
  padding: .4em .6em;
  border: 1px dashed var(--c-key);
  color: var(--c-key);
}

.pop-history__code.is-done {
  background: #fff1be;
}

/* Dòng lịch sử nhận code: tiêu đề + giờ | nút copy */
.pop-history--code li {
  grid-template-columns: 1fr auto;
  border-left-color: #2f9e44;
}

.pop-history--code b {
  text-transform: none;
  color: #222;
  font-size: 1em;
  letter-spacing: normal;
}

.pop-history--code span {
  font-size: .85em;
  color: #777;
}

/* Form nhận quà */
.pop-form {
  display: grid;
  gap: calc(8px * var(--u));
}

.pop-form input,
.pop-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05em;
  color: var(--c-dark);
  padding: .65em .8em;
  background: #fff;
  border: 1px solid var(--c-dark);
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.pop-form input::placeholder,
.pop-form textarea::placeholder {
  color: #9a9a9a;
}

.pop-form textarea {
  min-height: max(96px, calc(124px * var(--u)));
  resize: vertical;
}

.pop-form input:focus,
.pop-form textarea:focus {
  border-color: var(--c-key);
  box-shadow: 0 0 0 3px rgba(247, 104, 33, .2);
}

.pop-form .is-bad {
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(238, 51, 51, .18);
  animation: shake .35s;
}

@keyframes shake {
  25% {
    translate: -5px 0;
  }

  75% {
    translate: 5px 0;
  }
}

.pop-form__err {
  min-height: 1.2em;
  color: var(--c-red);
  font-size: .9em;
}

.pop-form .pop-btn {
  justify-self: center;
}

.modal {
  padding: 24px 16px;
  background: rgba(8, 8, 10, .62);
}

/* =========================================================
   VÒNG QUAY: kim nảy, ô trúng sáng, nút QUAY gọi mời
   ========================================================= */
.wheel__pointer {
  transform-origin: 378px 57px;
}

.wheel__hl {
  position: absolute;
  left: 0;
  top: 0;
  width: 756px;
  height: 795px;
  pointer-events: none;
  overflow: visible;
  visibility: hidden;
}

.wheel__hl>* {
  opacity: 0;
}

.wheel__hl-dim {
  fill: #0b0d14;
}

.wheel__hl-shine {
  fill: #fff;
  filter: blur(16px);
  transform: translateX(-120px) skewX(-18deg);
}

.wheel__hl-edge {
  fill: none;
  stroke: #ffd35c;
  stroke-width: 16;
  stroke-linejoin: round;
  filter: blur(5px);
}

.wheel__hl-core {
  fill: none;
  stroke: #fffbe8;
  stroke-width: 5;
  stroke-linejoin: round;
}

.wheel.is-win .wheel__hl,
.wheel.is-lose .wheel__hl {
  visibility: visible;
}

.wheel.is-win .wheel__hl-dim,
.wheel.is-lose .wheel__hl-dim {
  animation: hlDim .5s ease-out forwards;
}

.wheel.is-win .wheel__hl-fill {
  animation: hlFlash 1.3s ease-out forwards;
}

.wheel.is-win .wheel__hl-edge,
.wheel.is-win .wheel__hl-core {
  animation: hlFlash 1.3s ease-out forwards, hlBreath 1.1s 1.3s ease-in-out infinite alternate;
}

.wheel__hl-spot,
.wheel__hl-wave {
  fill: none;
  stroke: #fff6d2;
  stroke-width: 5;
  transform-origin: 378px 204px;
  filter: drop-shadow(0 0 6px #ffc038) drop-shadow(0 0 14px #ff8a1e);
}

.wheel.is-win .wheel__hl-spot {
  animation: hlSpot .9s .15s cubic-bezier(.2, 1.6, .4, 1) forwards, hlBreath 1.1s 1.1s ease-in-out infinite alternate;
}

.wheel.is-win .wheel__hl-wave {
  animation: hlWave 1.2s .2s ease-out 2;
}

@keyframes hlWave {
  0% {
    opacity: .9;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.1);
  }
}

.wheel.is-win .wheel__hl-shine {
  animation: hlShine .9s .35s ease-in-out forwards;
}

.wheel.is-lose .wheel__hl-fill {
  fill: rgba(200, 214, 235, .28);
  animation: hlFlash 1.3s ease-out forwards;
}

.wheel.is-lose .wheel__hl-edge {
  stroke: #9fb4d6;
  animation: hlFlash 1.3s ease-out forwards;
}

.wheel.is-lose .wheel__hl-core {
  stroke: #eef3fb;
  animation: hlFlash 1.3s ease-out forwards;
}

.wheel.is-win .wheel__pointer {
  animation: ptrWin .6s cubic-bezier(.3, 1.8, .5, 1);
  filter: drop-shadow(0 0 14px rgba(255, 210, 90, .95));
}

@keyframes hlDim {
  to {
    opacity: .55;
  }
}

@keyframes hlFlash {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  24% {
    opacity: .3;
  }

  38% {
    opacity: 1;
  }

  52% {
    opacity: .45;
  }

  70%,
  100% {
    opacity: 1;
  }
}

@keyframes hlBreath {
  from {
    opacity: 1;
  }

  to {
    opacity: .6;
  }
}

@keyframes hlSpot {
  0% {
    opacity: 0;
    transform: scale(.3);
  }

  60% {
    opacity: 1;
    transform: scale(1.15);
  }

  100% {
    opacity: .85;
    transform: scale(1);
  }
}

@keyframes hlShine {
  0% {
    opacity: .5;
    transform: translateX(-120px) skewX(-18deg);
  }

  100% {
    opacity: .5;
    transform: translateX(260px) skewX(-18deg);
  }
}

@keyframes ptrWin {
  0% {
    scale: 1;
  }

  40% {
    scale: 1.12;
  }

  100% {
    scale: 1;
  }
}

.wheel.has-spins:not(.is-spinning) .wheel__spin {
  animation: quayCall 1.8s ease-in-out infinite;
}

@keyframes quayCall {

  0%,
  100% {
    text-shadow: 0 0 0 rgba(255, 241, 190, 0);
    scale: 1;
  }

  50% {
    text-shadow: 0 0 18px rgba(255, 241, 190, .95);
    scale: 1.08;
  }
}

#spinCount {
  display: inline-block;
}

#spinCount.is-bump {
  animation: bump .5s var(--ease-out);
  color: var(--c-gold);
}

@keyframes bump {
  0% {
    scale: 1;
  }

  40% {
    scale: 1.8;
  }

  100% {
    scale: 1;
  }
}

/* =========================================================
   MÀN CÔNG BỐ QUÀ
   ========================================================= */
.reveal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
}

.reveal[hidden] {
  display: none;
}

.reveal__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 44%, rgba(94, 38, 6, .55) 0, rgba(12, 8, 10, .9) 55%, rgba(6, 5, 8, .96) 100%);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  opacity: 0;
  transition: opacity .45s ease;
}

.reveal__rays {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 240vmax;
  height: 240vmax;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 193, 56, .26) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 12%, transparent 38%);
  mask-image: radial-gradient(circle, #000 0, rgba(0, 0, 0, .6) 12%, transparent 38%);
  opacity: 0;
  scale: .4;
  transition: opacity .8s ease .25s, scale 1.4s var(--ease-out) .25s;
  animation: raysSpin 26s linear infinite;
}

@keyframes raysSpin {
  to {
    rotate: 360deg;
  }
}

.reveal__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reveal__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(8px, 1.4vh, 16px);
  padding: 24px 16px;
  margin-top: -3vh;
  color: #fff;
  cursor: default;
}

.reveal.is-in .reveal__bg {
  opacity: 1;
}

.reveal.is-in .reveal__rays {
  opacity: 1;
  scale: 1;
}

.reveal__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: clamp(11px, 1.05vw, 15px);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--c-gold);
  opacity: 0;
  translate: 0 10px;
  transition: opacity .5s ease .55s, translate .6s var(--ease-out) .55s;
}

.reveal__kicker i {
  width: clamp(24px, 4vw, 60px);
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.reveal__title {
  font-family: var(--f-cond);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
  font-size: clamp(46px, 7.4vw, 124px);
  letter-spacing: .01em;
  white-space: nowrap;
  filter: drop-shadow(0 6px 30px rgba(247, 104, 33, .55));
}

.reveal__title span {
  display: inline-block;
  opacity: 0;
  translate: 0 .5em;
  rotate: 10deg;
  scale: .6;
  background: linear-gradient(180deg, #ffffff 25%, #fff1be 55%, #ffc038 80%, #f76821 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity .35s ease, translate .7s cubic-bezier(.2, 1.6, .4, 1), rotate .7s var(--ease-out), scale .7s cubic-bezier(.2, 1.6, .4, 1);
  transition-delay: calc(.72s + var(--i) * 45ms);
}

.reveal.is-in .reveal__title span {
  opacity: 1;
  translate: 0 0;
  rotate: 0deg;
  scale: 1;
}

.reveal__item {
  position: relative;
  width: clamp(170px, 30vmin, 330px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  margin: clamp(4px, 1vh, 12px) 0;
}

.reveal__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(255, 193, 56, .55));
  animation: floaty 3.2s ease-in-out 1.2s infinite;
}

@keyframes floaty {
  50% {
    translate: 0 -10px;
    rotate: -2deg;
  }
}

.reveal__glow {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 241, 190, .95) 0, rgba(255, 193, 56, .6) 18%, rgba(247, 104, 33, .28) 38%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  scale: .3;
  transition: opacity .6s ease .7s, scale 1s var(--ease-out) .7s;
}

.reveal.is-in .reveal__glow {
  opacity: 1;
  scale: 1;
  animation: glowPulse 2.6s ease-in-out 1.7s infinite;
}

@keyframes glowPulse {
  50% {
    scale: 1.12;
    opacity: .8;
  }
}

.reveal__wave {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 2px solid rgba(255, 241, 190, .95);
  z-index: 1;
  opacity: 0;
  box-shadow: 0 0 24px rgba(255, 193, 56, .8), inset 0 0 24px rgba(255, 193, 56, .6);
}

.reveal.is-in .reveal__wave {
  animation: wave 1.1s var(--ease-out) .8s both;
}

.reveal.is-in .reveal__wave--2 {
  animation-delay: .98s;
}

@keyframes wave {
  0% {
    opacity: 1;
    scale: .3;
  }

  100% {
    opacity: 0;
    scale: 2.6;
  }
}

.reveal__spark {
  position: absolute;
  z-index: 3;
  width: 26px;
  height: 26px;
  background: #fff;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 6px #ffc038);
  opacity: 0;
  scale: 0;
}

.reveal__spark.s1 {
  left: 6%;
  top: 14%;
}

.reveal__spark.s2 {
  right: 4%;
  top: 30%;
  width: 18px;
  height: 18px;
}

.reveal__spark.s3 {
  left: 16%;
  bottom: 8%;
  width: 16px;
  height: 16px;
}

.reveal__spark.s4 {
  right: 14%;
  bottom: 14%;
}

.reveal.is-in .reveal__spark {
  animation: twinkle 1.8s ease-in-out infinite;
}

.reveal.is-in .s1 {
  animation-delay: 1.1s;
}

.reveal.is-in .s2 {
  animation-delay: 1.5s;
}

.reveal.is-in .s3 {
  animation-delay: 1.9s;
}

.reveal.is-in .s4 {
  animation-delay: 1.3s;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
    scale: 0;
    rotate: 0deg;
  }

  50% {
    opacity: 1;
    scale: 1;
    rotate: 90deg;
  }
}

.reveal__meta,
.reveal__name,
.reveal__go,
.reveal__skip {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .5s ease, translate .6s var(--ease-out);
}

.reveal.is-in .reveal__meta {
  opacity: 1;
  translate: 0 0;
  transition-delay: 1.05s;
}

.reveal.is-in .reveal__name {
  opacity: 1;
  translate: 0 0;
  transition-delay: 1.15s;
}

.reveal.is-in .reveal__go {
  opacity: 1;
  translate: 0 0;
  transition-delay: 1.3s;
}

.reveal.is-in .reveal__skip {
  opacity: .55;
  translate: 0 0;
  transition-delay: 1.9s;
}

.reveal__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.reveal__type {
  font-family: var(--f-semi);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(255, 241, 190, .5);
  color: #fff1be;
}

.reveal__rarity {
  font-family: var(--f-semi);
  font-weight: 800;
  font-size: clamp(12px, 1.05vw, 15px);
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 7px 14px;
  color: #2b1400;
  background: linear-gradient(90deg, #ffc038, #fff1be 50%, #ffc038);
  background-size: 200% 100%;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  animation: shimmer 2.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.reveal__name {
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 30px);
  color: #fff;
  max-width: 90vw;
}

.reveal__go {
  position: relative;
  margin-top: clamp(6px, 1.2vh, 14px);
  width: clamp(190px, 16vw, 250px);
  height: clamp(46px, 5vh, 58px);
  font-size: clamp(20px, 1.7vw, 26px);
}

.reveal__skip {
  font-family: var(--f-semi);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* rời màn / chuyển sang popup */
.reveal.is-out {
  opacity: 0;
  transition: opacity .4s ease;
}

.reveal.is-handoff .reveal__bg,
.reveal.is-handoff .reveal__rays,
.reveal.is-handoff .reveal__kicker,
.reveal.is-handoff .reveal__title,
.reveal.is-handoff .reveal__meta,
.reveal.is-handoff .reveal__name,
.reveal.is-handoff .reveal__go,
.reveal.is-handoff .reveal__skip,
.reveal.is-handoff .reveal__glow,
.reveal.is-handoff .reveal__spark {
  opacity: 0 !important;
  transition: opacity .3s ease !important;
  transition-delay: 0s !important;
}

.reveal.is-handoff {
  pointer-events: none;
}

/* thua: tông lạnh, không tia sáng */
.reveal--lose .reveal__rays {
  display: none;
}

.reveal--lose .reveal__bg {
  background: radial-gradient(circle at 50% 44%, rgba(40, 52, 74, .6) 0, rgba(10, 12, 16, .92) 60%);
}

.reveal--lose .reveal__title span {
  background: linear-gradient(180deg, #fff 30%, #c9d1de 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.reveal--lose .reveal__title {
  filter: drop-shadow(0 6px 24px rgba(120, 150, 200, .35));
}

.reveal--lose .reveal__item {
  width: clamp(140px, 22vmin, 230px);
  border-radius: 50%;
  background: radial-gradient(circle, #3a3f4a, #1b1e25 70%);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 20px 50px rgba(0, 0, 0, .5);
}

.reveal--lose .reveal__img {
  width: 52%;
  height: 52%;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
}

.reveal--lose .reveal__glow {
  background: radial-gradient(circle, rgba(170, 195, 235, .45), transparent 60%);
}

.reveal--lose .reveal__wave,
.reveal--lose .reveal__spark {
  display: none;
}

@media (max-width: 1023px),
(orientation: portrait) {
  .reveal__title {
    font-size: clamp(40px, 13vw, 72px);
  }

  .reveal__item {
    width: clamp(170px, 56vw, 280px);
  }

  .pop-missions li {
    grid-template-columns: 1fr 38%;
    grid-template-rows: auto auto;
    padding: .5em 0 .5em 1em;
    background: linear-gradient(112deg, #2f2f2f 0 60%, var(--c-key) 60%);
  }

  .pop-missions__note {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    font-weight: 500;
    opacity: .8;
    font-size: .9em;
  }

  .pop-missions__cta {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .pop-copy {
    flex-direction: column;
  }

  .pop-copy__field {
    flex: none;
    width: 100%;
  }

  .pop-copy .pop-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  .reveal__rays,
  .reveal__img,
  .reveal__glow,
  .reveal__spark,
  .reveal__rarity,
  .wheel.has-spins .wheel__spin {
    animation: none !important;
  }

  .reveal *,
  .reveal__title span {
    transition: none !important;
  }
}

/* =========================================================
   CÔ GÁI ÁO VÀNG 2.5D (section Đăng ký trước)
   Ảnh gốc 1024×1536 cắt ngang đùi → khung đặt sát đáy section
   ========================================================= */
.model3d {
  left: 1010px;
  top: 40px;
  width: 694px;
  height: 1041px;
}

.model3d__canvas,
.model3d__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(#000 88%, transparent), linear-gradient(90deg, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 88%, transparent), linear-gradient(90deg, #000 92%, transparent);
  mask-composite: intersect;
}

.model3d__canvas {
  cursor: pointer;
  outline: none;
  opacity: 0;
  transition: opacity .6s ease;
}

.model3d__canvas:focus-visible {
  outline: 3px dashed var(--c-key);
  outline-offset: -12px;
}

.model3d__fallback {
  pointer-events: none;
  transition: opacity .6s ease;
}

.model3d.is-ready .model3d__canvas {
  opacity: 1;
}

.model3d.is-ready .model3d__fallback {
  opacity: 0;
}

/* quầng sáng cam sau lưng nhân vật */
.model3d__glow {
  position: absolute;
  left: 12%;
  top: 10%;
  width: 80%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 192, 56, .42), rgba(247, 104, 33, .16) 55%, transparent);
  filter: blur(8px);
  animation: glowBreath 4s ease-in-out infinite;
}

@keyframes glowBreath {
  50% {
    scale: 1.06;
    opacity: .75;
  }
}

.model3d__hint {
  position: absolute;
  left: 50%;
  bottom: 150px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(47, 47, 47, .85);
  color: #fff;
  font-family: var(--f-semi);
  font-weight: 600;
  font-size: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}

.model3d__hint svg {
  color: var(--c-key);
}

.model3d.is-ready:not(.is-touched) .model3d__hint {
  opacity: 1;
  animation: hintBob 2s ease-in-out infinite;
}

@keyframes hintBob {
  50% {
    translate: -50% -5px;
  }
}

@media (max-width: 1023px),
(orientation: portrait) {
  .model3d {
    left: 282px;
    top: 110px;
    width: 390px;
    height: 585px;
  }

  .model3d__canvas,
  .model3d__fallback {
    -webkit-mask-image: linear-gradient(#000 78%, transparent), linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(#000 78%, transparent), linear-gradient(90deg, #000 92%, transparent);
  }

  .model3d__hint {
    font-size: 15px;
    padding: 6px 12px;
    bottom: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .model3d__glow,
  .model3d__hint {
    animation: none !important;
  }
}

/* =========================================================
   ỐNG NGẮM (con trỏ khi rê lên cô gái) – js/scope.js
   ========================================================= */
.hint-touch {
  display: none;
}

@media (hover: none),
(pointer: coarse) {
  .hint-fine {
    display: none;
  }

  .hint-touch {
    display: inline;
  }
}

.model3d.is-scoped,
.model3d.is-scoped * {
  cursor: none !important;
}

.scope {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  --sc: #fff;
  --sc-glow: rgba(0, 0, 0, .55);
}

.scope__body {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(160px, 13.5vw, 240px);
  aspect-ratio: 1;
  opacity: 0;
  scale: .6;
  transition: opacity .18s ease, scale .28s cubic-bezier(.2, 1.5, .4, 1);
  will-change: transform;
}

.scope.is-on .scope__body {
  opacity: 1;
  scale: 1;
}

.scope.is-steady .scope__body {
  scale: 1.06;
}

/* kính: nền kính mờ + ảnh phóng to + vạch quét + chớp sáng khi bắn */
.scope__glass {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, .55), rgba(236, 232, 222, .78) 60%, rgba(200, 196, 188, .9));
  -webkit-backdrop-filter: blur(3px) saturate(1.2);
  backdrop-filter: blur(3px) saturate(1.2);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), inset 0 0 38px 10px rgba(20, 16, 12, .55);
}

.scope__lens {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scope__glass::after {
  /* vignette + phản quang kính */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 34% at 32% 20%, rgba(255, 255, 255, .35), transparent 70%),
    radial-gradient(circle, transparent 58%, rgba(10, 8, 6, .55) 100%);
}

.scope__scan {
  position: absolute;
  inset: 0;
  opacity: .22;
  mix-blend-mode: multiply;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 4px);
}

.scope__scan::before {
  /* vạch quét chạy dọc */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(247, 104, 33, .55), transparent);
  animation: scopeScan 2.4s linear infinite;
}

@keyframes scopeScan {
  from {
    top: -22%;
  }

  to {
    top: 100%;
  }
}

.scope__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #fff 0, rgba(255, 236, 190, .8) 35%, transparent 70%);
  opacity: 0;
}

.scope__flash.is-go {
  animation: scopeFlash .22s ease-out;
}

@keyframes scopeFlash {
  0% {
    opacity: .95;
  }

  100% {
    opacity: 0;
  }
}

/* vạch ngắm */
.scope__reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 1.5px var(--sc-glow)) drop-shadow(0 0 1px var(--sc-glow));
}

.scope__reticle * {
  transition: stroke .2s, fill .2s;
}

.scope__bezel {
  fill: none;
  stroke: #1b1916;
  stroke-width: 6;
}

.scope__ring {
  fill: none;
  stroke: var(--sc);
  stroke-width: 1.5;
}

.scope__ticks {
  stroke: var(--sc);
  opacity: .75;
  transform-origin: 100px 100px;
  animation: scopeSpin 24s linear infinite;
}

.scope__arcs {
  fill: none;
  stroke: var(--c-key, #f76821);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: 100px 100px;
  animation: scopeSpin 9s linear infinite reverse;
  transition: scale .3s cubic-bezier(.2, 1.6, .4, 1);
}

.scope__post {
  stroke: #1b1916;
  stroke-width: 4.5;
}

.scope__hair {
  stroke: var(--sc);
  stroke-width: 1.3;
}

.scope__mil {
  fill: var(--sc);
}

.scope__lock {
  fill: none;
  stroke: #ff3b30;
  stroke-width: 2.2;
  stroke-linecap: square;
  opacity: 0;
  transform-origin: 100px 100px;
  scale: 2.4;
  transition: opacity .15s, scale .3s cubic-bezier(.2, 1.6, .4, 1);
}

.scope__dot {
  fill: var(--c-key, #f76821);
}

@keyframes scopeSpin {
  to {
    rotate: 360deg;
  }
}

/* trạng thái mục tiêu */
.scope.is-target {
  --sc: #ffd166;
}

.scope.is-target .scope__arcs {
  scale: .9;
}

.scope.is-lock {
  --sc: #ff5a4a;
}

.scope.is-lock .scope__arcs {
  stroke: #ff3b30;
  scale: .78;
  animation-duration: 2.4s;
}

.scope.is-lock .scope__lock {
  opacity: 1;
  scale: 1;
  animation: lockPulse .7s ease-in-out infinite alternate;
}

.scope.is-lock .scope__dot {
  fill: #ff3b30;
}

@keyframes lockPulse {
  to {
    scale: 1.18;
  }
}

/* HUD quanh kính */
.scope__hud {
  position: absolute;
  font: 700 11px/1 var(--f-semi, system-ui);
  letter-spacing: .08em;
  color: #fff;
  white-space: nowrap;
  padding: 4px 7px;
  border-radius: 3px;
  background: rgba(27, 25, 22, .82);
  border-left: 2px solid var(--c-key, #f76821);
}

.scope__hud b {
  color: var(--sc);
  font-variant-numeric: tabular-nums;
}

.scope__hud--tl {
  right: 88%;
  top: 8%;
}

.scope__hud--tr {
  left: 88%;
  top: 8%;
}

.scope__hud--bl {
  right: 88%;
  bottom: 8%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.scope__hud--br {
  left: 88%;
  bottom: 8%;
}

.scope__wind {
  width: 10px;
  height: 10px;
  border-top: 2px solid #7fd3ff;
  border-right: 2px solid #7fd3ff;
  rotate: 45deg;
  animation: windWob 2.6s ease-in-out infinite;
}

@keyframes windWob {
  50% {
    rotate: 25deg;
  }
}

.scope__ammo {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 5px 7px;
}

.scope__ammo i {
  width: 5px;
  height: 12px;
  border-radius: 2px 2px 1px 1px;
  background: #4fc3ff;
  box-shadow: 0 0 4px rgba(79, 195, 255, .8);
  transition: background .15s, box-shadow .15s;
}

.scope__ammo i.is-empty {
  background: #4a4540;
  box-shadow: none;
}

.scope.is-reload .scope__ammo i {
  animation: reloadPip .9s ease-in-out infinite;
}

.scope.is-reload .scope__ammo i:nth-child(2n) {
  animation-delay: .15s;
}

@keyframes reloadPip {
  50% {
    background: #4fc3ff;
  }
}

.scope__tag {
  position: absolute;
  left: 50%;
  top: 104%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 12px/1 var(--f-semi, system-ui);
  letter-spacing: .1em;
  color: #fff;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(27, 25, 22, .85);
}

.scope__tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b857c;
}

.scope.is-target .scope__tag i {
  background: #ffd166;
  box-shadow: 0 0 6px #ffd166;
}

.scope.is-lock .scope__tag {
  background: #d7261b;
}

.scope.is-lock .scope__tag i {
  background: #fff;
  animation: lockBlink .5s steps(2) infinite;
}

@keyframes lockBlink {
  50% {
    opacity: .2;
  }
}

/* hiệu ứng bắn */
.scope-fx {
  position: fixed;
  inset: 0;
  z-index: 91;
  pointer-events: none;
  overflow: hidden;
}

.scope-fx__hit {
  position: absolute;
  width: 46px;
  height: 46px;
  translate: -50% -50%;
  animation: hitPop .5s ease-out forwards;
}

.scope-fx__hit::before,
.scope-fx__hit::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#fff, #fff) 0 50% / 14px 3px no-repeat, linear-gradient(#fff, #fff) 100% 50% / 14px 3px no-repeat;
  rotate: 45deg;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .8));
}

.scope-fx__hit::after {
  rotate: -45deg;
}

.scope-fx__hit.is-head::before,
.scope-fx__hit.is-head::after {
  background:
    linear-gradient(#ff3b30, #ff3b30) 0 50% / 16px 4px no-repeat, linear-gradient(#ff3b30, #ff3b30) 100% 50% / 16px 4px no-repeat;
}

.scope-fx__hit.is-miss {
  opacity: .5;
}

@keyframes hitPop {
  0% {
    scale: 1.6;
    opacity: 0;
  }

  15% {
    scale: .9;
    opacity: 1;
  }

  30% {
    scale: 1;
  }

  100% {
    scale: 1.1;
    opacity: 0;
  }
}

.scope-fx__dmg {
  position: absolute;
  translate: 0 -50%;
  font: 800 30px/1 var(--f-semi, system-ui);
  color: #fff;
  font-style: italic;
  text-shadow: 0 2px 0 #1b1916, 0 0 10px rgba(0, 0, 0, .4);
  animation: dmgFloat 1s cubic-bezier(.2, .8, .3, 1) forwards;
}

.scope-fx__dmg small {
  display: block;
  font-size: 13px;
  letter-spacing: .12em;
  color: #fff;
  margin-bottom: 3px;
}

.scope-fx__dmg.is-head {
  color: #ffd166;
  font-size: 40px;
}

.scope-fx__dmg.is-head small {
  color: #ff5a4a;
}

@keyframes dmgFloat {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(.4);
  }

  15% {
    opacity: 1;
    transform: translateY(-4px) scale(1.25);
  }

  30% {
    transform: translateY(-10px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-58px) scale(.95);
  }
}

.scope-fx__drop {
  position: absolute;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff 0 18%, #7fd8ff 40%, #1e9bea 100%);
  box-shadow: 0 0 6px rgba(79, 195, 255, .7);
}

.scope-fx__ring {
  position: absolute;
  width: 90px;
  height: 90px;
  translate: -50% -50%;
  border-radius: 50%;
  border: 3px solid rgba(127, 216, 255, .9);
  animation: splashRing .55s ease-out forwards;
}

@keyframes splashRing {
  from {
    scale: .1;
    opacity: 1;
  }

  to {
    scale: 1;
    opacity: 0;
    border-width: 1px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .scope__ticks,
  .scope__arcs,
  .scope__scan::before,
  .scope__wind,
  .scope.is-lock .scope__lock,
  .scope.is-lock .scope__tag i {
    animation: none !important;
  }
}

/* =========================================================
   TRÚNG ĐẠN + HÓA GIẤY (Stringification)
   ========================================================= */
.model3d {
  perspective: 1600px;
}

.model3d__rig {
  position: absolute;
  inset: 0;
  transform-origin: 50% 60%;
}

.model3d__ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  -webkit-mask-image: repeating-linear-gradient(0deg, #000 0 6px, transparent 6px 8px);
  mask-image: repeating-linear-gradient(0deg, #000 0 6px, transparent 6px 8px);
  filter: grayscale(1) sepia(1) saturate(2.2) hue-rotate(-12deg) contrast(1.15) drop-shadow(0 0 6px rgba(247, 104, 33, .8));
}

.model3d__ghost.is-go {
  animation: ghostShred 1s cubic-bezier(.3, .6, .4, 1) forwards;
}

@keyframes ghostShred {
  0% {
    opacity: .6;
    clip-path: inset(0 0 0 0);
    translate: 0 0;
  }

  25% {
    opacity: .45;
  }

  100% {
    opacity: 0;
    clip-path: inset(0 50% 0 50%);
    translate: 30px -50px;
  }
}

.model3d__edge {
  position: absolute;
  left: 50%;
  top: 4%;
  height: 84%;
  width: 5px;
  translate: -50% 0;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(transparent, #fff 12%, #fff 88%, transparent);
  box-shadow: 0 0 10px #fff, 0 0 26px #ffc038, 0 0 54px #f76821;
}

.model3d.is-paper .model3d__rig {
  animation: stringify 1.75s cubic-bezier(.5, 0, .2, 1) forwards;
}

.model3d.is-paper .model3d__edge {
  animation: stringEdge 1.75s cubic-bezier(.5, 0, .2, 1) forwards;
}

.model3d.is-paper .model3d__canvas {
  cursor: none;
}

@keyframes stringify {
  0% {
    transform: none;
    filter: none;
  }

  10% {
    transform: translateX(0) rotateY(80deg) scaleY(1.03);
    filter: brightness(1.5) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff);
  }

  18% {
    transform: translateX(0) rotateY(87deg);
  }

  46% {
    transform: translateX(-190px) rotateY(87deg);
  }

  64% {
    transform: translateX(-150px) rotateY(87deg);
    filter: brightness(1.5) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff);
  }

  82% {
    transform: translateX(0) rotateY(58deg);
    filter: brightness(1.25) drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff);
  }

  92% {
    transform: translateX(0) rotateY(-9deg);
    filter: brightness(1.1);
  }

  100% {
    transform: none;
    filter: none;
  }
}

@keyframes stringEdge {
  0% {
    opacity: 0;
    transform: translateX(0) scaleY(.4);
  }

  12% {
    opacity: 1;
    transform: translateX(0) scaleY(1.02);
  }

  18% {
    transform: translateX(0) scaleY(1);
  }

  46% {
    transform: translateX(-190px);
  }

  64% {
    opacity: 1;
    transform: translateX(-150px);
  }

  82% {
    opacity: .6;
    transform: translateX(0);
  }

  90%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

/* sợi dây bung ra khi hóa giấy */
.model3d__strings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.model3d__strings i {
  position: absolute;
  left: 50%;
  height: 2px;
  border-radius: 2px;
  box-shadow: 0 0 8px currentColor;
  opacity: 0;
  transform-origin: 50% 50%;
}

/* quầng sáng đỏ lên khi trúng */
.model3d.is-hurt .model3d__glow {
  animation: hurtGlow .45s ease-out, glowBreath 4s ease-in-out infinite;
}

@keyframes hurtGlow {
  0% {
    filter: blur(8px) hue-rotate(-30deg) saturate(2.4) brightness(1.3);
    scale: 1.12;
  }

  100% {
    filter: blur(8px);
    scale: 1;
  }
}

/* thanh máu trên đầu */
.hp {
  position: absolute;
  left: 58%;
  top: 1.5%;
  width: 300px;
  translate: -50% -8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, translate .3s cubic-bezier(.2, 1.4, .4, 1);
  font-family: var(--f-semi, system-ui);
  color: #fff;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35));
}

.hp.is-on {
  opacity: 1;
  translate: -50% 0;
}

.hp__name {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: #2f2f2f;
  margin-bottom: 5px;
}

.hp__name i {
  width: 10px;
  height: 10px;
  rotate: 45deg;
  background: var(--c-key, #f76821);
}

.hp__name b {
  letter-spacing: .02em;
  font-size: 16px;
  color: var(--c-key, #f76821);
}

.hp__bar {
  position: relative;
  height: 14px;
  background: rgba(27, 25, 22, .85);
  transform: skewX(-14deg);
  border: 1.5px solid rgba(255, 255, 255, .9);
  overflow: hidden;
}

.hp__fill,
.hp__trail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
}

.hp__trail {
  background: #fff;
  transition: width .5s ease;
}

.hp__fill {
  background: linear-gradient(90deg, #ffd166, #f76821);
  transition: width .12s ease-out, background .3s;
}

.hp__ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(27, 25, 22, .9) calc(10% - 2px) 10%);
}

.hp.is-low .hp__fill {
  background: linear-gradient(90deg, #ff6b5a, #d7261b);
  animation: hpLow .5s ease-in-out infinite alternate;
}

@keyframes hpLow {
  to {
    filter: brightness(1.5);
  }
}

.hp__num {
  margin-top: 4px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #6b655c;
  font-variant-numeric: tabular-nums;
}

.hp__num b {
  font-size: 15px;
  color: #2f2f2f;
}

/* số hồi máu */
.model3d__pop {
  position: absolute;
  translate: -50% 0;
  pointer-events: none;
  font: italic 800 34px/1 var(--f-semi, system-ui);
  text-shadow: 0 2px 0 #1b1916;
  animation: dmgFloat 1.2s cubic-bezier(.2, .8, .3, 1) forwards;
}

.model3d__pop.is-heal {
  color: #6bff9e;
}

/* chữ HÓA GIẤY */
.paper-badge {
  position: absolute;
  left: 50%;
  top: 20%;
  translate: -50% 0;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  z-index: 2;
  padding: 14px 34px 12px;
  background: #fffdf6;
  color: #1b1916;
  clip-path: polygon(0 8%, 6% 0, 18% 6%, 30% 0, 44% 5%, 58% 0, 72% 6%, 86% 0, 100% 7%, 97% 50%, 100% 93%, 88% 100%, 74% 94%, 60% 100%, 46% 95%, 32% 100%, 18% 94%, 4% 100%, 0 90%, 3% 50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.paper-badge span {
  display: block;
  font: italic 900 64px/1 var(--f-semi, system-ui);
  letter-spacing: .04em;
  background: linear-gradient(90deg, #f76821, #ffb23e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.paper-badge small {
  display: block;
  margin-top: 4px;
  font: 700 14px/1 var(--f-semi, system-ui);
  letter-spacing: .5em;
  color: #6b655c;
}

.paper-badge.is-on {
  animation: paperBadge 1.9s cubic-bezier(.2, .9, .3, 1) forwards;
}

@keyframes paperBadge {
  0% {
    opacity: 0;
    transform: scaleX(0) rotate(-6deg);
  }

  12% {
    opacity: 1;
    transform: scaleX(1.12) rotate(-4deg);
  }

  20% {
    transform: scaleX(1) rotate(-3deg);
  }

  80% {
    opacity: 1;
    transform: scaleX(1) rotate(-3deg);
  }

  100% {
    opacity: 0;
    transform: scaleX(1) translateY(-20px) rotate(-3deg) skewX(-20deg);
  }
}

.scope-fx__dmg.is-dodge {
  color: #7fd8ff;
  font-size: 34px;
}

.scope.is-lost {
  --sc: #7fd8ff;
}

.scope.is-lost .scope__lens {
  opacity: .15;
}

.scope.is-lost .scope__tag {
  background: #1e6fa8;
}

@media (max-width: 1023px),
(orientation: portrait) {
  .hp {
    width: 210px;
    left: 40%;
    top: 3%;
  }

  .hp__name {
    font-size: 10px;
  }

  .hp__name b {
    font-size: 12px;
  }

  .hp__bar {
    height: 10px;
  }

  .paper-badge {
    padding: 10px 20px 8px;
  }

  .paper-badge span {
    font-size: 40px;
  }

  .paper-badge small {
    font-size: 10px;
    letter-spacing: .3em;
  }
}

@media (prefers-reduced-motion: reduce) {

  .model3d.is-paper .model3d__rig,
  .model3d.is-paper .model3d__edge,
  .model3d__ghost.is-go {
    animation-duration: .01s !important;
  }
}

/* nút đóng màn công bố quà */
.reveal__close {
  position: absolute;
  top: calc(var(--hdr, 56px) + 20px);
  right: 24px;
  z-index: 5;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .3s .6s, scale .2s;
  cursor: pointer;
}

.reveal__close img {
  width: 100%;
  height: 100%;
  display: block;
}

.reveal.is-in .reveal__close {
  opacity: 1;
}

.reveal__close:hover {
  scale: 1.1;
}

.reveal__close:focus-visible {
  outline: 3px solid var(--c-key, #f76821);
  outline-offset: 3px;
}

.reveal.is-handoff .reveal__close,
.reveal.is-out .reveal__close {
  opacity: 0;
  transition-delay: 0s;
}

@media (max-width: 1023px),
(orientation: portrait) {
  .reveal__close {
    width: 40px;
    height: 40px;
    right: 14px;
    top: calc(var(--hdr, 56px) + 12px);
  }
}

/* =========================================================
   HAI CÔ GÁI Ở VÒNG QUAY – đung đưa (js/sway.js) + phản ứng
   ========================================================= */
canvas.wheel__char {
  display: block;
}

img.wheel__char[hidden] {
  display: none !important;
}

.wheel__char--left {
  transform-origin: 30% 100%;
}

.wheel__char--right {
  transform-origin: 68% 100%;
}

/* đang quay: nhún nhảy hồi hộp */
#wheel.is-tense .wheel__char {
  animation: girlTense .42s ease-in-out infinite alternate;
}

#wheel.is-tense .wheel__char--right {
  animation-delay: .21s;
}

@keyframes girlTense {
  from {
    transform: scale(1, 1);
  }

  to {
    transform: scale(.995, 1.014);
  }
}

/* trúng: nhảy cẫng 2 nhịp, co giãn */
#wheel.is-cheer .wheel__char {
  animation: girlCheer 1.1s cubic-bezier(.3, .7, .4, 1) 2;
}

#wheel.is-cheer .wheel__char--right {
  animation-delay: .14s;
}

@keyframes girlCheer {
  0% {
    transform: none;
  }

  12% {
    transform: scale(1.02, .965);
  }

  34% {
    transform: scale(.975, 1.05) rotate(var(--tilt, -1.5deg));
  }

  56% {
    transform: scale(1.025, .965);
  }

  70% {
    transform: scale(.99, 1.02) rotate(calc(var(--tilt, -1.5deg) * -.4));
  }

  84%,
  100% {
    transform: none;
  }
}

.wheel__char--right {
  --tilt: 1.5deg;
}

/* không trúng: xìu xuống, hơi nghiêng, nhạt màu */
#wheel.is-sad .wheel__char {
  animation: girlSad 3s cubic-bezier(.3, .6, .3, 1) forwards;
}

@keyframes girlSad {
  0% {
    transform: none;
    filter: none;
  }

  20%,
  70% {
    transform: rotate(var(--tilt-sad, -1.4deg)) scale(1.012, .965);
    filter: saturate(.65) brightness(.95);
  }

  100% {
    transform: none;
    filter: none;
  }
}

.wheel__char--right {
  --tilt-sad: 1.4deg;
}

/* bong bóng thoại */
.wheel-bubble {
  position: absolute;
  z-index: 6;
  pointer-events: none;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 22px;
  background: #fff;
  color: #2f2f2f;
  font: 800 26px/1 var(--f-semi, system-ui);
  letter-spacing: .02em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18), inset 0 0 0 3px #2f2f2f;
  opacity: 0;
  scale: .3;
  transition: opacity .2s, scale .35s cubic-bezier(.2, 1.6, .4, 1);
}

.wheel-bubble::after {
  /* đuôi bong bóng */
  content: "";
  position: absolute;
  bottom: -14px;
  width: 22px;
  height: 18px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 30% 100%);
  filter: drop-shadow(0 3px 0 #2f2f2f);
}

.wheel-bubble--left {
  left: 40px;
  top: 186px;
  transform-origin: 70% 100%;
}

.wheel-bubble--left::after {
  right: 34px;
  clip-path: polygon(0 0, 100% 0, 70% 100%);
}

.wheel-bubble--right {
  right: 40px;
  top: 196px;
  transform-origin: 30% 100%;
}

.wheel-bubble--right::after {
  left: 34px;
}

.wheel-bubble.is-on {
  opacity: 1;
  scale: 1;
  animation: bubbleWob 1.2s ease-in-out .35s infinite alternate;
}

.wheel-bubble.is-win {
  background: linear-gradient(180deg, #fff6d6, #ffd166);
  color: #c2410c;
}

.wheel-bubble.is-win::after {
  background: #ffd166;
}

.wheel-bubble.is-lose {
  background: #e8eef7;
  color: #3b4a63;
}

.wheel-bubble.is-lose::after {
  background: #e8eef7;
}

.wheel-bubble.is-tense {
  font-size: 22px;
}

@keyframes bubbleWob {
  to {
    rotate: 2deg;
    translate: 0 -4px;
  }
}

/* sao, nốt nhạc, giọt mồ hôi */
.wheel-cheer-fx {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.wheel-cheer-fx i {
  position: absolute;
  font-style: normal;
}

.wheel-cheer-fx .is-star {
  width: 26px;
  height: 26px;
  background: #ffd166;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 0 6px #ffb23e);
}

.wheel-cheer-fx .is-star:nth-child(2n) {
  background: #fff;
  width: 18px;
  height: 18px;
}

.wheel-cheer-fx .is-note {
  font: 900 38px/1 system-ui;
  color: #f76821;
  text-shadow: 0 2px 0 #fff, 0 0 8px rgba(247, 104, 33, .5);
}

.wheel-cheer-fx .is-drop {
  width: 16px;
  height: 22px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #fff 0 20%, #9fd6ff 45%, #4a90d9);
  clip-path: polygon(50% 0, 100% 62%, 85% 92%, 50% 100%, 15% 92%, 0 62%);
}

@media (prefers-reduced-motion: reduce) {

  #wheel.is-tense .wheel__char,
  #wheel.is-cheer .wheel__char,
  #wheel.is-sad .wheel__char,
  .wheel-bubble.is-on {
    animation: none !important;
  }
}

/* =========================================================
   POPUP "BẠN ĐÃ SẴN SÀNG BƯỚC VÀO STRINOVA" (Figma 60:7433)
   ========================================================= */
.pop--ready {
  justify-content: center;
}

.pop--ready .pop__title {
  color: #222;
  font-size: calc(30px * var(--pf, 1));
  margin-bottom: calc(30px * var(--u));
}

.pop--ready .pop__title i {
  display: none;
}

.pop--ready .pop__body {
  flex: none;
  overflow: visible;
}

.pop-ready {
  display: flex;
  justify-content: center;
  gap: calc(66px * var(--u));
}

.pop-ready__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(37px * var(--u));
  width: calc(214px * var(--u));
}

.pop-ready__col p {
  margin: 0;
  font-size: calc(16px * var(--pf, 1));
  line-height: 1.5;
  color: #222;
  text-align: center;
}

.pop-ready__btn.btn {
  position: relative;
  width: calc(214px * var(--u));
  height: max(42px, calc(49px * var(--u)));
  font-size: calc(24px * var(--pf, 1));
}

/* nút viền: nền trắng, chữ + viền cam */
.btn--ghost {
  color: var(--c-key);
}

.btn--ghost::before {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--c-key);
}

.btn--ghost:hover::before {
  background: #fff3ec;
}

.btn--ghost::after {
  background: linear-gradient(100deg, transparent 20%, rgba(247, 104, 33, .18) 50%, transparent 80%);
}

@media (max-width: 560px) {
  .pop-ready {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .pop-ready__col {
    gap: 12px;
    width: auto;
  }

  .pop-ready__btn.btn {
    width: 240px;
  }
}

/* =========================================================
   ĐĂNG KÝ / ĐĂNG NHẬP (Figma 71:7526, 84:7816) – js/auth.js
   ========================================================= */
html.has-auth {
  overflow: hidden;
}

.auth {
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: end;
  padding: 40px 8.75vw 40px 24px;
  box-sizing: border-box;
  background: #ecebe7;
  font-family: var(--f-semi);
  color: #222;
}

.auth[hidden] {
  display: none;
}

.auth__bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: 0;
}

.auth__logo {
  position: fixed;
  left: 2.76vw;
  top: 5.3vh;
  z-index: 1;
  width: clamp(150px, 19.3vw, 370px);
  height: auto;
  pointer-events: none;
}

.auth__close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3));
  transition: rotate .3s var(--ease-out), scale .2s;
}

.auth__close img {
  width: 100%;
  height: 100%;
  display: block;
}

.auth__close:hover {
  rotate: 90deg;
  scale: 1.08;
}

.auth__close:focus-visible {
  outline: 3px solid var(--c-key);
  outline-offset: 3px;
  border-radius: 50%;
}

.auth__card {
  position: relative;
  z-index: 2;
  width: min(540px, 100%);
  box-sizing: border-box;
  padding: 44px 45px 38px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 24px 60px rgba(20, 16, 40, .22), 0 2px 0 rgba(0, 0, 0, .04);
}

.auth.is-in .auth__bg {
  animation: authBg .6s ease both;
}

.auth.is-in .auth__logo {
  animation: authLogo .6s .1s var(--ease-out) both;
}

.auth.is-in .auth__card {
  animation: authCard .55s .08s var(--ease-out) both;
}

.auth.is-out {
  animation: authOut .28s ease forwards;
}

@keyframes authBg {
  from {
    opacity: 0;
    scale: 1.06;
  }
}

@keyframes authLogo {
  from {
    opacity: 0;
    translate: 0 -20px;
  }
}

@keyframes authCard {
  from {
    opacity: 0;
    translate: 40px 0;
  }
}

@keyframes authOut {
  to {
    opacity: 0;
  }
}

.auth__title {
  margin: 0 0 22px;
  text-align: center;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #000;
}

.auth__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.auth__form[hidden],
.auth__done[hidden],
.auth__social-wrap[hidden] {
  display: none;
}

.auth__field {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #606060;
  border-radius: 5px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.auth__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: none;
  outline: none;
  font: 400 16px/1 var(--f-semi);
  color: #111;
}

.auth__field input::placeholder {
  color: rgba(0, 0, 0, .45);
}

.auth__field:focus-within {
  border-color: var(--c-key);
  box-shadow: 0 0 0 3px rgba(247, 104, 33, .18);
}

.auth__field.is-bad {
  border-color: #e5341d;
  box-shadow: 0 0 0 3px rgba(229, 52, 29, .15);
  animation: shake .35s;
}

.auth__eye {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  padding: 0;
  color: #555;
  cursor: pointer;
}

.auth__eye svg {
  width: 26px;
  height: 22px;
}

.auth__eye .eye-open {
  display: none;
}

.auth__eye.is-show .eye-open {
  display: inline;
}

.auth__eye.is-show .eye-close {
  display: none;
}

.auth__eye:hover {
  color: var(--c-key);
}

.auth__row {
  display: flex;
  gap: 11px;
}

.auth__row .auth__field {
  flex: 1;
  min-width: 0;
}

.auth__otp.btn {
  position: relative;
  flex: none;
  width: 162px;
  height: 49px;
  font-size: 22px;
}

.auth__otp.btn:disabled {
  cursor: default;
  filter: grayscale(.4) brightness(.95);
}

.auth__otp.btn:disabled::before {
  background: #b9b3ad;
}

.auth__agree {
  position: relative;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 6px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #1e1e1e;
  cursor: pointer;
}

.auth__agree input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.auth__agree i {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 3px;
  background: #d9d9d9;
  display: grid;
  place-items: center;
  transition: background .2s;
}

.auth__agree i::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  rotate: -45deg;
  translate: 0 -2px;
  scale: 0;
  transition: scale .2s cubic-bezier(.2, 1.6, .4, 1);
}

.auth__agree input:checked+i {
  background: var(--c-key);
}

.auth__agree input:checked+i::after {
  scale: 1;
}

.auth__agree input:focus-visible+i {
  outline: 2px solid var(--c-key);
  outline-offset: 2px;
}

.auth__agree a {
  color: #f24822;
}

.auth__agree.is-bad i {
  box-shadow: 0 0 0 2px #e5341d;
  animation: shake .35s;
}

.auth__err {
  min-height: 1.3em;
  margin: -2px 0 0;
  color: #e5341d;
  font-size: 14px;
  line-height: 1.3;
}

.auth__submit.btn {
  position: relative;
  justify-self: center;
  margin-top: 2px;
}

.auth__submit.is-busy {
  color: transparent;
}

.auth__submit.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  translate: 0;
  background: none;
  animation: spinBusy .7s linear infinite;
}

@keyframes spinBusy {
  to {
    rotate: 360deg;
  }
}

.auth__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.5;
}

.auth__links a {
  color: #222;
  text-decoration: none;
}

.auth__links a[data-forgot] {
  color: #ff6b2f;
  text-decoration: underline;
}

.auth__links a:hover {
  color: var(--c-key);
}

.auth__social-wrap {
  margin-top: 34px;
}

.auth__sep {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(0, 0, 0, .75);
}

.auth__sep::before,
.auth__sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(5, 5, 5, .12);
}

.auth__social {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 16px;
}

.auth__social button {
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: translate .2s, filter .2s;
}

.auth__social button svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth__social button:hover {
  translate: 0 -3px;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .15));
}

.auth__social button:focus-visible {
  outline: 2px solid var(--c-key);
  outline-offset: 3px;
}

.auth__toast {
  position: absolute;
  left: 50%;
  top: -18px;
  translate: -50% -100%;
  margin: 0;
  width: max-content;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 6px;
  background: rgba(27, 25, 22, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, translate .25s;
}

.auth__toast.is-on {
  opacity: 1;
  translate: -50% calc(-100% - 6px);
}

/* đăng ký thành công */
.auth__done {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 6px 0 4px;
}

.auth__check svg {
  width: 84px;
  height: 84px;
  fill: none;
  stroke: var(--c-key);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth__check circle {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
}

.auth__check path {
  stroke-dasharray: 44;
  stroke-dashoffset: 44;
}

.auth__done.is-in .auth__check circle {
  animation: drawStroke .6s ease forwards;
}

.auth__done.is-in .auth__check path {
  animation: drawStroke .35s .5s ease forwards;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.auth__done-title {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--c-key);
  text-transform: uppercase;
}

.auth__done-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}

.auth__done-text b {
  color: #111;
}

.auth__done-cta {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.auth__done-cta .btn {
  position: relative;
  width: 180px;
}

@media (max-width: 1023px),
(orientation: portrait) {
  .auth {
    justify-items: center;
    align-items: start;
    padding: 92px 16px 32px;
  }

  .auth__bg {
    object-position: 22% top;
  }

  .auth__logo {
    left: 50%;
    translate: -50% 0;
    top: 22px;
    width: 190px;
  }

  .auth.is-in .auth__logo {
    animation: none;
  }

  .auth__close {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .auth__card {
    padding: 28px 20px 26px;
  }

  .auth__title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .auth__otp.btn {
    width: 120px;
    font-size: 19px;
  }

  .auth__agree {
    font-size: 14px;
  }

  .auth__links {
    font-size: 15px;
  }

  .auth__social {
    gap: 28px;
  }

  .auth__social button {
    width: 44px;
    height: 44px;
  }

  .auth__done-cta .btn {
    width: 140px;
    font-size: 20px;
  }

  @keyframes authCard {
    from {
      opacity: 0;
      translate: 0 30px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {

  .auth.is-in .auth__bg,
  .auth.is-in .auth__logo,
  .auth.is-in .auth__card,
  .auth.is-out {
    animation: none;
  }
}