:root {
  --bg: #06120d;
  --graphite: #0d1f17;
  --graphite-2: #153428;
  --glass: rgba(14, 46, 34, 0.48);
  --glass-strong: rgba(23, 70, 52, 0.66);
  --glass-soft: rgba(245, 199, 93, 0.1);
  --stroke: rgba(245, 199, 93, 0.22);
  --stroke-strong: rgba(245, 199, 93, 0.42);
  --text: #fff6d6;
  --muted: #c7d0b6;
  --ice: #f5c75d;
  --ice-2: #b98228;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  font-family: Arial, Helvetica, sans-serif;
}

/* Original M9 UI match pass. Logo asset stays local; layout follows the supplied sample. */
:root {
  --bg: #dfe8ff;
  --graphite: #116e63;
  --graphite-2: #0a5e55;
  --glass: rgba(17, 113, 100, .88);
  --glass-strong: rgba(13, 107, 96, .95);
  --glass-soft: rgba(255,255,255,.16);
  --stroke: rgba(255,255,255,.18);
  --stroke-strong: #ffd717;
  --text: #fff;
  --muted: #e4efe8;
  --ice: #ffd717;
  --ice-2: #19e8cf;
  --shadow: 0 5px 8px rgba(0, 45, 40, .46);
}

html,
body { background: #dfe8ff; }

.page-web {
  min-width: 320px;
  background:
    radial-gradient(circle at 28% -8%, transparent 0 120px, rgba(255,255,255,.12) 122px 210px, transparent 212px),
    radial-gradient(circle at 63% -6%, transparent 0 112px, rgba(0,0,0,.13) 114px 195px, transparent 197px),
    radial-gradient(circle at 95% 44%, rgba(255, 220, 54, .74), transparent 34%),
    linear-gradient(115deg, #1b7469 0%, #278979 48%, #ecd842 100%);
}

.download-strip {
  height: 45px;
  background: #dfe8ff;
  border-bottom: 1px solid rgba(19, 55, 75, .32);
}

.app-pill {
  width: 292px;
  height: 37px;
  border: 0;
  border-radius: 6px;
  color: #f8f8f8;
  background: #333;
  box-shadow: 0 2px 4px rgba(0,0,0,.35);
}

.app-pill.download { background: #313c9b; }
.strip-close {
  width: 30px;
  height: 30px;
  border: 0;
  background: #1684c8;
  box-shadow: inset 0 -2px rgba(0,0,0,.18);
}

.page-header {
  min-height: 126px;
  background: rgba(13, 82, 73, .45);
  box-shadow: none;
}

.glass-panel,
.glass-card,
.glass-button,
.glass-plate {
  border: 0;
  background: rgba(18, 111, 100, .88);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.2), inset 0 -4px rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
}

.glass-button::before,
.banner-card::after { display: none; }

.hamburger {
  width: 45px;
  height: 45px;
  background: rgba(18, 111, 100, .78);
  border-radius: 6px;
}
.hamburger span {
  height: 4px;
  background: #1cffd8;
  box-shadow: none;
}

.brand-logo {
  width: 118px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.login-btn {
  min-width: 100px;
  height: 38px;
  justify-self: start;
  border-radius: 6px;
  background: #1b7e72;
  box-shadow: none;
}

.page-content {
  width: min(1468px, 100%);
  padding: 0 0 58px;
}

.banner-row {
  grid-template-columns: 1fr 1.6fr .74fr;
  gap: 30px;
}

.banner-card {
  height: 254px;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}
.banner-card img {
  filter: none;
  object-fit: cover;
}

.game-tabs {
  gap: 24px;
  margin: 12px auto 8px;
  padding-bottom: 8px;
}
.game-tab {
  flex-basis: 125px;
  width: 125px;
  height: 86px;
  border-radius: 10px;
  background: #126f64;
  font-size: 20px;
}
.game-tab img {
  width: 38px;
  height: 38px;
}
.game-tab.active {
  color: #0b0b0b;
  background: #ffd717;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.55), inset 0 -4px rgba(0,0,0,.16);
}

.feature-strip {
  min-height: 86px;
  margin: 0 34px 16px;
  background: rgba(34, 117, 105, .46);
  border-radius: 14px;
  box-shadow: none;
}
.feature-chip {
  min-width: 160px;
  height: 58px;
  background: #126f64;
  border-radius: 999px;
}
.feature-chip img {
  width: 66px;
  height: 66px;
  filter: none;
}

.view-shell { padding-top: 0; }
.quick-panels {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0 48px 32px;
}
.quick-panel,
.promo-box,
.profile-grid article,
.support-grid button,
.table-card,
.download-card,
.member-card,
.drawer-link,
.game-card {
  background: #168372;
  border: 0;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.18), inset 0 -4px rgba(0,0,0,.14);
}

.games-section { padding: 0 48px; }
.section-title h1 {
  color: #ffd717;
  font-size: 30px;
  text-shadow: 0 2px 4px rgba(0,0,0,.55);
}
.section-title span {
  background: linear-gradient(90deg, #ffd717, rgba(255,215,23,0));
}
.game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 40px;
}
.game-card { border-radius: 8px; }
.game-card button { grid-template-rows: 1fr 40px; }
.game-card .game-img { filter: none; }
.platform-row { background: rgba(15, 101, 90, .92); }
.platform-row img { filter: none; }

.right-tools { background: #126f64; }
.bottom-nav { background: rgba(66, 55, 45, .94); }
.bottom-nav button.active {
  color: #ffd717;
  background: rgba(255, 215, 23, .12);
}
.modal { background: rgba(0, 46, 40, .45); }
.modal-box,
.side-drawer { background: rgba(18, 111, 100, .96); }
.submit-btn,
.modal-tabs button.active {
  color: #111;
  background: #ffd717;
}

@media (max-width: 520px) {
  .page-web {
    background:
      radial-gradient(circle at 92% 35%, rgba(255, 220, 54, .62), transparent 38%),
      linear-gradient(115deg, #1b7469 0%, #278979 52%, #ecd842 100%);
  }
  .download-strip { justify-content: flex-start; gap: 8px; padding: 4px 8px; }
  .app-pill { flex: 1 1 0; width: auto; min-width: 0; }
  .page-header { min-height: 86px; }
  .brand-logo { width: 86px; }
  .login-btn { min-width: 72px; }
  .banner-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 14px;
  }
  .banner-card:not(.main-banner) { display: none; }
  .banner-card { height: 154px; }
  .game-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(78px, 1fr));
    gap: 8px;
    padding: 8px 14px;
  }
  .game-tab {
    width: auto;
    height: 62px;
    font-size: 13px;
  }
  .game-tab img { width: 28px; height: 28px; }
  .feature-strip {
    margin: 0 14px 12px;
    padding: 8px;
    justify-content: flex-start;
  }
  .feature-chip {
    min-width: 126px;
    height: 48px;
    font-size: 12px;
  }
  .feature-chip img { width: 52px; height: 52px; }
  .quick-panels {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 14px 22px;
  }
  .games-section { padding: 0 14px; }
  .section-title h1 { font-size: 24px; }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.m9-mobile-login,
.m9-mobile-close,
.m9-reference-menu {
  display: none;
}

#referenceLogin { display: none !important; }

@media (max-width: 520px) {
  #referenceLogin {
    display: grid !important;
    left: calc(100vw - 88px) !important;
  }
  .page-header > .hamburger,
  .page-header > .login-btn {
    display: none !important;
  }

  .m9-reference-menu {
    position: fixed;
    top: 72px;
    left: 9px;
    z-index: 2100;
    display: grid;
    place-content: center;
    gap: 3px;
    width: 34px;
    height: 34px;
    padding: 7px;
    border: 0;
    border-radius: 5px;
    background: rgba(92, 117, 111, .82);
  }

  .m9-reference-menu span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #20ead1;
  }

  .m9-mobile-login {
    position: fixed;
    top: 244px;
    right: 77px;
    z-index: 2000;
    display: grid;
    place-items: center;
    width: 104px;
    height: 52px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    background: linear-gradient(180deg, #2ea493, #0b6d63);
    box-shadow: 0 6px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
  }

  .m9-mobile-close {
    position: fixed;
    top: 6px;
    right: 64px;
    z-index: 2001;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    background: #1589ca;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
  }
}

/* M9Asia live reference pass: mobile starts at Welcome bar, no app download strip. */
@media (max-width: 520px) {
  .download-strip,
  .m9-mobile-close {
    display: none !important;
  }

  .welcome-strip {
    display: block !important;
    height: 30px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #d7d7d7 !important;
    font-size: 18px !important;
    line-height: 30px !important;
    background: rgba(4, 11, 10, .96) !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  .page-header {
    min-height: 119px !important;
    height: 119px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-image: url("assets/m9/bg.png") !important;
    background-size: 430px auto !important;
    background-position: center -20px !important;
  }

  .page-header > .brand-logo {
    top: 17px !important;
    width: 58px !important;
    height: 58px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.38)) !important;
  }

  .hamburger {
    top: 80px !important;
    left: 10px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 5px !important;
    background: rgba(92, 117, 111, .68) !important;
  }

  .hamburger span {
    width: 19px !important;
    height: 2px !important;
    margin: 3px auto !important;
  }

  .page-web .page-header > .login-btn.open-auth,
  .m9-mobile-login {
    position: fixed !important;
    top: 101px !important;
    right: 77px !important;
    left: auto !important;
    display: grid !important;
    width: 85px !important;
    min-width: 85px !important;
    max-width: 85px !important;
    height: 43px !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    z-index: 1000 !important;
  }

  .banner-row {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    overflow: hidden !important;
  }

  .main-banner {
    height: 124px !important;
    width: 100vw !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .main-banner img {
    object-fit: fill !important;
    object-position: center !important;
  }

  .float-check {
    top: 236px !important;
    right: 8px !important;
    width: 43px !important;
    height: 43px !important;
  }

  .game-tabs {
    position: absolute !important;
    top: 129px !important;
    left: 4px !important;
    width: 71px !important;
    gap: 9px !important;
  }

  .game-tabs button {
    width: 71px !important;
    height: 62px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
  }

  .game-tabs .tab-icon,
  .game-tabs button img {
    width: 33px !important;
    height: 33px !important;
    font-size: 28px !important;
  }

  .feature-strip {
    margin: 8px 6px 0 82px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 4px !important;
    border-radius: 13px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  .feature-chip {
    height: 34px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.05 !important;
  }

  .feature-chip img,
  .feature-chip span:first-child {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
    font-size: 26px !important;
  }

  .casino-live-home {
    margin: 20px 7px 110px 82px !important;
    gap: 7px !important;
  }

  .casino-hero-card {
    border-radius: 7px !important;
  }

  .casino-provider-grid {
    gap: 7px !important;
  }

  .casino-provider-card {
    border-radius: 7px !important;
  }

  .bottom-nav {
    height: 72px !important;
    border-radius: 10px 10px 0 0 !important;
  }
}

/* Reference-calibrated 390px mobile home layout. */
@media (max-width: 520px) {
  .welcome-strip { height: 23px !important; font-size: 16px !important; line-height: 23px !important; }
  .page-header { min-height: 85px !important; height: 85px !important; background-size: 390px auto !important; background-position: center -18px !important; }
  .page-header > .brand-logo { top: 12px !important; width: 58px !important; height: 58px !important; }
  .hamburger { top: 62px !important; left: 9px !important; width: 34px !important; height: 34px !important; }
  .page-web .page-header > .login-btn.open-auth,
  .m9-mobile-login { top: 67px !important; right: 10px !important; width: 78px !important; min-width: 78px !important; max-width: 78px !important; height: 30px !important; font-size: 16px !important; }
  .main-banner { height: 113px !important; }
  .float-check { top: 174px !important; right: 7px !important; width: 39px !important; height: 39px !important; }
  .game-tabs { top: 117px !important; left: 4px !important; width: 50px !important; gap: 8px !important; }
  .game-tabs button,
  .game-tab { flex: 0 0 45px !important; width: 50px !important; min-width: 50px !important; max-width: 50px !important; height: 45px !important; min-height: 45px !important; max-height: 45px !important; padding: 2px !important; border-radius: 8px !important; gap: 0 !important; font-size: 11px !important; line-height: 1 !important; }
  .game-tabs button img,
  .game-tab img { width: 27px !important; height: 27px !important; }
  .feature-strip { margin: 6px 5px 0 56px !important; height: 38px !important; min-height: 38px !important; padding: 3px !important; border-radius: 11px !important; }
  .feature-chip { height: 32px !important; min-height: 32px !important; padding: 0 2px !important; font-size: 11px !important; }
  .feature-chip img,
  .feature-chip span:first-child { width: 27px !important; height: 27px !important; flex-basis: 27px !important; }
  .casino-live-home { margin: 15px 6px 92px 59px !important; gap: 5px !important; }
  .casino-provider-grid { gap: 5px !important; }
  .bottom-nav { height: 64px !important; }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button {
  color: inherit;
}

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

img {
  display: block;
  width: 100%;
}

.page-web {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 12%, rgba(245, 199, 93, 0.13), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(34, 98, 71, 0.2), transparent 28%),
    linear-gradient(120deg, rgba(4, 15, 10, 0.98), rgba(14, 46, 34, 0.94) 48%, rgba(3, 11, 8, 0.98)),
    url("assets/m9/bg.png") center top / cover fixed;
}

.glass-panel,
.glass-card,
.glass-button,
.glass-plate {
  position: relative;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04) 36%, rgba(255, 255, 255, 0.1)),
    var(--glass);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), inset 0 -1px rgba(255, 255, 255, 0.08), var(--shadow);
  backdrop-filter: blur(18px) saturate(1.18);
}

.glass-button {
  overflow: hidden;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.glass-button::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 45%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.glass-button:hover {
  transform: translateY(-1px);
  border-color: var(--stroke-strong);
  background:
    linear-gradient(145deg, rgba(255, 231, 166, 0.28), rgba(255, 255, 255, 0.07) 44%, rgba(245, 199, 93, 0.16)),
    var(--glass-strong);
}

.download-strip {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 45px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 18, 24, 0.74);
  backdrop-filter: blur(22px) saturate(1.12);
}

.app-pill {
  position: relative;
  display: flex;
  align-items: center;
  width: 235px;
  height: 34px;
  padding: 0 28px 0 8px;
  border: 1px solid var(--stroke);
  border-radius: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 8px 28px rgba(0, 0, 0, 0.24);
  font-size: 13px;
  backdrop-filter: blur(18px);
}

.app-pill::after {
  content: "";
  position: absolute;
  right: 9px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 7px solid rgba(255, 255, 255, 0.82);
}

.app-pill img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 8px;
}

.strip-close {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px;
  line-height: 18px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.page-header {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr 150px;
  align-items: center;
  min-height: 100px;
  max-width: 1365px;
  margin: 0 auto;
  padding: 0 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent),
    rgba(16, 18, 24, 0.34);
  backdrop-filter: blur(10px);
}

.hamburger {
  display: inline-grid;
  gap: 4px;
  justify-self: start;
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 8px;
}

.hamburger span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--ice);
  box-shadow: 0 0 12px rgba(245, 199, 93, 0.42);
}

.brand-logo {
  justify-self: center;
  width: 96px;
  padding: 7px;
  border-radius: 18px;
}

.brand-logo img {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.login-btn {
  justify-self: start;
  min-width: 82px;
  height: 34px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
}

.page-content {
  width: min(1365px, calc(100% - 16px));
  margin: 0 auto;
  padding-bottom: 50px;
}

.banner-row {
  display: grid;
  grid-template-columns: 1fr 1.38fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.banner-card {
  display: block;
  overflow: hidden;
  height: 203px;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.banner-card img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.88) contrast(1.04);
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 38%, rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.game-tabs {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 20px;
  margin: 10px auto 6px;
  overflow-x: auto;
  padding: 0 4px 8px;
  scrollbar-width: none;
}

.game-tabs::-webkit-scrollbar {
  display: none;
}

.game-tab {
  flex: 0 0 100px;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 100px;
  height: 68px;
  border-radius: 14px;
  font-size: 16px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
}

.game-tab img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.36));
}

