/**
 * games-slider.css — BEM: games-slider, games-slider__*
 */

.games-slider__swiper {
  margin-top: var(--space-h2-to-text);
  padding-bottom: 2.5rem;
}

.games-slider__slide {
  height: auto;
  width: 210px;
}

.games-slider__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--color-bg-dark);
  border-radius: var(--radius-card);
  padding: 0.75rem;
  height: 100%;
}

/* Compound selector (not just .games-slider__image) so this always outranks
   the third-party Swiper bundle stylesheet's own img rules, regardless of
   load order — Swiper's CSS is loaded from a CDN and can otherwise win the
   cascade and silently force object-fit back to cover, cropping the image. */
.games-slider__card .games-slider__image {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-card);
  background: var(--color-bg-primary);
  object-fit: contain;
}

.games-slider__name {
  margin: 0;
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
  flex-grow: 1;
}

.games-slider__play {
  font-size: 0.8125rem;
  padding: 0.6rem 1rem;
}

.games-slider__nav {
  color: var(--color-heading-gold);
}

.games-slider__nav::after {
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .games-slider__slide {
    width: 230px;
  }
}
