/* Public brand masthead. These selectors never target game or dialog headers. */
html body header.ng-brand-header {
  position: relative;
  isolation: isolate;
  display: block;
  box-sizing: border-box;
  width: min(1180px, calc(100% - 28px));
  min-height: 70px;
  margin: max(12px, env(safe-area-inset-top, 0px)) auto 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ng-shell-line, #e4eaf2);
  border-radius: 22px;
  color: var(--ng-shell-text, #182337);
  background: var(--ng-shell-card-bg, #fff);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ng-shell-text) 7%, transparent);
  top: auto;
  z-index: 1;
}
html body .ng-brand-header > .ng-brand-header__row {
  position: relative;
  z-index: 2;
  display: flex;
  box-sizing: border-box;
  min-height: 68px;
  width: 100%;
  padding: 7px 18px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
html body .ng-brand-header .brand {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0;
}
html body .ng-brand-header .brand-logo {
  display: block;
  width: min(252px, 100%);
  max-width: 252px;
  height: 49px;
  object-fit: contain;
  object-position: left center;
  filter: none;
}
html body .ng-brand-header .brand-logo[hidden],
html body .ng-brand-header [hidden] { display: none !important; }
.ng-brand-header__name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
html body header.ng-brand-header::before { content: none; display: none; }
html body header.ng-brand-header::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  display: block;
  background: linear-gradient(90deg, transparent, var(--ng-shell-primary), var(--ng-shell-accent), transparent);
  opacity: .65;
  animation: none;
  pointer-events: none;
}
html body .ng-brand-header .site-share-button {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin: 0;
}
.ng-brand-header .site-share-button > .site-share-icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
}
/* Keep the semantic page name without retaining the superseded title card. */
html body .ng-page-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
body.ng-hub-page > .ng-brand-header + .ng-hub-shell { padding-top: 0; }
html.lottery-embed .ng-brand-header,
body:is(.gh-player-open, .trial-game-open, .collector-detail-open, .ng-fullscreen-experience) .ng-brand-header { display: none !important; }
@media (max-width: 720px) {
  html body header.ng-brand-header {
    width: calc(100% - 24px);
    min-height: 58px;
    margin-top: max(10px, env(safe-area-inset-top, 0px));
    border-radius: 20px;
  }
  html body .ng-brand-header > .ng-brand-header__row {
    min-height: 56px;
    padding: 6px 12px;
    gap: 10px;
  }
  html body .ng-brand-header .brand-logo {
    width: min(189px, 100%);
    max-width: 189px;
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ng-brand-header, .ng-brand-header * { transition: none !important; }
}