.game-tab.active {
  color: #061015;
  border-color: rgba(245, 199, 93, 0.78);
  background:
    linear-gradient(145deg, rgba(255, 244, 207, 0.84), rgba(245, 199, 93, 0.36) 54%, rgba(255, 255, 255, 0.2)),
    rgba(165, 220, 238, 0.28);
  text-shadow: none;
}

.search-tab img {
  width: 36px;
  height: 36px;
}

.feature-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 70px;
  margin: 0 32px 6px;
  padding: 8px 18px;
  overflow-x: auto;
  border-radius: 16px;
  scrollbar-width: none;
}

.feature-strip::-webkit-scrollbar {
  display: none;
}

.feature-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
  height: 50px;
  padding: 0 13px 0 4px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.feature-chip img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: saturate(0.9) drop-shadow(0 7px 14px rgba(0, 0, 0, 0.35));
}

.games-section {
  padding: 0 48px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}

.section-title h1 {
  margin: 0;
  color: var(--ice);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.58);
  font-size: 25px;
  line-height: 1.1;
}

.section-title span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 199, 93, 0.82), rgba(245, 199, 93, 0));
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 34px;
}

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32), inset 0 1px rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.game-card button {
  display: grid;
  grid-template-rows: 1fr 38px;
  width: 100%;
  min-width: 0;
  aspect-ratio: 0.84;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.game-card .game-img {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.82) brightness(0.94);
}

.platform-row {
  display: grid;
  place-items: center;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(12px);
}

.platform-row img {
  width: 56px;
  height: 28px;
  object-fit: contain;
  filter: saturate(0.92);
}

.right-tools {
  position: fixed;
  z-index: 20;
  right: 8px;
  top: 357px;
  display: grid;
  overflow: hidden;
  width: 70px;
  border-radius: 14px;
}

.right-tools button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 68px;
  padding: 6px 4px;
  text-align: center;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
}

.right-tools span {
  font-size: 25px;
  color: var(--ice);
}

.right-tools small {
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
}

.view-shell {
  display: grid;
  gap: 18px;
}

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 40px 0;
  padding: 18px;
  border-radius: 18px;
}

.view-head h1,
.view-head p {
  margin: 0;
}

.view-head h1 {
  font-size: 28px;
}

.view-head p {
  margin-top: 4px;
  color: var(--muted);
}

.compact-action,
.mini-link {
  min-width: 86px;
  min-height: 38px;
  border-radius: 10px;
}

.mini-link {
  border: 1px solid var(--stroke);
  color: var(--ice);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.content-section {
  padding: 0 48px;
}

.quick-panels,
.promo-grid,
.profile-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 48px;
}

.quick-panel,
.promo-box,
.profile-grid article,
.support-grid button {
  display: grid;
  gap: 8px;
  min-height: 106px;
  padding: 18px;
  border-radius: 16px;
  text-align: left;
}

.quick-panel,
.support-grid button {
  border: 1px solid var(--stroke);
}

.quick-panel b,
.promo-box strong,
.profile-grid strong,
.support-grid strong {
  color: var(--ice);
  font-size: 18px;
}

.quick-panel span,
.promo-box p,
.profile-grid span,
.support-grid span {
  margin: 0;
  color: var(--muted);
}

.promo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.promo-box button {
  justify-self: start;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 10px;
}

.search-panel,
.banking-layout,
.table-card {
  display: grid;
  gap: 14px;
  margin: 0 48px;
  padding: 18px;
  border-radius: 18px;
}

.search-panel {
  grid-template-columns: 1fr auto;
}

.search-panel input,
.banking-layout input,
.banking-layout select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0 12px;
  color: var(--text);
  outline: 0;
  background: rgba(6, 8, 12, 0.48);
}

.banking-layout label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.amount-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.amount-row button {
  min-height: 42px;
  border-radius: 12px;
  font-size: 13px;
}

.table-card h2 {
  margin: 0;
}

.table-card p {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  margin: 0;
  padding: 11px 0;
  border-bottom: 1px solid var(--stroke);
}

.table-card em {
  color: var(--ice);
  font-style: normal;
}

.message-list {
  display: grid;
  gap: 12px;
  padding: 0 48px;
}

.message-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 16px;
  border-radius: 16px;
  text-align: left;
}

.message-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.bottom-nav {
  display: none;
}

.side-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 48;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(320px, 86vw);
  padding: 16px;
  border-radius: 0 18px 18px 0;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head img {
  width: 86px;
}

.member-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 14px;
}

.member-card span {
  color: var(--muted);
}

.drawer-link {
  min-height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
  padding: 0 14px;
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(16px);
}

.modal-box {
  position: relative;
  display: grid;
  gap: 13px;
  width: min(460px, 100%);
  padding: 24px;
  border-radius: 18px;
}

.modal-logo {
  width: 94px;
  margin: 0 auto 4px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-tabs button {
  min-height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.modal-tabs button.active {
  color: #061015;
  background: linear-gradient(145deg, rgba(255, 244, 207, 0.84), rgba(245, 199, 93, 0.38));
}

.auth-pane {
  display: grid;
  gap: 12px;
}

.auth-pane label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 800;
}

.auth-pane input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--text);
  outline: 0;
  background: rgba(6, 8, 12, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.auth-pane input:focus {
  border-color: rgba(245, 199, 93, 0.76);
}

.submit-btn {
  border: 1px solid var(--stroke);
  height: 44px;
  border-radius: 12px;
  font-weight: 900;
}

.download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.download-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
}

.download-card img {
  width: 64px;
}

.game-launch {
  grid-template-columns: 180px 1fr;
  align-items: center;
  width: min(560px, 100%);
}

.launch-art {
  width: 180px;
  border-radius: 14px;
}

.launch-copy {
  display: grid;
  gap: 8px;
}

.launch-copy img {
  width: 70px;
}

.launch-copy h2,
.launch-copy p {
  margin: 0;
}

.ghost-btn {
  min-height: 40px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.game-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 999px;
  color: #061015;
  background: rgba(245, 199, 93, 0.86);
  font-size: 10px;
  font-weight: 900;
}

.platform-row {
  gap: 2px;
}

.platform-row small {
  max-width: calc(100% - 10px);
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  width: min(360px, calc(100% - 28px));
  padding: 14px 16px;
  border-radius: 14px;
  transform: translateX(-50%);
  text-align: center;
  font-weight: 800;
}

.app-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 10, 0.38);
  backdrop-filter: blur(8px) saturate(1.18);
}

.app-loader[hidden] {
  display: none;
}

.loader-orb {
  display: grid;
  place-items: center;
  gap: 10px;
  min-width: 128px;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(171, 238, 255, 0.34);
  border-radius: 22px;
  color: var(--ice);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(21, 26, 35, 0.76);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.38),
    0 18px 52px rgba(0, 0, 0, 0.42),
    0 0 26px rgba(119, 216, 241, 0.16);
}

.loader-orb span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #f5c75d;
  border-right-color: rgba(129, 220, 245, 0.86);
  box-shadow: 0 0 24px rgba(245, 199, 93, 0.34);
  animation: loaderSpin 780ms linear infinite;
}

.loader-orb b {
  font-size: 13px;
  letter-spacing: 0;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

[hidden] {
  display: none !important;
}

@media (min-width: 1200px) {
  .game-tabs {
    transform: translateX(-22px);
  }

  .game-grid {
    grid-template-columns: repeat(6, 158px);
    padding-left: 34px;
  }
}

@media (max-width: 1024px) {
  .download-strip {
    justify-content: flex-start;
    gap: 8px;
    padding: 0 4px;
  }

  .app-pill {
    width: calc((100vw - 14px) / 2);
    max-width: 220px;
  }

  .strip-close {
    display: none;
  }

  .page-header {
    grid-template-columns: 1fr;
    min-height: 100px;
    padding: 0 15px;
  }

  .brand-logo,
  .login-btn {
    display: none;
  }

  .page-content {
    width: 100%;
  }

  .banner-row {
    display: block;
    padding: 0;
  }

  .banner-card {
    display: none;
    border-radius: 0;
    height: 173px;
  }

  .banner-card:first-child {
    display: block;
  }

  .game-tabs {
    justify-content: flex-start;
    gap: 20px;
    margin-top: 10px;
    padding: 0 150px 8px;
  }

  .feature-strip {
    justify-content: flex-start;
    min-height: 59px;
    margin: 0 32px 7px;
    padding: 6px 0;
    border-radius: 0;
  }

  .feature-chip {
    min-width: 130px;
  }

  .games-section {
    padding: 0 20px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 35px;
  }

  .right-tools {
    display: none;
  }

  .content-section,
  .quick-panels,
  .promo-grid,
  .profile-grid,
  .support-grid,
  .message-list {
    padding: 0 20px;
  }

  .quick-panels,
  .promo-grid,
  .profile-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-head,
  .search-panel,
  .banking-layout,
  .table-card {
    margin-inline: 20px;
  }
}

@media (max-width: 520px) {
  .page-web {
    background:
      linear-gradient(180deg, rgba(16, 20, 28, 0.74), rgba(8, 10, 14, 0.9)),
      url("assets/m9/bg.png") center top / cover fixed;
  }

  .download-strip {
    height: 41px;
    gap: 6px;
  }

  .app-pill {
    flex: 1 1 0;
    min-width: 0;
    height: 33px;
    font-size: 13px;
  }

  .app-pill span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .app-pill.download span {
    font-size: 0;
  }

  .app-pill.download span::before {
    content: "Download";
    font-size: 12px;
  }

  .page-header {
    grid-template-columns: 48px 1fr 72px;
    min-height: 74px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(160, 220, 238, 0.15);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  }

  .brand-logo {
    display: block;
    width: 64px;
    padding: 5px;
    border-radius: 14px;
  }

  .login-btn {
    display: block;
    justify-self: end;
    min-width: 68px;
    height: 34px;
    font-size: 13px;
  }

  .hamburger {
    width: 38px;
    height: 38px;
    margin-top: 0;
  }

  .banner-card {
    height: 154px;
    width: calc(100% - 28px);
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    border-color: rgba(148, 221, 241, 0.26);
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  }

  .game-tabs {
    gap: 12px;
    margin-top: 8px;
    padding: 0 14px 10px;
  }

  .game-tab {
    flex-basis: 82px;
    width: 82px;
    height: 62px;
    border-radius: 15px;
    font-size: 14px;
    border-color: rgba(174, 236, 255, 0.28);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07) 42%, rgba(126, 218, 244, 0.08)),
      rgba(28, 33, 43, 0.58);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.32),
      0 8px 18px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .game-tab:nth-child(3n + 1) {
    border-color: rgba(255, 196, 143, 0.34);
  }

  .game-tab:nth-child(3n + 2) {
    border-color: rgba(142, 229, 255, 0.34);
  }

  .game-tab:nth-child(3n) {
    border-color: rgba(186, 171, 255, 0.34);
  }

  .game-tab img {
    width: 28px;
    height: 28px;
  }

  .feature-strip {
    min-height: 58px;
    margin: 0 0 8px;
    padding: 6px 14px;
    gap: 10px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: rgba(14, 17, 23, 0.46);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), inset 0 -1px rgba(159, 231, 250, 0.16);
  }

  .feature-chip {
    min-width: 118px;
    height: 46px;
    padding-right: 12px;
    font-size: 11px;
    border-color: rgba(244, 201, 151, 0.28);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.28);
  }

  .feature-chip img {
    width: 48px;
    height: 48px;
  }

  .games-section {
    padding: 0 14px 28px;
  }

  .page-content {
    padding-bottom: 86px;
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 10px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(370px, calc(100vw - 20px));
    min-height: 58px;
    border-radius: 18px;
    overflow: hidden;
    transform: translateX(-50%);
    border-color: rgba(255, 214, 174, 0.25);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05)),
      rgba(32, 24, 23, 0.62);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.24),
      0 14px 32px rgba(0, 0, 0, 0.46),
      0 0 22px rgba(255, 184, 120, 0.1);
  }

  .bottom-nav button {
    border: 0;
    border-right: 1px solid var(--stroke);
    color: var(--muted);
    background: transparent;
    overflow: hidden;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
  }

  .bottom-nav button.active {
    color: var(--ice);
    background: linear-gradient(145deg, rgba(245, 199, 93, 0.22), rgba(20, 76, 53, 0.24));
  }

  .view-shell {
    gap: 14px;
  }

  .view-head {
    display: grid;
    gap: 10px;
    margin: 0 14px;
    padding: 14px;
    border-radius: 16px;
    border-color: rgba(151, 229, 251, 0.27);
  }

  .view-head h1 {
    font-size: 22px;
  }

  .view-head p {
    font-size: 13px;
  }

  .content-section,
  .quick-panels,
  .promo-grid,
  .profile-grid,
  .support-grid,
  .message-list {
    padding: 0 14px;
  }

  .quick-panels,
  .promo-grid,
  .profile-grid,
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-panel,
  .promo-box,
  .profile-grid article,
  .support-grid button {
    min-height: 92px;
    padding: 13px;
    border-radius: 14px;
    border-color: rgba(166, 226, 244, 0.24);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045) 48%, rgba(121, 212, 239, 0.08)),
      rgba(32, 38, 49, 0.54);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.24),
      0 12px 25px rgba(0, 0, 0, 0.22);
  }

  .quick-panel:nth-child(2n),
  .promo-box:nth-child(2n),
  .profile-grid article:nth-child(2n),
  .support-grid button:nth-child(2n) {
    border-color: rgba(255, 203, 154, 0.24);
  }

  .promo-grid,
  .message-list {
    grid-template-columns: 1fr;
  }

  .search-panel,
  .banking-layout,
  .table-card {
    margin: 0 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .amount-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title h1 {
    font-size: 22px;
    white-space: nowrap;
    color: #f5c75d;
  }

  .section-title {
    gap: 8px;
    margin-top: 10px;
  }

  .game-grid {
    grid-template-columns: repeat(2, calc((100vw - 42px) / 2));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .game-card {
    width: calc((100vw - 42px) / 2);
    max-width: 100%;
    border-radius: 13px;
    border-color: rgba(150, 228, 250, 0.26);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
      rgba(18, 23, 31, 0.7);
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.22),
      0 12px 24px rgba(0, 0, 0, 0.28);
  }

  .game-card:nth-child(4n + 2) {
    border-color: rgba(255, 203, 154, 0.28);
  }

  .game-card:nth-child(4n + 3) {
    border-color: rgba(185, 171, 255, 0.28);
  }

  .game-card:active,
  .game-tab:active,
  .feature-chip:active,
  .quick-panel:active,
  .bottom-nav button:active {
    transform: scale(0.985);
    filter: brightness(1.08);
  }

  .game-tag {
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .game-card button {
    grid-template-rows: 1fr 34px;
  }

  .platform-row img {
    width: 50px;
    height: 25px;
  }

  .platform-row small {
    display: none;
  }

  .modal {
    padding: 14px;
  }

  .modal-box {
    width: 100%;
    padding: 18px;
  }

  .download-options,
  .game-launch {
    grid-template-columns: 1fr;
  }

  .launch-art {
    width: min(210px, 65vw);
    margin: 0 auto;
  }

  .side-drawer {
    width: min(300px, 88vw);
  }
}

/* FINAL M9 ORIGINAL OVERRIDE - must stay at the end. */
:root {
  --bg: #dfe8ff !important;
  --graphite: #116e63 !important;
  --graphite-2: #0a5e55 !important;
  --glass: rgba(17, 113, 100, .9) !important;
  --glass-strong: rgba(13, 107, 96, .96) !important;
  --stroke: rgba(255,255,255,.18) !important;
  --stroke-strong: #ffd717 !important;
  --text: #fff !important;
  --muted: #e4efe8 !important;
  --ice: #ffd717 !important;
  --ice-2: #1cffd8 !important;
  --shadow: 0 5px 8px rgba(0, 45, 40, .46) !important;
}

html,
body {
  background: #dfe8ff !important;
}

.page-web {
  min-width: 320px !important;
  background:
    radial-gradient(circle at 28% -8%, transparent 0 120px, rgba(255,255,255,.12) 122px 210px, transparent 212px),
    radial-gradient(circle at 63% -6%, transparent 0 112px, rgba(0,0,0,.13) 114px 195px, transparent 197px),
    radial-gradient(circle at 95% 44%, rgba(255, 220, 54, .78), transparent 34%),
    linear-gradient(115deg, #1b7469 0%, #278979 48%, #ecd842 100%) !important;
}

.download-strip {
  height: 45px !important;
  justify-content: center !important;
  gap: 10px !important;
  background: #dfe8ff !important;
  border-bottom: 1px solid rgba(19, 55, 75, .32) !important;
}

.app-pill {
  width: 292px !important;
  height: 37px !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: #f8f8f8 !important;
  background: #333 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.35) !important;
}
.app-pill.download { background: #313c9b !important; }
.app-pill img { width: 30px !important; height: 30px !important; }
.strip-close {
  width: 30px !important;
  height: 30px !important;
  border: 0 !important;
  background: #1684c8 !important;
  box-shadow: inset 0 -2px rgba(0,0,0,.18) !important;
}

.page-header {
  grid-template-columns: 150px 1fr 150px !important;
  min-height: 126px !important;
  max-width: none !important;
  padding: 0 66px !important;
  background: rgba(13, 82, 73, .45) !important;
  box-shadow: none !important;
}

.glass-panel,
.glass-card,
.glass-button,
.glass-plate {
  border: 0 !important;
  background: rgba(18, 111, 100, .88) !important;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.2), inset 0 -4px rgba(0,0,0,.16) !important;
  backdrop-filter: blur(6px) !important;
}
.glass-button::before,
.banner-card::after { display: none !important; }

.hamburger {
  width: 45px !important;
  height: 45px !important;
  padding: 10px !important;
  border-radius: 6px !important;
  background: rgba(18, 111, 100, .78) !important;
}
.hamburger span {
  height: 4px !important;
  background: #1cffd8 !important;
  box-shadow: none !important;
}

.brand-logo {
  width: 118px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.brand-logo img {
  height: auto !important;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.34)) !important;
}
.login-btn {
  justify-self: start !important;
  min-width: 100px !important;
  height: 38px !important;
  border-radius: 6px !important;
  background: #1b7e72 !important;
  box-shadow: none !important;
}

.page-content {
  width: min(1468px, 100%) !important;
  padding: 0 45px 58px !important;
}
.banner-row {
  grid-template-columns: 1fr 1.6fr .74fr !important;
  gap: 30px !important;
}
.banner-card {
  height: 254px !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}
.banner-card img {
  height: 100% !important;
  object-fit: cover !important;
  filter: none !important;
}

.game-tabs {
  justify-content: center !important;
  gap: 24px !important;
  margin: 12px auto 8px !important;
  padding: 0 0 8px !important;
}
.game-tab {
  flex: 0 0 125px !important;
  width: 125px !important;
  height: 86px !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: #126f64 !important;
  font-size: 20px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.45) !important;
}
.game-tab img {
  width: 38px !important;
  height: 38px !important;
  filter: none !important;
}
.game-tab.active {
  color: #0b0b0b !important;
  background: #ffd717 !important;
  text-shadow: none !important;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.55), inset 0 -4px rgba(0,0,0,.16) !important;
}

