/**
 * Golden Play — games slider block
 */
.games-slider__wrap {
  position: relative;
  margin-top: var(--heading-gap);
}

.games-slider__swiper {
  overflow: hidden;
}

/* Fallback layout in case the Swiper stylesheet hasn't applied yet (or fails
   to load): keeps cards in a horizontal row instead of the browser's default
   block stacking. Swiper's own CSS/JS takes over slide sizing once it inits. */
.games-slider__swiper .swiper-wrapper {
  display: flex;
}

.games-slider__swiper .swiper-slide {
  flex: 0 0 auto;
  width: 42%;
}

@media (min-width: 480px) {
  .games-slider__swiper .swiper-slide {
    width: 30%;
  }
}

@media (min-width: 768px) {
  .games-slider__swiper .swiper-slide {
    width: 21%;
  }
}

@media (min-width: 1024px) {
  .games-slider__swiper .swiper-slide {
    width: 17%;
  }
}

@media (min-width: 1440px) {
  .games-slider__swiper .swiper-slide {
    width: 13%;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--color-surface);
  border-radius: var(--radius-card);
  padding: var(--space-sm);
  height: 100%;
}

.game-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--radius-card) - 0.5rem);
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-card__name {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card__play {
  padding-block: 0.625rem;
  font-size: var(--fs-small);
}

.games-slider__nav {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.games-slider__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--color-surface);
  color: var(--color-accent-gold);
  transition: background-color var(--transition-fast);
}

.games-slider__arrow:hover {
  background-color: var(--color-btn-neutral-hover);
}

.games-slider__arrow.swiper-button-disabled {
  opacity: 0.4;
  pointer-events: none;
}
