/* v3.10.109: embedded portal identity and compact mobile shell. Visual only. */
.header-brand-home {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: min(34vw, 360px) !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 2px 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.header-brand-home::before,
.header-brand-home::after { display: none !important; content: none !important; }
.header-brand-home:hover,
.header-brand-home:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  filter: brightness(1.06) !important;
}
.header-brand-home:focus-visible { outline: 2px solid var(--theme-accent, #e7c15b) !important; outline-offset: 4px !important; }
.header-brand-mark,
.header-brand-mark.has-logo {
  flex: 0 0 52px !important;
  width: 52px !important;
  height: 52px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.header-brand-mark img,
.header-brand-mark.has-logo img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: contain !important;
}
.header-brand-copy { gap: 1px !important; min-width: 0 !important; }
.header-brand-copy strong {
  max-width: 100% !important;
  font-size: clamp(17px, 1.75vw, 23px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.header-brand-copy small { font-size: 10px !important; line-height: 1.2 !important; }

@media (max-width: 1080px) {
  .topbar { flex-wrap: nowrap !important; }
  .header-brand-home { max-width: min(39vw, 300px) !important; }
  .header-brand-mark, .header-brand-mark.has-logo { flex-basis: 46px !important; width: 46px !important; height: 46px !important; }
  .header-brand-copy strong { font-size: clamp(16px, 2vw, 20px) !important; }
}

@media (max-width: 860px) {
  html, body { width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }
  .portal, .main-shell, .view, .panel, .modal-card { min-width: 0 !important; max-width: 100% !important; }
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-areas: "brand utility" !important;
    min-height: 58px !important;
    gap: 6px !important;
    padding: 6px 8px !important;
    flex-wrap: nowrap !important;
  }
  .header-brand-home {
    grid-area: brand !important;
    justify-self: start !important;
    width: auto !important;
    max-width: min(52vw, 250px) !important;
    gap: 7px !important;
    padding: 0 !important;
  }
  .header-brand-mark, .header-brand-mark.has-logo {
    flex-basis: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
  .header-brand-copy strong { max-width: 39vw !important; font-size: clamp(13px, 4vw, 17px) !important; }
  .header-brand-copy small { display: none !important; }
  .topbar-title, .mobile-menu-button, .topbar-sidebar-toggle { display: none !important; }
  .topbar-actions {
    grid-area: utility !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex-wrap: nowrap !important;
  }
  .topbar-wallet-cluster { width: auto !important; max-width: min(36vw, 132px) !important; }
  .topbar-wallet-card, .game-wallet-balance-card.topbar-wallet-card {
    min-height: 38px !important;
    padding: 4px 6px !important;
    gap: 4px !important;
    border-radius: 10px !important;
  }
  .topbar-wallet-card .game-wallet-icon { display: none !important; }
  .topbar-wallet-card .game-wallet-copy span { font-size: 7px !important; line-height: 1 !important; }
  .topbar-wallet-card .game-wallet-copy strong { max-width: 64px !important; font-size: 16px !important; line-height: 1.1 !important; }
  .wallet-refresh-button { flex-basis: 26px !important; width: 26px !important; height: 26px !important; min-height: 26px !important; padding: 5px !important; }
  .notification-button { width: 38px !important; height: 38px !important; min-height: 38px !important; padding: 8px !important; }

  .content { width: 100% !important; padding: 9px 8px calc(86px + env(safe-area-inset-bottom)) !important; }
  .page-heading, .view-heading { gap: 8px !important; margin-bottom: 10px !important; }
  .page-heading h1, .page-heading h2, .view-heading h1, .view-heading h2 { font-size: clamp(19px, 6vw, 24px) !important; }
  .page-heading p, .view-heading p { font-size: 11px !important; }
  .panel, .stat-card, .detail-card, .security-overview-card { padding: 11px !important; border-radius: 12px !important; }
  .panel-grid, .stats-grid, .form-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .table-wrap { width: 100% !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
  .modal { padding: 8px !important; }
  .modal-card, .wallet-actions-modal-card, .account-center-modal-card { width: calc(100vw - 16px) !important; max-height: calc(100dvh - 16px) !important; padding: 11px !important; border-radius: 14px !important; }
  .button { min-height: 40px !important; white-space: normal !important; }
  .mobile-bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom)) !important;
  }
  .mobile-bottom-nav-button { min-height: 50px !important; padding: 5px 3px !important; font-size: 9.5px !important; border-radius: 11px !important; }
  .mobile-bottom-nav-button svg { width: 18px !important; height: 18px !important; }
  .support-chat-launcher { right: 9px !important; bottom: calc(70px + env(safe-area-inset-bottom)) !important; max-width: calc(100vw - 18px) !important; }
}

@media (max-width: 430px) {
  .header-brand-home { max-width: 47vw !important; }
  .header-brand-copy strong { max-width: 33vw !important; font-size: 13px !important; }
  .header-brand-mark, .header-brand-mark.has-logo { flex-basis: 34px !important; width: 34px !important; height: 34px !important; }
  .topbar-wallet-cluster { max-width: 112px !important; }
  .topbar-wallet-card .game-wallet-copy span { display: none !important; }
  .topbar-wallet-card .game-wallet-copy strong { max-width: 55px !important; font-size: 15px !important; }
  .notification-button { width: 35px !important; height: 35px !important; min-height: 35px !important; }
}
