/*
 * X58 29/11 (Rio: « giao diện mobile đang rất tệ cho trải nghiệm … thực thi lại toàn bộ giao diện và trải nghiệm trên mobile »):
 * the phone shell of the WAP portal, with static/js/m_ux.js (which sets html[data-mux] and the mux-* classes).
 *
 * Every rule starts with  html[data-mux]:not(#mx)  : one id in the weight, so it wins over the legacy bundle styles and the
 * theme (eagle_theme.css stays the LAST stylesheet of the shell: X16) without touching either file. Colours come only from
 * the theme tokens (--eg-*), so the night and the day look both follow. Pictures keep their own shape (X16: no crop).
 *
 *  1. base       tap feedback, safe areas
 *  2. bottom bar #mux-nav (5 tabs, raised « Nạp tiền »); the bundle's van-tabbar is hidden while it shows
 *  3. home       fixed app bar (logo, account / balance), banner card, notice row, chip row of game groups (Live / Đá gà in
 *                the page: X60), 2-column tiles
 *  4. side menu  dark drawer with the game / account shortcuts
 *  5. Của tôi    profile + wallet cards, quick actions, list rows
 *  6. inner pages nav bar, cards, inputs
 *  7. floating   install hint, promo-code button: above the bar, hidden while a popup is open
 */

/* ------------------------------------------------------------------------------------------------------------ 1. base */
html[data-mux]:not(#mx) {
  --mux-hh: 52px;
  --mux-nav: 62px;
  --mux-safe-b: env(safe-area-inset-bottom, 0px);
  --mux-safe-t: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}
