/* The games' shared top bar: the same 40px strip in every game, "◂ All games" on the left
   and the account chip on the right. The page under it moves down by its height (body.gtb-on). */
.gtb {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--gtb-z, 1000);
  height: 40px;
  box-sizing: border-box;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(17, 24, 39, 0.92);
  color: #f9fafb;
  font: 400 14px/1.2 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: normal;
  text-align: left;
}
.gtb *, .gtb *::before, .gtb *::after { box-sizing: border-box; }
body.gtb-on { padding-top: 40px; }
.gtb[hidden] { display: none; }

.gtb-home {
  flex-shrink: 0;
  margin-left: -8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #f9fafb;
  text-decoration: none;
  white-space: nowrap;
}
.gtb-home:hover { background: rgba(255, 255, 255, 0.1); color: #f9fafb; text-decoration: none; }
.gtb a:focus-visible, .gtb button:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }

.gtb-acct { position: relative; min-width: 0; display: flex; }
.gtb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(55vw, 260px);
  height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid rgba(249, 250, 251, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #f9fafb;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.gtb-chip:hover { background: rgba(255, 255, 255, 0.1); }
.gtb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.gtb-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  max-width: calc(100vw - 32px);
  padding: 4px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.gtb-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f9fafb;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.gtb-menu button:hover, .gtb-menu button:focus-visible { background: #374151; outline: none; }
