/* Responsive game-card polish: readable metadata, prices and touch controls. */
html body .ags-page-content :is(
  .ags-games-grid,
  .ags-home-game-preview-grid,
  .ags-shared-preview-grid,
  .ags-v5-game-grid
) > .ags-game-card {
  display: flex !important;
  min-width: 0 !important;
  height: 100% !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

html body .ags-page-content :is(
  .ags-games-grid,
  .ags-home-game-preview-grid,
  .ags-shared-preview-grid,
  .ags-v5-game-grid
) > .ags-game-card > .ags-game-body {
  display: flex !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

html body .ags-page-content :is(
  .ags-games-grid,
  .ags-home-game-preview-grid,
  .ags-shared-preview-grid,
  .ags-v5-game-grid
) > .ags-game-card :is(.ags-game-platforms, .ags-game-regions) {
  min-width: 0 !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
}

html body .ags-page-content :is(
  .ags-games-grid,
  .ags-home-game-preview-grid,
  .ags-shared-preview-grid,
  .ags-v5-game-grid
) > .ags-game-card .ags-game-buy {
  margin-top: auto !important;
}

@media (max-width: 600px) {
  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid,
  html body.ags-mobile-ui .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    min-width: 0 !important;
  }

  html body.ags-mobile-ui .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card {
    height: auto !important;
    min-height: 0 !important;
    border-radius: 18px !important;
    transform: none !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-image > .ags-game-card-link {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-image > .ags-game-card-link > .ags-game-card-art {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card > .ags-game-body {
    gap: 9px !important;
    padding: 14px 16px 15px !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-product-labels {
    max-width: 100% !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-top {
    width: 100% !important;
    min-width: 0 !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-top h3 {
    display: -webkit-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card :is(.ags-game-platforms, .ags-game-regions) {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-content: flex-start !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    overflow: visible !important;
    white-space: normal !important;
    transform: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    clip-path: none !important;
    box-sizing: border-box !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-platforms .ags-platform-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
    border-radius: 10px !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-regions > * {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    height: auto !important;
    flex: 0 1 auto !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-regions > .ags-region-chip {
    height: auto !important;
    max-height: none !important;
    justify-content: flex-start !important;
    overflow: visible !important;
    text-align: right !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-regions > .ags-region-chip em {
    display: block !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.4 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-flow: row wrap !important;
    gap: 8px 12px !important;
    margin: 2px 0 0 !important;
    padding: 12px 0 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .09) !important;
    box-sizing: border-box !important;
    grid-template-columns: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy > div {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 180px !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    gap: 5px 7px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-variant-numeric: tabular-nums !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
    max-width: 100% !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-variant-numeric: tabular-nums !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy > div > strong small {
    font-size: 10px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy > div > del {
    font-size: 11px !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy > .ags-game-buy-hint {
    min-width: 44px !important;
    min-height: 44px !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 12px !important;
    border: 1px solid rgba(92, 218, 255, .2) !important;
    border-radius: 11px !important;
    background: linear-gradient(145deg, rgba(15, 43, 59, .92), rgba(7, 22, 34, .96)) !important;
    color: #8ee5ff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    white-space: normal !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-wish {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card :is(.ags-game-card-link, .ags-game-wish):focus-visible {
    outline: 3px solid #63dcff !important;
    outline-offset: 3px !important;
  }
}

@media (max-width: 359px) {
  html body.ags-mobile-ui .ags-page-content .ags-game-card > .ags-game-body {
    padding: 12px !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-game-card .ags-game-buy > div {
    flex-basis: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .ags-page-content .ags-game-card,
  html body .ags-page-content .ags-game-card * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* Desktop cards have enough room for readable type without changing the layout. */
@media (min-width: 601px) {
  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card > .ags-game-body {
    gap: 10px !important;
    padding: 15px 15px 17px !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-top h3 {
    min-height: 0 !important;
    color: #f7fbff !important;
    font-size: clamp(15px, .9vw, 16px) !important;
    font-weight: 850 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-product-label {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-platforms .ags-platform-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex-basis: 34px !important;
    border-radius: 10px !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-regions {
    gap: 7px !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-regions > * {
    min-height: 31px !important;
    height: auto !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    color: #edf8ff !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-regions > .ags-region-chip em {
    max-width: 170px !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.4 !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 10px 14px !important;
    padding-top: 11px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > div {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 140px !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
    color: #9bf0ff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    font-variant-numeric: tabular-nums !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > div > strong small,
  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > div > del {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > .ags-game-buy-hint {
    max-width: 100% !important;
    flex: 0 1 auto !important;
    color: #9de8ff !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
    line-height: 1.6 !important;
    text-align: left !important;
    white-space: normal !important;
  }
}

@media (min-width: 601px) and (max-width: 1879px) {
  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > div {
    width: 100% !important;
    flex: 0 1 auto !important;
  }

  html body .ags-page-content :is(
    .ags-games-grid,
    .ags-home-game-preview-grid,
    .ags-shared-preview-grid,
    .ags-v5-game-grid
  ) > .ags-game-card .ags-game-buy > .ags-game-buy-hint {
    align-self: flex-start !important;
    text-align: right !important;
  }
}

/* Game catalog cards: one reading order, aligned card heights per grid row. */
@media (min-width: 601px) {
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card {
    display: flex !important;
    align-self: stretch !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(105, 202, 236, .25) !important;
    border-radius: 20px !important;
    background: #091522 !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .045) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card:hover {
    border-color: rgba(87, 220, 255, .58) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .34), 0 0 24px rgba(47, 190, 230, .1) !important;
    transform: translateY(-2px);
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-image {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
    background: #07111c !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-image > .ags-game-card-link {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-image .ags-game-card-art {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .35s ease !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card:hover .ags-game-image .ags-game-card-art {
    transform: scale(1.025);
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card > .ags-game-body {
    position: relative !important;
    z-index: 2 !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "title"
      "badges"
      "platforms"
      "regions"
      "buy" !important;
    grid-template-rows: minmax(54px, auto) auto auto minmax(58px, 1fr) auto !important;
    align-content: stretch !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 12px 14px !important;
    box-sizing: border-box !important;
    background: linear-gradient(160deg, #0d1b2a 0%, #091522 62%, #08131e 100%) !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-product-labels {
    position: absolute !important;
    z-index: 4 !important;
    top: -44px !important;
    right: 12px !important;
    left: auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    max-width: calc(100% - 24px) !important;
    margin: 0 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-product-label {
    display: inline-flex !important;
    min-height: 29px !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border: 1px solid rgba(72, 226, 190, .38) !important;
    border-radius: 9px !important;
    background: rgba(5, 30, 34, .94) !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .24) !important;
    color: #c2ffed !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-top {
    grid-area: title !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-top h3 {
    display: -webkit-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #f5f9ff !important;
    font-size: clamp(16px, 1vw, 18px) !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    letter-spacing: -.015em !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-rating {
    flex: 0 0 auto !important;
    color: #ffd78b !important;
    font-size: 12px !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-pricing-badges {
    grid-area: badges !important;
    display: flex !important;
    min-width: 0 !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-pricing-badges > * {
    min-height: 25px !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms {
    grid-area: platforms !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms::before {
    content: "پلتفرم" !important;
    flex: 1 1 auto !important;
    color: #8eabba !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: right !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-platform-icon {
    position: relative !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 34px !important;
    height: 28px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0 8px !important;
    border: 1px solid rgba(102, 195, 226, .23) !important;
    border-radius: 9px !important;
    background: rgba(22, 48, 65, .7) !important;
    color: #e9f8ff !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-platform-icon svg,
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-platform-icon img {
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-platform-icon i {
    position: static !important;
    display: inline !important;
    color: inherit !important;
    font-size: 11px !important;
    font-style: normal !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions {
    grid-area: regions !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 58px !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions::before {
    content: "ریجن‌ها و ردهٔ سنی" !important;
    flex: 0 0 100% !important;
    color: #91aebe !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions > * {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 26px !important;
    height: auto !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 4px 7px !important;
    border: 1px solid rgba(104, 191, 224, .18) !important;
    border-radius: 9px !important;
    background: rgba(8, 25, 38, .82) !important;
    color: #dceef7 !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions > .ags-region-chip {
    overflow: visible !important;
    cursor: default !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card button.ags-region-chip {
    cursor: pointer !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-region-chip em {
    display: inline !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 1 auto !important;
    overflow: visible !important;
    color: inherit !important;
    font-size: inherit !important;
    font-style: normal !important;
    text-overflow: clip !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions > .ags-region-chip > b {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-region-more {
    min-width: 30px !important;
    min-height: 26px !important;
    justify-content: center !important;
    border-color: rgba(88, 204, 238, .3) !important;
    background: rgba(25, 103, 132, .22) !important;
    color: #9eeaff !important;
    white-space: nowrap !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy {
    grid-area: buy !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 8px 11px !important;
    border: 1px solid rgba(91, 198, 230, .22) !important;
    border-radius: 13px !important;
    background: linear-gradient(115deg, rgba(18, 69, 87, .58), rgba(19, 34, 59, .72)) !important;
    box-sizing: border-box !important;
    line-height: 1.45 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div {
    display: flex !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    justify-content: flex-start !important;
    gap: 4px 7px !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
    color: #a8f1ff !important;
    font-size: clamp(17px, 1.2vw, 20px) !important;
    font-weight: 950 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong small {
    color: #96b7c5 !important;
    font-size: 11px !important;
    font-weight: 650 !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > del {
    color: #91a1ab !important;
    font-size: 11px !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > .ags-game-buy-hint {
    align-self: flex-start !important;
    color: #ccdfeb !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: right !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > .ags-game-buy-hint::before {
    content: "↗" !important;
    display: inline-block !important;
    margin-inline-end: 5px !important;
    color: #68dfff !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card:focus-within {
    outline: 2px solid rgba(91, 222, 255, .75) !important;
    outline-offset: 3px !important;
  }
}

@media (max-width: 600px) {
  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms {
    min-height: 42px !important;
    padding: 5px 8px !important;
    border: 1px solid rgba(107, 190, 220, .14) !important;
    border-radius: 11px !important;
    background: rgba(5, 17, 28, .48) !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms::before {
    content: "پلتفرم" !important;
    flex: 1 1 auto !important;
    color: #8eabba !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-align: right !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms .ags-platform-icon i {
    position: static !important;
    display: inline !important;
    color: inherit !important;
    font-size: 10px !important;
    font-style: normal !important;
    font-weight: 750 !important;
    white-space: nowrap !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions {
    min-height: 0 !important;
    align-content: flex-start !important;
    padding: 9px 10px !important;
    border: 1px solid rgba(94, 185, 222, .2) !important;
    border-radius: 12px !important;
    background: linear-gradient(120deg, rgba(14, 37, 52, .72), rgba(12, 25, 40, .72)) !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions::before {
    content: "ریجن‌ها و ردهٔ سنی" !important;
    flex: 0 0 100% !important;
    color: #91aebe !important;
    font-size: 10px !important;
    font-weight: 750 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy {
    min-height: 0 !important;
    margin: 2px 0 0 !important;
    padding: 11px 12px !important;
    border: 1px solid rgba(91, 198, 230, .22) !important;
    border-radius: 13px !important;
    background: linear-gradient(115deg, rgba(18, 69, 87, .58), rgba(19, 34, 59, .72)) !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > .ags-game-buy-hint {
    align-self: flex-start !important;
    text-align: right !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card,
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-card-art {
    transition: none !important;
  }
}

/* Game catalog typography: use the site's local variable Estedad face with a clearer hierarchy. */
html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card {
  font-family: Estedad, Vazirmatn, IRANSansX, "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-kerning: normal !important;
  font-feature-settings: "kern" 1, "liga" 1 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-top h3 {
  font-size: clamp(17px, 1.12vw, 19px) !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
  letter-spacing: normal !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-product-label {
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-pricing-badges > * {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms::before {
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-platform-icon i {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions::before {
  font-size: 11.5px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions > * {
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
  font-size: clamp(18px, 1.2vw, 20px) !important;
  font-weight: 850 !important;
  line-height: 1.4 !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "kern" 1 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-amount {
  display: inline-block !important;
  direction: ltr !important;
  unicode-bidi: isolate !important;
  color: #a8f1ff !important;
  font-family: "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: clamp(19px, 1.25vw, 21px) !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1, "kern" 1 !important;
  white-space: nowrap !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-from,
html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-currency {
  color: #9ebac7 !important;
  font-family: Estedad, Vazirmatn, IRANSansX, "Segoe UI", Tahoma, Arial, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-from {
  font-size: 12px !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-currency {
  font-size: 11px !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong small,
html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > del {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > .ags-game-buy-hint {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
}

@media (max-width: 600px) {
  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms::before {
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-platforms .ags-platform-icon i {
    font-size: 11px !important;
    font-weight: 700 !important;
  }

  html body.ags-mobile-ui .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-regions::before {
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.45 !important;
  }
}

/* Keep the card grid wide enough for a readable one-line price/action row. */
@media (min-width: 1150px) and (max-width: 1299px) {
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1300px) and (max-width: 1619px) {
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}


/* Center the game price as the single, clear footer focus. */
html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "price" !important;
  place-items: center !important;
  direction: ltr !important;
  gap: 0 !important;
  min-height: 68px !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(91, 207, 238, .3) !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, rgba(17, 52, 67, .82), rgba(8, 27, 39, .86)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 9px 22px rgba(0, 0, 0, .16) !important;
  text-align: center !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div {
  grid-area: price !important;
  display: flex !important;
  width: max-content !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  margin: 0 !important;
  direction: rtl !important;
  text-align: center !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  gap: 5px !important;
  max-width: 100% !important;
  margin: 0 !important;
  font-size: clamp(21px, 1.5vw, 24px) !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  text-align: center !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-from,
html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong .ags-game-price-currency {
  font-size: 11px !important;
  line-height: 1.4 !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > del {
  display: block !important;
  margin: 0 !important;
  color: #91a1ab !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > .ags-game-buy-hint {
  display: none !important;
}

@media (min-width: 601px) and (max-width: 700px) {
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy {
    min-height: 64px !important;
    padding-inline: 8px !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
    font-size: 20px !important;
  }
}

@media (max-width: 600px) {
  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy {
    min-height: 60px !important;
    padding: 8px 10px !important;
  }

  html body .ags-page-content .ags-games-catalog:not(.ags-dlc-games-directory) .ags-games-grid > .ags-game-card .ags-game-buy > div > strong:not(.ags-no-price) {
    font-size: 21px !important;
  }
}