html[data-mux]:not(#mx) body {
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
html[data-mux]:not(#mx) body button,
html[data-mux]:not(#mx) body [role="button"],
html[data-mux]:not(#mx) body .van-tabbar-item,
html[data-mux]:not(#mx) body .lisImg,
html[data-mux]:not(#mx) body .hgsw,
html[data-mux]:not(#mx) body .thbs .lis {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
html[data-mux]:not(#mx) body .mux-hide,
html[data-mux]:not(#mx) body .leftbox ul > li.mux-hide { display: none !important; }
html[data-mux]:not(#mx) .mux-ic { display: inline-flex; width: 24px; height: 24px; flex: none; }
html[data-mux]:not(#mx) .mux-ic svg { width: 100%; height: 100%; }

/* ------------------------------------------------------------------------------------------------------ 2. bottom bar */
html[data-mux]:not(#mx) #mux-nav { display: none; }
html[data-mux].mux-tabs:not(#mx) #mux-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--mux-nav) + var(--mux-safe-b)); padding: 0 4px var(--mux-safe-b); box-sizing: border-box;
  background: var(--eg-bar); border-top: 1px solid var(--eg-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .45);
}
html[data-mux].mux-tabs:not(#mx) body .van-tabbar { display: none !important; }
html[data-mux]:not(#mx) #mux-nav .mux-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--mux-nav); margin: 0; padding: 6px 0 7px; border: 0; background: none; cursor: pointer;
  color: var(--eg-text-3); font: 500 11px/1.1 var(--eg-font); letter-spacing: .1px;
  transition: color var(--eg-t) var(--eg-ease);
}
html[data-mux]:not(#mx) #mux-nav .mux-tab .mux-ic { width: 24px; height: 24px; transition: transform var(--eg-t) var(--eg-ease); }
html[data-mux]:not(#mx) #mux-nav .mux-tab.on { color: var(--eg-gold-hi); font-weight: 700; }
html[data-mux][data-theme="day"]:not(#mx) #mux-nav .mux-tab.on { color: var(--eg-gold-lo); }
html[data-mux]:not(#mx) #mux-nav .mux-tab.on .mux-ic { transform: translateY(-1px) scale(1.06); }
html[data-mux]:not(#mx) #mux-nav .mux-tab:active .mux-ic { transform: scale(.9); }
html[data-mux]:not(#mx) #mux-nav .mux-tab-t { font-size: 11px; white-space: nowrap; }
html[data-mux]:not(#mx) #mux-nav .mux-tab--center { position: relative; justify-content: flex-end; color: var(--eg-gold-hi); font-weight: 700; }
html[data-mux][data-theme="day"]:not(#mx) #mux-nav .mux-tab--center { color: var(--eg-gold-lo); }
html[data-mux]:not(#mx) #mux-nav .mux-fab {
  position: absolute; left: 50%; top: -20px; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--eg-gold-grad); color: var(--eg-on-gold);
  box-shadow: 0 0 0 4px var(--eg-bg), 0 10px 22px -6px rgba(217, 180, 106, .65);
}
html[data-mux]:not(#mx) #mux-nav .mux-fab .mux-ic { width: 26px; height: 26px; }
html[data-mux]:not(#mx) #mux-nav .mux-tab--center:active .mux-fab { transform: translateX(-50%) scale(.94); }
/* the page ends above the bar */
html[data-mux].mux-tabs:not(#mx) body .eg-foot-wap { padding-bottom: calc(var(--mux-nav) + var(--mux-safe-b) + 18px) !important; }
html[data-mux].mux-tabs:not(#mx) body #app { padding-bottom: 0 !important; }

/* ------------------------------------------------------------------------------------------------------------ 3. home */
/* the « Ứng dụng SG88 / Tải ngay » strip: the install hint (#eagle-pwa) and « Tải app » in Của tôi already offer it */
html[data-mux]:not(#mx) body .appbox { display: none !important; }

/* app bar: menu · logo · day/night · account (X60), fixed at the top */
html[data-mux]:not(#mx) body .mux-hero { padding-top: calc(var(--mux-hh) + var(--mux-safe-t)) !important; }
html[data-mux]:not(#mx) body .homeHeder {
  position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; z-index: 120 !important;
  height: calc(var(--mux-hh) + var(--mux-safe-t)) !important; padding: var(--mux-safe-t) 12px 0 !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; gap: 8px !important;
  background: var(--eg-bar) !important; border-bottom: 1px solid transparent !important;
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color var(--eg-t) var(--eg-ease), box-shadow var(--eg-t) var(--eg-ease);
}
html[data-mux].mux-scrolled:not(#mx) body .homeHeder { border-bottom-color: var(--eg-line) !important; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .7) !important; }
html[data-mux]:not(#mx) body .homeHeder img.leftImg {
  width: 22px !important; height: 22px !important; padding: 9px !important; margin: 0 !important; box-sizing: content-box !important;
  border-radius: 12px !important; background: var(--eg-surface-2) !important; border: 1px solid var(--eg-line) !important; box-shadow: none !important;
  position: static !important; flex: none !important;
}
html[data-mux]:not(#mx) body .homeHeder .mux-logo {
  display: inline-flex; align-items: center; height: 40px; margin: 0 auto 0 2px; padding: 0 4px; border: 0; background: none; cursor: pointer;
}
html[data-mux]:not(#mx) body .homeHeder .mux-logo img { display: block; height: 24px; width: auto; }
html[data-mux][data-theme="day"]:not(#mx) body .homeHeder .mux-logo img { content: url(/static/image/eagle/logo.png); }
html[data-mux]:not(#mx) body .homeHeder .eg-mode-round {
  position: static !important; flex: none !important; width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important;
  margin: 0 !important; padding: 0 !important; border-radius: 12px !important; box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  background: var(--eg-surface-2) !important; border: 1px solid var(--eg-line) !important; box-shadow: none !important;
  color: var(--eg-gold-hi) !important; font-size: 0 !important; line-height: 0 !important; overflow: hidden !important;
}
/* X60: CSKH is a tab of the bottom bar; its header button gave its place to the account slot */
html[data-mux]:not(#mx) body .homeHeder .rbox { display: none !important; }
/* X60: the account slot (m_ux.js): guest « Đăng nhập », signed in the wallet balance short (1,2K / 10M) */
html[data-mux]:not(#mx) body .homeHeder .mux-acct {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; max-width: 44vw; margin: 0; padding: 0 12px 0 9px;
  border-radius: 12px; box-sizing: border-box; cursor: pointer; white-space: nowrap;
  background: var(--eg-gold-grad); border: 1px solid transparent; color: var(--eg-on-gold);
  font: 700 13px/1 var(--eg-font); box-shadow: 0 6px 16px -10px rgba(217, 180, 106, .8);
}
html[data-mux]:not(#mx) body .homeHeder .mux-acct .mux-acct-ic { display: inline-flex; width: 20px; height: 20px; flex: none; }
html[data-mux]:not(#mx) body .homeHeder .mux-acct .mux-acct-ic svg { width: 100%; height: 100%; }
html[data-mux]:not(#mx) body .homeHeder .mux-acct .mux-acct-t { overflow: hidden; text-overflow: ellipsis; }
html[data-mux]:not(#mx) body .homeHeder .mux-acct--in {
  background: var(--eg-surface-2); border-color: var(--eg-gold-line); color: var(--eg-gold-hi); box-shadow: none;
  font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .2px;
}
html[data-mux][data-theme="day"]:not(#mx) body .homeHeder .mux-acct--in { color: var(--eg-gold-lo); }
html[data-mux]:not(#mx) body .homeHeder .mux-acct:active { transform: scale(.95); }

/* banner: a rounded card, the picture whole (5:2) */
html[data-mux]:not(#mx) body .mux-hero > .van-swipe {
  margin: 10px 12px 0 !important; border-radius: 16px !important; overflow: hidden !important;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8) !important; -webkit-mask-image: -webkit-radial-gradient(white, black);
}
html[data-mux]:not(#mx) body .mux-hero > .van-swipe .swiper-dots {
  left: auto !important; right: 10px !important; top: auto !important; bottom: 8px !important; width: auto !important; height: 20px !important;
  padding: 0 8px !important; border-radius: 999px !important; display: flex !important; align-items: center !important; gap: 1px !important;
  background: rgba(4, 7, 15, .55) !important; color: #fff !important;
}
html[data-mux]:not(#mx) body .mux-hero > .van-swipe .swiper-dots > * {
  position: static !important; width: auto !important; height: auto !important; line-height: 1 !important; font-size: 11px !important; color: #fff !important; background: none !important;
}

/* notice row */
html[data-mux]:not(#mx) body .gonggao {
  margin: 10px 12px 0 !important; padding: 0 4px 0 12px !important; height: 40px !important; box-sizing: border-box !important; width: auto !important;
  display: flex !important; align-items: center !important; gap: 8px !important;
  border-radius: 12px !important; background: var(--eg-surface) !important; border: 1px solid var(--eg-line) !important;
}
html[data-mux]:not(#mx) body .gonggao > img { width: 18px !important; height: auto !important; flex: none !important; margin: 0 !important; }
html[data-mux]:not(#mx) body .gonggao > div { flex: 1 1 auto !important; min-width: 0 !important; }
html[data-mux]:not(#mx) body .gonggao .van-notice-bar { height: 38px !important; padding: 0 !important; background: none !important; color: var(--eg-text-2) !important; }
html[data-mux]:not(#mx) body .gonggao .van-notice-bar span { font-size: 13px !important; }
html[data-mux]:not(#mx) body .gonggao .notice-btn {
  flex: none !important; height: 30px !important; line-height: 30px !important; padding: 0 12px !important; margin: 0 !important; border-radius: 9px !important;
  font-size: 12px !important; font-weight: 700 !important; background: var(--eg-gold-bg) !important; color: var(--eg-gold-hi) !important; border: 1px solid var(--eg-gold-line) !important;
}
html[data-mux][data-theme="day"]:not(#mx) body .gonggao .notice-btn { color: var(--eg-gold-lo) !important; }

/* X60 29/11 (Rio: « khung đăng nhập nạp tiền đó choáng chỗ quá »): the wallet card (name, balance, Nạp / Rút / VIP) is gone from
 * the home page: the balance is in the app bar (.mux-acct), Nạp tiền is the raised tab, Rút tiền / VIP are in Của tôi and the menu */
html[data-mux]:not(#mx) body .xiding { display: none !important; }

/* game groups: a horizontal chip row that sticks under the app bar, the tiles use the full width */
html[data-mux]:not(#mx) body .catalogBox {
  display: block !important; padding: 6px 0 8px !important; margin: 0 !important; gap: 0 !important; background: var(--eg-bg) !important;
}
html[data-mux]:not(#mx) body ul.catalogTabs {
  position: sticky !important; top: calc(var(--mux-hh) + var(--mux-safe-t)) !important; z-index: 30 !important;
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important;
  width: auto !important; height: auto !important; max-height: none !important; flex: none !important;
  margin: 0 !important; padding: 8px 12px !important; overflow-x: auto !important; overflow-y: hidden !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--eg-bg) !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
html[data-mux]:not(#mx) body ul.catalogTabs::-webkit-scrollbar { display: none; }
html[data-mux].mux-scrolled:not(#mx) body ul.catalogTabs { box-shadow: 0 10px 16px -14px rgba(0, 0, 0, .8) !important; }
html[data-mux]:not(#mx) body ul.catalogTabs > li {
  flex: none !important; display: inline-flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 6px !important;
  width: auto !important; min-width: 0 !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 14px 0 11px !important;
  border-radius: 999px !important; box-sizing: border-box !important; scroll-snap-align: center;
  background: var(--eg-surface-2) !important; background-image: none !important; border: 1px solid var(--eg-line) !important; box-shadow: none !important;
  color: var(--eg-text-2) !important; font-size: 13px !important; line-height: 1 !important; font-weight: 600 !important; white-space: nowrap !important;
}
html[data-mux]:not(#mx) body ul.catalogTabs > li span { font-size: 13px !important; line-height: 1 !important; color: inherit !important; white-space: nowrap !important; }
html[data-mux]:not(#mx) body ul.catalogTabs > li i.catalogTabIcon {
  width: 18px !important; height: 18px !important; margin: 0 !important; flex: none !important; background-color: currentColor !important; background-image: none !important;
}
html[data-mux]:not(#mx) body ul.catalogTabs > li.active {
  background: var(--eg-gold-grad) !important; border-color: transparent !important; color: var(--eg-on-gold) !important; font-weight: 700 !important;
  box-shadow: 0 6px 16px -8px rgba(217, 180, 106, .7) !important;
}
html[data-mux]:not(#mx) body ul.catalogTabs > li:active { transform: scale(.96); }
/* X60: Live / Đá gà shown in the page under the chip row (m_ux.js lobbyOn): the hall in place of the game list */
html[data-mux]:not(#mx) body .catalogBox.mux-lobby-on > .catalogPane { display: none !important; }
html[data-mux]:not(#mx) body .catalogBox > .mux-lobby { padding: 4px 0 8px; min-height: 60vh; }
html[data-mux]:not(#mx) body .catalogBox > .mux-lobby .bl-title { font-size: 18px; line-height: 24px; font-weight: 800; margin: 6px 0 10px; }
html[data-mux]:not(#mx) body .catalogPane { width: auto !important; flex: none !important; margin: 0 !important; padding: 4px 12px 8px !important; }
html[data-mux]:not(#mx) body .catalogEmpty { padding: 40px 16px !important; text-align: center !important; color: var(--eg-text-3) !important; font-size: 14px !important; }
html[data-mux]:not(#mx) body .catalogGroup { margin: 0 !important; }
html[data-mux]:not(#mx) body .catalogGroup > h3 {
  display: flex !important; align-items: baseline !important; justify-content: space-between !important;
  margin: 6px 2px 10px !important; padding: 0 !important; font-size: 18px !important; line-height: 24px !important; font-weight: 800 !important; color: var(--eg-text) !important;
}
html[data-mux]:not(#mx) body .catalogGroup > h3 small { font-size: 12px !important; font-weight: 500 !important; color: var(--eg-text-3) !important; }
html[data-mux]:not(#mx) body .catalogProvider { margin: 0 0 10px !important; }
html[data-mux]:not(#mx) body .catalogCards { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
html[data-mux]:not(#mx) body .catalogPane button.catalogCard {
  width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 14px !important; overflow: hidden !important;
  display: flex !important; flex-direction: column !important; text-align: left !important;
  background: var(--eg-surface) !important; background-image: none !important; border: 1px solid var(--eg-line) !important;
  box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .9) !important; transition: transform .12s var(--eg-ease), border-color var(--eg-t) var(--eg-ease);
}
html[data-mux]:not(#mx) body .catalogPane button.catalogCard > img {
  width: 100% !important; height: auto !important; aspect-ratio: 16 / 9 !important; margin: 0 !important; border-radius: 0 !important; display: block !important;
  background: var(--eg-img-bg) !important;
}
html[data-mux]:not(#mx) body .catalogPane .catalogCard .catalogCardName {
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden !important;
  min-height: 0 !important; height: auto !important; padding: 8px 10px 10px !important; margin: 0 !important;
  font-size: 13px !important; line-height: 17px !important; font-weight: 700 !important; text-align: left !important; color: var(--eg-text) !important;
  background: none !important; text-shadow: none !important;
}
html[data-mux]:not(#mx) body .catalogPane button.catalogCard:active { transform: scale(.97); border-color: var(--eg-gold-line) !important; }

/* footer: compact link chips */
html[data-mux]:not(#mx) body .eg-foot-wap { padding-top: 18px !important; }
html[data-mux]:not(#mx) body .eg-foot-wap .eg-foot-links { gap: 8px !important; }
html[data-mux]:not(#mx) body .eg-foot-wap .eg-foot-links a { min-height: 40px !important; height: auto !important; padding: 0 14px !important; font-size: 13px !important; display: inline-flex !important; align-items: center !important; }

/* ------------------------------------------------------------------------------------------------------- 4. side menu */
html[data-mux]:not(#mx) body .van-popup--left { width: min(84vw, 340px) !important; background: var(--eg-bg-2) !important; }
html[data-mux]:not(#mx) body .leftbox { width: 100% !important; min-height: 100% !important; background: var(--eg-bg-2) !important; color: var(--eg-text) !important; box-sizing: border-box !important;
  padding: calc(var(--mux-safe-t) + 18px) 16px calc(var(--mux-safe-b) + 24px) !important; overflow-y: auto !important; }
html[data-mux]:not(#mx) body .leftbox .side__main__1NhyG { padding: 0 !important; margin: 0 !important; background: none !important; }
html[data-mux]:not(#mx) body .leftbox h3 { margin: 0 0 14px !important; padding: 0 !important; font-size: 18px !important; line-height: 24px !important; font-weight: 800 !important; color: var(--eg-text) !important; }
html[data-mux]:not(#mx) body .leftbox dl { margin: 0 0 16px !important; border-radius: 16px !important; }
html[data-mux]:not(#mx) body .leftbox ul { margin: 6px 0 0 !important; padding: 0 !important; }
html[data-mux]:not(#mx) body .leftbox ul > li {
  display: flex !important; align-items: center !important; gap: 10px !important; min-height: 48px !important; padding: 0 4px !important; margin: 0 !important;
  font-size: 14px !important; color: var(--eg-text-2) !important; border-bottom: 1px solid var(--eg-line) !important; background: none !important;
}
html[data-mux]:not(#mx) body .leftbox ul > li img { width: 20px !important; height: 20px !important; opacity: .8; }
html[data-mux]:not(#mx) body .leftbox .mux-dr-sec { margin: 0 0 16px; }
html[data-mux]:not(#mx) body .leftbox .nisd {
  position: static !important; display: flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  width: auto !important; height: 46px !important; margin: 18px 0 0 !important; padding: 0 !important; transform: none !important; border-radius: 14px !important;
  background: var(--eg-surface) !important; border: 1px solid var(--eg-line) !important; color: var(--eg-err) !important; font-size: 14px !important; font-weight: 700 !important;
}
html[data-mux]:not(#mx) body .leftbox .nisd img { width: 14px !important; height: 14px !important; margin: 0 !important; }
html[data-mux]:not(#mx) body .leftbox .mux-dr-h { margin: 0 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--eg-text-3); }
html[data-mux]:not(#mx) body .leftbox .mux-dr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html[data-mux]:not(#mx) body .leftbox .mux-dr-i {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 66px; padding: 0 2px; margin: 0;
  border-radius: 12px; border: 1px solid var(--eg-line); background: var(--eg-surface); color: var(--eg-gold-hi); cursor: pointer;
  font: 600 11px/1.15 var(--eg-font); text-align: center;
}
html[data-mux][data-theme="day"]:not(#mx) body .leftbox .mux-dr-i { color: var(--eg-gold-lo); }
html[data-mux]:not(#mx) body .leftbox .mux-dr-i span:last-child { color: var(--eg-text-2); font-size: 11px; }
html[data-mux]:not(#mx) body .leftbox .mux-dr-i:active { transform: scale(.95); border-color: var(--eg-gold-line); }

/* ------------------------------------------------------------------------------------------------------- 5. Của tôi */
html[data-mux]:not(#mx) body .mineTop {
  height: 52px !important; line-height: 52px !important; margin: 0 !important; padding: 0 16px !important; width: auto !important;
  font-size: 18px !important; font-weight: 800 !important; text-align: left !important; color: var(--eg-text) !important;
}
html[data-mux]:not(#mx) body .mineTop .kefus {
  top: 6px !important; right: 12px !important; height: 40px !important; width: auto !important; padding: 0 12px !important; border-radius: 12px !important;
  display: flex !important; align-items: center !important; gap: 6px !important; background: var(--eg-surface-2) !important; border: 1px solid var(--eg-line) !important;
}
html[data-mux]:not(#mx) body .mineTop .kefus span { position: static !important; height: auto !important; line-height: 1 !important; font-size: 13px !important; color: var(--eg-text-2) !important; }
html[data-mux]:not(#mx) body .mineTop .kefus img { position: static !important; }
html[data-mux]:not(#mx) body .usersg {
  margin: 4px 12px 0 !important; padding: 14px !important; width: auto !important; height: auto !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; gap: 12px !important;
  border-radius: 16px 16px 0 0 !important; background: linear-gradient(135deg, var(--eg-surface-2), var(--eg-surface)) !important;
  border: 1px solid var(--eg-gold-line) !important; border-bottom: 0 !important;
}
html[data-mux]:not(#mx) body .usersg .lesf { flex: none !important; width: 56px !important; height: 56px !important; }
html[data-mux]:not(#mx) body .usersg .lesf img { width: 56px !important; height: 56px !important; border-radius: 50% !important; box-shadow: 0 0 0 2px var(--eg-gold-line) !important; object-fit: cover; }
html[data-mux]:not(#mx) body .usersg .center { flex: 1 1 auto !important; margin: 0 !important; min-width: 0 !important; }
html[data-mux]:not(#mx) body .usersg .center .name { font-size: 18px !important; line-height: 24px !important; font-weight: 800 !important; color: var(--eg-text) !important; display: flex !important; align-items: center !important; gap: 8px !important; }
html[data-mux]:not(#mx) body .usersg .center .dat { font-size: 12px !important; line-height: 18px !important; color: var(--eg-text-3) !important; margin-top: 2px !important; }
html[data-mux]:not(#mx) body .usersg .rig { position: static !important; margin: 0 !important; opacity: .6; }
html[data-mux]:not(#mx) body .meys {
  margin: 0 12px !important; padding: 12px 14px 14px !important; width: auto !important; height: auto !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  border-radius: 0 0 16px 16px !important; background: var(--eg-surface) !important; border: 1px solid var(--eg-gold-line) !important; border-top: 1px dashed var(--eg-line-2) !important;
}
html[data-mux]:not(#mx) body .meys .lefs { display: flex !important; align-items: center !important; gap: 6px !important; margin: 0 !important; width: auto !important; }
html[data-mux]:not(#mx) body .meys .lefs span { font-size: 13px !important; color: var(--eg-text-2) !important; }
html[data-mux]:not(#mx) body .meys .meysf { font-size: 20px !important; line-height: 26px !important; font-weight: 800 !important; color: var(--eg-gold-hi) !important; margin: 0 !important; position: static !important; }
html[data-mux][data-theme="day"]:not(#mx) body .meys .meysf { color: var(--eg-gold-lo) !important; }
html[data-mux]:not(#mx) body .vipousf {
  position: relative !important; top: auto !important; margin: 10px 12px 0 !important; padding: 0 !important; width: auto !important; height: auto !important;
  display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; background: none !important;
}
html[data-mux]:not(#mx) body .vipousf .shu { display: none !important; }
html[data-mux]:not(#mx) body .vipousf .box {
  width: auto !important; height: 64px !important; margin: 0 !important; padding: 0 12px !important; box-sizing: border-box !important;
  display: flex !important; align-items: center !important; gap: 10px !important; border-radius: 14px !important;
  background: var(--eg-surface) !important; border: 1px solid var(--eg-line) !important; overflow: hidden !important; min-width: 0 !important;
}
html[data-mux]:not(#mx) body .vipousf .box img { width: 30px !important; height: 30px !important; margin: 0 !important; }
html[data-mux]:not(#mx) body .vipousf .box > div { margin: 0 !important; min-width: 0 !important; }
html[data-mux]:not(#mx) body .vipousf .nsgs { font-size: 14px !important; line-height: 18px !important; font-weight: 700 !important; color: var(--eg-text) !important; white-space: nowrap !important; }
html[data-mux]:not(#mx) body .vipousf .nsgsss { font-size: 11px !important; line-height: 15px !important; color: var(--eg-text-3) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html[data-mux]:not(#mx) body .uslis { position: relative !important; top: auto !important; margin: 10px 0 0 !important; padding: 0 !important; background: none !important; }
html[data-mux]:not(#mx) body .uslis > div > div:first-child:empty { display: none !important; }
html[data-mux]:not(#mx) body .uslis > div { padding: 0 !important; background: none !important; border-radius: 0 !important; box-shadow: none !important; }
html[data-mux]:not(#mx) body .mux-mine-head { padding: 0 !important; }
html[data-mux]:not(#mx) body .thbs {
  margin: 0 12px !important; padding: 12px 6px !important; height: auto !important; box-sizing: border-box !important;
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 4px !important; align-items: start !important;
  border-radius: 16px !important; background: var(--eg-surface) !important; border: 1px solid var(--eg-line) !important;
}
html[data-mux]:not(#mx) body .thbs .lis {
  width: auto !important; height: auto !important; margin: 0 !important; padding: 4px 2px !important;
  display: flex !important; flex-direction: column !important; align-items: center !important; gap: 6px !important; border-radius: 12px !important;
}
html[data-mux]:not(#mx) body .thbs .lis img { display: none !important; }
html[data-mux]:not(#mx) body .thbs .lis::before {
  content: ""; display: block; width: 44px; height: 44px; border-radius: 14px;
  background: var(--eg-gold-bg) var(--mux-i) center / 24px 24px no-repeat; border: 1px solid var(--eg-gold-line); box-sizing: border-box;
}
html[data-mux]:not(#mx) body .thbs .lis span { font-size: 12px !important; line-height: 15px !important; color: var(--eg-text-2) !important; text-align: center !important; }
html[data-mux]:not(#mx) body .thbs .lis:active { background: var(--eg-surface-2) !important; }
html[data-mux]:not(#mx) body .thbs .lis:nth-child(1) { --mux-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b46a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V5a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2'/%3E%3Cpath d='M3 6v12a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E"); }
html[data-mux]:not(#mx) body .thbs .lis:nth-child(2) { --mux-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b46a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h14v18l-3-2-2 2-2-2-2 2-2-2-3 2z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h3'/%3E%3C/svg%3E"); }
html[data-mux]:not(#mx) body .thbs .lis:nth-child(3) { --mux-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b46a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='1'/%3E%3Ccircle cx='4.5' cy='12' r='1'/%3E%3Ccircle cx='4.5' cy='18' r='1'/%3E%3C/svg%3E"); }
html[data-mux]:not(#mx) body .thbs .lis:nth-child(4) { --mux-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b46a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z'/%3E%3C/svg%3E"); }
html[data-mux]:not(#mx) body .uslis .eg-mode-row {
  margin: 10px 12px 0 !important; padding: 0 8px 0 14px !important; min-height: 54px !important; width: auto !important; box-sizing: border-box !important;
  border-radius: 16px !important; background: var(--eg-surface) !important; border: 1px solid var(--eg-line) !important;
}
html[data-mux]:not(#mx) body .bosfs {
  margin: 10px 12px 0 !important; padding: 2px 0 !important; width: auto !important; height: auto !important; box-sizing: border-box !important;
  border-radius: 16px !important; background: var(--eg-surface) !important; border: 1px solid var(--eg-line) !important; overflow: hidden !important;
}
html[data-mux]:not(#mx) body .bosfs .hgsw {
  display: flex !important; align-items: center !important; gap: 12px !important; height: 52px !important; margin: 0 !important; padding: 0 14px !important; width: auto !important;
  box-sizing: border-box !important; border-bottom: 1px solid var(--eg-line) !important; background: none !important;
}
html[data-mux]:not(#mx) body .bosfs .hgsw:last-child { border-bottom: 0 !important; }
html[data-mux]:not(#mx) body .bosfs .hgsw:active { background: var(--eg-surface-2) !important; }
html[data-mux]:not(#mx) body .bosfs .hgsw .firsimg { width: 22px !important; height: 22px !important; margin: 0 !important; flex: none !important; }
html[data-mux]:not(#mx) body .bosfs .hgsw .tit { font-size: 15px !important; line-height: 20px !important; color: var(--eg-text) !important; margin: 0 !important; }
html[data-mux]:not(#mx) body .bosfs .hgsw .tisf { flex: 1 1 auto !important; }
html[data-mux]:not(#mx) body .bosfs .hgsw .rigiong { width: 7px !important; height: auto !important; margin: 0 !important; opacity: .55; }
html[data-mux]:not(#mx) body .bosfs .hgsw:last-child .tit { color: var(--eg-err) !important; }
/* the « Đang tải… » line of the list must not sit over a row */
html[data-mux]:not(#mx) body .uslis .van-loading,
html[data-mux]:not(#mx) body .uslis > div > .loading { position: static !important; }

/* ---------------------------------------------------------------------------------------------------- 6. inner pages */
html[data-mux]:not(#mx) body .van-nav-bar {
  background: var(--eg-bar) !important; -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
html[data-mux]:not(#mx) body .van-nav-bar::after { border-color: var(--eg-line) !important; }
html[data-mux]:not(#mx) body .van-nav-bar__title { font-size: 17px !important; font-weight: 800 !important; color: var(--eg-text) !important; max-width: 64% !important; }
html[data-mux]:not(#mx) body .van-nav-bar__left { padding: 0 16px !important; min-width: 48px !important; box-sizing: border-box !important; }
html[data-mux]:not(#mx) body .van-nav-bar__arrow { font-size: 20px !important; color: var(--eg-text) !important; }
html[data-mux]:not(#mx) body .van-nav-bar__left:active { opacity: .6; }
html[data-mux]:not(#mx) body .van-field__control,
html[data-mux]:not(#mx) body input[type="text"],
html[data-mux]:not(#mx) body input[type="tel"],
html[data-mux]:not(#mx) body input[type="number"],
html[data-mux]:not(#mx) body input[type="password"] { font-size: 16px !important; }
html[data-mux]:not(#mx) body .van-button--large,
html[data-mux]:not(#mx) body .pay-btn { min-height: 48px !important; border-radius: 14px !important; font-size: 16px !important; font-weight: 800 !important; }
html[data-mux]:not(#mx) body .pay-tabs .pay-tab { min-height: 44px !important; font-size: 14px !important; }
html[data-mux]:not(#mx) body .pay-card { border-radius: 16px !important; }
html[data-mux]:not(#mx) body .pay-method { border-radius: 14px !important; }
/* Xổ số: « Lịch sử cược » was a gold box without side padding, squeezed and clipped at the right edge */
html[data-mux]:not(#mx) body .bob-pg-wap a.xs-hist {
  display: inline-flex !important; align-items: center !important; flex: none !important; height: 38px !important; margin: 0 !important; padding: 0 14px !important;
  border-radius: 12px !important; font-size: 13px !important; line-height: 1 !important; white-space: nowrap !important; box-sizing: border-box !important;
}
/* the login / register popup: a bottom sheet with room for the thumb */
@media (max-width: 520px) {
  html[data-mux]:not(#mx) body #bob-auth.on .ba-box,
  html[data-mux]:not(#mx) body #bob-auth.on > div > div:first-child:not(.ba-mask) { max-height: calc(100vh - 24px - var(--mux-safe-t)); overflow-y: auto; }
}

/* --------------------------------------------------------------------------------------------------------- 7. floating */
html[data-mux].mux-tabs:not(#mx) body #eagle-pwa {
  bottom: calc(var(--mux-nav) + var(--mux-safe-b) + 12px) !important; left: 10px !important; right: 10px !important; z-index: 205 !important;
  border-radius: 16px !important;
}
html[data-mux].mux-modal:not(#mx) body #eagle-pwa { display: none !important; }
html[data-mux].mux-tabs:not(#mx) body #bob-codes-open { bottom: calc(var(--mux-nav) + var(--mux-safe-b) + 14px) !important; right: 12px !important; }
html[data-mux].mux-modal:not(#mx) body #bob-codes-open { visibility: hidden !important; }
/* the install hint is shown: the promo-code button waits above it */
html[data-mux].mux-tabs:not(#mx) body #eagle-pwa:not([hidden]) ~ #bob-codes-open { bottom: calc(var(--mux-nav) + var(--mux-safe-b) + 100px) !important; }
