/* Desktop only: keep stable cell widths while making their boxes invisible. */
@media (min-width: 769px) {
  .topbar {
    padding-inline: 112px;
  }

  .topbar .brand {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
  }

  .topbar .stats,
  .topbar-tools {
    min-width: 0;
    justify-content: center;
  }

  .topbar .stats > .player-level,
  .topbar .balance-shop > .stat,
  .topbar .credit-shop-link,
  .topbar .topbar-daily,
  .topbar .account-profile-link,
  .topbar .account-user > a:last-child,
  .topbar .account-login,
  .topbar .credit-button,
  .topbar-tools > a,
  .topbar .icon-button {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .topbar .credit-shop-link:hover,
  .topbar .credit-shop-link:focus-visible,
  .topbar .credit-button:hover,
  .topbar .credit-button:focus-visible,
  .topbar .topbar-daily:hover,
  .topbar .topbar-daily:focus-visible,
  .topbar-tools > a:hover,
  .topbar-tools > a:focus-visible,
  .topbar .icon-button:hover,
  .topbar .icon-button:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
}

@media (min-width: 1251px) {
  .topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .topbar .stats,
  .topbar-tools {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }
}

@media (min-width: 769px) and (max-width: 1250px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 6px;
  }

  .topbar .stats {
    grid-column: 1;
    grid-row: 1;
    flex-wrap: wrap;
  }

  .topbar-tools {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }
}