.feature-strip {
  justify-content: center !important;
  min-height: 86px !important;
  margin: 0 32px 16px !important;
  padding: 8px 18px !important;
  border-radius: 14px !important;
  background: rgba(34, 117, 105, .46) !important;
  box-shadow: none !important;
}
.feature-chip {
  min-width: 160px !important;
  height: 58px !important;
  border-radius: 999px !important;
  background: #126f64 !important;
}
.feature-chip img {
  width: 66px !important;
  height: 66px !important;
  filter: none !important;
}

.quick-panels {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 96px 32px !important;
}
.quick-panel,
.promo-box,
.profile-grid article,
.support-grid button,
.table-card,
.download-card,
.member-card,
.drawer-link,
.game-card {
  border: 0 !important;
  background: #168372 !important;
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.18), inset 0 -4px rgba(0,0,0,.14) !important;
}

.games-section { padding: 0 48px !important; }
.section-title h1 {
  color: #ffd717 !important;
  font-size: 30px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.55) !important;
}
.section-title span {
  background: linear-gradient(90deg, #ffd717, rgba(255,215,23,0)) !important;
}
.game-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 28px 40px !important;
}
.game-card { border-radius: 8px !important; }
.game-card button { grid-template-rows: 1fr 40px !important; }
.game-card .game-img { filter: none !important; }
.platform-row { background: rgba(15, 101, 90, .92) !important; }
.platform-row img { filter: none !important; }

.right-tools {
  top: 358px !important;
  right: 22px !important;
  width: 70px !important;
  border-radius: 10px !important;
  background: #126f64 !important;
}
.bottom-nav { background: rgba(66, 55, 45, .94) !important; }
.bottom-nav button.active {
  color: #ffd717 !important;
  background: rgba(255, 215, 23, .12) !important;
}
.modal { background: rgba(0, 46, 40, .45) !important; }
.modal-box,
.side-drawer { background: rgba(18, 111, 100, .96) !important; }
.submit-btn,
.modal-tabs button.active {
  color: #111 !important;
  background: #ffd717 !important;
}

@media (max-width: 520px) {
  .page-web {
    background:
      radial-gradient(circle at 92% 35%, rgba(255, 220, 54, .62), transparent 38%),
      linear-gradient(115deg, #1b7469 0%, #278979 52%, #ecd842 100%) !important;
  }
  .download-strip {
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 4px 8px !important;
  }
  .app-pill {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .page-header {
    grid-template-columns: 54px 1fr 72px !important;
    min-height: 86px !important;
    padding: 0 14px !important;
  }
  .hamburger {
    width: 40px !important;
    height: 40px !important;
  }
  .brand-logo { width: 86px !important; }
  .login-btn {
    min-width: 72px !important;
    height: 34px !important;
  }
  .page-content {
    width: 100% !important;
    padding: 0 0 72px !important;
  }
  .banner-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 14px !important;
  }
  .banner-card:not(.main-banner) { display: none !important; }
  .banner-card { height: 154px !important; }
  .game-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(76px, 1fr)) !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    margin: 0 !important;
  }
  .game-tab {
    width: auto !important;
    height: 62px !important;
    font-size: 13px !important;
  }
  .game-tab img {
    width: 28px !important;
    height: 28px !important;
  }
  .feature-strip {
    justify-content: flex-start !important;
    min-height: 64px !important;
    margin: 0 14px 12px !important;
    padding: 8px !important;
  }
  .feature-chip {
    min-width: 126px !important;
    height: 48px !important;
    font-size: 12px !important;
  }
  .feature-chip img {
    width: 52px !important;
    height: 52px !important;
  }
  .quick-panels {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin: 0 14px 22px !important;
  }
  .games-section { padding: 0 14px !important; }
  .section-title h1 { font-size: 24px !important; }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}

@media (max-width: 520px) {
  html,
  body,
  .page-web {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .download-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px !important;
    width: 100% !important;
  }
  .app-pill {
    width: 100% !important;
    padding-right: 18px !important;
    font-size: 12px !important;
  }
  .strip-close {
    position: static !important;
    width: 28px !important;
    height: 28px !important;
  }
  .page-header {
    grid-template-columns: 44px minmax(0, 1fr) 66px !important;
    width: 100% !important;
    min-height: 84px !important;
    padding: 0 14px !important;
  }
  .hamburger {
    width: 40px !important;
    height: 40px !important;
  }
  .brand-logo {
    width: 88px !important;
    justify-self: center !important;
  }
  .login-btn {
    justify-self: end !important;
    min-width: 62px !important;
    height: 32px !important;
    font-size: 12px !important;
  }
  .page-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .banner-row {
    display: block !important;
    width: 100% !important;
    padding: 0 14px !important;
    margin: 0 !important;
  }
  .banner-card:not(.main-banner) {
    display: none !important;
  }
  .main-banner {
    display: block !important;
    width: 100% !important;
    height: 154px !important;
  }
  .main-banner img {
    object-fit: fill !important;
    object-position: center !important;
  }
  .game-tabs {
    width: 100% !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    overflow: visible !important;
  }
  .game-tab {
    min-width: 0 !important;
  }
  .feature-strip {
    overflow-x: auto !important;
  }
  .quick-panels,
  .games-section {
    width: auto !important;
    max-width: none !important;
  }
  .right-tools {
    display: none !important;
  }
}

@media (max-width: 520px) {
  * {
    max-width: 100vw;
  }
  .page-header,
  .download-strip,
  .page-content,
  .banner-row,
  .game-tabs,
  .feature-strip,
  .view-shell,
  .quick-panels,
  .games-section {
    box-sizing: border-box !important;
    max-width: 100vw !important;
  }
  .page-header {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 14px !important;
  }
  .hamburger {
    position: absolute !important;
    left: 14px !important;
  }
  .login-btn {
    position: absolute !important;
    right: 14px !important;
    width: 62px !important;
    min-width: 62px !important;
    padding: 0 !important;
  }
  .game-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, calc((100vw - 52px) / 4)) !important;
    gap: 8px !important;
    width: 100vw !important;
    padding: 8px 14px !important;
    overflow: hidden !important;
  }
  .game-tab {
    width: calc((100vw - 52px) / 4) !important;
    max-width: calc((100vw - 52px) / 4) !important;
    padding: 0 !important;
  }
  .feature-strip {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }
  .feature-chip {
    max-width: none !important;
  }
  .quick-panels {
    grid-template-columns: repeat(2, calc((100vw - 38px) / 2)) !important;
  }
  .quick-panel {
    width: calc((100vw - 38px) / 2) !important;
  }
  .game-grid {
    grid-template-columns: repeat(2, calc((100vw - 42px) / 2)) !important;
  }
  .game-card {
    width: calc((100vw - 42px) / 2) !important;
  }
}

