.bopbox-language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, 44px);
  flex: 0 0 auto;
  gap: 2px;
  min-width: 92px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid rgba(6, 9, 63, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 24px rgba(6, 9, 63, 0.08);
}

.bopbox-language-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #06093f;
  font: 800 0.78rem/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.bopbox-language-switch button:hover {
  background: rgba(6, 9, 63, 0.08);
}

.bopbox-language-switch button.active {
  background: #06093f;
  color: #ffffff;
}

.bopbox-language-switch button:active {
  transform: scale(0.97);
}

.bopbox-language-switch button:focus-visible {
  outline: 3px solid #00c8f5;
  outline-offset: 2px;
}

html[lang="zh-CN"] body,
html[lang="zh-CN"] button,
html[lang="zh-CN"] input,
html[lang="zh-CN"] textarea {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

html[lang="zh-CN"] .hero h1 {
  max-width: 10em;
  font-size: clamp(3rem, 6.8vw, 6.5rem);
  line-height: 1.03;
}

html[lang="zh-CN"] .page-shell h1,
html[lang="zh-CN"] .about-page h1,
html[lang="zh-CN"] .playpass-page h1 {
  line-height: 1.08;
}

html[lang="zh-CN"] .site-header nav button {
  font-weight: 800;
}

html[lang="zh-CN"] .primary-action,
html[lang="zh-CN"] .secondary-action,
html[lang="zh-CN"] .playpass-buy {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .site-header {
    gap: 10px;
  }

  .site-header nav button {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 940px) {
  .site-header {
    position: sticky;
    padding-top: 14px;
  }

  .site-header .bopbox-language-switch {
    position: absolute;
    top: 22px;
    right: clamp(18px, 4vw, 56px);
    z-index: 2;
  }

  .site-header nav {
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .site-header .brand-lockup img {
    width: 148px;
    height: 46px;
  }

  .site-header .bopbox-language-switch {
    top: 18px;
    right: 14px;
  }

  html[lang="zh-CN"] .hero h1 {
    font-size: clamp(2.85rem, 13vw, 4.1rem);
  }
}

@media (prefers-color-scheme: dark) {
  .bopbox-language-switch {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(17, 22, 92, 0.92);
  }

  .bopbox-language-switch button {
    color: #ffffff;
  }

  .bopbox-language-switch button:hover {
    background: rgba(255, 255, 255, 0.14);
  }

  .bopbox-language-switch button.active {
    background: #ffffff;
    color: #06093f;
  }
}

