/**
 * games-slider__* / game-card__* — BEM styles for blocks/games-slider/games-slider.php
 */

.games-slider {
  position: relative;
  padding-inline: 0;
}

.games-slider .swiper-wrapper {
  align-items: stretch;
}

.games-slider .swiper-slide {
  height: auto;
  width: clamp(150px, 40vw, 200px);
}

@media (min-width: 768px) {
  .games-slider .swiper-slide {
    width: clamp(170px, 20vw, 210px);
  }
}

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

.game-card__image {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 315 / 236;
  background: var(--color-bg-primary);
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__name {
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.game-card__cta {
  margin-block-start: auto;
  padding-block: 0.6rem;
  font-size: var(--font-size-small);
}

/* Nav arrows removed per request — native touch/mouse/trackpad drag (Swiper
   grabCursor + freeMode + mousewheel, configured in games-slider.js) is the
   only way to move through the row now. */
.games-slider__nav {
  display: none;
}

.games-slider__nav:hover {
  background: rgba(255, 211, 42, 0.15);
}

.games-slider__nav--prev {
  left: -0.5rem;
}

.games-slider__nav--next {
  right: -0.5rem;
}

.games-slider__nav.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .games-slider__nav--prev {
    left: -1.25rem;
  }

  .games-slider__nav--next {
    right: -1.25rem;
  }
}