@media (max-width: 520px) {
  body {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .page-web {
    position: relative !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
  .download-strip {
    grid-template-columns: calc((100vw - 44px) / 2) calc((100vw - 44px) / 2) 28px !important;
    padding: 4px !important;
    gap: 4px !important;
  }
  .app-pill {
    max-width: none !important;
  }
  .app-pill::after {
    right: 7px !important;
  }
  .page-header {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  .login-btn {
    display: grid !important;
    place-items: center !important;
    right: 8px !important;
  }
  .banner-row {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 14px !important;
    overflow: hidden !important;
  }
  .main-banner {
    max-width: calc(100vw - 28px) !important;
  }
  .game-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin: 0 14px !important;
    padding: 8px 0 !important;
  }
  .game-tab {
    width: 100% !important;
    max-width: 100% !important;
  }
  .feature-strip,
  .quick-panels,
  .games-section {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    margin-left: 14px !important;
    margin-right: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .quick-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .quick-panel {
    width: 100% !important;
  }
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  .game-card {
    width: 100% !important;
  }
}

/* M9asia.com geometry polish. Keep this last. */
.page-web {
  background-color: #dfe8ff !important;
  background-image:
    radial-gradient(circle at 25% -10%, transparent 0 115px, rgba(20, 68, 61, .28) 117px 198px, transparent 200px),
    radial-gradient(circle at 58% -9%, transparent 0 110px, rgba(21, 82, 70, .24) 112px 190px, transparent 192px),
    radial-gradient(circle at 92% 36%, rgba(255, 217, 40, .78), transparent 32%),
    radial-gradient(circle at 40% 85%, rgba(2, 111, 101, .28), transparent 36%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,.08) 29px 30px, transparent 31px 52px),
    linear-gradient(115deg, #176f64 0%, #238978 48%, #edd942 100%) !important;
  background-attachment: fixed !important;
}

.page-header {
  min-height: 128px !important;
  background:
    radial-gradient(circle at 30% -35%, rgba(255,255,255,.13), transparent 26%),
    radial-gradient(circle at 63% -38%, rgba(0,0,0,.13), transparent 26%),
    rgba(20, 82, 73, .36) !important;
}

.brand-logo {
  width: 112px !important;
  height: 84px !important;
  display: grid !important;
  place-items: center !important;
}
.brand-logo img {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
}

.page-content {
  padding-left: 46px !important;
  padding-right: 46px !important;
}

.banner-row {
  grid-template-columns: 1fr 1.62fr .78fr !important;
  gap: 30px !important;
}
.banner-card {
  height: 252px !important;
}
.banner-card img {
  object-fit: fill !important;
}

.game-tabs {
  max-width: 1130px !important;
}
.game-tab {
  background: linear-gradient(180deg, #1c8979, #0d665c) !important;
  box-shadow: 0 5px 7px rgba(0, 43, 38, .52), inset 0 1px rgba(255,255,255,.24), inset 0 -4px rgba(0,0,0,.18) !important;
}
.game-tab.active {
  background: linear-gradient(180deg, #ffe35a, #ffd10b) !important;
}

.feature-strip {
  background: rgba(31, 124, 112, .52) !important;
}
.feature-chip {
  background: linear-gradient(180deg, #178171, #0b675d) !important;
}

.quick-panel,
.promo-box,
.profile-grid article,
.support-grid button,
.table-card,
.download-card,
.member-card,
.drawer-link,
.game-card {
  background: linear-gradient(180deg, #1b927f, #11806f) !important;
}

@media (max-width: 520px) {
  .page-web {
    background-image:
      radial-gradient(circle at 100% 34%, rgba(255, 217, 40, .7), transparent 40%),
      radial-gradient(circle at 20% -10%, transparent 0 76px, rgba(20, 68, 61, .25) 78px 126px, transparent 128px),
      linear-gradient(115deg, #176f64 0%, #238978 54%, #edd942 100%) !important;
  }
  .page-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .brand-logo {
    width: 92px !important;
    height: 64px !important;
  }
  .brand-logo img {
    width: 66px !important;
    height: 66px !important;
  }
  .banner-row {
    padding: 0 14px !important;
  }
  .main-banner {
    height: 154px !important;
  }
}

/* Real M9 mobile reference pass: left category rail, race board, fixed 3-item bottom nav. */
.race-panel {
  margin: 0 48px 18px;
  padding: 14px 16px;
  border: 3px solid rgba(144, 116, 52, .65);
  border-radius: 16px;
  color: #fff;
  background: #222a38;
  box-shadow: 0 4px 8px rgba(0,0,0,.35);
}
.race-panel h2 {
  margin: 0 0 8px;
  text-align: center;
  color: #f6e8c6;
  font-size: 44px;
  font-style: italic;
  letter-spacing: 1px;
}
.race-prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.race-prizes article {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  background: #171d2a;
}
.race-prizes span { font-size: 18px; color: #f5f5f5; }
.race-prizes img { height: 86px; object-fit: cover; border-radius: 12px; }
.race-prizes small { color: #ddd; }
.race-prizes b { color: #f2d59a; font-size: 30px; }
.race-panel p {
  margin: 10px 0 0;
  text-align: center;
  color: #ddd;
  font-size: 22px;
}
.daily-board {
  margin: 0 48px 18px;
  overflow: hidden;
  border-radius: 12px;
  background: #213c70;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,.32);
}
.daily-board header {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 18px;
  background: #234b89;
  font-size: 24px;
}
.daily-board header span {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,.38);
}
.daily-board article {
  display: grid;
  grid-template-columns: 32px 54px 1fr auto 38px;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 6px 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(45, 74, 126, .8);
  font-size: 22px;
}
.daily-board img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.daily-board em {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,.22);
  font-style: normal;
}
.bonus-strip {
  display: grid;
  grid-template-columns: 150px 1fr auto auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  margin: 0 48px 22px;
  padding: 8px 18px;
  border: 3px solid #b48724;
  border-radius: 16px;
  color: #f7d78a;
  background: linear-gradient(180deg, #7b5316, #3d270b);
  box-shadow: 0 4px 8px rgba(0,0,0,.35);
}
.bonus-strip strong { font-size: 42px; color: #f3bd35; }
.bonus-strip b { font-size: 34px; }
.bonus-strip em {
  padding: 5px 12px;
  border-radius: 8px;
  color: #5c3a00;
  background: #f0cf4d;
  font-style: normal;
}

@media (max-width: 520px) {
  .download-strip {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    height: 46px !important;
    background: #e8eefc !important;
  }
  .page-header {
    min-height: 154px !important;
    align-items: start !important;
    padding-top: 20px !important;
    background:
      radial-gradient(circle at 0% 28%, rgba(255,255,255,.16), transparent 32%),
      radial-gradient(circle at 91% 44%, rgba(255,255,255,.15), transparent 31%),
      rgba(11, 40, 34, .62) !important;
  }
  .hamburger {
    top: 82px !important;
    left: 22px !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(80, 102, 98, .7) !important;
  }
  .login-btn {
    top: 88px !important;
    right: 22px !important;
    width: 86px !important;
    height: 38px !important;
    font-size: 18px !important;
  }
  .brand-logo {
    width: 96px !important;
    height: 90px !important;
    margin-top: 0 !important;
  }
  .brand-logo img {
    width: 92px !important;
    height: 92px !important;
  }
  .banner-row {
    padding: 0 !important;
  }
  .main-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 156px !important;
    border-radius: 0 !important;
  }
  .main-banner img {
    object-fit: cover !important;
  }
  .game-tabs {
    float: left !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 76px !important;
    max-width: 76px !important;
    margin: 8px 8px 12px 8px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .game-tab {
    width: 76px !important;
    max-width: 76px !important;
    height: 78px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
  }
  .game-tab img {
    width: 36px !important;
    height: 36px !important;
  }
  .game-tab.active img {
    width: 42px !important;
    height: 42px !important;
  }
  .feature-strip {
    width: calc(100vw - 100px) !important;
    max-width: calc(100vw - 100px) !important;
    min-height: 50px !important;
    margin: 8px 8px 8px 92px !important;
    padding: 4px !important;
    overflow-x: auto !important;
    border-radius: 0 !important;
    background: rgba(22, 115, 101, .55) !important;
  }
  .feature-chip {
    min-width: 116px !important;
    height: 42px !important;
    padding-right: 10px !important;
    font-size: 12px !important;
  }
  .feature-chip img {
    width: 50px !important;
    height: 50px !important;
  }
  .view-shell {
    display: block !important;
    width: calc(100vw - 100px) !important;
    max-width: calc(100vw - 100px) !important;
    margin-left: 92px !important;
    padding-bottom: 86px !important;
  }
  .race-panel,
  .daily-board,
  .bonus-strip,
  .games-section,
  .quick-panels {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .race-panel {
    padding: 8px !important;
    border-width: 2px !important;
  }
  .race-panel h2 {
    font-size: 26px !important;
  }
  .race-prizes {
    gap: 6px !important;
  }
  .race-prizes span {
    font-size: 11px !important;
  }
  .race-prizes img {
    height: 54px !important;
  }
  .race-prizes b {
    font-size: 20px !important;
  }
  .race-panel p {
    font-size: 15px !important;
  }
  .daily-board header {
    padding: 6px 10px !important;
    font-size: 18px !important;
  }
  .daily-board article {
    grid-template-columns: 20px 38px 1fr auto 26px !important;
    gap: 6px !important;
    min-height: 50px !important;
    padding: 5px !important;
    font-size: 15px !important;
  }
  .daily-board img {
    width: 34px !important;
    height: 34px !important;
  }
  .daily-board em {
    width: 24px !important;
    height: 24px !important;
  }
  .bonus-strip {
    grid-template-columns: 54px 1fr !important;
    gap: 4px 8px !important;
    min-height: 54px !important;
    padding: 6px 8px !important;
  }
  .bonus-strip strong {
    font-size: 26px !important;
  }
  .bonus-strip b {
    font-size: 18px !important;
  }
  .bonus-strip em {
    grid-column: 2 !important;
    justify-self: end !important;
    font-size: 13px !important;
  }
  .section-title {
    gap: 6px !important;
    margin: 8px 0 !important;
  }
  .section-title h1 {
    font-size: 19px !important;
  }
  .mini-link {
    min-width: 44px !important;
    height: 30px !important;
  }
  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .game-card {
    border-radius: 7px !important;
  }
  .game-card button {
    grid-template-rows: 1fr 28px !important;
    aspect-ratio: .68 !important;
  }
  .game-tag {
    top: 3px !important;
    left: 3px !important;
    font-size: 8px !important;
  }
  .platform-row img {
    width: 42px !important;
    height: 22px !important;
  }
  .bottom-nav {
    grid-template-columns: repeat(3, 1fr) !important;
    width: 100vw !important;
    left: 0 !important;
    transform: none !important;
    border-radius: 14px 14px 0 0 !important;
    background: linear-gradient(180deg, #168878, #075b52) !important;
  }
  .bottom-nav button:first-child {
    display: none !important;
  }
  .bottom-nav button {
    min-height: 70px !important;
    font-size: 0 !important;
  }
  .bottom-nav button::before {
    display: block;
    font-size: 32px;
    line-height: 1;
  }
  .bottom-nav button[data-page="promotion"]::before { content: "🎁"; }
  .bottom-nav button[data-page="cashin"]::before { content: "💳"; }
  .bottom-nav button[data-page="messages"]::before { content: "✉"; }
  .bottom-nav button::after {
    content: attr(data-label);
  }
  .bottom-nav button[data-page="promotion"]::after { content: "Promotion"; font-size: 13px; }
  .bottom-nav button[data-page="cashin"]::after { content: "ငွေသွင်း"; font-size: 13px; }
  .bottom-nav button[data-page="messages"]::after { content: "Messages"; font-size: 13px; }
  .modal {
    align-items: center !important;
    padding: 18px !important;
    background: rgba(0,0,0,.56) !important;
  }
  .modal-box {
    width: calc(100vw - 38px) !important;
    max-width: 390px !important;
    padding: 22px !important;
    border-radius: 8px !important;
    color: #d7d7d7 !important;
    background: #202020 !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 18px 40px rgba(0,0,0,.48) !important;
  }
  .modal-logo {
    width: 104px !important;
    height: 104px !important;
    margin: 20px auto !important;
    object-fit: contain !important;
  }
  .modal-tabs {
    position: absolute !important;
    top: 22px !important;
    left: 22px !important;
    width: 150px !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .modal-tabs button:not(.active) {
    display: none !important;
  }
  .modal-tabs button.active {
    justify-content: start !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 20px !important;
  }
  .auth-pane label {
    gap: 8px !important;
    color: #aaa !important;
    font-size: 17px !important;
  }
  .auth-pane input {
    height: 58px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #111 !important;
  }
  .submit-btn {
    height: 58px !important;
    margin-top: 18px !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #23a391, #08675d) !important;
    font-size: 24px !important;
  }
  .modal-close {
    top: 22px !important;
    right: 22px !important;
    width: 38px !important;
    height: 38px !important;
    color: #fff !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 34px !important;
  }
}

@media (max-width: 520px) {
  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .page-web,
  .download-strip,
  .page-header,
  .page-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  .login-btn {
    right: 14px !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
  }
  .view-shell {
    width: calc(100vw - 100px) !important;
    max-width: calc(100vw - 100px) !important;
    overflow: hidden !important;
  }
  .race-panel,
  .daily-board,
  .bonus-strip,
  .games-section {
    overflow: hidden !important;
  }
  .race-panel {
    box-sizing: border-box !important;
  }
  .race-prizes {
    gap: 4px !important;
  }
  .race-prizes article {
    min-width: 0 !important;
    padding: 5px 3px !important;
    border-radius: 12px !important;
  }
  .race-prizes span {
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  .race-prizes b {
    font-size: 17px !important;
  }
  .race-panel p {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  .daily-board article {
    grid-template-columns: 18px 34px minmax(0, 1fr) auto !important;
  }
  .daily-board em {
    display: none !important;
  }
  .daily-board strong {
    font-size: 13px !important;
  }
}

@media (max-width: 520px) {
  .page-content {
    display: grid !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    align-items: start !important;
    column-gap: 8px !important;
    padding-bottom: 86px !important;
  }
  .banner-row {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }
  .game-tabs {
    float: none !important;
    grid-column: 1 !important;
    grid-row: 2 / span 2 !important;
    width: 76px !important;
    max-width: 76px !important;
    margin: 8px 0 0 8px !important;
  }
  .feature-strip {
    grid-column: 2 !important;
    grid-row: 2 !important;
    width: auto !important;
    max-width: none !important;
    margin: 8px 8px 8px 0 !important;
  }
  .view-shell {
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 8px 0 0 !important;
  }
  .race-panel,
  .daily-board,
  .bonus-strip,
  .games-section {
    width: 100% !important;
  }
  .login-btn {
    position: fixed !important;
    top: 135px !important;
    right: 18px !important;
    z-index: 78 !important;
  }
  .race-panel h2 {
    font-size: 24px !important;
  }
  .race-prizes article {
    gap: 2px !important;
  }
  .race-prizes span {
    font-size: 9px !important;
  }
  .race-prizes img {
    height: 44px !important;
  }
  .race-prizes small {
    font-size: 10px !important;
  }
  .race-prizes b {
    font-size: 14px !important;
  }
  .daily-board article {
    grid-template-columns: 18px 32px minmax(0, 1fr) !important;
  }
  .daily-board strong {
    justify-self: end !important;
    max-width: 84px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }
}

/* Home/live reference screen: screenshot_20260805-011934 first viewport. */
.casino-live-home {
  display: grid;
  gap: 10px;
}
.casino-hero-card,
.casino-provider-card {
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
}
.casino-hero-card img,
.casino-provider-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.casino-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .page-web {
    background-image:
      radial-gradient(circle at 0% 17%, rgba(255,255,255,.18), transparent 30%),
      radial-gradient(circle at 92% 24%, rgba(255,255,255,.16), transparent 31%),
      radial-gradient(circle at 98% 72%, rgba(239, 220, 61, .82), transparent 42%),
      repeating-linear-gradient(135deg, transparent 0 42px, rgba(255,255,255,.12) 43px 45px, transparent 46px 76px),
      linear-gradient(112deg, #184f43 0%, #218574 54%, #d7cf3c 100%) !important;
  }
  .download-strip {
    height: 46px !important;
  }
  .page-header {
    min-height: 156px !important;
  }
  .brand-logo {
    width: 94px !important;
    height: 82px !important;
  }
  .brand-logo img {
    width: 90px !important;
    height: 90px !important;
  }
  .hamburger {
    top: 78px !important;
    left: 22px !important;
  }
  .login-btn {
    top: 133px !important;
    right: 12px !important;
    width: 86px !important;
    height: 38px !important;
    border-radius: 7px !important;
    font-size: 18px !important;
  }
  .main-banner {
    height: 156px !important;
  }
  .page-content {
    grid-template-columns: 78px minmax(0, 1fr) !important;
    column-gap: 8px !important;
  }
  .game-tabs {
    width: 74px !important;
    max-width: 74px !important;
    margin: 8px 0 0 8px !important;
    gap: 8px !important;
  }
  .game-tab {
    width: 74px !important;
    max-width: 74px !important;
    height: 82px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }
  .game-tab img {
    width: 38px !important;
    height: 38px !important;
  }
  .game-tab.active {
    color: #111 !important;
  }
  .game-tab.active img {
    width: 42px !important;
    height: 42px !important;
  }
  .feature-strip {
    grid-column: 2 !important;
    width: auto !important;
    margin: 8px 8px 8px 0 !important;
    padding: 4px !important;
    min-height: 52px !important;
    border-radius: 0 !important;
    background: rgba(41, 117, 101, .5) !important;
  }
  .feature-chip {
    min-width: 114px !important;
    height: 42px !important;
    gap: 5px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
  }
  .feature-chip img {
    width: 48px !important;
    height: 48px !important;
  }
  .feature-chip:first-child {
    display: none !important;
  }
  .view-shell {
    grid-column: 2 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 8px 0 0 !important;
    overflow: visible !important;
  }
  .casino-live-home {
    gap: 8px !important;
  }
  .casino-hero-card {
    width: 100% !important;
    aspect-ratio: 742 / 348 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,.38) !important;
  }
  .casino-provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .casino-provider-card {
    aspect-ratio: 238 / 360 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,.36) !important;
  }
  .bottom-nav {
    height: 78px !important;
    min-height: 78px !important;
  }
}

@media (max-width: 520px) {
  .page-content {
    display: block !important;
    position: relative !important;
    padding-bottom: 86px !important;
  }
  .banner-row {
    display: block !important;
    width: 100% !important;
  }
  .game-tabs {
    position: absolute !important;
    left: 8px !important;
    top: 164px !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .feature-strip {
    display: flex !important;
    width: calc(100vw - 94px) !important;
    max-width: calc(100vw - 94px) !important;
    margin: 8px 8px 8px 86px !important;
  }
  .view-shell {
    display: block !important;
    width: calc(100vw - 94px) !important;
    max-width: calc(100vw - 94px) !important;
    margin: 0 8px 0 86px !important;
  }
  .casino-hero-card {
    margin-top: 0 !important;
  }
}

/* Exact first-screen corrections from provided M9 reference. */
.welcome-strip {
  display: none;
}

@media (max-width: 520px) {
  .download-strip {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr 34px !important;
    gap: 4px !important;
    padding: 4px 3px !important;
    overflow: visible !important;
  }
  .app-pill {
    width: 100% !important;
    height: 36px !important;
    padding: 0 14px 0 4px !important;
    font-size: 12px !important;
    border-radius: 4px !important;
  }
  .app-pill img {
    width: 30px !important;
    height: 30px !important;
    margin-right: 5px !important;
  }
  .app-pill.android {
    background: #222 !important;
    opacity: .72 !important;
  }
  .strip-close {
    position: static !important;
    width: 34px !important;
    height: 34px !important;
    align-self: center !important;
    font-size: 22px !important;
    background: #168bd0 !important;
  }
  .welcome-strip {
    display: block !important;
    height: 30px !important;
    overflow: hidden !important;
    padding-left: 0 !important;
    color: rgba(255,255,255,.72) !important;
    background: rgba(3, 13, 11, .82) !important;
    font-size: 22px !important;
    line-height: 30px !important;
    white-space: nowrap !important;
  }
  .page-header {
    min-height: 146px !important;
  }
  .brand-logo {
    margin-top: -4px !important;
  }
  .hamburger {
    top: 72px !important;
  }
  .login-btn {
    top: 125px !important;
    right: 12px !important;
  }
  .main-banner {
    height: 155px !important;
  }
  .main-banner img {
    object-fit: cover !important;
    object-position: center !important;
  }
  .game-tabs {
    top: 163px !important;
  }
  .feature-strip {
    min-height: 50px !important;
    margin-top: 8px !important;
  }
  .casino-hero-card {
    aspect-ratio: 742 / 348 !important;
  }
  .casino-provider-card {
    aspect-ratio: 238 / 360 !important;
  }
}

.float-check {
  display: none;
}

@media (max-width: 520px) {
  .download-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 30px !important;
    gap: 3px !important;
    padding: 4px 2px !important;
  }
  .app-pill {
    min-width: 0 !important;
    overflow: hidden !important;
    padding: 0 12px 0 3px !important;
    font-size: 11px !important;
  }
  .app-pill img {
    flex: 0 0 auto !important;
    width: 29px !important;
    height: 29px !important;
  }
  .app-pill span {
    min-width: 0 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  .strip-close {
    width: 30px !important;
    height: 30px !important;
    font-size: 20px !important;
  }
  .login-btn {
    right: 8px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
  }
  .float-check {
    position: fixed;
    z-index: 70;
    top: 292px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #eee);
    box-shadow: 0 2px 6px rgba(0,0,0,.32);
  }
  .float-check::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 16px;
    border-radius: 8px 8px 0 0;
    background: #ef6f62;
  }
  .float-check span {
    width: 26px;
    height: 16px;
    border-left: 6px solid #777;
    border-bottom: 6px solid #777;
    transform: rotate(-45deg) translateY(-2px);
  }
  .float-check::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: 3px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ff4c93;
    box-shadow: 0 0 0 2px rgba(0,0,0,.25);
  }
  .download-strip > .app-pill {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .download-strip > .strip-close {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    flex: none !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .login-btn.open-auth {
    position: fixed !important;
    left: auto !important;
    right: 18px !important;
    inset-inline-end: 18px !important;
    top: 159px !important;
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    z-index: 100 !important;
  }
}

/* Final M9 mobile alignment pass: keep the first viewport tight to the live reference. */
@media (max-width: 520px) {
  html,
  body,
  .page-web,
  .site-shell {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }

  body {
    background-color: #0d261f !important;
  }

  .download-strip {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px !important;
    align-items: center !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 44px !important;
    gap: 2px !important;
    padding: 3px 2px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .download-strip > .app-pill {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    padding: 0 5px 0 3px !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    gap: 4px !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .download-strip > .app-pill img {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px !important;
  }

  .download-strip > .app-pill span {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .download-strip > .strip-close {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 999px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }

  .welcome-strip {
    height: 30px !important;
    padding-left: 0 !important;
    font-size: 18px !important;
    line-height: 30px !important;
    background: rgba(0, 9, 8, .88) !important;
  }

  .page-header {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 255px !important;
    padding-top: 0 !important;
    overflow: visible !important;
    background-size: cover !important;
    background-position: center top !important;
  }

  .logo-wrap {
    top: 32px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 104px !important;
    height: 100px !important;
  }

  .page-header > .brand-logo {
    position: absolute !important;
    top: 31px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 110px !important;
    height: 110px !important;
    padding: 0 !important;
    z-index: 25 !important;
  }

  .page-header > .brand-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .hamburger {
    top: 164px !important;
    left: 22px !important;
    width: 82px !important;
    height: 82px !important;
    border-radius: 8px !important;
  }

  .hamburger span {
    width: 28px !important;
    height: 4px !important;
    margin: 4px auto !important;
  }

  .page-web .page-header > .login-btn.open-auth {
    position: absolute !important;
    top: 170px !important;
    right: 23px !important;
    left: auto !important;
    bottom: auto !important;
    inset: auto 23px auto auto !important;
    transform: none !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 52px !important;
    border-radius: 9px !important;
    font-size: 21px !important;
    z-index: 30 !important;
  }

  .banner-row {
    position: relative !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: hidden !important;
  }

  .banner-stage {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .banner-rail {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transform: none !important;
  }

  .banner-card:not(.main-banner) {
    display: none !important;
  }

  .main-banner {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 338px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .main-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center center !important;
    border-radius: 0 !important;
  }

  .game-tabs {
    top: 594px !important;
    left: 8px !important;
    width: 152px !important;
    gap: 14px !important;
    z-index: 35 !important;
  }

  .game-tabs button {
    width: 152px !important;
    height: 132px !important;
    border-radius: 15px !important;
    font-size: 26px !important;
  }

  .game-tabs .tab-icon {
    font-size: 42px !important;
  }

  .feature-strip {
    position: relative !important;
    z-index: 20 !important;
    margin: 10px 7px 0 162px !important;
    height: 86px !important;
    min-height: 86px !important;
    padding: 10px 4px !important;
    border-radius: 18px !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
  }

  .feature-chip {
    height: 58px !important;
    min-width: 0 !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    font-size: 19px !important;
    line-height: 1.05 !important;
  }

  .feature-chip img,
  .feature-chip span:first-child {
    width: 46px !important;
    height: 46px !important;
    font-size: 39px !important;
    flex: 0 0 46px !important;
  }

  .casino-live-home {
    margin: 38px 15px 120px 178px !important;
    width: auto !important;
    max-width: none !important;
    gap: 10px !important;
  }

  .casino-hero-card {
    aspect-ratio: 742 / 348 !important;
    border-radius: 10px !important;
  }

  .casino-provider-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .casino-provider-card {
    aspect-ratio: 238 / 360 !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 520px) {
  .download-strip > .strip-close {
    position: fixed !important;
    top: 6px !important;
    right: 5px !important;
    z-index: 500 !important;
    background: #1088c9 !important;
    color: #fff !important;
  }

  .download-strip > .app-pill.download {
    padding-right: 30px !important;
  }

  .page-web .page-header > .login-btn.open-auth {
    position: fixed !important;
    inset: unset !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
    height: 52px !important;
    top: 244px !important;
    right: 18px !important;
  }
}

.home-lobby {
  display: grid;
  gap: 12px;
  position: relative;
  left: 50%;
  width: calc(100vw - 72px);
  margin: 18px 0 90px;
  transform: translateX(-50%);
}

.race-panel,
.today-panel,
.local-jackpot,
.home-game-section {
  overflow: hidden;
  border-radius: 7px;
  background: rgba(5, 42, 36, .78);
}

.race-panel h2 {
  margin: 0;
  padding: 7px;
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-style: italic;
  background: linear-gradient(90deg, #083f38, #19796c, #083f38);
}

.race-prizes,
.jackpot-grid,
.home-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
}

.race-prizes button,
.jackpot-grid button {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 215, 23, .38);
  border-radius: 6px;
  color: #fff;
  background: #07322d;
}

.race-prizes img { width: 100%; aspect-ratio: 1.6; object-fit: cover; }
.race-prizes b { display: block; color: #ffd719; font-size: 15px; }
.race-prizes small { color: #a7c7be; }

.today-panel header,
.local-jackpot header,
.home-game-section header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 3px 8px;
  color: #ffd719;
  background: #075248;
}

.today-panel p {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.today-panel p img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; }
.today-panel p b { color: #fff; font-size: 12px; }
.today-panel p span { color: #c8ded7; font-size: 12px; }

.jackpot-grid button img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.jackpot-grid button small { display: block; padding: 3px; color: #ffd719; }
.jackpot-total { padding: 6px; text-align: center; background: #061d19; }
.jackpot-total small { display: block; color: #ffd719; }
.jackpot-total b { color: #fff; font-size: 20px; }

.home-game-section header button {
  width: 24px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #ffd719;
  background: #14796b;
}

.home-game-grid .game-card { border-radius: 5px; }
.home-game-grid .game-card button { grid-template-rows: 1fr 25px; }
.home-game-grid .platform-row small { display: none; }
.home-game-grid .platform-row img { max-width: 54px; max-height: 20px; }
.empty-games {
  grid-column: 1 / -1;
  margin: 8px;
  border: 1px dashed rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: 14px 10px;
  color: #b8d8d0;
  background: rgba(0, 0, 0, .16);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.loading-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 7px;
  padding: 7px;
  border: 0;
  background: rgba(3, 45, 39, .48);
  text-align: left;
}
.loading-games i {
  display: block;
  aspect-ratio: 1;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.22), rgba(255,255,255,.05)),
    rgba(9, 111, 97, .5);
  background-size: 220% 100%, auto;
  box-shadow: inset 0 -18px 0 rgba(0,0,0,.12);
  animation: gameSkeletonSweep 1.05s ease-in-out infinite;
}
@keyframes gameSkeletonSweep {
  0% { background-position: 180% 0, 0 0; opacity: .72; }
  50% { opacity: 1; }
  100% { background-position: -80% 0, 0 0; opacity: .72; }
}
.home-footer { padding: 18px 8px; color: #99b4ac; text-align: center; font-size: 11px; }
.home-footer div { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.home-footer img { width: 62px; height: 28px; object-fit: contain; }
.home-footer .partner-logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  max-width: 760px;
  margin: 0 auto 10px;
}
.home-footer .partner-logo-grid img {
  width: 64px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .22));
}

@media (max-width: 520px) {
  .home-lobby { left: auto; width: auto; gap: 8px; margin: 10px 5px 78px 59px; transform: none; }
  .race-panel h2 { padding: 4px; font-size: 15px; }
  .race-prizes,
  .jackpot-grid,
  .home-game-grid { gap: 5px; padding: 5px; }
  .race-prizes b { font-size: 11px; }
  .race-prizes small { font-size: 9px; }
  .today-panel header,
  .local-jackpot header,
  .home-game-section header { min-height: 23px; padding: 2px 5px; font-size: 11px; }
  .home-game-grid .game-card button { aspect-ratio: .82; }
  .jackpot-total b { font-size: 16px; }
}

/* Race board reference match. */
.home-lobby .race-panel { position:relative; left:0; width:104.5%; margin:0 !important; padding:8px 90px 12px; overflow:hidden; box-sizing:border-box; border:2px solid rgba(145,115,45,.78); border-radius:22px; color:#fff; background:#252e3d; }
.home-lobby .race-panel::before,.home-lobby .race-panel::after { content:""; position:absolute; top:0; width:98px; height:53px; opacity:.55; background:repeating-linear-gradient(90deg,#a48a36 0 15px,transparent 15px 28px); transform:skewX(18deg); }
.home-lobby .race-panel::before { left:86px; }
.home-lobby .race-panel::after { right:86px; transform:skewX(-18deg); }
.home-lobby .race-panel h2 { margin:0; padding:0 0 8px; color:#f5d28e; text-align:center; font-size:34px; font-style:italic; background:none; }
.home-lobby .race-prizes { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:68px; padding:0 30px; }
.home-lobby .race-prizes article { display:grid; justify-items:center; gap:6px; min-width:0; }
.home-lobby .race-prizes article>span { color:#fff; font-size:19px; }
.home-lobby .race-prizes button { position:relative; width:212px; max-width:100%; height:159px; overflow:hidden; padding:0; border:3px solid #e0c25d; border-radius:20px; background:#151c27; }
.home-lobby .race-prizes button::before { content:"ⓘ"; position:absolute; top:0; left:0; z-index:2; display:grid; place-items:center; width:42px; height:30px; color:#f7deb0; font-size:20px; background:#c67c20; }
.home-lobby .race-prizes button::after { content:"JILI"; position:absolute; top:3px; left:50%; z-index:2; color:#c89428; font-size:17px; font-weight:900; transform:translateX(-50%); text-shadow:0 1px #5b3b00; }
.home-lobby .race-prizes img { width:100%; height:100%; object-fit:cover; }
.home-lobby .race-prizes small { width:212px; max-width:100%; margin-top:-8px; padding:8px 5px 5px; border-radius:0 0 19px 19px; color:#ead9b6; text-align:center; background:#151c27; }
.home-lobby .race-prizes b { display:inline; margin-left:5px; color:#f2d59a; font-size:25px; }
.home-lobby .race-panel>p { margin:7px 0 0; color:#ddd; text-align:center; font-size:20px; }
.home-lobby .daily-board { width:82.3%; margin:4px auto 0; overflow:hidden; border-radius:9px; color:#fff; background:#203d70; }
.home-lobby .daily-board header { display:flex; justify-content:center; align-items:center; gap:12px; min-height:43px; background:#294c86; font-size:19px; }
.home-lobby .daily-board header span { padding:2px 5px; border-radius:2px; background:#172c51; font:14px monospace; }
.home-lobby .board-caption { padding:7px; color:#cbd0dd; text-align:center; font-size:20px; background:#1c345e; }
.home-lobby .daily-board article { display:grid; grid-template-columns:22px 50px 1fr 1fr 30px; align-items:center; gap:7px; min-height:72px; padding:3px; border:1px solid #172f59; border-radius:4px; background:#304f84; }
.home-lobby .daily-board article i { text-align:center; font-style:normal; }
.home-lobby .daily-board article img { width:50px; height:50px; border-radius:5px; object-fit:cover; }
.home-lobby .daily-board article b { text-align:center; font-size:19px; }
.home-lobby .daily-board article em { display:grid; place-items:center; width:25px; height:25px; border-radius:5px; background:#8293ad; font-style:normal; font-size:20px; }
.home-lobby .bonus-strip { position:relative; left:17px; width:66.3%; min-height:123px; margin:4px auto 0; box-sizing:border-box; grid-template-columns:150px 1fr 54px auto; border:2px solid #b48724; border-radius:12px; background:linear-gradient(135deg,#6c4710,#3d270b); }
.home-lobby .bonus-jili-logo { width:112px; height:48px; object-fit:contain; }
.home-lobby .bonus-strip span { display:grid; color:#ae9a77; font-size:18px; }
.home-lobby .bonus-strip span b { color:#f7d78a; font-size:34px; font-style:italic; white-space:nowrap; }
.home-lobby .bonus-strip i { display:grid; place-items:center; width:48px; height:48px; color:#fff; font-size:32px; font-style:normal; font-weight:900; background:#f0cf4d; clip-path:polygon(50% 0,92% 18%,88% 75%,50% 100%,12% 75%,8% 18%); }

@media (max-width:520px) {
  .home-lobby .race-panel { left:auto; width:auto; padding:4px 5px 7px; border-radius:10px; }
  .home-lobby .race-panel::before,.home-lobby .race-panel::after { display:none; }
  .home-lobby .race-panel h2 { padding:2px; font-size:18px; }
  .home-lobby .race-prizes { gap:4px; padding:0; }
  .home-lobby .race-prizes article { width:100%; min-width:0; gap:2px; padding:0 !important; }
  .home-lobby .race-prizes article>span { font-size:9px; white-space:nowrap; }
  .home-lobby .race-prizes button { width:100%; min-width:0; height:auto; aspect-ratio:1.34; box-sizing:border-box; border-width:2px; border-radius:8px; }
  .home-lobby .race-prizes button::before { width:20px; height:17px; font-size:10px; }
  .home-lobby .race-prizes button::after { top:1px; font-size:8px; }
  .home-lobby .race-prizes small { width:100%; margin-top:-4px; padding:4px 1px 2px; box-sizing:border-box; border-radius:0 0 7px 7px; font-size:8px; }
  .home-lobby .race-prizes b { font-size:11px; }
  .home-lobby .race-panel>p { margin-top:4px; font-size:9px; }
  .home-lobby .daily-board { width:100%; margin:0; }
  .home-lobby .daily-board header { min-height:28px; font-size:13px; }
  .home-lobby .daily-board header span { font-size:10px; }
  .home-lobby .board-caption { padding:4px; font-size:12px; }
  .home-lobby .daily-board article { grid-template-columns:15px 34px 1fr 1fr 20px; gap:3px; min-height:44px; font-size:10px; }
  .home-lobby .daily-board article img { width:32px; height:32px; }
  .home-lobby .daily-board article b { font-size:10px; }
  .home-lobby .daily-board article em { width:18px; height:18px; font-size:12px; }
  .home-lobby .bonus-strip { left:auto; width:100%; min-height:58px; grid-template-columns:48px 1fr 28px; gap:5px; margin:0; padding:5px 7px; border-radius:7px; }
  .home-lobby .bonus-strip strong { font-size:20px; }
  .home-lobby .bonus-jili-logo { width:42px; height:22px; }
  .home-lobby .bonus-strip span { font-size:9px; }
  .home-lobby .bonus-strip span b { font-size:15px; }
  .home-lobby .bonus-strip i { width:26px; height:26px; font-size:16px; }
  .home-lobby .bonus-strip em { grid-column:3; padding:2px; font-size:8px; }
}

/* EOF override: exact mobile live-home pass, kept last to beat older experiments. */
@media (max-width: 520px) {
  .view-shell {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 0 86px !important;
  }
  .home-lobby {
    left: 0 !important;
    width: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
    margin: 10px 5px 78px 59px !important;
    transform: none !important;
  }
  .page-header::after {
    content: "Login";
    position: absolute;
    top: 51px;
    right: 10px;
    z-index: 2050;
    display: grid;
    place-items: center;
    width: 78px;
    height: 30px;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(180deg, #2ea493, #0b6d63);
    box-shadow: 0 4px 8px rgba(0,0,0,.35);
    pointer-events: none;
  }
  .download-strip,
  .m9-mobile-close {
    display: none !important;
  }

  .welcome-strip {
    display: block !important;
    height: 23px !important;
    padding: 0 !important;
    color: #d7d7d7 !important;
    font-size: 16px !important;
    line-height: 23px !important;
    background: rgba(4, 11, 10, .96) !important;
    white-space: nowrap !important;
  }

  .page-header {
    min-height: 85px !important;
    height: 85px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-image: url("assets/m9/bg.png") !important;
    background-size: 390px auto !important;
    background-position: center -18px !important;
    overflow: visible !important;
  }

  .page-header > .brand-logo {
    position: absolute !important;
    top: 12px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: 58px !important;
    height: 58px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: drop-shadow(0 6px 8px rgba(0,0,0,.38)) !important;
  }

  .hamburger {
    position: fixed !important;
    top: 62px !important;
    left: 9px !important;
    width: 34px !important;
    height: 34px !important;
    z-index: 2000 !important;
    border-radius: 5px !important;
    background: rgba(92, 117, 111, .68) !important;
  }

  .hamburger span {
    width: 19px !important;
    height: 2px !important;
    margin: 3px auto !important;
  }

  .page-web .page-header > .login-btn.open-auth,
  .m9-mobile-login {
    position: fixed !important;
    top: 67px !important;
    right: 10px !important;
    left: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 30px !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    z-index: 1000 !important;
  }

  .banner-row {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .banner-card:not(.main-banner) {
    display: none !important;
  }

  .main-banner {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 113px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .main-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: fill !important;
    object-position: center !important;
    border-radius: 0 !important;
  }

  .float-check {
    top: 174px !important;
    right: 7px !important;
    width: 39px !important;
    height: 39px !important;
  }

  .game-tabs {
    position: absolute !important;
    top: 117px !important;
    left: 4px !important;
    width: 50px !important;
    gap: 8px !important;
    z-index: 60 !important;
  }

  .game-tabs button {
    flex: 0 0 45px !important;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
    padding: 2px !important;
    border-radius: 8px !important;
    gap: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  .game-tabs button img {
    width: 27px !important;
    height: 27px !important;
  }

  .feature-strip {
    margin: 6px 5px 0 56px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 3px !important;
    border-radius: 11px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  .feature-chip {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 2px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
  }

  .feature-chip img,
  .feature-chip span:first-child {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
    font-size: 23px !important;
  }

  .casino-live-home {
    margin: 15px 6px 92px 59px !important;
    gap: 5px !important;
  }

  .casino-hero-card,
  .casino-provider-card {
    border-radius: 7px !important;
  }

  .casino-provider-grid {
    gap: 5px !important;
  }

  .bottom-nav {
    height: 52px !important;
    min-height: 52px !important;
    border-radius: 7px 7px 0 0 !important;
  }

  .bottom-nav button {
    min-height: 0 !important;
    height: 52px !important;
    padding: 3px 2px !important;
  }

  .bottom-nav button::before {
    font-size: 22px !important;
    line-height: 23px !important;
  }

  .bottom-nav button::after {
    font-size: 11px !important;
    line-height: 13px !important;
  }
}

.hot-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

.auth-status,
.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-status[data-state="error"],
.form-status[data-state="error"] {
  color: #ffb4a8;
}

.auth-status[data-state="success"],
.form-status[data-state="success"] {
  color: #7dffbf;
}

.auth-status[data-state="loading"],
.form-status[data-state="loading"] {
  color: #ffe28b;
}

.method-list {
  display: grid;
  gap: 8px;
}

.finance-method {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .08);
  text-align: left;
}

.finance-method.active {
  border-color: rgba(245, 199, 93, .86);
  background: rgba(245, 199, 93, .14);
}

.finance-method img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
}

.finance-method span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.finance-method strong,
.finance-method small,
.finance-method em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.finance-method small {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.finance-method em {
  max-width: 92px;
  color: #ffe28b;
  font-style: normal;
  font-weight: 900;
}

.finance-method i {
  border-radius: 8px;
  padding: 7px 9px;
  color: #081015;
  background: #ffe28b;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.method-empty {
  border: 1px dashed var(--stroke);
  border-radius: 12px;
  padding: 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.logout-action {
  width: min(360px, calc(100% - 28px));
  margin: 12px auto 0;
}

.toast[data-state="error"] {
  color: #ffdbd5;
  border-color: rgba(255, 90, 90, .45);
}

.toast[data-state="success"] {
  color: #d8ffe8;
  border-color: rgba(88, 255, 169, .4);
}

@media (max-width: 520px) {
  .finance-method {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    min-height: 52px;
    padding: 7px;
  }

  .finance-method img {
    width: 34px;
    height: 34px;
  }

  .finance-method em {
    max-width: 82px;
    font-size: 11px;
  }

  .finance-method i {
    grid-column: 3;
    padding: 6px 7px;
  }
}

.hot-table-grid button {
  display: grid;
  place-items: center;
  min-height: 90px;
  border: 0;
  border-radius: 6px;
  color: #777;
  background: #fff;
}

.hot-table-grid button small { color: #aaa; }

.home-casino-hero,
.home-casino-grid button {
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #071b18;
}

.home-casino-hero { margin: 6px; width: calc(100% - 12px); }
.home-casino-hero img { width: 100%; aspect-ratio: 742 / 348; object-fit: cover; }
.home-casino-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 6px 6px; }
.home-casino-grid img { width: 100%; aspect-ratio: 238 / 360; object-fit: cover; }

@media (max-width: 520px) {
  .hot-table-grid { gap: 4px; padding: 4px; }
  .hot-table-grid button { min-height: 58px; font-size: 8px; }
  .hot-table-grid button small { font-size: 7px; }
  .home-casino-hero { margin: 4px; width: calc(100% - 8px); }
  .home-casino-grid { gap: 4px; padding: 0 4px 4px; }
}

/* Final mobile overflow guard. Keep this at EOF so the fixed rail never widens content. */
@media (max-width: 520px) {
  html,
  body,
  .page-web {
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .page-content {
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 56px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .view-shell,
  .content-section,
  .home-lobby,
  .provider-filter-row,
  .view-head,
  .feature-strip {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .content-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .game-grid,
  .home-game-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    box-sizing: border-box !important;
  }

  .game-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .game-tabs {
    position: fixed !important;
    top: 198px !important;
    left: 7px !important;
    width: 48px !important;
    max-width: 48px !important;
    z-index: 1800 !important;
  }
}

/* API catalog cleanup: provider filters, real images, fixed mobile category rail. */
.provider-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 8px 14px 12px;
  padding: 4px 0 7px;
  scrollbar-width: none;
}

.provider-filter-row::-webkit-scrollbar { display: none; }

.provider-filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(18, 111, 100, .92);
  box-shadow: inset 0 1px rgba(255,255,255,.18), inset 0 -3px rgba(0,0,0,.16);
  font-size: 12px;
  font-weight: 900;
}

.provider-filter-row button.active {
  color: #111;
  background: #ffd717;
}

.provider-filter-row img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255,255,255,.85);
}

.provider-filter-row em {
  border-radius: 999px;
  padding: 2px 6px;
  color: inherit;
  background: rgba(0,0,0,.14);
  font-style: normal;
  font-size: 10px;
}

.game-card .game-img,
.home-game-grid .game-card .game-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #092f2a !important;
}

.platform-row small {
  display: block;
  max-width: 100%;
  padding: 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 520px) {
  .page-content {
    padding-left: 56px !important;
    padding-right: 6px !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  .game-tabs {
    position: fixed !important;
    top: 198px !important;
    left: 7px !important;
    z-index: 1800 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    width: 48px !important;
    max-width: 48px !important;
    max-height: calc(100vh - 260px) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: transparent !important;
    transform: none !important;
    scrollbar-width: none !important;
  }

  .game-tabs::-webkit-scrollbar { display: none !important; }

  .game-tab {
    width: 48px !important;
    max-width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 3px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .game-tab img {
    width: 24px !important;
    height: 24px !important;
  }

  .game-tab span {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .feature-strip,
  .view-head,
  .content-section,
  .provider-filter-row,
  .home-lobby,
  .casino-live-home {
    margin-left: 0 !important;
  }

  .content-section,
  .view-head,
  .provider-filter-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .game-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .game-card {
    width: 100% !important;
    background: rgba(13, 111, 99, .92) !important;
  }

  .game-card button {
    aspect-ratio: 1 / 1.22 !important;
    grid-template-rows: minmax(0, 1fr) 28px !important;
  }

  .provider-filter-row {
    margin-top: 7px !important;
    margin-right: 7px !important;
    margin-bottom: 8px !important;
  }
}

/* Absolute last mobile clamp: prevents the third column from bleeding under the viewport edge. */
@media (max-width: 520px) {
  .page-content,
  .view-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .view-shell {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .content-section {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .game-grid,
  .home-game-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .platform-row {
    display: grid !important;
    place-items: center !important;
    padding: 0 3px !important;
  }

  .platform-row img {
    display: none !important;
  }

  .platform-row small,
  .home-game-grid .platform-row small {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
  }
}

/* Modal top-layer fix: fixed rails and floating controls must never cover popups. */
.modal {
  z-index: 5000 !important;
}

.modal-box {
  z-index: 5001 !important;
}

body.modal-open .game-tabs,
body.modal-open .m9-reference-menu,
body.modal-open #referenceLogin,
body.modal-open .page-header::after,
body.modal-open .float-check,
body.modal-open .right-tools,
body.modal-open .bottom-nav,
body.drawer-open .game-tabs,
body.drawer-open .m9-reference-menu,
body.drawer-open #referenceLogin,
body.drawer-open .page-header::after,
body.drawer-open .float-check,
body.drawer-open .right-tools,
body.drawer-open .bottom-nav {
  display: none !important;
}

.side-drawer {
  z-index: 4900 !important;
}

/* Logo corner polish. */
.brand-logo,
.brand-logo img,
.drawer-head img,
.modal-logo,
.app-pill img,
.download-card img {
  overflow: hidden !important;
  border-radius: 12px !important;
}

.brand-logo img,
.drawer-head img,
.modal-logo,
.app-pill img,
.download-card img {
  display: block;
  object-fit: cover;
}

/* 2026-08-13 M9Asia home reference pass. */
.home-lobby {
  gap: 10px !important;
  color: #fff !important;
}

.home-game-section,
.local-jackpot,
.daily-board,
.race-panel {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.home-game-section header,
.live-casino-section header,
.hot-table-section header {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 42px !important;
  padding: 0 4px !important;
  color: #ffd91e !important;
  background: transparent !important;
  text-shadow: 0 2px 3px rgba(0,0,0,.55) !important;
}

.home-game-section header strong {
  font-size: clamp(18px, 4vw, 30px) !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.home-game-section header span {
  height: 2px !important;
  background: linear-gradient(90deg, #d9b837, rgba(217,184,55,.1)) !important;
}

.home-game-section header button {
  display: grid !important;
  place-items: center !important;
  width: 42px !important;
  height: 32px !important;
  border-radius: 8px !important;
  color: #ffda25 !important;
  background: linear-gradient(180deg, #1b8979, #0b584f) !important;
  box-shadow: 0 5px 9px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.18) !important;
  font-size: 24px !important;
}

.home-game-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px 10px !important;
  padding: 0 4px 12px !important;
}

.m9-home-card {
  position: relative;
  min-width: 0;
}

.m9-home-card button {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 38px;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(16, 30, 25, .92);
  border-radius: 9px;
  color: #f6c34c;
  background: linear-gradient(180deg, #131313, #050505);
  box-shadow: 0 6px 7px rgba(0,0,0,.34);
}

.m9-home-card img {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  object-fit: cover;
  background: #10231f;
}

.m9-home-card small {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 4px;
  overflow: hidden;
  color: #dba03a;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px #241200;
  font-size: 18px;
  font-weight: 900;
}

.m9-provider-corner {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 2;
  color: #e4c05b;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 2px #000;
}

.m9-card-badge {
  position: absolute;
  top: -11px;
  left: 22%;
  z-index: 3;
  padding: 2px 12px;
  border-radius: 4px 4px 0 0;
  color: #fff;
  background: #0d1416;
  font-size: 12px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .5px;
}

.m9-home-card.is-hot::before {
  content: "HOT";
  position: absolute;
  top: 28px;
  left: -4px;
  z-index: 4;
  padding: 3px 6px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #e13235;
  font-size: 11px;
  font-weight: 900;
  transform: rotate(-8deg);
}

.m9-jackpot-section {
  display: grid;
  gap: 10px;
  padding: 8px 4px 12px;
}

.m9-jackpot-section h2 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #ebc078;
  text-align: center;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
}

.m9-jackpot-section h2::before,
.m9-jackpot-section h2::after {
  content: "";
  height: 2px;
  background: linear-gradient(90deg, transparent, #d6ad56);
}

.m9-jackpot-section h2::after {
  background: linear-gradient(90deg, #d6ad56, transparent);
}

.m9-jackpot-section > strong {
  color: #f1d08b;
  text-align: center;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 900;
  letter-spacing: .5px;
}

.m9-jackpot-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.m9-jackpot-tabs button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #1f907e, #0c5c51);
  font-size: 15px;
  font-weight: 900;
  box-shadow: inset 0 -4px rgba(0,0,0,.16);
}

.m9-jackpot-tabs button.active {
  color: #1e1700;
  background: linear-gradient(180deg, #ffe900, #ffc214);
}

.m9-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 4px 12px;
}

.m9-table-grid button {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 15px;
  color: #333;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,.25);
}

.m9-table-grid img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
}

.m9-table-grid span {
  display: block;
  padding: 7px 4px;
  font-size: 15px;
}

.home-casino-hero {
  display: block;
  width: calc(100% - 8px);
  margin: 0 4px 10px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #111;
}

.home-casino-hero img {
  width: 100%;
  aspect-ratio: 2.05;
  object-fit: cover;
}

.home-casino-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 4px 12px;
}

.home-casino-grid button {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #101010;
}

.home-casino-grid img {
  width: 100%;
  aspect-ratio: .8;
  object-fit: cover;
}

.home-casino-grid span {
  display: block;
  padding: 5px 2px;
  color: #f4c14a;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.home-footer {
  padding: 24px 6px 120px !important;
  color: rgba(255,255,255,.62) !important;
  background: transparent !important;
}

.home-footer .partner-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 13px 16px !important;
  max-width: 760px !important;
  margin: 0 auto 18px !important;
}

.home-footer .partner-logo-grid img {
  width: 100% !important;
  height: 34px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.28)) !important;
}

.bank-logo-row {
  display: flex !important;
  justify-content: center !important;
  gap: 22px !important;
  flex-wrap: wrap !important;
  margin: 30px 0 24px !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 20px !important;
}

.home-footer p {
  max-width: 760px;
  margin: 16px auto !important;
  line-height: 1.45;
  font-size: 18px;
}

.browser-row b {
  display: inline-block;
  margin: 0 8px;
  color: rgba(255,255,255,.72);
}

@media (max-width: 520px) {
  .home-lobby {
    width: calc(100vw - 73px) !important;
    max-width: calc(100vw - 73px) !important;
    margin: 9px 4px 78px 69px !important;
    gap: 5px !important;
  }

  .home-game-section header {
    min-height: 34px !important;
    gap: 7px !important;
  }

  .home-game-section header strong {
    font-size: 18px !important;
  }

  .home-game-section header button {
    width: 36px !important;
    height: 28px !important;
  }

  .home-game-grid {
    gap: 9px 7px !important;
    padding: 0 2px 9px !important;
  }

  .m9-home-card button {
    grid-template-rows: minmax(0, 1fr) 30px !important;
    border-width: 2px !important;
    border-radius: 8px !important;
  }

  .m9-home-card small {
    font-size: 16px !important;
  }

  .m9-provider-corner {
    font-size: 9px !important;
  }

  .m9-card-badge {
    top: -9px !important;
    padding: 1px 8px !important;
    font-size: 9px !important;
  }

  .m9-home-card.is-hot::before {
    top: 24px !important;
    padding: 2px 4px !important;
    font-size: 8px !important;
  }

  .m9-jackpot-section {
    padding: 5px 2px 10px !important;
  }

  .m9-jackpot-section > strong,
  .m9-jackpot-section h2 {
    font-size: 28px !important;
  }

  .m9-jackpot-tabs {
    grid-template-columns: repeat(4, 84px) !important;
  }

  .m9-jackpot-tabs button {
    min-height: 42px !important;
    font-size: 13px !important;
  }

  .m9-table-grid {
    gap: 7px !important;
    padding: 0 2px 9px !important;
  }

  .m9-table-grid span {
    padding: 5px 3px !important;
    font-size: 12px !important;
  }

  .home-casino-grid {
    gap: 7px !important;
    padding: 0 2px 9px !important;
  }

  .home-footer .partner-logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px 12px !important;
  }

  .home-footer .partner-logo-grid img {
    height: 24px !important;
  }

  .bank-logo-row {
    gap: 12px !important;
    font-size: 14px !important;
  }

  .home-footer p {
    font-size: 12px !important;
  }
}

/* 2026-08-13 hard reference match for M9Asia mobile home. */
@media (max-width: 520px) {
  html,
  body {
    margin: 0 !important;
    background: #dfe8ff !important;
  }

  .page-web {
    min-height: 100vh !important;
    color: #fff !important;
    background-color: #1d776b !important;
    background-image:
      radial-gradient(circle at 8% 1%, transparent 0 78px, rgba(255,255,255,.10) 80px 136px, transparent 138px),
      radial-gradient(circle at 78% 4%, transparent 0 96px, rgba(0,0,0,.12) 98px 176px, transparent 178px),
      radial-gradient(circle at 92% 52%, rgba(236,218,63,.78), transparent 35%),
      linear-gradient(123deg, #19695f 0%, #258578 52%, #ecd942 100%) !important;
    background-attachment: fixed !important;
    overflow-x: hidden !important;
  }

  .welcome-strip,
  .m9-reference-menu,
  #referenceLogin {
    display: none !important;
  }

  .download-strip {
    position: relative !important;
    z-index: 2600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100vw !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 3px 3px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #e7edfb !important;
    border: 0 !important;
  }

  .download-strip[hidden] {
    display: none !important;
  }

  .download-strip > .app-pill {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) 16px !important;
    align-items: center !important;
    gap: 5px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 0 5px !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    color: #e5e5e5 !important;
    background: #333 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 2px 4px rgba(0,0,0,.35) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }

  .download-strip > .app-pill.download {
    background: #33349b !important;
  }

  .download-strip > .app-pill img {
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
  }

  .download-strip > .app-pill span {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .download-strip > .app-pill::after {
    content: "▶" !important;
    color: #bababa !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .download-strip > .strip-close {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: transparent !important;
    background: #168dd0 !important;
    box-shadow: inset 0 -2px rgba(0,0,0,.18) !important;
  }

  .download-strip > .strip-close::before,
  .m9-mobile-close::before {
    content: "×" !important;
    color: #fff !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
  }

  .page-header {
    position: relative !important;
    z-index: 1400 !important;
    display: block !important;
    width: 100vw !important;
    height: 114px !important;
    min-height: 114px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background-image: url("assets/m9/bg.png") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-color: rgba(21,73,64,.72) !important;
    box-shadow: none !important;
  }

  .page-header > .brand-logo {
    position: absolute !important;
    top: 15px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    place-items: center !important;
    width: 112px !important;
    height: 72px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 6px 9px rgba(0,0,0,.4)) !important;
  }

  .page-header > .brand-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 14px !important;
  }

  .page-header > .hamburger {
    position: absolute !important;
    top: auto !important;
    bottom: 13px !important;
    left: 20px !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(83,111,105,.75) !important;
    box-shadow: 0 5px 8px rgba(0,0,0,.34) !important;
  }

  .page-header > .hamburger span {
    display: block !important;
    width: 30px !important;
    height: 4px !important;
    margin: 3px 0 !important;
    border-radius: 99px !important;
    background: #22f1d1 !important;
    box-shadow: none !important;
  }

  .page-web .page-header > .login-btn.open-auth {
    position: absolute !important;
    top: auto !important;
    right: 14px !important;
    bottom: 17px !important;
    left: auto !important;
    transform: none !important;
    z-index: 1500 !important;
    display: grid !important;
    place-items: center !important;
    width: 94px !important;
    min-width: 94px !important;
    max-width: 94px !important;
    height: 45px !important;
    min-height: 45px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #2da392, #0b6a60) !important;
    box-shadow: 0 5px 9px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.16) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
  }

  .page-header::after {
    display: none !important;
    content: none !important;
  }

  .banner-row {
    position: relative !important;
    z-index: 900 !important;
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 141px !important;
    min-height: 141px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .banner-card:not(.main-banner) {
    display: none !important;
  }

  .banner-card.main-banner {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 141px !important;
    min-height: 141px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .banner-card.main-banner img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
  }

  .page-content {
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    padding: 0 5px 84px 74px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .feature-strip {
    position: relative !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: center !important;
    gap: 5px !important;
    width: calc(100vw - 79px) !important;
    max-width: calc(100vw - 79px) !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 0 9px 0 !important;
    padding: 4px !important;
    overflow: hidden !important;
    border-radius: 0 14px 14px 0 !important;
    background: rgba(43,109,94,.68) !important;
    box-shadow: 0 4px 9px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.14) !important;
  }

  .feature-chip {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #1e8d7c, #0d685d) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,.25), inset 0 1px rgba(255,255,255,.17), inset 0 -3px rgba(0,0,0,.13) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: .95 !important;
    text-align: left !important;
  }

  .feature-chip:first-child {
    display: none !important;
  }

  .feature-chip img {
    flex: 0 0 31px !important;
    width: 31px !important;
    height: 31px !important;
    object-fit: contain !important;
  }

  .feature-chip span {
    display: block !important;
    overflow: hidden !important;
    line-height: .95 !important;
    max-height: 24px !important;
  }

  .game-tabs {
    position: fixed !important;
    top: var(--m9-rail-top, 291px) !important;
    left: 8px !important;
    z-index: 1600 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    width: 60px !important;
    max-width: 60px !important;
    max-height: calc(100vh - 96px) !important;
    margin: 0 !important;
    padding: 0 0 88px !important;
    overflow-y: auto !important;
    overflow-x: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    scrollbar-width: none !important;
  }

  .game-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .game-tab {
    display: grid !important;
    grid-template-rows: 35px 18px !important;
    justify-items: center !important;
    align-items: center !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 4px 2px !important;
    border: 0 !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #238b7b, #0d665b) !important;
    box-shadow: 0 5px 8px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.18), inset 0 -4px rgba(0,0,0,.16) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.55) !important;
  }

  .game-tab.active {
    color: #111 !important;
    background: linear-gradient(180deg, #fff20a, #ffc917) !important;
    text-shadow: none !important;
  }

  .game-tab img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
  }

  .game-tab span {
    display: block !important;
    max-width: 56px !important;
    overflow: hidden !important;
    color: inherit !important;
    white-space: nowrap !important;
    text-overflow: clip !important;
    font-size: 13px !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .float-check {
    top: 180px !important;
    right: 6px !important;
    width: 43px !important;
    height: 43px !important;
    z-index: 1700 !important;
  }

  .view-shell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .home-lobby {
    display: grid !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 88px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .home-lobby .m9-race-panel {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 13px 6px 10px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 2px solid rgba(155,126,59,.82) !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: #252d3c !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 4px 8px rgba(0,0,0,.28) !important;
  }

  .home-lobby .m9-race-panel::before,
  .home-lobby .m9-race-panel::after {
    content: "" !important;
    position: absolute !important;
    top: 9px !important;
    display: block !important;
    width: 54px !important;
    height: 32px !important;
    opacity: .45 !important;
    background: repeating-linear-gradient(90deg, #8c7a3a 0 9px, transparent 9px 17px) !important;
    transform: skewX(18deg) !important;
  }

  .home-lobby .m9-race-panel::before {
    left: 18px !important;
  }

  .home-lobby .m9-race-panel::after {
    right: 18px !important;
    transform: skewX(-18deg) !important;
  }

  .home-lobby .m9-race-panel h2 {
    margin: 0 !important;
    padding: 0 0 11px !important;
    color: #f0d392 !important;
    background: none !important;
    text-align: center !important;
    font-size: 33px !important;
    font-style: italic !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .5px !important;
    text-shadow: 0 2px 2px rgba(0,0,0,.38) !important;
  }

  .home-lobby .race-prizes {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(130px, 1fr)) !important;
    gap: 12px !important;
    padding: 0 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  .home-lobby .race-prizes::-webkit-scrollbar {
    display: none !important;
  }

  .home-lobby .race-prizes article {
    display: grid !important;
    justify-items: center !important;
    gap: 4px !important;
    min-width: 130px !important;
    width: 130px !important;
    padding: 0 !important;
  }

  .home-lobby .race-prizes article > span {
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
  }

  .home-lobby .race-prizes button {
    position: relative !important;
    display: block !important;
    width: 130px !important;
    min-width: 130px !important;
    max-width: 130px !important;
    height: 96px !important;
    min-height: 96px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 3px solid #e2c663 !important;
    border-radius: 15px !important;
    background: #111922 !important;
    box-sizing: border-box !important;
  }

  .home-lobby .race-prizes button::before {
    content: "ⓘ" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 2 !important;
    display: grid !important;
    place-items: center !important;
    width: 25px !important;
    height: 20px !important;
    border-radius: 12px 0 8px 0 !important;
    color: #f8e8b9 !important;
    background: #c98222 !important;
    font-size: 12px !important;
  }

  .home-lobby .race-prizes button::after {
    content: "JILI" !important;
    position: absolute !important;
    top: 2px !important;
    right: 7px !important;
    z-index: 2 !important;
    color: #b78625 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-shadow: 0 1px #5d3a00 !important;
  }

  .home-lobby .race-prizes img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .home-lobby .race-prizes small {
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    width: 130px !important;
    min-height: 50px !important;
    margin: -7px 0 0 !important;
    padding: 7px 3px 4px !important;
    border-radius: 0 0 15px 15px !important;
    color: #d9d9d9 !important;
    background: #151c27 !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
  }

  .home-lobby .race-prizes b {
    display: block !important;
    margin: 2px 0 0 !important;
    color: #eed199 !important;
    font-size: 23px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .home-lobby .m9-race-panel > p {
    margin: 8px 4px 0 !important;
    color: #dedede !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.16 !important;
  }

  .home-lobby .daily-board {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    background: #203d70 !important;
    box-shadow: 0 4px 7px rgba(0,0,0,.28) !important;
  }

  .home-lobby .daily-board header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    min-height: 38px !important;
    padding: 0 !important;
    color: #fff !important;
    background: #294c86 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
  }

  .home-lobby .daily-board header span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 68px !important;
    min-height: 22px !important;
    padding: 0 4px !important;
    border-radius: 2px !important;
    color: #fff !important;
    background: #172c51 !important;
    font-family: "Courier New", monospace !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .home-lobby .board-caption {
    display: block !important;
    padding: 7px 0 !important;
    color: #d5dae4 !important;
    text-align: center !important;
    background: #1d365f !important;
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .home-lobby .daily-board article {
    display: grid !important;
    grid-template-columns: 28px 54px minmax(76px, 1fr) minmax(105px, 1fr) 30px !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 72px !important;
    padding: 5px 5px !important;
    border: 1px solid #172f59 !important;
    border-radius: 3px !important;
    color: #fff !important;
    background: #304f84 !important;
    box-sizing: border-box !important;
  }

  .home-lobby .daily-board article i {
    display: block !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 18px !important;
    font-style: normal !important;
  }

  .home-lobby .daily-board article img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 5px !important;
    object-fit: cover !important;
  }

  .home-lobby .daily-board article span {
    overflow: hidden !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 18px !important;
    font-weight: 500 !important;
  }

  .home-lobby .daily-board article b {
    display: block !important;
    overflow: hidden !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-align: right !important;
    text-overflow: ellipsis !important;
    font-size: 18px !important;
    font-weight: 500 !important;
  }

  .home-lobby .daily-board article em {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 3px !important;
    color: #fff !important;
    background: #8192ad !important;
    font-size: 22px !important;
    font-style: normal !important;
    line-height: 1 !important;
  }

  .home-game-section,
  .live-casino-section,
  .hot-table-section,
  .m9-jackpot-section,
  .home-footer {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .home-game-section header,
  .live-casino-section header,
  .hot-table-section header {
    min-height: 43px !important;
    padding: 0 0 0 2px !important;
    grid-template-columns: auto 1fr 42px !important;
    gap: 8px !important;
  }

  .home-game-section header strong,
  .live-casino-section header strong,
  .hot-table-section header strong {
    color: #ffda24 !important;
    font-size: 23px !important;
    line-height: 1 !important;
    text-shadow: 0 2px 3px rgba(0,0,0,.55) !important;
  }

  .home-game-section header button,
  .live-casino-section header button,
  .hot-table-section header button {
    width: 42px !important;
    height: 33px !important;
    border-radius: 8px !important;
    font-size: 24px !important;
  }

  .home-game-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0 9px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .m9-home-card button {
    grid-template-rows: minmax(0, 1fr) 32px !important;
    border: 2px solid #111 !important;
    border-radius: 8px !important;
  }

  .m9-home-card img {
    width: 100% !important;
    aspect-ratio: 1 !important;
    height: auto !important;
    object-fit: cover !important;
  }

  .m9-home-card small {
    min-height: 32px !important;
    color: #d8a13a !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .m9-card-badge {
    top: -10px !important;
    font-size: 10px !important;
  }

  .m9-home-card.is-hot::before {
    top: 26px !important;
    font-size: 9px !important;
  }

  .bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 2100 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100vw !important;
    height: 75px !important;
    min-height: 75px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    background: linear-gradient(180deg, #178878, #075d54) !important;
    box-shadow: 0 -4px 10px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.14) !important;
  }

  .bottom-nav button[data-page="home"] {
    display: none !important;
  }

  .bottom-nav button {
    display: grid !important;
    grid-template-rows: 38px 20px !important;
    place-items: center !important;
    height: 75px !important;
    min-height: 75px !important;
    padding: 5px 2px 3px !important;
    border: 0 !important;
    color: #fff !important;
    background: transparent !important;
    font-size: 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.45) !important;
  }

  .bottom-nav button::before {
    display: block !important;
    font-size: 32px !important;
    line-height: 1 !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)) !important;
  }

  .bottom-nav button[data-page="promotion"]::before { content: "🎁"; }
  .bottom-nav button[data-page="cashin"]::before { content: "▭"; font-size: 36px !important; }
  .bottom-nav button[data-page="messages"]::before { content: "✉"; }

  .bottom-nav button::after {
    display: block !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
  }

  .bottom-nav button[data-page="promotion"]::after { content: "Promotion"; }
  .bottom-nav button[data-page="cashin"]::after { content: "ငွေသွင်း"; }
  .bottom-nav button[data-page="messages"]::after { content: "Messages"; }
}

/* Final M9Asia 100% reference pass: this must stay at EOF. */
@media (max-width: 520px) {
  .page-content {
    padding-left: 74px !important;
    padding-right: 5px !important;
    overflow: visible !important;
  }

  .banner-row {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -74px !important;
    margin-right: -5px !important;
    padding: 0 !important;
  }

  .banner-card.main-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }

  .feature-strip,
  .view-shell,
  .home-lobby {
    width: calc(100vw - 79px) !important;
    max-width: calc(100vw - 79px) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .feature-strip {
    height: 47px !important;
    min-height: 47px !important;
    margin-top: 0 !important;
    margin-bottom: 9px !important;
  }

  .feature-chip {
    height: 39px !important;
    min-height: 39px !important;
    font-size: 11px !important;
  }

  .game-tabs {
    top: var(--m9-rail-top, 291px) !important;
    width: 60px !important;
    max-width: 60px !important;
  }

  .home-lobby .m9-race-panel {
    min-height: 230px !important;
    padding: 11px 7px 9px !important;
    border-radius: 14px !important;
  }

  .home-lobby .m9-race-panel h2 {
    font-size: 32px !important;
    padding-bottom: 10px !important;
  }

  .home-lobby .race-prizes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 0 7px !important;
    overflow: visible !important;
  }

  .home-lobby .race-prizes article {
    width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .home-lobby .race-prizes article > span {
    font-size: 11px !important;
  }

  .home-lobby .race-prizes button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 1.28 / 1 !important;
    border-radius: 14px !important;
  }

  .home-lobby .race-prizes small {
    width: 100% !important;
    min-height: 44px !important;
    font-size: 11px !important;
  }

  .home-lobby .race-prizes b {
    font-size: 19px !important;
  }

  .home-lobby .m9-race-panel > p {
    margin-top: 8px !important;
    font-size: 13px !important;
  }

  .home-lobby .daily-board {
    min-height: 202px !important;
    border-radius: 8px !important;
  }

  .home-lobby .daily-board header {
    min-height: 39px !important;
    font-size: 17px !important;
  }

  .home-lobby .board-caption {
    padding: 8px 0 !important;
    font-size: 16px !important;
  }

  .home-lobby .daily-board article {
    grid-template-columns: 24px 47px minmax(62px, 1fr) minmax(86px, 1fr) 25px !important;
    min-height: 52px !important;
    gap: 5px !important;
    padding: 3px 4px !important;
  }

  .home-lobby .daily-board article img {
    width: 45px !important;
    height: 45px !important;
  }

  .home-lobby .daily-board article span,
  .home-lobby .daily-board article b {
    font-size: 15px !important;
  }

  .home-lobby .daily-board article em {
    width: 24px !important;
    height: 24px !important;
    font-size: 19px !important;
  }

  .bottom-nav button[data-page="promotion"]::before { content: "Promo" !important; font-size: 18px !important; font-weight: 900 !important; }
  .bottom-nav button[data-page="cashin"]::before { content: "Cash" !important; font-size: 18px !important; font-weight: 900 !important; }
  .bottom-nav button[data-page="messages"]::before { content: "Mail" !important; font-size: 18px !important; font-weight: 900 !important; }

  .download-strip > .app-pill::after { content: ">" !important; }
  .download-strip > .strip-close::before,
  .m9-mobile-close::before { content: "x" !important; }
  .home-lobby .race-prizes button::before { content: "i" !important; }
}

/* Absolute EOF sizing lock for M9 reference viewport. */
@media (max-width: 520px) {
  .page-content > .view-shell,
  .page-content > .view-shell > .home-lobby,
  .page-content > .view-shell > .home-lobby > .m9-race-panel,
  .page-content > .view-shell > .home-lobby > .daily-board,
  .page-content > .view-shell > .home-lobby > .home-game-section,
  .page-content > .view-shell > .home-lobby > .m9-jackpot-section,
  .page-content > .view-shell > .home-lobby > .home-footer {
    width: calc(100vw - 79px) !important;
    max-width: calc(100vw - 79px) !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .page-content > .view-shell > .home-lobby > .m9-race-panel,
  .page-content > .view-shell > .home-lobby > .daily-board {
    overflow: hidden !important;
  }

  .home-lobby .race-prizes {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 0 3px !important;
  }

  .home-lobby .race-prizes article {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .home-lobby .race-prizes small {
    min-height: 40px !important;
    padding: 5px 1px 3px !important;
    overflow: hidden !important;
  }

  .home-lobby .race-prizes b {
    font-size: 15px !important;
    letter-spacing: 0 !important;
  }

  .bottom-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .bottom-nav button {
    grid-template-rows: 34px 18px !important;
    gap: 3px !important;
    font-size: 0 !important;
  }

  .bottom-nav button::before {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 32px !important;
    color: transparent !important;
    font-size: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)) !important;
  }

  .bottom-nav button[data-page="promotion"]::before {
    content: "" !important;
    background-image: linear-gradient(#fff,#fff), linear-gradient(#fff,#fff), linear-gradient(#fff,#fff);
    background-size: 30px 22px, 5px 31px, 34px 5px !important;
  }

  .bottom-nav button[data-page="cashin"]::before {
    content: "" !important;
    border: 4px solid #fff !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
    background-image: linear-gradient(#fff,#fff);
    background-size: 13px 4px !important;
    background-position: right 4px center !important;
  }

  .bottom-nav button[data-page="messages"]::before {
    content: "" !important;
    border: 4px solid #fff !important;
    border-radius: 3px !important;
    box-sizing: border-box !important;
    background-image:
      linear-gradient(35deg, transparent 45%, #fff 48%, #fff 55%, transparent 58%),
      linear-gradient(-35deg, transparent 45%, #fff 48%, #fff 55%, transparent 58%);
  }

  .bottom-nav button::after {
    font-size: 13px !important;
  }
}

/* Race/Daily exact scale correction from the supplied original crop. */
@media (max-width: 520px) {
  .home-lobby {
    gap: 9px !important;
  }

  .page-content > .view-shell > .home-lobby > .m9-race-panel {
    height: 202px !important;
    min-height: 202px !important;
    max-height: 202px !important;
    padding: 7px 7px 6px !important;
    border-radius: 13px !important;
  }

  .home-lobby .m9-race-panel h2 {
    height: 31px !important;
    padding: 0 0 4px !important;
    font-size: 29px !important;
    line-height: 29px !important;
  }

  .home-lobby .m9-race-panel::before,
  .home-lobby .m9-race-panel::after {
    top: 4px !important;
    height: 25px !important;
  }

  .home-lobby .race-prizes {
    height: 118px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    padding: 0 18px !important;
    align-items: start !important;
  }

  .home-lobby .race-prizes article {
    display: grid !important;
    grid-template-rows: 15px 67px 36px !important;
    gap: 0 !important;
    height: 118px !important;
    min-height: 118px !important;
  }

  .home-lobby .race-prizes article > span {
    height: 15px !important;
    font-size: 11px !important;
    line-height: 15px !important;
  }

  .home-lobby .race-prizes button {
    height: 67px !important;
    min-height: 67px !important;
    max-height: 67px !important;
    aspect-ratio: auto !important;
    border-width: 2px !important;
    border-radius: 12px !important;
  }

  .home-lobby .race-prizes button::before {
    width: 22px !important;
    height: 19px !important;
  }

  .home-lobby .race-prizes small {
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin-top: -4px !important;
    padding: 5px 1px 2px !important;
    border-radius: 0 0 12px 12px !important;
    font-size: 11px !important;
    line-height: 11px !important;
  }

  .home-lobby .race-prizes b {
    margin-top: 2px !important;
    font-size: 16px !important;
    line-height: 17px !important;
  }

  .home-lobby .m9-race-panel > p {
    height: 32px !important;
    margin: 7px 2px 0 !important;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 16px !important;
  }

  .page-content > .view-shell > .home-lobby > .daily-board {
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
  }

  .home-lobby .daily-board header {
    min-height: 37px !important;
    height: 37px !important;
    font-size: 17px !important;
  }

  .home-lobby .board-caption {
    height: 34px !important;
    padding: 8px 0 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
  }

  .home-lobby .daily-board article {
    min-height: 46px !important;
    height: 46px !important;
    grid-template-columns: 24px 42px minmax(58px, 1fr) minmax(80px, 1fr) 24px !important;
  }

  .home-lobby .daily-board article img {
    width: 40px !important;
    height: 40px !important;
  }

  .home-lobby .daily-board article span,
  .home-lobby .daily-board article b {
    font-size: 14px !important;
  }
}

/* Pixel-match lock: use the supplied M9 race artwork and keep API click targets alive. */
@media (max-width: 520px) {
  .page-content > .view-shell > .home-lobby > .m9-race-panel {
    height: 198px !important;
    min-height: 198px !important;
    max-height: 198px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 13px !important;
    background: url("assets/m9/reference-race-win.png") center / 100% 100% no-repeat !important;
    box-shadow: none !important;
  }

  .home-lobby .m9-race-panel::before,
  .home-lobby .m9-race-panel::after {
    display: none !important;
    content: none !important;
  }

  .home-lobby .m9-race-panel h2,
  .home-lobby .race-prizes article > span,
  .home-lobby .race-prizes small,
  .home-lobby .m9-race-panel > p,
  .home-lobby .race-prizes img,
  .home-lobby .race-prizes button::before,
  .home-lobby .race-prizes button::after {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .home-lobby .race-prizes {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .home-lobby .race-prizes article {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .home-lobby .race-prizes button {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    opacity: 0 !important;
    pointer-events: auto !important;
  }

  .bottom-nav button::before {
    content: "" !important;
    width: 36px !important;
    height: 36px !important;
    border: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 33px 33px !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)) !important;
  }

  .bottom-nav button[data-page="promotion"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 20h32v22H8z'/%3E%3Cpath d='M6 14h36v6H6zM24 14v28M16 14c-4-6-2-10 3-9 4 1 5 5 5 9M32 14c4-6 2-10-3-9-4 1-5 5-5 9'/%3E%3C/svg%3E") !important;
  }

  .bottom-nav button[data-page="cashin"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 14h31a5 5 0 0 1 5 5v18a5 5 0 0 1-5 5H7z'/%3E%3Cpath d='M7 14 32 6v8M35 29h8'/%3E%3C/svg%3E") !important;
  }

  .bottom-nav button[data-page="messages"]::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h36v26H6z'/%3E%3Cpath d='m6 14 18 14 18-14'/%3E%3C/svg%3E") !important;
  }

  .m9-home-card small {
    display: grid !important;
    place-items: center !important;
    min-height: 38px !important;
    padding: 4px 5px !important;
    background: #111 !important;
    font-size: 0 !important;
  }

  .m9-home-card small img {
    display: block !important;
    width: auto !important;
    max-width: 76px !important;
    height: auto !important;
    max-height: 25px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
  }
}

/* M9Asia reference geometry lock: wider content rail and sticky app controls. */
@media (max-width: 520px) {
  .page-web {
    padding-top: 42px !important;
  }

  .download-strip {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    z-index: 3200 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 34px !important;
    gap: 4px !important;
    height: 42px !important;
    padding: 3px !important;
  }

  .download-strip::before {
    content: "Login To Download" !important;
    position: absolute !important;
    top: 4px !important;
    left: 50% !important;
    z-index: 4 !important;
    display: grid !important;
    place-items: center !important;
    width: 138px !important;
    height: 31px !important;
    border-radius: 6px !important;
    color: #fff !important;
    background: rgba(0,0,0,.88) !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
  }

  .download-strip > .app-pill {
    flex: none !important;
    width: auto !important;
    height: 36px !important;
    grid-template-columns: 31px minmax(0, 1fr) 16px !important;
    border-radius: 7px !important;
    font-size: 17px !important;
  }

  .download-strip > .app-pill.webapp::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -6px !important;
    z-index: 3 !important;
    width: 25px !important;
    height: 25px !important;
    border-radius: 4px !important;
    background: #fff04a !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
    clip-path: polygon(37% 0, 82% 0, 58% 35%, 88% 35%, 31% 100%, 45% 54%, 17% 54%) !important;
  }

  .download-strip > .app-pill img {
    width: 31px !important;
    height: 31px !important;
  }

  .download-strip > .strip-close {
    width: 34px !important;
    height: 34px !important;
  }

  .page-content {
    padding-left: 72px !important;
    padding-right: 3px !important;
  }

  .banner-row {
    margin-left: -72px !important;
    margin-right: -3px !important;
  }

  .feature-strip,
  .view-shell,
  .home-lobby,
  .page-content > .view-shell,
  .page-content > .view-shell > .home-lobby,
  .page-content > .view-shell > .home-lobby > .m9-race-panel,
  .page-content > .view-shell > .home-lobby > .daily-board,
  .page-content > .view-shell > .home-lobby > .home-game-section,
  .page-content > .view-shell > .home-lobby > .m9-jackpot-section,
  .page-content > .view-shell > .home-lobby > .home-footer {
    width: calc(100vw - 75px) !important;
    max-width: calc(100vw - 75px) !important;
  }

  .feature-strip {
    position: sticky !important;
    top: 42px !important;
    z-index: 2300 !important;
  }

  .game-tabs {
    left: 4px !important;
    width: 64px !important;
    max-width: 64px !important;
    gap: 10px !important;
  }

  .game-tabs > .game-tab,
  .game-tabs > button.game-tab {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    grid-template-rows: 47px 19px !important;
    padding: 4px 2px 3px !important;
    border-radius: 13px !important;
    font-size: 17px !important;
  }

  .game-tabs > .game-tab img,
  .game-tabs > button.game-tab img {
    width: 43px !important;
    height: 43px !important;
  }

  .game-tabs > .game-tab span,
  .game-tabs > button.game-tab span {
    max-width: 60px !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  .game-tabs > .game-tab.active,
  .game-tabs > button.game-tab.active {
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;
    grid-template-rows: 51px 20px !important;
    border-radius: 14px !important;
  }

  .game-tabs > .game-tab.active img,
  .game-tabs > button.game-tab.active img {
    width: 51px !important;
    height: 51px !important;
  }

  .page-content > .view-shell > .home-lobby > .m9-race-panel {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}

/* Screenshot-derived M9 top chrome. Visible artwork is the reference crop; controls remain clickable. */
@media (max-width: 520px) {
  .download-strip {
    height: 43px !important;
    min-height: 43px !important;
    padding: 0 !important;
    background: url("assets/m9/reference-download-strip.png") center / 100% 100% no-repeat !important;
  }

  .download-strip::before {
    display: none !important;
    content: none !important;
  }

  .download-strip > .app-pill,
  .download-strip > .strip-close {
    opacity: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .page-web {
    padding-top: 43px !important;
  }

  .page-header {
    height: 107px !important;
    min-height: 107px !important;
    background: url("assets/m9/reference-header.png") center / 100% 100% no-repeat !important;
  }

  .page-header > .brand-logo {
    top: 18px !important;
    width: 93px !important;
    height: 68px !important;
    opacity: 0 !important;
  }

  .page-header > .hamburger {
    top: auto !important;
    bottom: 14px !important;
    left: 20px !important;
    opacity: 0 !important;
  }

  .page-web .page-header > .login-btn.open-auth {
    right: 12px !important;
    bottom: 17px !important;
    width: 96px !important;
    height: 45px !important;
    opacity: 0 !important;
  }

  .banner-row {
    height: 139px !important;
    min-height: 139px !important;
    background: url("assets/m9/reference-banner.png") center / 100% 100% no-repeat !important;
  }

  .banner-card.main-banner {
    height: 139px !important;
    min-height: 139px !important;
    opacity: 0 !important;
  }

  .float-check {
    top: 214px !important;
  }

  .feature-strip {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    z-index: 1200 !important;
    margin: 0 0 9px 0 !important;
  }

  .view-shell {
    margin-top: 0 !important;
  }

  body.m9-scrolled .feature-strip {
    position: fixed !important;
    top: 43px !important;
    left: 72px !important;
    z-index: 2300 !important;
    margin: 0 !important;
  }

  body.m9-scrolled .view-shell {
    margin-top: 56px !important;
  }

  .float-check {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
