.game-carousel-container {
  position: relative;
  overflow: hidden;
  height: 375px;
  border-radius: 20px; /* ✅ Rounded corners always */
}

.game-carousel {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.game-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.game-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.3s ease;
}

.game-slide:hover img {
  filter: brightness(0.4);
}

.game-slide:hover .game-info {
  opacity: 1;
}

/* Arrow buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  color: rgba(255, 255, 255, 0.6);
  border: none;

  font-size: 4em;
  cursor: pointer;
  border-radius: 0px;
  z-index: 10;
  transition: opacity 0.2s;
}

.carousel-btn:hover {
  opacity: 1;
}

.left-btn {
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0)
  );
  left: 0px;
  height: inherit;
  margin-left: 0;
  opacity: 0%;
}

.right-btn {
    background: linear-gradient(to left,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0)
  );
  right: 0px;
  height: inherit;
  margin-left: 0;
  opacity: 0%;
}

.game-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;         /* center horizontally */
  justify-content: center;     /* center vertically as default */
  gap: 2em;                    /* spacing between top & center content */
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;

}


.game-info-text {
  max-width: 500px;
  z-index: 1;
}

.game-info-refs {
  position: absolute;
  top: 2em;
  left: 2em;
  display: flex;
  gap: 0.75em;
  flex-wrap: wrap;
  z-index: 1;
}

.external-link-carousel {
  background-color: var(--secondary-accent, #e74c3c);
  color: white;
  font-weight: 600;
  padding: 0.6em 1.2em;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.external-link-carousel:hover {
  transform: scale(1.05);
}

