/* v0.9.76 · full-height game selection without internal scrolling and balanced panel spacing */

@media (min-width: 821px) {
  /* Keep the complete home group centered while restoring the previous narrow game-button width. */
  body.home-screen #homeApp.home-app:not(.hidden) {
    width: min(882px, calc(100vw - 36px)) !important;
    grid-template-columns: 484px 380px !important;
    gap: 18px !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  /* The game panel is tall enough for every launcher, including Developer Center. */
  body.home-screen #homeApp > .home-panel,
  body.home-screen #homeApp > .leaderboard-panel {
    min-height: 780px !important;
    height: auto !important;
    max-height: none !important;
    align-self: stretch !important;
  }

  /* Restore the former horizontal button size and show all launchers without an inner scrollbar. */
  body.home-screen #homeApp > .home-panel {
    padding-left: 22px !important;
    padding-right: 22px !important;
  }
  body.home-screen #homeApp .v072-game-menu {
    width: 100% !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
    scrollbar-gutter: auto !important;
    padding: 0 !important;
  }
  body.home-screen #homeApp .v072-main-game {
    width: 100% !important;
    max-width: none !important;
  }

  /* Cards sit equally close to both leaderboard edges: left padding equals the scrollbar width on the right. */
  body.home-screen #leaderboardPanel {
    padding-left: 14px !important;
    padding-right: 0 !important;
  }
  body.home-screen #leaderboardPanel .leaderboard-head {
    padding-right: 14px !important;
  }
  body.home-screen #leaderboardPanel .leaderboard-list {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    scrollbar-gutter: auto !important;
  }
}

@media (max-width: 820px) {
  body.home-screen #homeApp .v072-game-menu {
    overflow: visible !important;
    padding-inline: 0 !important;
    scrollbar-gutter: auto !important;
  }
}
