.cg-navigation { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.cg-nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; min-height: 36px; padding: 6px 8px;
  border: 0; border-radius: 4px; color: var(--g-ink, var(--ink, #293330)); text-decoration: none; white-space: nowrap;
  font: 500 13px/1.3 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.cg-nav-link svg { flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cg-nav-link:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.cg-nav-link:hover { background: color-mix(in srgb, currentColor 7%, transparent); }
.cg-nav-link:active { transform: scale(.96); }
.has-game-navigation > .l { flex: 1; }
.has-game-navigation .l > h1 { flex: 1; }
.has-game-navigation .l > .back[hidden] { display: none; }
.masthead.has-game-navigation { gap: 8px; }
.masthead.has-game-navigation > .brand { flex-shrink: 1; min-width: 0; }
.masthead.has-game-navigation #global-tools { margin-left: auto; }
.masthead.has-game-navigation #to-lobby, .masthead.has-game-navigation #random-world { display: none; }
.cg-direct-bar { position: fixed; inset: 0 0 auto; z-index: 90; display: flex; align-items: center; justify-content: space-between; height: 48px; margin: 0; padding: 2px 12px; pointer-events: auto;
  background: var(--g-panel, var(--paper, #f8f9f7)); color: var(--g-ink, var(--ink, #293330)); border-bottom: 1px solid #29333020; }
.cg-direct-page { min-height: 100dvh; padding-top: 48px; }
.cg-direct-page > #app { height: calc(100dvh - 48px); min-height: 0; }
@media (max-width: 760px) {
  .gbar.has-game-navigation { gap: 4px; padding-inline: 8px; }
  .has-game-navigation .l { gap: 6px; }
  .has-game-navigation .cg-nav-link span { display: none; }
  .cg-nav-link { width: 44px; min-height: 44px; padding: 0; }
  .topbar.has-game-navigation { gap: 6px; }
  .topbar.has-game-navigation .brand { min-width: 0; font-size: 16px; }
  .topbar.has-game-navigation .brand { white-space: nowrap; }
  .topbar.has-game-navigation .brand .mark { display: none; }
  .topbar.has-game-navigation .acct.is-in { width: 44px; padding: 0; }
  .topbar.has-game-navigation .acct .lbl { display: none; }
  .topbar.has-game-navigation .acct svg { margin: 0; }
  .masthead.has-game-navigation > .brand span, .masthead.has-game-navigation > .header-divider,
  .masthead.has-game-navigation #view-title { display: none; }
}
