/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/* ==========================================================================
   BU88 — landing qc (Figma: BU88-20261120, frame *_lach)
   Desktop : frame PC_lach    1920 x 1200  (node 44:641)
   Mobile  : frame MB_lach_1 1080 x 2358 (node 48:716; MB_lach_2/3 = slide KM 2/3)
   Moi phan tu dat tuyet doi theo toa do Figma. --u = 1 design px quy ra px
   that, tinh bang cach fit khung thiet ke vao viewport (nhu contain).
   ========================================================================== */

:root {
  --ad-yellow: #fc0;
  /* style "gold" cua Figma (cung stop voi stroke SVG cua o nhap desktop) */
  --ad-gold: linear-gradient(
    269.5deg,
    #9d3706 -14.759%,
    #eacf72 5.0266%,
    #e5ab57 103.16%,
    #b7510f 113.98%
  );
  --ad-asset: "/wp-content/uploads/2026/11";
}

html,
body {
  background: #000a3a;
}

#comments,
.page-title,
#main-menu {
  display: none;
}

#wrapper,
#main {
  background: transparent;
}

/* --------------------------------------------------------------------------
   1. SAN KHAU
   -------------------------------------------------------------------------- */

.ad-hero {
  --u: min(calc(100vw / 1920), calc(100vh / 1200));
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0 !important;
  /* phan ngoai khung thiet ke van la nen cua thiet ke */
  background: #000a3a url("/wp-content/uploads/2026/11/bg-desktop.jpg") center /
    cover no-repeat;
  font-family: "Nunito Sans", Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@supports (height: 100dvh) {
  .ad-hero {
    height: 100dvh;
    --u: min(calc(100vw / 1920), calc(100dvh / 1200));
  }
}

.ad-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(1920 * var(--u));
  height: calc(1200 * var(--u));
  transform: translate(-50%, -50%);
}

.ad-el {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  margin: 0;
}

img.ad-el,
.ad-el > img,
.ad-el > picture > img {
  display: block;
  max-width: none;
  object-fit: cover;
}

/* anh co the nam trong <picture> (doi anh desktop/mobile) */
.ad-el > img,
.ad-el > picture > img {
  width: 100%;
  height: 100%;
}

.ad-deco {
  pointer-events: none;
  user-select: none;
}

