.games-slider {
  position: relative;
  margin-block-end: var(--space-section);
}

/* Viewport clips the row; the wrapper below is the (scrollbar-free) track. */
.games-slider__swiper {
  overflow: hidden;
}

.games-slider .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* old Edge */
  padding-block-end: 2px;
}

.games-slider .swiper-wrapper::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
  width: 0;
  height: 0;
}

/* Uniform card size: fixed basis + square media => identical cards. */
.games-slider .swiper-slide {
  flex: 0 0 200px;
  width: 200px;
  scroll-snap-align: start;
  display: flex;
}

@media (max-width: 640px) {
  .games-slider .swiper-slide {
    flex-basis: 150px;
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .games-slider .swiper-wrapper {
    scroll-behavior: auto;
  }
}

.game-card {
  width: 100%;
  background: var(--color-bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.game-card:hover .game-card__media img {
  transform: scale(1.06);
}

.game-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(20, 18, 18, 0.55);
  color: var(--color-white);
  font-weight: var(--fw-bold);
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .game-card__play,
.game-card__play:focus-visible {
  opacity: 1;
}

.game-card__play-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gradient-cta);
  color: var(--color-btn-text-dark);
}

.game-card__play-icon svg {
  width: 22px;
  height: 22px;
  margin-inline-start: 2px;
}

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

/* ---------- Arrow controls ---------- */
.games-slider__controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-block-start: 1rem;
}

.games-slider__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: var(--color-white);
  border: 1px solid var(--color-btn-border);
  transition: background var(--transition), color var(--transition), opacity var(--transition);
}

.games-slider__btn:hover:not(:disabled) {
  background: var(--gradient-cta);
  color: var(--color-btn-text-dark);
}

.games-slider__btn svg {
  width: 20px;
  height: 20px;
}

.games-slider__btn:disabled {
  opacity: 0.35;
  cursor: default;
}
