/* Only the BR discovery dashboard adopts the wider shell. */
body.gameDiscoveryPage #topHeaderContent {
    width: calc(100% - 40px);
    max-width: 1280px;
}
body.gameDiscoveryPage .container.profileTable {
    width: calc(100% - 40px);
    max-width: 1280px;
    border-spacing: 0;
    table-layout: fixed;
}
body.gameDiscoveryPage .profileTable > tbody > tr > td {
    width: auto !important;
    min-width: 0;
    vertical-align: top;
}
body.gameDiscoveryPage .profileTable > tbody > tr > td:not([colspan]):first-child { padding-right: 12px; }
body.gameDiscoveryPage .profileTable > tbody > tr > td:not([colspan]):last-child { padding-left: 12px; }
/* These legacy cards contain a variable number of wrapped rows. */
body.gameDiscoveryPage .gameDashboardPlayPanel { height: auto !important; min-height: 150px; }
body.gameDiscoveryPage .gameDashboardFriends { height: auto !important; min-height: 205px; }
body.gameDiscoveryPage .gameDashboardTrophies { height: auto !important; min-height: 175px; }
.gameDiscovery, .gameDiscovery * { box-sizing: border-box; }
.gameDiscovery {
    display: flex; position: relative;
    border-radius: 3px 3px 0 0; background: #d9e6f7;
    color: #243b53; font-family: Asap, sans-serif;
}
.gameDiscovery .gameDiscoveryGames {
    display: flex; flex: 1; min-width: 0; overflow-x: auto;
    overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #7298bd #d9e6f7;
}
.gameDiscovery .gameDiscoveryGames::-webkit-scrollbar { height: 8px; }
.gameDiscovery .gameDiscoveryGames::-webkit-scrollbar-thumb { background: #7298bd; border-radius: 4px; }
.gameDiscovery .gameDiscoveryTab {
    display: flex; flex: 1 0 160px; justify-content: center; align-items: center;
    min-height: 100px; border-bottom: 3px solid transparent;
    color: #243b53; text-decoration: none;
}
/* The old background-size:contain enlarged these 128px files up to 160px. */
.gameDiscovery .gameDiscoveryTab img { display: block; width: 160px; height: auto; max-width: none; object-fit: contain; }
.gameDiscovery .gameDiscoveryTab:hover { background: #edf4fc; }
.gameDiscovery .gameDiscoveryTab[aria-current="page"] { background: #fff; border-bottom-color: #2078a9; }
.gameDiscovery .gameDiscoveryTab:focus-visible,
.gameDiscovery summary:focus-visible { outline: 3px solid #2078a9; outline-offset: -3px; }
/* New games stay in their own compact menu when manually enabled. */
.gameDiscovery .gameDiscoveryMore { flex: 0 0 104px; position: relative; }
.gameDiscovery .gameDiscoveryMore summary { display: flex; align-items: center; justify-content: center; gap: 5px; height: 100%; cursor: pointer; list-style: none; font-size: 15px; }
.gameDiscovery .gameDiscoveryMore summary::-webkit-details-marker { display: none; }
.gameDiscovery .gameDiscoveryMore[open] summary { background: #edf4fc; }
.gameDiscovery .gameDiscoveryExtraGames { position: absolute; z-index: 20; right: 0; top: 100%; width: 210px; padding: 6px; border: 1px solid #bfd1e4; border-radius: 3px; background: white; box-shadow: 0 4px 12px #243b5326; }
.gameDiscovery .gameDiscoveryTab--extra { min-height: 48px; justify-content: flex-start; gap: 10px; }
.gameDiscovery .gameDiscoveryTab--extra img { width: 64px; height: 33px; }
@media (max-width: 1050px) {
    body.gameDiscoveryPage .container.profileTable { display: block; }
    body.gameDiscoveryPage .profileTable > tbody,
    body.gameDiscoveryPage .profileTable > tbody > tr,
    body.gameDiscoveryPage .profileTable > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
    body.gameDiscoveryPage .profileTable > tbody > tr > td:not([colspan]):first-child,
    body.gameDiscoveryPage .profileTable > tbody > tr > td:not([colspan]):last-child { padding-left: 0; padding-right: 0; }
    body.gameDiscoveryPage .profileTable > tbody > tr > td:empty { display: none; }
    body.gameDiscoveryPage .gameDashboardPlayPanel { height: auto !important; flex-wrap: wrap; gap: 10px; justify-content: center !important; }
    body.gameDiscoveryPage .gameDashboardPlayPanel > div { flex: 1 1 245px; float: none !important; text-align: center; }
    body.gameDiscoveryPage .gameDashboardRanking { height: auto !important; min-height: 360px; }
    body.gameDiscoveryPage .gameDashboardRanking .divRanking { display: flex; flex-wrap: wrap; column-gap: 14px; row-gap: 8px; }
    body.gameDiscoveryPage .gameDashboardRanking .divRanking > table { flex: 0 0 100%; width: 100%; }
    body.gameDiscoveryPage .gameDashboardRanking .marker { position: static; display: inline-flex; align-items: center; gap: 4px; }
    body.gameDiscoveryPage .gameDashboardRanking .marker img { position: static; }
    body.gameDiscoveryPage .gameDashboardRanking .marker p { margin: 0 !important; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 650px) {
    body.gameDiscoveryPage .container.profileTable,
    body.gameDiscoveryPage #topHeaderContent { width: calc(100% - 24px); }
    body.gameDiscoveryPage .gameDashboardPlayPanel > div { min-width: 0; max-width: 100%; }
    body.gameDiscoveryPage .gameDashboardPlayPanel > div > div { padding: 10px 0 !important; }
    body.gameDiscoveryPage .gameDashboardPlayPanel .playNowButton { max-width: 100%; background-size: 100% 300%; margin: auto; }
    body.gameDiscoveryPage #players_online_game_holder { max-width: 100%; margin-left: auto; margin-right: auto; }
    body.gameDiscoveryPage .inicioPlanCard > div { float: none !important; margin: auto; }
    body.gameDiscoveryPage .divRanking { padding: 8px; overflow-x: auto; }
    body.gameDiscoveryPage .gameDashboardRankingCell .bandeira { left: 0; width: 70px; height: 178px; background-size: 100% 100%; }
    body.gameDiscoveryPage .gameDashboardRankingCell > .statsTitle { padding-left: 78px !important; }
    body.gameDiscoveryPage .gameDashboardRanking th { font-size: 14px; }
    body.gameDiscoveryPage .gameDashboardRanking th:first-child { width: 62px !important; min-width: 62px; }
    body.gameDiscoveryPage .gameDashboardRanking td { font-size: 13px; }
    body.gameDiscoveryPage .gameDashboardPerformance { height: auto !important; min-height: 205px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-evenly; gap: 12px; padding: 20px !important; }
    body.gameDiscoveryPage .gameDashboardPerformance .pieGraphTable { position: static; margin: 0 !important; }
    body.gameDiscoveryPage .whiteContainer { max-width: 100%; box-sizing: border-box; }
    body.gameDiscoveryPage .profileInventoryLine { padding-left: 0 !important; }
    body.gameDiscoveryPage .profileInventoryItem { width: 16%; object-fit: contain; margin-left: 3%; }
}
@media (max-width: 360px) {
    body.gameDiscoveryPage .gameDashboardRanking th:nth-child(3) { width: 60px !important; }
    body.gameDiscoveryPage .gameDashboardRanking td:nth-child(3) > div { max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
    body.gameDiscoveryPage .gameDashboardRanking .rankImg img { right: 0; }
}
/* Remove the empty legacy text slots so Jogos and the avatar fit on narrow phones. */
@media (max-width: 450px) {
    body.gameDiscoveryPage #navegaUser { display: none; }
    body.gameDiscoveryPage #navegaUserImgLink { padding-left: 0; }
    body.gameDiscoveryPage #navMenu > li:first-child { display: none; }
}
