.game-group-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 11px 10px 0;
  padding: 5px;
  border: 1px solid #bfd8f1;
  border-radius: 30px;
  background: linear-gradient(180deg, #d9e9fa, #edf6ff);
  box-shadow: inset 0 1px 3px #104c7c12, 0 1px #fff;
}
.game-group-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 43px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 25px;
  color: #527298;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.game-group-tab .menu-icon { flex: 0 0 20px; width: 20px; height: 20px; font-size: 20px; }
.game-group-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding-inline: 5px;
  border-radius: 12px;
  color: #6082a8;
  background: #d1e3f6;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.game-group-tab:hover { color: #145895; background: #ffffffb3; }
.game-group-tab[aria-selected="true"] {
  border-color: #80c5f5;
  color: #fff;
  background: linear-gradient(135deg, #168bdb, #0957a3 65%, #12437d);
  box-shadow: inset 0 1px #d3f0ff78, 0 3px 9px #0c67ae36;
}
.game-group-tab[aria-selected="true"] .game-group-count { color: #fff; background: #c9ebff30; }
.game-group-tab:focus-visible { outline: 2px solid #077ac9; outline-offset: 2px; }
.game-group-tab:active { transform: translateY(1px); }
@media (max-width: 1279px) {
  .game-library {
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    column-gap: 8px;
    align-items: start;
  }
  .game-library > h2,.game-library > .recent-games,.game-library > .game-group-tabs { grid-column: 1 / -1; }
  .game-library > .game-group-tabs { grid-row: 3; }
  .game-library > .game-shortcuts-rail {
    display: block;
    position: sticky;
    top: calc(var(--site-header-height) + var(--member-shortcut-height) + 8px);
    grid-column: 1;
    grid-row: 4;
    align-self: start;
    min-width: 0;
    max-height: calc(100dvh - var(--site-header-height) - var(--member-shortcut-height) - 88px);
    margin: 10px 0 10px 7px;
    overflow-y: auto;
    scrollbar-width: none;
    border-radius: 16px;
  }
  .game-shortcuts-rail::-webkit-scrollbar { display: none; }
  .game-shortcuts-rail .quick-categories { grid-template-columns: minmax(0,1fr); gap: 5px; padding: 4px; }
  .game-shortcuts-rail .quick-category { border-radius: 11px; }
  .game-shortcuts-rail .quick-category img { width: 100%; }
  .game-shortcuts-rail .quick-category::before { inset-inline-start: 1px; width: 2px; }
  .game-library > .game-results { grid-column: 2; grid-row: 4; min-width: 0; padding-inline: 0 8px; }
}
@media (max-width: 620px) {
  .game-library { grid-template-columns: 68px minmax(0,1fr); column-gap: 6px; }
  .game-results-heading { flex-wrap: wrap; }
  .game-group-tab { gap: 6px; padding-inline: 8px; font-size: 14px; }
  .game-group-tab .menu-icon { flex-basis: 18px; width: 18px; height: 18px; font-size: 18px; }
  .game-group-count { min-width: 22px; height: 20px; padding-inline: 4px; }
}
@media (max-width: 440px) {
  .game-group-tabs { margin-inline: 8px; gap: 3px; padding: 4px; }
  .game-group-tab { gap: 5px; min-height: 40px; padding-inline: 6px; font-size: 13px; }
  .game-group-tab .menu-icon { flex-basis: 17px; width: 17px; height: 17px; font-size: 17px; }
  .game-group-count { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .game-group-tab { transition: background-color .2s, color .2s, box-shadow .2s; }
}
