/* Shared hosted navigation; kept outside immutable widgets/core. */
html .masthead .hosted-game-switcher { position: relative; z-index: 30; min-width: 0; }
html .masthead .hosted-game-switcher :is(button, a) { -webkit-tap-highlight-color: transparent; }
html .masthead .hosted-game-switcher > button.brand {
  display: inline-flex; align-items: center; gap: 10px;
  width: auto; min-height: 44px; margin: 0; padding: 4px 0;
  border: 0; border-radius: 8px; background: transparent;
  color: #f4f4f5; font: inherit; font-size: 17px; font-weight: 800;
  letter-spacing: -.4px; line-height: 1.2; cursor: pointer; box-shadow: none;
}
html .masthead .hosted-game-switcher .brand-mark { background: #ffd43b; color: #101114; flex-shrink: 0; }
html .masthead .hosted-game-switcher > button::after {
  content: '⌄'; color: #ffd43b; font-size: 14px; line-height: 1;
}
html .masthead .hosted-game-switcher > button:hover,
html .masthead .hosted-game-switcher > button[aria-expanded="true"] { color: #ffd43b; }
html .masthead .hosted-game-switcher :focus-visible { outline: 2px solid #ffd43b; outline-offset: 3px; }
html .masthead #hosted-game-list[hidden] { display: none; }
html .masthead #hosted-game-list {
  position: absolute; top: 100%; left: 0; width: min(320px, calc(100vw - 48px));
  box-sizing: border-box; max-height: min(480px, 65dvh); overflow-y: auto;
  overscroll-behavior: contain; scrollbar-color: #ffd43b #202124;
  padding: 10px; border: 1px solid #665622; border-top: 3px solid #ffd43b;
  border-radius: 0 12px 12px 12px; background: #18191c; color: #f4f4f5;
  box-shadow: 0 18px 48px #0009; text-align: left;
}
html .masthead #hosted-game-list .hosted-game-switcher-title {
  display: flex; justify-content: space-between; margin: 0; padding: 8px 12px 12px;
  color: #ffd43b; font-size: 14px; font-weight: 700; line-height: 1.4;
}
html .masthead #hosted-game-list a {
  display: block; box-sizing: border-box; min-height: 44px; padding: 11px 12px;
  border-radius: 6px; color: #f4f4f5; background: transparent;
  font-size: 15px; font-weight: 500; line-height: 22px; text-decoration: none;
}
html .masthead #hosted-game-list a:hover,
html .masthead #hosted-game-list a:focus-visible { color: #ffd43b; background: #302b1b; }
@media (max-width: 600px) {
  html .masthead .hosted-game-switcher > button.brand { font-size: 15px; }
}
