/* Games slider block (BEM: games-slider) */
.games-slider__swiper { padding-bottom: 0.5rem; }

.game-card {
  background: var(--color-bg-dark);
  border-radius: var(--radius);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.game-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Mobile only: the square crop above cuts off part of the artwork (and its
   text) on small screens. Below 768px show the full, uncropped image at its
   natural portrait ratio instead — desktop/tablet sizing is untouched. */
@media (max-width: 767px) {
  .game-card__image {
    aspect-ratio: 300 / 414;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
  }
}

.game-card__title {
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  font-size: 0.9375rem;
  line-height: 1.6;
  /* Reserve space for two lines so a one-line title doesn't leave the
     "Play Now" button sitting higher than on cards with a wrapped title —
     every button in the row ends up on the same horizontal line. */
  min-height: calc(0.9375rem * 1.6 * 2);
  flex-grow: 1;
}

.games-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.games-slider__prev,
.games-slider__next {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  color: var(--color-white);
  margin: 0;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}
.games-slider__prev::after,
.games-slider__next::after {
  font-family: swiper-icons;
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
}
.games-slider__prev::after { content: 'prev'; }
.games-slider__next::after { content: 'next'; }

.games-slider__prev:hover,
.games-slider__next:hover {
  background: var(--color-btn-accent);
  color: var(--color-btn-text-dark);
  border-color: transparent;
}

.games-slider__prev.swiper-button-disabled,
.games-slider__next.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
