/* One mobile entry point for account and secondary site actions. */
.site-menu-toggle { display: none; }
:root .site-menu-dialog {
  --sm-surface: var(--ui-surface, var(--surface, #fffdf9));
  --sm-ink: var(--ui-ink, var(--ink, #302937));
  --sm-muted: var(--ui-muted, var(--muted, #786b7f));
  --sm-line: var(--ui-line, var(--line, #e6dadf));
  --sm-accent: var(--ui-accent, var(--accent, #7950c8));
  --sm-soft: var(--ui-soft, var(--pill, #f4eff8));
  position: fixed; inset: auto 12px 12px; margin: 0 auto;
  width: min(440px, calc(100% - 24px)); max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px); box-sizing: border-box; overflow: auto;
  padding: 20px; border: 1px solid var(--sm-line); border-radius: 24px;
  background: var(--sm-surface); color: var(--sm-ink);
  box-shadow: 0 18px 70px #0003; font: 15px/1.45 var(--ui-font, system-ui, sans-serif);
  overscroll-behavior: contain;
}
.site-menu-dialog::backdrop { background: #14132066; backdrop-filter: blur(3px); }
.site-menu-dialog [hidden] { display: none !important; }
.site-menu-dialog :is(button,a):focus-visible { outline: 3px solid var(--sm-accent); outline-offset: 3px; }
#site-menu-dialog .sm-header { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 0; margin: 0 0 16px; border: 0; }
.site-menu-dialog .sm-header h2 { margin: 0; font: inherit; font-size: 23px; font-weight: 750; letter-spacing: -.03em; }
.site-menu-dialog .sm-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--sm-line); border-radius: 50%; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.site-menu-dialog .sm-close svg { width: 20px; height: 20px; }
.site-menu-dialog .sm-identity { display: flex; flex-direction: column; gap: 3px; padding: 15px 16px; margin-bottom: 12px; border-radius: 14px; background: var(--sm-soft); overflow-wrap: anywhere; }
.site-menu-dialog .sm-name { font-size: 17px; font-weight: 750; }
.site-menu-dialog .sm-account-status { font-size: 12px; color: var(--sm-muted); }
.site-menu-dialog .sm-links,.site-menu-dialog .sm-footer { display: grid; gap: 4px; }
.site-menu-dialog .sm-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sm-line); }
.site-menu-dialog .sm-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px; border: 0; border-radius: 12px; box-sizing: border-box; background: transparent; color: inherit; font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.site-menu-dialog .sm-item:hover { background: var(--sm-soft); }
.site-menu-dialog .sm-item:disabled { opacity: .55; cursor: default; }
.site-menu-dialog .sm-icon { width: 21px; height: 21px; flex: none; color: var(--sm-muted); }
.site-menu-dialog .sm-label { min-width: 0; overflow-wrap: anywhere; }
.site-menu-dialog .sm-logout { color: var(--ui-danger, #b6414c); }
.site-menu-dialog .sm-logout .sm-icon { color: inherit; }
.site-menu-dialog .sm-status { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--sm-soft); font-size: 13px; color: var(--sm-muted); }
@media (max-width: 680px) {
  :root body.has-site-menu .site-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-width: 78px; min-height: 44px; padding: 10px 12px; margin: 0;
    border: 1px solid var(--ui-line, var(--line, #e6dadf)); border-radius: 12px;
    background: var(--ui-surface, var(--surface, #fffdf9)); color: var(--ui-ink, var(--ink, #302937));
    font: 650 13px/1.2 var(--ui-font, system-ui, sans-serif); cursor: pointer;
  }
  :root body.has-site-menu .site-menu-toggle svg { width: 18px; height: 18px; flex: none; }
  :root body.has-site-menu .site-menu-toggle:focus-visible { outline: 3px solid var(--ui-accent, var(--accent)); outline-offset: 3px; }
  :root body.has-site-menu[data-game] .topbar {
    grid-template-columns: minmax(0,1fr) 44px 78px;
    grid-template-areas: "brand invitations menu" "tabs tabs tabs";
    gap: 8px 6px; padding: 10px; min-height: 0;
  }
  :root body.has-site-menu[data-game] .topbar > :is(#theme-btn,.account-nav,.topbar-logout) { display: none; }
  :root body.has-site-menu[data-game] .topbar .site-menu-toggle { grid-area: menu; }
  :root body.has-site-menu[data-game] .topbar .gi-bell { grid-area: invitations; width: 44px; min-width: 44px; height: 44px; padding: 11px; }
  :root body.has-site-menu[data-game] .topbar .tabs a { flex-direction: row; min-height: 44px; gap: 0; padding: 10px 2px; font-size: 11px; }
  :root body.has-site-menu[data-game] .topbar .tabs .nav-icon { display: none; }
  :root body.has-site-menu[data-game] .topbar .game-menu-chevron { display: block; }
  :root body.has-site-menu[data-game] .topbar .game-switcher-button .brand-text { max-width: none; }
  :root body.has-site-menu[data-game] .topbar .game-dropdown { top: calc(100% + 62px); max-height: calc(100dvh - 148px); }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead { grid-column: 1/-1; grid-row: auto; min-height: 44px; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead .playroom-greeting { display: none; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead .hub-wordmark { min-width: 0; width: auto; margin: 0; font-size: 17px; gap: 7px; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead .hub-mark { width: 25px; height: 25px; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead .header-actions { display: flex; flex: none; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; width: auto; margin: 0; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead .header-actions > :is(#theme-btn,.hub-account) { display: none; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-masthead .gi-bell { width: 44px; min-width: 44px; height: 44px; padding: 11px; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .hub-social { display: none; }
  :root body.has-site-menu.game-catalog.club-hub.playroom-home .home-navigation { display: block; grid-column: 1/-1; grid-row: auto; margin: 0; padding: 0; }
  :root body.has-site-menu .site-header .header-actions > :is([data-shared-theme-toggle],[data-account-button]):not(.gi-bell) { display: none; }
  :root body.has-site-menu .site-header .header-actions { gap: 6px; }
  :root body.has-site-menu .site-header .header-actions .gi-bell { width: 44px; min-width: 44px; height: 44px; padding: 11px; }
}
@media (max-height: 560px) {
  :root .site-menu-dialog { padding: 14px; border-radius: 18px; }
  #site-menu-dialog .sm-header { margin-bottom: 8px; }
  .site-menu-dialog .sm-identity { padding: 10px 12px; }
}