/* chu dat theo toa do Figma, line-height normal nhu Figma */
.ad-txt {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  margin: 0;
  padding: 0;
  font-size: calc(var(--fs) * var(--u));
  font-weight: 800;
  line-height: normal;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.ad-up {
  text-transform: uppercase;
}

.ad-mb {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. NEN, KHUNG TRAI/PHAI, VIDEO
   -------------------------------------------------------------------------- */

.ad-bg {
  --x: -5;
  --y: 0;
  --w: 1929;
  --h: 1206;
  overflow: hidden;
}

.ad-frame-l {
  --x: 0;
  --y: 268;
  --w: 527;
  --h: 729;
}

.ad-frame-r {
  --x: 1430;
  --y: 234;
  --w: 494;
  --h: 750;
}

.ad-vframe {
  --x: 508;
  --y: 288;
  --w: 904;
  --h: 480.641;
  border-radius: calc(5 * var(--u));
}

.ad-video {
  --x: 517.85;
  --y: 306.8;
  --w: 882.519;
  --h: 449.315;
  border-radius: calc(30 * var(--u));
  object-fit: cover;
  background: #000;
  pointer-events: none;
}

/* Che 3 nut "CUOC DA88/VB88/HD88" in san trong video (goc duoi phai). Nut o 2
   cho: 0-90s y 0.856-0.907, 92-120s y 0.815-0.869 (x 0.585-0.99) cua khung
   nguon 16:9 -> mieng che phu ca hai (y 0.805-0.917). Kinh mo trang
   + vien vang + logo BU88, cung kieu tam logo tren header. Toa do da tinh theo
   object-fit: cover cua video. */
.ad-vcover {
  --x: 1025;
  --y: 682.9;
  --w: 371;
  --h: 55.6;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: max(1px, calc(1.5 * var(--u))) solid #eacf72;
  border-radius: calc(28 * var(--u));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(222, 230, 255, 0.84) 100%
  );
  -webkit-backdrop-filter: blur(calc(10 * var(--u)));
  backdrop-filter: blur(calc(10 * var(--u)));
  box-shadow: 0 0 calc(12 * var(--u)) rgba(234, 207, 114, 0.45),
    0 calc(3 * var(--u)) calc(10 * var(--u)) rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.ad-el.ad-vcover > img {
  width: auto;
  height: 52%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   3. THANH LICH THI DAU
   -------------------------------------------------------------------------- */

.ad-ticker {
  --x: 118;
  --y: 199;
  --w: 1684;
  --h: 72;
}

.ad-club {
  font-size: calc(var(--fs) * var(--u));
}

.ad-vs {
  font-weight: 500;
}

.ad-time {
  color: var(--ad-yellow);
}

.ad-m1-logo { --x: 425; --y: 220; --w: 29; --h: 37; }
.ad-m1-home { --x: 466; --y: 231; --fs: 16; }
.ad-m1-vs   { --x: 549; --y: 233; --fs: 14; }
.ad-m1-away { --x: 576; --y: 231; --fs: 16; }
.ad-m1-time { --x: 663; --y: 232; --fs: 14; }

.ad-sep {
  --w: 1;
  --h: 31;
  --y: 226;
  min-width: 1px;
  background: #fff;
}

.ad-sep--1 { --x: 800; }
.ad-sep--2 { --x: 1241; }

.ad-m2-logo { --x: 830; --y: 223; --w: 37; --h: 37; }
.ad-m2-home { --x: 875; --y: 231; --fs: 16; }
.ad-m2-vs   { --x: 998; --y: 233; --fs: 14; }
.ad-m2-away { --x: 1028; --y: 231; --fs: 16; }
.ad-m2-time { --x: 1136; --y: 233; --fs: 14; }

.ad-m3-logo { --x: 1273; --y: 222; --w: 34; --h: 34; }
.ad-m3-home { --x: 1318; --y: 231; --fs: 16; }
.ad-m3-vs   { --x: 1417; --y: 233; --fs: 14; }
.ad-m3-away { --x: 1443; --y: 231; --fs: 16; }
.ad-m3-time { --x: 1587; --y: 233; --fs: 14; }

/* --------------------------------------------------------------------------
   4. KHUNG DANG KY
   -------------------------------------------------------------------------- */

.ad-form-bg {
  --x: 503;
  --y: 754;
  --w: 913.497;
  --h: 221.183;
  overflow: hidden;
}

.ad-form,
.ad-form .form-input-wrapper,
.ad-form .form-input {
  display: contents;
}

.ad-form * {
  box-sizing: border-box;
}

.ad-form .form-input::before {
  display: none !important;
}

/* o nhap: nen #001043, vien 3px gradient "gold", bo goc nhu SVG Rectangle 2.
   Figma co 2 o (user, mat khau); them o SDT nen 3 o cao 52, rong 269.33, cach
   nhau 16, ca hang 840 can giua tam khung form (x 959.75). */
.ad-box {
  box-sizing: border-box;
  border: calc(3 * var(--u)) solid transparent;
  border-radius: calc(13.34 * var(--u)) / calc(11.25 * var(--u));
  background: linear-gradient(#001043, #001043) padding-box,
    var(--ad-gold) border-box;
  pointer-events: none;
}

.ad-box--user  { --x: 539.75; --y: 858; --w: 269.33; --h: 52; }
.ad-box--pass  { --x: 825.08; --y: 858; --w: 269.33; --h: 52; }
.ad-box--phone { --x: 1110.41; --y: 858; --w: 269.33; --h: 52; }

.ad-form .form-input.error .ad-box {
  filter: drop-shadow(0 0 calc(4 * var(--u)) #ff2828)
    drop-shadow(0 0 calc(4 * var(--u)) #ff2828);
}

.ad-icon--user  { --x: 546.44; --y: 860.57; --w: 46.872; --h: 46.872; }
.ad-icon--pass  { --x: 835.05; --y: 863.56; --w: 40.889; --h: 40.889; }
.ad-icon--phone { --x: 1120.38; --y: 863.56; --w: 40.889; --h: 40.889; }

.ad-bar {
  --w: 1;
  min-width: 1px;
  background: #fff;
  pointer-events: none;
}

.ad-bar--user  { --x: 601.29; --y: 865.55; --h: 36.899; }
.ad-bar--pass  { --x: 886.91; --y: 865.55; --h: 36.899; }
.ad-bar--phone { --x: 1171.95; --y: 865.55; --h: 36.899; }

/* Hop noi dung cua input trung voi hop chu placeholder trong Figma. */
.ad-form .form-input input.ad-input {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  min-height: 0;
  margin: 0 !important;
  padding: calc(var(--pt) * var(--u)) 0 calc(var(--pb) * var(--u)) !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: #fff;
  font-family: inherit;
  font-size: calc(16 * var(--u));
  font-weight: 400;
  line-height: normal;
}

.ad-form .form-input input.ad-input::placeholder {
  color: #fff;
  opacity: 1;
}

.ad-input--user  { --x: 616.25; --y: 858; --w: 182.8; --h: 52; --pt: 16.96; --pb: 13.1; }
.ad-input--pass  { --x: 901.87; --y: 858; --w: 109.4; --h: 52; --pt: 16.96; --pb: 13.1; }
.ad-input--phone { --x: 1186.91; --y: 858; --w: 182.8; --h: 52; --pt: 16.96; --pb: 13.1; }

/* mat: eye 1 (dang an mat khau) / eye 2 (dang hien) */
.ad-eye {
  --x: 1009.76;
  --y: 839.49;
  --w: 89.009;
  --h: 89.009;
  transform: rotate(0.48deg);
  pointer-events: none;
}

.ad-eye-off {
  --x: 1015.29;
  --y: 863.61;
  --w: 76.763;
  --h: 43.619;
  display: none !important;
  pointer-events: none;
}

.ad-form .form-input-pass:has(input[type="text"]) .ad-eye {
  display: none !important;
}

.ad-form .form-input-pass:has(input[type="text"]) .ad-eye-off {
  display: block !important;
}

.ad-form .toggle-password.ad-eye-hit {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  --x: 1009.39;
  --y: 839.12;
  --w: 89.755;
  --h: 89.755;
  margin: 0;
  overflow: visible;
  cursor: pointer;
}

/* --- thong bao loi: tooltip nen toi, mui ten chi vao o nhap -----------------
   --x/--y = diem neo, --tx/--ty = dich theo kich thuoc tooltip (vd -50% la
   canh giua), --ax = vi tri ngang cua mui ten, --w = be rong toi da. */
.ad-form .form-input-wrapper p {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: max-content;
  max-width: calc(var(--w) * var(--u));
  margin: 0;
  padding: max(2px, calc(4 * var(--u))) max(10px, calc(14 * var(--u)));
  border: 1px solid #ff5a5a;
  border-radius: max(8px, calc(12 * var(--u)));
  background: #001043;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: #ff7a7a;
  font-size: max(10px, calc(var(--fs) * var(--u)));
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transform: translate(var(--tx, -50%), var(--ty));
  display: none;
  z-index: 5;
  pointer-events: none;
}

/* mui ten (chi dung tren mobile): o vuong xoay 45deg, cung nen va vien */
.ad-form .form-input-wrapper p::after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  width: max(6px, calc(10 * var(--u)));
  height: max(6px, calc(10 * var(--u)));
  background: inherit;
  border: 1px solid #ff5a5a;
}

.ad-form .form-input-wrapper p.ad-tip::after {
  top: 0;
  border-width: 1px 0 0 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.ad-form .form-input-wrapper p:not(.ad-tip)::after {
  display: none;
}

/* desktop: tooltip nam duoi cac o nhap, mui ten chi len o bi loi. O trai canh
   trai, o phai canh phai, o giua canh giua. */
.ad-form .validate-user     { --x: 539.75; --y: 914; --tx: 0; --ty: 0; --ax: 34px; --w: 380; --fs: 14; }
.ad-form .validate-password { --x: 959.75; --y: 914; --tx: -50%; --ty: 0; --ax: 50%; --w: 380; --fs: 14; }
.ad-form .validate-phone    { --x: 1379.74; --y: 914; --tx: -100%; --ty: 0; --ax: calc(100% - 34px); --w: 380; --fs: 14; }
.ad-form .error-message     { --x: 539.75; --y: 914; --tx: 0; --ty: 0; --w: 840; --fs: 14; }

/* moi lan chi hien 1 loi (thu tu: ten dang nhap, mat khau, SDT) de cac tooltip
   khong de len nhau */
.ad-form:has(.validate-user[style*="inline-block"]) .validate-password,
.ad-form:has(.validate-user[style*="inline-block"]) .validate-phone,
.ad-form:has(.validate-password[style*="inline-block"]) .validate-phone {
  display: none !important;
}

/* --- nut dang ky (Figma 19:118) + nhip nhap nhay --------------------------- */
.ad-form .btn-register.ad-btn {
  /* Figma: x 811.86 (tam 976.4), lech phai 16.7 so voi tam khung form va hang
     o nhap (959.75); can lai cho deu. */
  --x: 795.2;
  --y: 907.15;
  --w: 329.103;
  --h: 109.701;
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  margin: 0;
  cursor: pointer;
  background: url("/wp-content/uploads/2026/11/btn-register.png") 0 0 / 100%
    100% no-repeat;
  animation: ad-cta-pulse 1.5s ease-in-out infinite;
  will-change: transform, filter;
}

/* drop-shadow bam dung hinh nut trong PNG (khong phai khung chu nhat) */
@keyframes ad-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(255, 199, 44, 0)) brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 calc(18 * var(--u)) rgba(255, 199, 44, 0.9))
      brightness(1.12);
  }
}

/* vet sang quet ngang, cat theo dung hinh nut bang mask */
.ad-form .btn-register.ad-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0) 42%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0) 58%
    )
    100% 0 / 250% 100% no-repeat;
  -webkit-mask: url("/wp-content/uploads/2026/11/btn-register.png") 0 0 / 100%
    100% no-repeat;
  mask: url("/wp-content/uploads/2026/11/btn-register.png") 0 0 / 100% 100%
    no-repeat;
  animation: ad-cta-shine 2.2s ease-in-out infinite;
}

