/* Keep every game section reachable when the tab row is wider than the screen. */
.topbar nav {
  max-width: min(720px, calc(100vw - 24px));
  overflow-x: auto;
  overflow-y: hidden;
  justify-content: flex-start;
  scrollbar-width: auto;
  scrollbar-color: #9b6f91 #ded1c1;
  scrollbar-gutter: stable;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.topbar nav::-webkit-scrollbar {
  display: block;
  height: 10px;
}

.topbar nav::-webkit-scrollbar-track {
  margin-inline: 16px;
  border-radius: 999px;
  border: 1px solid #cfbeaa;
  background: #ded1c1;
}

.topbar nav::-webkit-scrollbar-thumb {
  border: 2px solid #ded1c1;
  border-radius: 999px;
  background: linear-gradient(90deg, #c99791, #a97d9e);
}

.topbar nav::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #b97e79, #8d6788);
}

.topbar nav .nav-button {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

@media (max-width: 900px) {
  .topbar nav {
    width: calc(100vw - 24px);
    padding: 5px 5px 10px;
  }
}
