/* Beta 0827 review: light shell, shared navigation, complete provider tiles.
   Keep the dark stylesheet intact so the temporary theme lock is reversible. */
html[data-ms7-theme-lock="light"] .skinThemeToggle,
html[data-ms7-theme-lock="light"] .skinDrawerUtility { display: none !important; }

html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader.topbar {
  background: #fff !important;
  color: #18243a !important;
  border-bottom: 1px solid #dde5f1 !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader.topbar .topbar__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  gap: 12px !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .betaMenuToggle {
  display: flex !important;
  flex: 0 0 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 38px !important;
  height: 38px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #1747bc !important;
  background: #f1f5ff !important;
  position: static !important;
}
html[data-ms7-theme-lock] .betaMenuToggle .mBurger__bar {
  display: block !important; width: 19px !important; height: 2px !important;
  background: currentColor !important; transform: none !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .brand {
  display: block !important; flex: 0 0 auto; margin: 0 !important; padding: 0 !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .brand .brand__img {
  display: block !important; width: 110px !important; height: 52px !important;
  max-width: none !important; object-fit: contain !important; filter: none !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .topbar__right--desktop {
  margin-left: auto !important; flex: 0 0 auto;
}
html[data-ms7-theme-lock] body.page .betaHeader .creditRankBadge--header { display: none !important; }
html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav { min-width: 0; }
html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav[data-player-menu][hidden] { display: none !important; }

/* Native details give each row its own expand/collapse action, including keyboard support. */
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .mDrawer__panel {
  left: 0 !important; right: auto !important;
  width: min(88vw, 360px) !important; max-width: 360px !important;
  height: 100dvh !important; max-height: 100dvh !important;
  display: flex !important; flex-direction: column !important;
  padding: 14px 14px max(14px, env(safe-area-inset-bottom)) !important;
  background: #fff !important; color: #18243a !important;
  transform: translateX(-100%) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer.is-open .mDrawer__panel { transform: translateX(0) !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light .mDrawer .mDrawer__panel .mDrawer__scroll {
  flex: 1 1 auto !important; min-height: 0 !important;
  overflow-y: auto !important; overflow-x: hidden !important;
  overscroll-behavior: contain; padding: 2px 2px 12px !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .mDrawer__top,
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .mDrawer__bottom {
  flex: 0 0 auto !important; background: #fff !important; position: static !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .mDrawer__bottom {
  margin: 0 !important; padding: 10px 0 0 !important; border-top: 1px solid #dde5f1;
}
html[data-ms7-theme-lock] body.page .mDrawer .mDrawer__close { color: #1747bc !important; }
html[data-ms7-theme-lock] body.page .mDrawer .mDrawer__close .uiIcon--close {
  background-image: none !important; position: relative; width: 18px; height: 18px;
}
html[data-ms7-theme-lock] .mDrawer__close .uiIcon--close::before,
html[data-ms7-theme-lock] .mDrawer__close .uiIcon--close::after {
  content: ''; position: absolute; left: 8px; top: 0; width: 2px; height: 18px;
  background: currentColor; transform: rotate(45deg);
}
html[data-ms7-theme-lock] .mDrawer__close .uiIcon--close::after { transform: rotate(-45deg); }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .mDrawer__scroll > .betaDrawerNavigation { display: block !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .mDrawer__scroll > .betaDrawerNavigation[hidden],
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.is-shareholder-mode .mDrawer .mDrawer__scroll > .betaDrawerNavigation { display: none !important; }
html[data-ms7-theme-lock] body.page .mDrawer .skinDrawerCategories {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 7px !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mDrawer .skinDrawerCategories a {
  display: flex !important; flex-direction: column !important; justify-content: center !important;
  align-items: center !important; min-width: 0 !important; min-height: 73px !important;
  gap: 5px !important; padding: 7px 3px !important; text-align: center;
  font: 700 11px/1.3 Inter, "Segoe UI", sans-serif !important;
  white-space: normal !important; overflow-wrap: anywhere;
  border: 1px solid #dde5f1 !important; border-radius: 12px !important;
  background: #f7f9fd !important; color: #18243a !important;
}
.skinCategoryIcon { flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; color: #1747bc; }
.betaDrawerGroup { border-bottom: 1px solid #e4eaf4; }
.betaDrawerGroup summary {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 18px;
  align-items: center; gap: 10px; min-height: 49px; padding: 8px 5px;
  cursor: pointer; list-style: none; font-size: 13px; font-weight: 750; color: #18243a;
}
.betaDrawerGroup summary::-webkit-details-marker { display: none; }
.betaDrawerGroup summary img { width: 28px; height: 28px; object-fit: contain; }
.betaDrawerGroup[open] summary { color: #1747bc; background: #f1f5ff; border-radius: 9px; }
.betaDrawerCaret { color: #667895; font-size: 20px; text-align: center; }
.betaDrawerGroup[open] .betaDrawerCaret { transform: rotate(180deg); }
.betaDrawerLinks { padding: 2px 5px 8px 45px; }
html[data-ms7-theme-lock] body.page .betaDrawerLinks a {
  display: block !important; padding: 10px 0 !important; min-height: 39px;
  color: #364967 !important; font-size: 12px !important; line-height: 1.5 !important;
}
.betaDrawerLinks a:hover { text-decoration: underline; }
.betaDrawerGroup summary:focus-visible, .betaDrawerLinks a:focus-visible { outline: 2px solid #2e69ee; outline-offset: 2px; }
html[data-ms7-theme-lock] body.page .mDrawerLang { display: block !important; }
html[data-ms7-theme-lock] #mDrawer .mDrawerLang { display: block !important; }
html[data-ms7-theme-lock] #mDrawer .betaCloseGlyph { display: block; color: #1747bc; font: 25px/1 Arial, sans-serif; }
html[data-ms7-theme-lock] #mDrawer .mDrawerShareToggleRow {
  background: #f5f8ff !important; border: 1px solid #dde5f1 !important; border-radius: 12px;
  padding: 12px !important; margin: 12px 0 !important;
}
html[data-ms7-theme-lock] #mDrawer .mDrawerShareToggleRow__copy :is(span, strong) { color: #1747bc !important; }
html[data-ms7-theme-lock] #mDrawer .mDrawerShareStar {
  background: #1747bc !important; color: #fff !important; border: 0 !important; box-shadow: none !important;
}
html[data-ms7-theme-lock] #mDrawer .mDrawerShareStar__state { color: #fff !important; }
html[data-ms7-theme-lock] body.page .mDrawerLang__label { color: #61718a !important; }
html[data-ms7-theme-lock] body.page .mDrawerLang__flags { display: flex !important; gap: 5px !important; margin: 6px 0 10px !important; }
html[data-ms7-theme-lock] body.page .mDrawerLang__flag {
  flex: 1; min-width: 0 !important; padding: 8px 2px !important; min-height: 36px !important;
  background: #f5f7fc !important; color: #364967 !important; border: 1px solid #dde5f1 !important;
  border-radius: 9px !important; font-size: 12px !important;
}
html[data-ms7-theme-lock] body.page .mDrawerLang__flag.is-active { color: #1747bc !important; border-color: #7195ec !important; background: #eaf0ff !important; }

/* Categories remain scrollable on small displays; all desktop providers are laid out in full. */
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters {
  display: flex !important; overflow-x: auto !important; scrollbar-width: thin !important;
  gap: 6px !important; touch-action: pan-x pan-y; overscroll-behavior-x: contain;
}
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters button {
  flex: 0 0 auto !important; display: inline-flex !important; align-items: center !important;
  gap: 7px !important; white-space: nowrap !important;
}
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters button::before { display: none !important; }
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters button.is-active .skinCategoryIcon { color: inherit; }
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviderCard {
  min-height: 0 !important; aspect-ratio: 1; padding: 0 !important; overflow: hidden !important;
}
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviderCard__mark {
  width: 100% !important; height: 100% !important; margin: 0 !important;
}
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviderCard__mark img {
  width: 100% !important; height: 100% !important; object-fit: contain !important;
}
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviderCard.is-hidden { display: none !important; }
html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__grid {
  overflow-x: auto !important; scrollbar-width: thin !important; touch-action: pan-x pan-y;
}
.betaCreditGames { display: none; }
.betaBannerArrow {
  position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  width: 40px; height: 48px; border: 1px solid #c9d7eb; border-radius: 12px;
  background: rgba(255,255,255,.9); color: #1747bc; font: 30px/1 sans-serif; cursor: pointer;
}
.betaBannerArrow--prev { left: 12px; }
.betaBannerArrow--next { right: 12px; }
[data-landing-show] { position: relative !important; touch-action: pan-y; }
[data-landing-show] img { user-select: none; -webkit-user-drag: none; }
[data-landing-slide]:not(.is-active) { pointer-events: none; }
.landingShow__deviceMedia--desktop { display: none !important; }
.landingShow__deviceMedia--mobile { display: block !important; }

/* Mini-game lobby follows the Beta light skin. Individual game canvases keep
   their own immersive themes because only the lobby carries skin2026-minigame. */
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgPage {
  background: #fff !important; color: #18243a !important; min-height: calc(100dvh - 86px);
}

@media (min-width: 981px) {
  .landingShow__deviceMedia--desktop { display: block !important; }
  .landingShow__deviceMedia--mobile { display: none !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .hdrIcons .betaDesktopUser {
    display: inline-flex !important; align-items: center; gap: 6px; width: auto !important;
    max-width: 174px; min-width: 44px !important; padding: 4px 8px 4px 4px !important;
    background: #f7f9fd !important; color: #18243a !important;
  }
  .betaDesktopUser img { width: 32px; height: 32px; object-fit: contain; }
  .betaDesktopUser__name { max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 750; }
  .betaDesktopUser__vip { padding: 3px 5px; border-radius: 6px; color: #fff; background: #2456d6; font-size: 9px; white-space: nowrap; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader.topbar .topbar__inner {
    height: 78px !important; padding: 0 24px !important;
  }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader.topbar { min-height: 78px !important; }
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav {
    display: flex !important; align-items: stretch; gap: 12px; margin-left: 12px; align-self: stretch;
  }
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav a {
    display: flex; align-items: center; padding: 0 5px !important; color: #18243a;
    font-size: 13px !important; line-height: 1.3; white-space: nowrap;
  }
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav a.is-active,
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav a:hover { color: #1747bc; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingShow {
    width: 100vw !important; max-width: none !important;
    margin: 0 calc(50% - 50vw) 18px !important;
  }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingShow__track {
    border-radius: 0 !important; border: 0 !important; aspect-ratio: 3.6 / 1 !important;
  }
  html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__grid {
    display: grid !important; grid-auto-flow: row !important; grid-auto-columns: auto !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    overflow: visible !important; gap: 12px !important; padding: 12px !important;
  }
  html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters button { flex: 1 0 auto !important; padding: 9px 10px !important; }
  .betaCreditGames {
    position: fixed; z-index: 900; left: 0; top: 43%; display: flex; flex-direction: column;
    align-items: center; gap: 8px; width: 48px; padding: 14px 7px; border: 1px solid #89a6e8;
    border-left: 0; border-radius: 0 14px 14px 0; background: #fff; color: #1747bc;
    font-size: 12px; font-weight: 800; box-shadow: 0 4px 16px #1747bc1a;
  }
  .betaCreditGames span { writing-mode: vertical-rl; }
  .betaCreditGames[hidden] { display: none !important; }
}
@media (min-width: 981px) and (max-width: 1200px) {
  .betaDesktopUser__name, .betaDesktopUser__vip { display: none; }
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav { gap: 4px; margin-left: 0; }
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav a { font-size: 11px !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .brand .brand__img { width: 88px !important; }
  html[data-ms7-theme-lock] body.page .betaHeader .walletBtn { width: 140px !important; min-width: 140px !important; }
}
@media (max-width: 980px) {
  /* Admin mobile landing artwork is authored at 1280x640. Keep the carousel
     at the same 2:1 frame instead of inheriting the legacy 1004x384 crop. */
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingShow__track {
    aspect-ratio: 2 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
  }
  /* Keep the fixed mobile menu clear without reintroducing the desktop footer. */
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame {
    background: #fff !important; padding-bottom: 0 !important;
  }
  html[data-ms7-theme-lock] body.page.skin2026-minigame > .footer { display: none !important; }
  html[data-ms7-theme-lock] body.page.skin2026-minigame > main.mgPage {
    min-height: calc(100dvh - 60px);
    padding-bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters,
  html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__grid { scrollbar-width: none !important; }
  html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__filters::-webkit-scrollbar,
  html[data-ms7-theme-lock] body.page.theme-light.skin2026-home .landingProviders__grid::-webkit-scrollbar { display: none !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader.topbar .topbar__inner {
    height: 60px !important; padding: 0 10px !important; gap: 8px !important;
  }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader.topbar { min-height: 60px !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .brand .brand__img { width: 63px !important; height: 36px !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .topbar__right--mobile {
    position: static !important; display: flex !important; margin-left: auto !important;
    gap: 5px !important; transform: none !important; min-width: 0;
  }
  html[data-ms7-theme-lock] body.page .betaHeader .topbar__right--desktop,
  html[data-ms7-theme-lock] body.page .betaHeader .skinDesktopNav { display: none !important; }
  html[data-ms7-theme-lock] body.page .betaHeader .mUserPill__name { max-width: 55px !important; }
  html[data-ms7-theme-lock] body.page .betaHeader .mUserPill { min-width: 0 !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-games .gamesPage .gWrap .wrap { width: 100% !important; padding: 0 8px !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-games .gamesPage .gGrid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 7px !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-games .gamesPage .gCard { padding: 0 !important; border: 0 !important; border-radius: 10px !important; overflow: hidden; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-games .gamesPage .gMeta {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip-path: inset(50%); white-space: nowrap; border: 0 !important;
  }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-games .gamesPage .gThumb { padding: 0 !important; aspect-ratio: 1 !important; height: auto !important; display: block; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.theme-light.skin2026-games .gamesPage .gThumb .ph { border: 0 !important; border-radius: 0 !important; aspect-ratio: 1 !important; width: 100% !important; height: 100% !important; }
  .betaBannerArrow { width: 30px; height: 36px; border-radius: 9px; font-size: 24px; }
}
@media (max-width: 389px) {
  html[data-ms7-theme-lock] body.page .betaHeader .mUserPill__name { display: none !important; }
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .betaHeader .topbar__right--mobile { gap: 3px !important; }
}

/* 0829: balanced VIP centre card and the supplied unified blue category set. */
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .vipCard {
  display: grid !important;
  grid-template-columns: minmax(176px, 230px) minmax(280px, 1fr) auto !important;
  grid-template-areas:
    "identity stats actions"
    "benefits benefits benefits" !important;
  align-items: center !important;
  gap: 16px 22px !important;
  min-height: 0 !important;
  padding: 18px 22px !important;
  border: 1px solid #c9d8ef !important;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 48%, #f2f6ff 100%) !important;
  box-shadow: 0 12px 30px rgba(27, 57, 117, .09) !important;
}
html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__id { grid-area: identity; min-width: 0 !important; }
html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__stats { grid-area: stats; align-items: center !important; }
html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__actions {
  grid-area: actions; width: auto !important; margin: 0 !important;
  flex-direction: column !important; align-items: stretch !important;
}
html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__btn {
  min-width: 150px; text-align: center; white-space: nowrap;
}
html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__benefits {
  grid-area: benefits; display: grid; grid-template-columns: 116px repeat(2, minmax(0, 1fr));
  align-items: stretch; gap: 0; overflow: hidden; min-width: 0;
  border: 1px solid #d8e3f3; border-radius: 15px; background: rgba(247, 250, 255, .94);
}
.vipCard__benefitsTitle {
  display: flex; align-items: center; padding: 12px 16px; color: #1747bc;
  font-size: 14px; letter-spacing: .04em; white-space: nowrap;
}
html[data-ms7-theme-lock] body.page.skin2026-home .vipDailyItem {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center; gap: 10px;
  min-width: 0; min-height: 70px; padding: 8px 14px; border: 0; border-left: 1px solid #e0e8f5;
  background: transparent; color: #18243a; text-decoration: none; text-align: left; cursor: pointer;
  font: inherit;
}
.vipDailyItem img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.vipDailyItem > span { display: grid; gap: 3px; min-width: 0; }
.vipDailyItem strong { overflow: hidden; color: #18243a; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.vipDailyItem small { overflow: hidden; color: #6b7b95; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.vipDailyItem i { color: #7d8ca4; font-size: 24px; font-style: normal; }
.vipDailyItem:hover, .vipDailyItem:focus-visible { background: #edf4ff !important; outline: none; }
.vipDailyItem[aria-disabled="true"] { cursor: default; opacity: .72; }
.vipDailyItem[aria-disabled="true"]:hover { background: transparent !important; }

html[data-ms7-theme-lock] body.page .skinCategoryIcon {
  width: 34px !important; height: 34px !important; object-fit: contain !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .landingProviders__filters {
  border-color: #d8e3f3 !important; box-shadow: 0 8px 22px rgba(27, 57, 117, .06) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .landingProviders__filters button.is-active {
  color: #1747bc !important; border-color: #8aacef !important;
  background: linear-gradient(180deg, #f5f8ff, #e8f0ff) !important;
  box-shadow: 0 6px 16px rgba(23, 71, 188, .13) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .landingActions {
  border-color: #d8e3f3 !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .landingAction {
  border-color: #d8e3f3 !important; background: transparent !important; box-shadow: none !important;
}

/* The legacy dark navigation gives the transparent wordmark a gold rectangular
   outline. Keep the official logo untouched and remove only that image layer. */
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page .mNav__homeLogo {
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* 0829 follow-up: real two-video rail, one complete video per swipe. */
.landingVideoRail { position: relative; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .landingVideoShowcase__grid {
  display: grid !important; grid-auto-flow: column !important; grid-auto-columns: 100% !important;
  grid-template-columns: none !important; grid-template-rows: none !important; gap: 12px !important;
  overflow-x: auto !important; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scrollbar-width: thin; padding: 2px 2px 10px !important; touch-action: pan-x pan-y;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .landingVideoCard {
  grid-row: auto !important; scroll-snap-align: start; overflow: hidden; margin: 0 !important;
  aspect-ratio: 16 / 7; border: 1px solid #cfdbed !important; border-radius: 16px !important;
  background: #eef3fb; box-shadow: 0 10px 24px rgba(24, 56, 113, .08);
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoCard__action {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: transparent; cursor: pointer; overflow: hidden;
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoCard__action > :is(img, video) {
  display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important;
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoCard__play {
  position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center;
  width: 42px; height: 42px; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%; background: rgba(23,71,188,.88); color: #fff; font-size: 15px;
  box-shadow: 0 8px 26px rgba(0,0,0,.25); padding-left: 3px;
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__arrow {
  position: absolute; z-index: 5; top: calc(50% - 17px); display: grid; place-items: center;
  width: 38px; height: 38px; transform: translateY(-50%); border: 2px solid rgba(255,255,255,.92);
  border-radius: 50%; background: rgba(23,71,188,.94); color: #fff; box-shadow: 0 8px 22px rgba(23,71,188,.28);
  font: 700 25px/1 sans-serif; cursor: pointer; transition: opacity .16s ease, transform .16s ease;
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__prev { left: 12px; }
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__next { right: 12px; }
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__arrow:hover,
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__arrow:focus-visible { transform: translateY(-50%) scale(1.08); outline: 3px solid #8fb0f2; outline-offset: 2px; }
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__arrow:disabled { opacity: .22; cursor: default; transform: translateY(-50%); }
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__dots {
  display: flex; justify-content: center; gap: 8px; min-height: 22px; padding-top: 7px;
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: #bdc9dc; cursor: pointer;
  transition: width .16s ease, background .16s ease;
}
html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__dots button[aria-current="true"] { width: 26px; background: #1747bc; }

/* Country flags are visible in both the header switch and the drawer. */
html[data-ms7-theme-lock] body.page .langSwitch__flag,
html[data-ms7-theme-lock] body.page .langSwitch__optionFlag,
html[data-ms7-theme-lock] body.page .mDrawerLang__emoji {
  display: block; object-fit: cover; border: 1px solid rgba(24,36,58,.12); border-radius: 4px;
  box-shadow: 0 1px 3px rgba(24,36,58,.10);
}
html[data-ms7-theme-lock] body.page .langSwitch__flag { width: 24px; height: 16px; }
html[data-ms7-theme-lock] body.page .langSwitch__optionFlag { width: 26px; height: 17px; flex: 0 0 auto; }
html[data-ms7-theme-lock] body.page .langSwitch__opt { display: flex !important; align-items: center; gap: 9px; }
html[data-ms7-theme-lock] body.page .mDrawerLang__flag {
  display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 50px !important; line-height: 1 !important;
}
html[data-ms7-theme-lock] body.page .mDrawerLang__emoji { width: 28px; height: 18px; }

/* Referral: readable light tree and an explicit QR download action. */
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-referral .refQrCard__save {
  background: #1747bc !important; color: #fff !important; border-radius: 999px !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-referral .refTree__row {
  border-color: #d5dfed !important; background: #fff !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-referral .refTree__member strong {
  color: #18243a !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-referral :is(.refTree__member span, .refTree__member em, .refTree__meta, .refTree__empty) {
  color: #60718d !important;
}

/* White mini-game lobby with compact blue cards; gameplay routes are untouched. */
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyPage {
  --hub-line: #d7e1ef !important; --mg-cyan: #245ad7 !important; --mg-lime: #178a62 !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyHead .mgTitle,
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyHead .mgTitle small {
  color: #18243a !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyCount { color: #245ad7 !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyBalance {
  border-color: #d7e1ef !important; background: #f5f8fd !important;
  box-shadow: 0 7px 18px rgba(24,56,113,.06) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyBalance span { color: #687995 !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyBalance strong { color: #1747bc !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyBalance--win strong { color: #178a62 !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyCard {
  border-color: #d7e1ef !important; background: #fff !important;
  box-shadow: 0 8px 22px rgba(24,56,113,.10) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyCard:hover {
  border-color: #8baaf0 !important; box-shadow: 0 13px 28px rgba(24,56,113,.16) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyFootnote {
  border-color: #d7e1ef !important; background: #f5f8fd !important; color: #52647f !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyDialog {
  border-color: #cbd8ea !important; background: #fff !important; box-shadow: 0 24px 70px rgba(19,42,84,.25) !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyDialog h2 { color: #18243a !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyDialog h2 span,
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyDialogDesc { color: #63738e !important; }
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyDialogBet {
  border-color: #245ad7 !important; background: #edf3ff !important; color: #294268 !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyDialogPlay {
  border-color: #1747bc !important; background: #1747bc !important; color: #fff !important;
}
html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-minigame .mgLobbyClose {
  border-color: #cbd8ea !important; background: #fff !important; color: #18243a !important;
}

@media (max-width: 980px) {
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home .vipCard {
    grid-template-columns: minmax(92px, 118px) minmax(0, 1fr) !important;
    grid-template-areas:
      "identity stats"
      "actions actions"
      "benefits benefits" !important;
    gap: 12px !important; padding: 14px !important; border-radius: 18px !important;
  }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__id {
    align-self: stretch; flex-direction: column; justify-content: center; text-align: center;
  }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__badge { width: 54px !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__levelValue { font-size: 23px !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__stats { gap: 10px !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__stats .vipStat:not(:last-child) { display: none !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipStat { min-width: 112px !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__actions {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important;
  }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__btn {
    min-width: 0; padding: 9px 8px !important; font-size: 12px !important;
  }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__benefits {
    grid-template-columns: 1fr 1fr;
  }
  .vipCard__benefitsTitle { grid-column: 1 / -1; padding: 9px 12px; border-bottom: 1px solid #e0e8f5; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipDailyItem {
    grid-template-columns: 40px minmax(0, 1fr) 14px; min-height: 64px; padding: 8px 9px; gap: 7px;
  }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipDailyItem:nth-child(2) { border-left: 0; }
  .vipDailyItem img { width: 40px; height: 40px; border-radius: 10px; }
  .vipDailyItem strong { font-size: 11px; }
  .vipDailyItem small { font-size: 9px; }

  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoCard { aspect-ratio: 16 / 9; border-radius: 13px !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoCard__play { width: 36px; height: 36px; font-size: 13px; }
  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoShowcase__grid { grid-auto-columns: 90% !important; scrollbar-width: none !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoShowcase__grid::-webkit-scrollbar { display: none !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__arrow { width: 32px; height: 32px; top: calc(50% - 16px); font-size: 22px; }
  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__prev { left: 6px; }
  html[data-ms7-theme-lock] body.page.skin2026-home .landingVideoRail__next { right: 6px; }

  .betaCreditGames {
    position: fixed; z-index: 650; left: 0; top: 43%; display: flex; flex-direction: column;
    align-items: center; gap: 4px; width: 36px; padding: 9px 4px; border: 1px solid #89a6e8;
    border-left: 0; border-radius: 0 11px 11px 0; background: rgba(255,255,255,.92);
    color: #1747bc; font-size: 10px; font-weight: 800; line-height: 1.2; text-decoration: none;
    box-shadow: 0 5px 18px rgba(23,71,188,.13); backdrop-filter: blur(8px); opacity: .64;
    transform: translateX(-3px); transition: opacity .16s ease, transform .16s ease, box-shadow .16s ease;
  }
  .betaCreditGames:is(:hover, :focus-visible, :active) { opacity: 1; transform: translateX(0); box-shadow: 0 7px 22px rgba(23,71,188,.22); outline: none; }
  .betaCreditGames .skinCategoryIcon { width: 25px !important; height: 25px !important; }
  .betaCreditGames span { writing-mode: vertical-rl; letter-spacing: .08em; }
  .betaCreditGames[hidden] { display: none !important; }
}

/* 0829 reduced-desktop fix: tablet widths use the full light canvas instead of
   exposing legacy dark gutters around the mobile composition. */
@media (min-width: 641px) and (max-width: 1200px) {
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home,
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home > main.mobileLandingShell {
    background: #eef2f8 !important; background-image: none !important;
  }
}
@media (min-width: 641px) and (max-width: 980px) {
  html[data-ms7-theme="light"][data-ms7-theme-lock] body.page.skin2026-home > main.mobileLandingShell {
    width: 100% !important; max-width: none !important; padding-left: clamp(16px, 3vw, 28px) !important;
    padding-right: clamp(16px, 3vw, 28px) !important; overflow-x: clip !important;
  }
}

@media (max-width: 420px) {
  html[data-ms7-theme-lock] body.page.skin2026-home .vipCard__stats { display: grid !important; grid-template-columns: 1fr !important; }
  html[data-ms7-theme-lock] body.page.skin2026-home .vipStat { min-width: 0 !important; }
}

/* ===== 0830 post-launch amendments ===== */

/* Light drawer: section label was the dark skin's translucent cream — unreadable on white. */
html[data-ms7-theme-lock] #mDrawer .mDrawer__sectionTitle { color: #61718a !important; }

/* Light drawer: the 活动 grid cells still carried the dark tile gradient. */
html[data-ms7-theme-lock] #mDrawer .mGrid__item {
  background: #f7f9fd !important;
  border: 1px solid #dde5f1 !important;
  color: #18243a !important;
  box-shadow: none !important;
}
html[data-ms7-theme-lock] #mDrawer .mGrid__lbl { color: #18243a !important; }

/* Buttons among anchor rows (signin-egg triggers) must not fall back to UA button typography. */
html[data-ms7-theme-lock] body.page button.mGrid__item,
html[data-ms7-theme-lock] body.page button.accNav__link {
  font: inherit;
  color: inherit;
  text-align: inherit;
}

/* Activity entries use real skin art instead of emoji glyphs the icon chip hides. */
.mGrid__ico--img img,
.accNav__ico--img img { width: 22px; height: 22px; object-fit: contain; display: block; }
html[data-ms7-theme-lock] body.page .mGrid__ico--img,
html[data-ms7-theme-lock] body.page .accNav__ico--img {
  background: #fff !important;
  border-color: #dde5f1 !important;
  box-shadow: none !important;
}

/* 我们都爱的热门游戏: real most-clicked tiles, two PSD-like rows with horizontal scroll. */
.lovedGamesGrid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, auto);
  grid-auto-columns: 92px;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}
.lovedGame { display: grid; gap: 5px; min-width: 0; text-decoration: none; }
.lovedGame:hover { text-decoration: none; }
.lovedGame__thumb {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e2e9f5;
  background: linear-gradient(160deg, #eef3fc, #e3ebf8);
}
.lovedGame__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lovedGame__ph { font: 800 24px/1 Inter, "Segoe UI", sans-serif; color: #8aa3cc; }
.lovedGame__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font: 600 11px/1.3 Inter, "Segoe UI", sans-serif;
  color: #18243a;
}
@media (min-width: 981px) {
  .lovedGamesGrid { grid-auto-columns: 118px; gap: 12px; }
  .lovedGame__thumb { width: 118px; height: 118px; }
}
