/* v0.9.77 · compact game panel ending after the final launcher and balanced leaderboard card spacing */

@media (min-width: 821px) {
  /* The game-selection surface ends directly after its final visible launcher. */
  body.home-screen #homeApp.home-app:not(.hidden) {
    align-items: start !important;
  }

  body.home-screen #homeApp > .home-panel {
    min-height: 0 !important;
    height: max-content !important;
    max-height: none !important;
    align-self: start !important;
    padding-bottom: 22px !important;
  }

  body.home-screen #homeApp .v072-game-menu {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Keep exactly the same visible gap on both sides of the leaderboard cards.
     The 14px list extension compensates for the custom 14px scrollbar. */
  body.home-screen #leaderboardPanel {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.home-screen #leaderboardPanel .leaderboard-head {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home-screen #leaderboardPanel .leaderboard-list {
    width: calc(100% + 14px) !important;
    margin-left: 0 !important;
    margin-right: -14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-y: scroll !important;
    scrollbar-gutter: auto !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 820px) {
  body.home-screen #homeApp > .home-panel {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 14px !important;
  }
}
