/* BSC Poker X v11.0.2 — Header auth controls + clean branding */

/* Critical: premium nav rules must never override application hidden state. */
.hidden,
[hidden],
body.bscx-v11 .hidden,
body.bscx-v11 .nav .hidden,
body.bscx-v11 button.hidden,
body.bscx-v11 a.hidden,
body.bscx-v11 .btn.hidden,
body.bscx-v11 .chip.hidden {
  display: none !important;
}

/* Only one clean product identity — no patch/version pills in the menu. */
.v11-version,
[class*="version-badge"],
[data-bsc-version-badge],
.bscx-header-version,
.bscx-release-pill {
  display: none !important;
}

body.bscx-v11 .brand {
  min-width: 210px !important;
}

body.bscx-v11 .brand h1 {
  white-space: normal !important;
}

body.bscx-v11 .nav {
  isolation: isolate;
}

body.bscx-v11 .nav > * {
  flex: 0 0 auto;
}

/* Logged-in account controls stay usable and visually separated. */
body.bscx-v11 .nav #connectWallet,
body.bscx-v11 .nav #logout,
body.bscx-v11 .nav #openAuth {
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
}

body.bscx-v11 .nav #connectWallet {
  max-width: min(330px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 920px) {
  body.bscx-v11 .topbar-inner {
    display: grid !important;
    grid-template-columns: minmax(170px, .8fr) minmax(0, 1.8fr) !important;
  }
  body.bscx-v11 .nav {
    width: 100% !important;
  }
}

@media (max-width: 640px) {
  body.bscx-v11 .topbar-inner {
    grid-template-columns: 1fr !important;
  }
  body.bscx-v11 .brand {
    min-width: 0 !important;
  }
  body.bscx-v11 .nav {
    justify-content: flex-start !important;
  }
  body.bscx-v11 .nav #connectWallet {
    max-width: 100%;
  }
}
