/* Keep related offers independent from the recently viewed carousel. */
body #gsItemRelated .recent-offer-grid,body #relatedOffers .recent-offer-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))!important;gap:14px;overflow:visible!important;padding:0;align-items:stretch}
body #gsItemRelated .recent-offer-grid>article,body #relatedOffers .recent-offer-grid>article{min-width:0!important;width:auto!important;max-width:100%;padding:16px;display:flex;flex-direction:column;margin:0;overflow:hidden}
body #gsItemRelated h3,body #relatedOffers h3{font-size:14px;line-height:1.5;margin:0 0 12px;overflow-wrap:break-word;word-break:normal}
body #gsItemRelated h3 a,body #relatedOffers h3 a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:var(--text);text-decoration:none}
body #gsItemRelated article>.row-sub,body #relatedOffers article>.row-sub{font-size:12px;line-height:1.5;margin:8px 0}
body #gsItemRelated article>.small-btn,body #relatedOffers article>.small-btn{margin-top:auto;text-align:center;white-space:nowrap}
body #gsItemRelated article>strong,body #relatedOffers article>strong{font-size:17px;line-height:1.4}
/* Compact content-sized homepage sections. */
body #gsHomeBrowse{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0;align-items:start}
body #gsHomeBrowse .gs-browse-panel{min-width:0;min-height:0;height:auto;padding:20px}
body #gsHomeBrowse .gs-browse-panel h2{margin:0 0 14px;font-size:16px}
body #gsHomeBrowse .gs-browse-games,body #gsHomeBrowse .gs-browse-panel:nth-child(2n) .gs-browse-games{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px 16px;align-content:start}
body #gsHomeBrowse .gs-browse-games a{min-width:0;min-height:38px;padding:5px 0;line-height:1.4}
body #recentlyViewed .recent-offer-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;overflow:visible;padding:0}
body #recentlyViewed .recent-offer-grid .gs-recent-card{width:auto;min-width:0;min-height:210px;max-width:none}
body #recentlyViewed{margin:24px 0}
body #recentlyViewed .gs-recent-actions [data-recent-scroll]{display:none}
body #recentlyViewed .gs-recent-card h3{font-size:14px;line-height:1.5;margin:14px 16px;min-height:0}
body #recentlyViewed .gs-recent-card-price{margin-top:auto}
/* Limit excessive stretching in lower ranking rows. */
@media(min-width:901px){body .gs-rank-card177:nth-child(n+4){grid-template-columns:36px 52px minmax(180px,1fr) 120px minmax(180px,300px) 90px;gap:14px;padding:16px}body .gs-rank-card177:nth-child(n+4)>img{width:48px;height:48px}body .gs-rank-card177:nth-child(n+4) .gs-rank-identity177{min-width:0}body .gs-rank-card177:nth-child(n+4) .gs-rank-progress177{width:100%;min-width:0}}
@media(max-width:700px){body #gsHomeBrowse{grid-template-columns:1fr;gap:12px}body #gsHomeBrowse .gs-browse-panel{padding:16px}body #gsHomeBrowse .gs-browse-games,body #gsHomeBrowse .gs-browse-panel:nth-child(2n) .gs-browse-games{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}body #gsItemRelated .recent-offer-grid,body #relatedOffers .recent-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}body #gsItemRelated .recent-offer-grid>article,body #relatedOffers .recent-offer-grid>article{padding:12px}body #gsItemRelated h3,body #relatedOffers h3{font-size:13px}body #recentlyViewed .recent-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body #recentlyViewed .gs-recent-card h3{margin:12px;font-size:13px}}
@media(max-width:380px){body #recentlyViewed .recent-offer-grid{grid-template-columns:1fr}}
