/* Shared across every NightBamboo page. Deliberately isolated from page themes. */
html body > header.yzh-global-header {
  position: sticky;
  inset: 0 auto auto;
  z-index: 9;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #E6E1EA;
  border-radius: 0;
  background: #fff;
  color: #201D24;
  box-shadow: none;
  font: 400 14px/1.5 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  text-align: left;
  letter-spacing: normal;
  isolation: isolate;
}
.yzh-global-header *, .yzh-global-header *::before, .yzh-global-header *::after { box-sizing: border-box; }
html body > .yzh-global-header .yzh-global-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 96px));
  max-width: none;
  min-height: 84px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
html body > .yzh-global-header .yzh-global-header__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #201D24;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}
html body > .yzh-global-header .yzh-global-header__wordmark {
  display: inline;
  margin: 0;
  padding: 0;
  color: #201D24;
  font: 750 27px/1 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: -.04em;
}
html body > .yzh-global-header .yzh-global-header__name {
  display: inline;
  margin: 0;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 1px solid #E6E1EA;
  color: #201D24;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
}
html body > .yzh-global-header .yzh-global-header__nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  width: auto;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}
html body > .yzh-global-header .yzh-global-header__nav a {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #625D69;
  background: transparent;
  box-shadow: none;
  font: 400 14px/1.5 "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transform: none;
  transition: none;
}
html body > .yzh-global-header .yzh-global-header__nav .yzh-global-header__player-link {
  padding-inline: 18px;
  color: #201D24;
  background: #E0CEE9;
}
html body > .yzh-global-header .yzh-global-header__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
html body > .yzh-global-header .yzh-global-header__nav .yzh-global-header__player-link:hover { background: #F4C2F4; }
html body > .yzh-global-header .yzh-global-header__account {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  width: auto;
  margin: 0;
  padding: 0;
}
html body > .yzh-global-header .yzh-global-header__account .avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #E6E1EA;
  border-radius: 7px;
  background: #F5F3F7;
  color: #201D24;
  box-shadow: none;
  cursor: pointer;
}
html body > .yzh-global-header .yzh-global-header__account :is(.pixel-face, .player-image) {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 3px;
  object-fit: cover;
  image-rendering: pixelated;
}
html body > .yzh-global-header :is(a, button):focus-visible { outline: 2px solid #201D24; outline-offset: 4px; }
@media (max-width: 1050px) {
  html body > .yzh-global-header .yzh-global-header__inner { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  html body > .yzh-global-header .yzh-global-header__inner { width: calc(100% - 40px); min-height: 70px; gap: 12px; }
  html body > .yzh-global-header .yzh-global-header__brand { gap: 10px; }
  html body > .yzh-global-header .yzh-global-header__wordmark { font-size: 24px; }
  html body > .yzh-global-header .yzh-global-header__name { padding-left: 10px; font-size: 12px; }
  html body > .yzh-global-header .yzh-global-header__nav { gap: 12px; }
  html body > .yzh-global-header .yzh-global-header__nav a { gap: 10px; font-size: 12px; }
  html body > .yzh-global-header .yzh-global-header__nav .yzh-global-header__player-link { padding-inline: 12px; }
  html body > .yzh-global-header .yzh-global-header__account .avatar { width: 34px; height: 34px; }
}
@media (max-width: 400px) {
  html body > .yzh-global-header .yzh-global-header__brand { gap: 0; }
  html body > .yzh-global-header:not(.yzh-global-header--game) .yzh-global-header__name { display: none; }
}
@media (max-width: 360px) {
  html body > .yzh-global-header .yzh-global-header__inner { width: calc(100% - 32px); gap: 10px; }
  html body > .yzh-global-header .yzh-global-header__nav { gap: 10px; }
  html body > .yzh-global-header .yzh-global-header__nav .yzh-global-header__player-link { padding-inline: 10px; }
  html body > .yzh-global-header .yzh-global-header__account .avatar { width: 32px; height: 32px; }
}

/* Game pages: brand and avatar only; the brand returns to the games hub. */
html body > .yzh-global-header.yzh-global-header--game .yzh-global-header__account { margin-left: auto; }

/* Dark pages: same layout on the 深灰黑 background. */
html body > header.yzh-global-header.yzh-global-header--dark {
  border-bottom-color: rgba(245, 243, 247, .1);
  background: #201D24;
  color: #F5F3F7;
}
html body > .yzh-global-header.yzh-global-header--dark :is(.yzh-global-header__brand, .yzh-global-header__wordmark, .yzh-global-header__name) { color: #F5F3F7; }
html body > .yzh-global-header.yzh-global-header--dark .yzh-global-header__name { border-left-color: rgba(245, 243, 247, .2); }
html body > .yzh-global-header.yzh-global-header--dark .yzh-global-header__nav a { color: rgba(245, 243, 247, .74); }
html body > .yzh-global-header.yzh-global-header--dark .yzh-global-header__nav .yzh-global-header__player-link { color: #201D24; background: #E0CEE9; }
html body > .yzh-global-header.yzh-global-header--dark .yzh-global-header__nav .yzh-global-header__player-link:hover { background: #F4C2F4; }
html body > .yzh-global-header.yzh-global-header--dark .yzh-global-header__account .avatar { border-color: rgba(245, 243, 247, .16); background: rgba(245, 243, 247, .06); color: #F5F3F7; }
html body > .yzh-global-header.yzh-global-header--dark :is(a, button):focus-visible { outline-color: #F5F3F7; }
