/* BILSTORE_CATALOG_MOBILE_V1
 * Shared by every Top Up Games card, including cards added during catalog sync.
 * Keep desktop rules and the existing click targets intact.
 */
@media (max-width: 900px) {
  #games.poster-grid[data-category="topup"],
  #posterWall.poster-wall[data-category="topup"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch;
  }
  #games .product-poster.reference-card.topup-game-card,
  #posterWall .product-poster.reference-card.topup-game-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
    aspect-ratio: auto;
    padding: 0;
    gap: 0;
    border-radius: 14px;
    border-color: #a6658266;
    background: linear-gradient(150deg, #422132, #291b26);
    box-shadow: 0 6px 18px #00000024;
    text-align: left;
    -webkit-tap-highlight-color: #ee92bc24;
  }
  #games .topup-game-card::before,
  #posterWall .topup-game-card::before {
    display: none;
  }
  #games .topup-game-card .product-thumbnail,
  #posterWall .topup-game-card .product-thumbnail {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 0;
    min-height: 0;
    /* A ratio box also reserves artwork space in older iPhone Safari. */
    padding: 75% 0 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #281726;
    box-shadow: none;
    overflow: hidden;
  }
  #games .topup-game-card .product-picture,
  #posterWall .topup-game-card .product-picture {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center 24%;
    transform: none;
  }
  #games .topup-game-card .product-picture.is-logo,
  #posterWall .topup-game-card .product-picture.is-logo {
    padding: 14%;
    object-fit: contain;
    object-position: center;
  }
  #games .reference-card.topup-game-card .product-copy,
  #posterWall .reference-card.topup-game-card .product-copy {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 6px;
    padding: 12px;
    text-align: left;
  }
  #games .reference-card.topup-game-card .product-name,
  #posterWall .reference-card.topup-game-card .product-name {
    width: 100%;
    min-width: 0;
    min-height: 2.7em;
    font-size: 15px !important;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: normal;
    text-align: left;
    text-wrap: wrap;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  #games .reference-card.topup-game-card .product-availability,
  #posterWall .reference-card.topup-game-card .product-availability {
    width: 100%;
    min-height: 2.9em;
    margin-top: auto;
    color: #e9c9db;
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  #games.poster-grid[data-category="topup"],
  #posterWall.poster-wall[data-category="topup"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  #games .reference-card.topup-game-card .product-name,
  #posterWall .reference-card.topup-game-card .product-name {
    font-size: 14px !important;
  }
}
@media (max-width: 360px) {
  #games .reference-card.topup-game-card .product-copy,
  #posterWall .reference-card.topup-game-card .product-copy {
    padding: 10px;
  }
  #games .reference-card.topup-game-card .product-availability,
  #posterWall .reference-card.topup-game-card .product-availability {
    font-size: 12px;
  }
}
