/* Keep the directory independent of shared hosting-page styles. */
.gh-games-directory #navbar_top { padding: 18px 0; background: #141627f5; }
.gh-games-directory .gh-catalogue-section { padding: 138px 0 64px; }
.gh-games-directory #navbar_top > .container-custom,
.gh-games-directory .gh-catalogue-section > .container-custom { max-width: 1200px; padding-inline: 24px; }
.gh-games-directory .gh-catalogue-toolbar { display: block; margin: 0 0 28px; }
.gh-games-directory .gh-search { position: relative; display: block; width: 100%; margin: 0; }
.gh-games-directory .gh-search svg { position: absolute; left: 18px; top: 50%; width: 21px; height: 21px; transform: translateY(-50%); color: #91a3bd; pointer-events: none; }
.gh-games-directory .gh-search input { display: block; width: 100%; height: 54px; padding: 14px 20px 14px 52px; border: 1px solid #363e57; border-radius: 9px; background: #1b1f32; box-shadow: none; color: #fff; font-size: 14px; transition: border-color .18s; }
.gh-games-directory .gh-search input::placeholder { color: #a7b2c8; opacity: 1; }
.gh-games-directory .gh-search input:focus { outline: 2px solid #5bc8ff; outline-offset: 3px; border-color: #0195f4; }
.gh-games-directory .gh-game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 26px; align-items: stretch; }
.gh-games-directory .gh-game-card { display: flex; flex-direction: column; min-width: 0; background: transparent; border: 0; border-radius: 9px; box-shadow: none; overflow: visible; transition: none; }
.gh-games-directory .gh-game-card:hover { transform: none; border: 0; box-shadow: none; }
.gh-games-directory .gh-game-card[hidden] { display: none; }
.gh-games-directory .gh-game-card-art { position: relative; flex: none; aspect-ratio: auto; padding-top: 28px; overflow: visible; background: transparent; }
.gh-games-directory .gh-game-banner { aspect-ratio: 460 / 215; border-radius: 9px; overflow: hidden; background: #1c2035; box-shadow: 0 0 0 1px #ffffff0d; }
.gh-games-directory .gh-game-card-art:has(.gh-bestseller-ribbon) .gh-game-banner { border-radius: 0 0 9px 9px; }
.gh-games-directory .gh-game-banner img { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .18s; }
.gh-games-directory .gh-game-card:hover .gh-game-banner img { filter: brightness(1.08); }
.gh-games-directory .gh-bestseller-ribbon { position: absolute; top: 0; left: 0; right: 0; border-radius: 9px 9px 0 0; display: block; padding: 7px 12px; background: #008be5; color: #fff; text-align: center; font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: .055em; text-transform: uppercase; box-shadow: none; }
.gh-games-directory .gh-game-card-body { display: flex; flex-direction: column; flex: 1; gap: 7px; padding: 15px 2px 0; }
.gh-games-directory .gh-game-card h2 { color: #fff; font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0; }
.gh-games-directory .gh-game-card-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 12px; margin-top: auto; }
.gh-games-directory .gh-game-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; color: #a7b2c8; font-size: 13px; line-height: 1.5; }
.gh-games-directory .gh-price-from { margin-right: 2px; font-size: 12px; }
.gh-games-directory .gh-game-card-price strong { color: #4cb6ff; font-size: 23px; font-weight: 600; line-height: 1.4; }
.gh-games-directory .gh-game-card-price small { color: #a7b2c8; font-size: 12px; white-space: nowrap; }
.gh-games-directory .gh-card-arrow { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; background: transparent; border-radius: 6px; color: #65c1ff; }
.gh-games-directory .gh-card-arrow svg { width: 18px; height: 18px; }
.gh-games-directory .gh-game-card:hover .gh-card-arrow { background: #0195f41a; color: #a3ddff; }
@media (max-width: 991.98px) {
  .gh-games-directory .gh-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
}
@media (max-width: 575.98px) {
  .gh-games-directory #navbar_top { padding: 12px 0; }
  .gh-games-directory .gh-catalogue-section { padding: 122px 0 42px; }
  .gh-games-directory #navbar_top > .container-custom,
.gh-games-directory .gh-catalogue-section > .container-custom { padding-inline: 20px; }
  .gh-games-directory .gh-catalogue-toolbar { margin-bottom: 24px; }
  .gh-games-directory .gh-search input { height: 50px; font-size: 13px; }
  .gh-games-directory .gh-game-grid { grid-template-columns: 1fr; gap: 28px; }
  .gh-games-directory .gh-game-card-body { padding-top: 13px; gap: 5px; }
  .gh-games-directory .gh-game-card h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-games-directory .gh-search input, .gh-games-directory .gh-game-banner img { transition: none; }
}