@keyframes ad-cta-shine {
  0% {
    background-position: 100% 0;
  }
  45%,
  100% {
    background-position: 0 0;
  }
}

.ad-form .btn-register.ad-btn:hover {
  animation-duration: 0.9s;
}

.ad-form .btn-register.ad-btn:active {
  animation: none;
  transform: scale(0.97);
}

.ad-form .btn-register.ad-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ad-form .btn-register.ad-btn,
  .ad-form .btn-register.ad-btn::after {
    animation: none;
  }
}

.ad-form .turnstile-register {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(1020 * var(--u));
  z-index: 100;
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   5. KHUYEN MAI + JACKPOT
   -------------------------------------------------------------------------- */

.ad-km1 { --x: 214; --y: 980; --w: 473; --h: 186; }
.ad-km2 { --x: 703.5; --y: 985.5; --w: 460; --h: 176; }
.ad-km3 { --x: 1180.5; --y: 997.5; --w: 467; --h: 161; }

.ad-number-bg {
  --x: 1374;
  --y: 1108;
  --w: 230;
  --h: 34;
}

.ad-number {
  --x: 1394;
  --y: 1108;
  --fs: 28;
  font-style: italic;
  background-image: linear-gradient(
    177.76deg,
    #fced32 30.434%,
    #f3a800 82.419%,
    #b7510f 138.56%,
    #fff1ad 138.56%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   6. TIEU DE + LOGO
   -------------------------------------------------------------------------- */

.ad-headline { --x: 508; --y: 129; --w: 904; --h: 62; }
.ad-logo-shape { --x: 729; --y: 0; --w: 463; --h: 129; }
.ad-logo-lach { --x: 807; --y: 17; --w: 310; --h: 70; }
.ad-logo { --x: 807; --y: 18; --w: 310; --h: 69; }

/* --------------------------------------------------------------------------
   7. KHUNG TY LE KEO
   -------------------------------------------------------------------------- */

.ad-odds-box {
  --x: 1152;
  --y: 320;
  --w: 239;
  --h: 139;
  box-sizing: border-box;
  border: 1px solid transparent;
  background: linear-gradient(rgba(0, 16, 67, 0.95), rgba(0, 16, 67, 0.95))
      padding-box,
    var(--ad-gold) border-box;
  border-radius: calc(14 * var(--u));
}

.ad-odds-title {
  --x: 1177;
  --y: 328;
  --fs: 20;
  background-image: linear-gradient(
    269.5deg,
    #9d3706 -14.759%,
    #eacf72 5.0266%,
    #e5ab57 103.16%,
    #b7510f 113.98%,
    #b7510f 113.98%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ad-live { --x: 1284; --y: 300; --w: 80; --h: 80; }

.ad-odds-line {
  --x: 1151;
  --w: 240.008;
  --h: 3;
  transform: rotate(0.48deg);
}

.ad-odds-line--a { --y: 356; }
.ad-odds-line--b { --y: 404; }

.ad-odds-tag {
  --x: 1161.5;
  --w: 87.271;
  --h: 28;
}

.ad-odds-tag--a { --y: 365.5; }
.ad-odds-tag--b { --y: 417.5; }

.ad-o-asia   { --x: 1165; --y: 374; --fs: 11; }
.ad-o-asia-h { --x: 1258; --y: 371; --fs: 15; }
.ad-o-asia-v { --x: 1309; --y: 371; --fs: 15; }
.ad-o-ou     { --x: 1174; --y: 426; --fs: 11; }
.ad-o-ou-h   { --x: 1264; --y: 422; --fs: 15; }
.ad-o-ou-v   { --x: 1311; --y: 422; --fs: 15; }

/* tam giac: SVG chiem left/right 6.7%, top 0, bottom 25% cua hop vuong */
.ad-arrow {
  --w: 20;
  --h: 20;
  --x: 1356;
}

.ad-arrow > img {
  position: absolute;
  left: 6.7%;
  top: 0;
  width: 86.6%;
  height: 75%;
}

.ad-arrow--up { --y: 370; }
.ad-arrow--down { --y: 422; transform: rotate(180deg); }

/* --------------------------------------------------------------------------
   8. POPUP THONG BAO (luong cua plugin dang ky)
   -------------------------------------------------------------------------- */

#popup-register .popup {
  width: min(500px, calc(100vw - 32px));
  max-width: 500px;
  padding: 28px 24px;
  border-radius: 18px;
  border: 2px solid #ffd23f;
  background: linear-gradient(180deg, #0b2a6b 0%, #061845 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

#popup-register .form-submit-popup:empty {
  display: none;
}

#popup-register .show-noti img {
  width: 56px;
  height: auto;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. MOBILE / TABLET — frame MB 1080 x 2358
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ad-hero {
    --u: min(calc(100vw / 1080), calc(100vh / 2358));
    background-image: url("/wp-content/uploads/2026/11/bg-mobile.jpg");
  }

  @supports (height: 100dvh) {
    .ad-hero {
      --u: min(calc(100vw / 1080), calc(100dvh / 2358));
    }
  }

  .ad-stage {
    width: calc(1080 * var(--u));
    height: calc(2358 * var(--u));
  }

  .ad-pc {
    display: none !important;
  }

  .ad-mb {
    display: block !important;
  }

  /* bg_1080x1920: anh bi cat trong khung 1256 x 2358 dung nhu Figma */
  .ad-bg { --x: -88; --y: 0; --w: 1256; --h: 2358; }

  .ad-el.ad-bg img {
    position: absolute;
    left: 4.76%;
    top: -1.29%;
    width: 90.48%;
    height: 106.88%;
  }

  .ad-headline { --x: 88; --y: 137; --w: 904; --h: 62; }

  .ad-ticker { --x: 20; --y: 221; --w: 1000; --h: 90; }
  .ad-m1-logo { --x: 359; --y: 248; --w: 36; --h: 45; }
  .ad-m1-home { --x: 425; --y: 259; --fs: 22; }
  .ad-m1-vs   { --x: 557; --y: 264; --fs: 16; }
  .ad-m1-away { --x: 610; --y: 259; --fs: 22; }
  .ad-m1-time { --x: 747; --y: 263; --fs: 18; }

  .ad-vframe { --x: 39; --y: 350; --w: 1010; --h: 537; }
  .ad-vcover { --x: 617; --y: 791.2; --w: 414; --h: 62.1; border-radius: calc(31 * var(--u)); }
  .ad-video { --x: 50; --y: 371; --w: 986; --h: 502; }

  .ad-odds-box { --x: 718; --y: 386.28; --w: 302.132; --h: 175.717; }
  .ad-odds-title { --x: 749.6; --y: 396.4; }
  .ad-live { --x: 884.87; --y: 361; --w: 101.132; --h: 101.132; }
  .ad-odds-line { --x: 717; --w: 302.88; }
  .ad-odds-line--a { --y: 432.32; }
  .ad-odds-line--b { --y: 493; }
  .ad-odds-tag { --x: 730.14; --w: 109.99; --h: 35.13; }
  .ad-odds-tag--a { --y: 443.93; }
  .ad-odds-tag--b { --y: 509.67; }
  .ad-o-asia   { --x: 734.43; --y: 454.55; }
  .ad-o-asia-h { --x: 852; --y: 450.75; }
  .ad-o-asia-v { --x: 916.47; --y: 450.75; }
  .ad-o-ou     { --x: 745.81; --y: 520.28; }
  .ad-o-ou-h   { --x: 859.58; --y: 515.23; }
  .ad-o-ou-v   { --x: 919; --y: 515.23; }
  .ad-arrow { --x: 975.89; --w: 25.283; --h: 25.283; }
  .ad-arrow--up { --y: 449.49; }
  .ad-arrow--down { --y: 515.23; }

  /* khung-dang-ky1: anh bi cat trong khung 1019 x 510 */
  .ad-form-bg { --x: 30; --y: 834; --w: 1019; --h: 510; }

  .ad-el.ad-form-bg img {
    position: absolute;
    left: -0.05%;
    top: -1.84%;
    width: 100.1%;
    height: 100%;
  }

  /* o nhap mobile la hinh chu nhat CSS (Rectangle 6), khong phai SVG */
  /* o nhap mobile (Rectangle 6): Figma co 2 o cao 57, cach nhau 32. Them o SDT
     nen 3 o cao 50, cach nhau 12. O dau giu y 1022 nhu Figma (cach tieu de),
     nut dang ky giu nguyen vi tri Figma. */
  .ad-box {
    border-radius: calc(15 * var(--u));
  }

  .ad-box--user  { --x: 223.5; --y: 1022; --w: 632; --h: 50; }
  .ad-box--pass  { --x: 223.5; --y: 1084; --w: 632; --h: 50; }
  .ad-box--phone { --x: 223.5; --y: 1146; --w: 632; --h: 50; }
  .ad-icon--user  { --x: 246.5; --y: 1026; --w: 42; --h: 42; }
  .ad-icon--pass  { --x: 238.5; --y: 1087.5; --w: 43; --h: 43; }
  .ad-icon--phone { --x: 242.5; --y: 1153; --w: 36; --h: 36; }
  .ad-bar--user  { --x: 301.5; --y: 1031; --h: 32; }
  .ad-bar--pass  { --x: 301.5; --y: 1093; --h: 32; }
  .ad-bar--phone { --x: 301.5; --y: 1155; --h: 32; }
  .ad-input--user  { --x: 316.5; --y: 1022; --w: 524; --h: 50; --pt: 15; --pb: 13; }
  .ad-input--pass  { --x: 316.5; --y: 1084; --w: 441; --h: 50; --pt: 15; --pb: 13; }
  .ad-input--phone { --x: 316.5; --y: 1146; --w: 524; --h: 50; --pt: 15; --pb: 13; }
  .ad-eye { --x: 764.05; --y: 1069.85; --w: 78.3; --h: 78.3; }
  .ad-eye-off { --x: 769.6; --y: 1091.75; --w: 67.5; --h: 38.3; }
  .ad-form .toggle-password.ad-eye-hit { --x: 763.7; --y: 1069.5; --w: 79; --h: 79; }

  /* mobile: 3 o xep doc, khe giua cac o hep -> tooltip de len o ke ben (chi hien
     1 loi moi lan). Loi SDT nam tren o SDT de khong che nut dang ky. */
  .ad-form .validate-user     { --x: 539.5; --y: 1076; --tx: -50%; --ty: 0; --ax: 50%; --w: 632; --fs: 22; }
  .ad-form .validate-password { --x: 539.5; --y: 1138; --tx: -50%; --ty: 0; --ax: 50%; --w: 632; --fs: 22; }
  .ad-form .validate-phone    { --x: 539.5; --y: 1142; --tx: -50%; --ty: -100%; --ax: 50%; --w: 632; --fs: 22; }
  .ad-form .error-message     { --x: 539.5; --y: 1078; --tx: -50%; --ty: -50%; --w: 632; --fs: 22; }

  .ad-form .form-input-wrapper p.validate-phone.ad-tip::after {
    top: 100%;
    border-width: 0 1px 1px 0;
  }

  /* Figma dat nut va o nhap o tam x 529, lech trai 10.5 so voi tam khung form
     (539.5); can lai cho deu. Tam doc cua nut nam dung vien duoi khung form
     (y 1237.2, nhu desktop) thay vi y 1231 cua Figma. */
  .ad-form .btn-register.ad-btn { --x: 351.5; --y: 1174.2; --w: 376; --h: 126; }
  .ad-form .turnstile-register { top: calc(1300 * var(--u)); }

  /* Thu tu lop tren mobile: khung trai/phai nam tren khung dang ky,
     the KM + nav + logo nam tren khung trai/phai (dung thu tu Figma). */
  .ad-frame-l { --x: 32; --y: 1268; z-index: 1; }
  .ad-frame-r { --x: 536; --y: 1233; z-index: 1; }

  .ad-kmmb,
  .ad-nav,
  .ad-number-bg,
  .ad-number,
  .ad-logo-shape,
  .ad-logo-lach,
  .ad-logo {
    z-index: 2;
  }

  .ad-logo-shape { --x: 297; }
  .ad-logo-lach,
  .ad-logo { --x: 375; }

  /* --- slider KM (MB_1 / MB_2 / MB_3) ------------------------------------ */
  .ad-kmmb {
    opacity: 0;
    transition: opacity 0.45s ease;
  }

  .ad-kmmb.is-active {
    opacity: 1;
  }

  .ad-kmmb--1 { --x: 124; --y: 1976; --w: 841; --h: 321; }
  .ad-kmmb--2 { --x: 122; --y: 1985; --w: 843; --h: 325; }
  .ad-kmmb--3 { --x: 92; --y: 1985; --w: 873; --h: 327; }

  /* so jackpot chi co tren slide 3 (MB_3) */
  .ad-number-bg { --x: 507; --y: 2215; --w: 331; --h: 50; }
  .ad-number {
    --x: 537;
    --y: 2215;
    --fs: 40;
    background-image: linear-gradient(
      177.74deg,
      #fced32 30.434%,
      #f3a800 82.419%,
      #b7510f 138.56%,
      #fff1ad 138.56%
    );
  }

  .ad-number-bg,
  .ad-number {
    opacity: 0;
    transition: opacity 0.45s ease;
  }

  .ad-stage[data-km="2"] .ad-number-bg,
  .ad-stage[data-km="2"] .ad-number {
    opacity: 1;
  }

  /* --- nav: 3 cham trang d=33, cham active co loi d=25 gradient xanh ------ */
  .ad-nav {
    --x: 454;
    --y: 2312;
    --w: 163;
    --h: 33;
  }

  .ad-nav button {
    position: absolute;
    top: 0;
    width: calc(33 * var(--u));
    height: calc(33 * var(--u));
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
  }

  .ad-nav button:nth-child(1) { left: 0; }
  .ad-nav button:nth-child(2) { left: calc(65 * var(--u)); }
  .ad-nav button:nth-child(3) { left: calc(130 * var(--u)); }

  .ad-nav button[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: calc(4 * var(--u));
    top: calc(4 * var(--u));
    width: calc(25 * var(--u));
    height: calc(25 * var(--u));
    border-radius: 50%;
    background: linear-gradient(180deg, #0022ff 0%, #001043 100%);
  }
}

/* --------------------------------------------------------------------------
   10. Man hinh rat thap (landscape dien thoai) — cho phep cuon
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) and (orientation: landscape) and (max-height: 520px) {
  .ad-hero {
    --u: calc(100vw / 1080);
    height: auto;
  }

  .ad-stage {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
  }
}
