/* Player v3.10.140 — app-style square artwork with game title below.
   Based on the full v3.10.135 production build; visual-only lobby changes. */

/* Keep search/filter in normal document flow. */
#lobbyStickySearch {
  position: relative !important;
  top: auto !important;
  z-index: 10 !important;
}

/* Game browsing density: 8 desktop, 6 tablet, 4 phone. */
#gameLobby .compact-games-grid,
#gameLobby #categoriesSection .compact-games-grid,
#gameLobby #hotSection .compact-games-grid,
#gameLobby #newSection .compact-games-grid,
#gameLobby #mostPlayedSection .compact-games-grid {
  display: grid !important;
  grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  gap: 18px 14px !important;
  width: 100% !important;
  overflow: visible !important;
  padding: 4px 0 8px !important;
}

/* App-store style tile: transparent shell, square artwork, title underneath. */
#gameLobby .compact-game-card {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

#gameLobby .compact-game-card:hover:not(:disabled),
#gameLobby .compact-game-card:focus-visible {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

#gameLobby .compact-game-media {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #111 !important;
  border: 1px solid rgba(221, 185, 79, .20) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28) !important;
}

#gameLobby .compact-game-media img,
#gameLobby .compact-game-fallback {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  display: block !important;
}

#gameLobby .compact-game-copy {
  padding: 8px 2px 0 !important;
  background: transparent !important;
  min-width: 0 !important;
}

#gameLobby .compact-game-copy strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  color: #fff0ba !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  text-overflow: ellipsis !important;
  min-height: 2.5em !important;
}

/* Hide provider/category metadata under the title for a cleaner app-grid look. */
#gameLobby .compact-game-copy span {
  display: none !important;
}

/* LOTTO result numbers: individual yellow circles only, including pending slots. */
#lobbyLottoResults .lobby-result-balls {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 42px !important;
  padding: 0 !important;
}

#lobbyLottoResults .lobby-result-balls > span,
#lobbyLottoResults .lobby-result-balls > span.is-pending {
  display: inline-grid !important;
  place-items: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  color: #261800 !important;
  background: linear-gradient(180deg, #ffe98d 0%, #ffd54f 48%, #efb400 100%) !important;
  border: 1px solid #ffeca5 !important;
  box-shadow: 0 7px 16px rgba(171, 119, 0, .28), inset 0 1px 0 rgba(255,255,255,.70) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

@media (min-width: 621px) and (max-width: 1023.98px) {
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid,
  #gameLobby #hotSection .compact-games-grid,
  #gameLobby #newSection .compact-games-grid,
  #gameLobby #mostPlayedSection .compact-games-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }
}

@media (max-width: 620px) {
  #gameLobby .compact-games-grid,
  #gameLobby #categoriesSection .compact-games-grid,
  #gameLobby #hotSection .compact-games-grid,
  #gameLobby #newSection .compact-games-grid,
  #gameLobby #mostPlayedSection .compact-games-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px 7px !important;
  }

  #gameLobby .compact-game-media {
    border-radius: 11px !important;
  }

  #gameLobby .compact-game-copy {
    padding-top: 5px !important;
  }

  #gameLobby .compact-game-copy strong {
    font-size: 9px !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
  }

  #lobbyLottoResults .lobby-result-balls {
    gap: 6px !important;
    min-height: 34px !important;
  }

  #lobbyLottoResults .lobby-result-balls > span,
  #lobbyLottoResults .lobby-result-balls > span.is-pending {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 12px !important;
  }
}
