/* ========== FEATURED GAME CAROUSEL (games.html) ========== */
.game-carousel {
  position: relative;
  margin: 24px 64px 56px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.carousel-track {
  position: relative;
  height: 560px;
  touch-action: pan-y;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.carousel-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

/* Banners are near-square and clips are 16:9 — neither matches this
   wide letterbox frame, so a plain cover crop was eating most of the
   sides. Show the whole frame via contain, and fill the empty edges
   with a blurred, oversized copy of the same image instead of hard
   crop or letterbox bars. */
.carousel-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(32px) brightness(0.55) saturate(1.15);
  transform: scale(1.06);
}

.carousel-poster,
.carousel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-video {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-media.video-ready .carousel-video {
  opacity: 1;
}

.carousel-media.video-ready .carousel-poster {
  opacity: 0;
}

.carousel-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 12, 17, 0.94) 0%, rgba(13, 12, 17, 0.6) 38%, rgba(13, 12, 17, 0.15) 65%, transparent 100%);
}

.carousel-content {
  position: relative;
  z-index: 2;
  padding: 0 56px 44px 92px;
  max-width: 680px;
}

.carousel-kicker {
  color: var(--yellow);
  font-size: 10px;
  margin-bottom: 16px;
}

.carousel-title {
  font-size: 46px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.carousel-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #d9d4e0;
  margin-bottom: 22px;
}

.carousel-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.carousel-stat-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 7px;
}

.carousel-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ========== ARROWS / DOTS ========== */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 12, 17, 0.55);
  border: 2px solid var(--line);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.carousel-arrow:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--ink);
}

.carousel-arrow--prev {
  left: 16px;
}

.carousel-arrow--next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 22px;
  right: 56px;
  display: flex;
  gap: 9px;
  z-index: 3;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--text);
  opacity: 0.6;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

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

.carousel-dot.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  opacity: 1;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .carousel-track {
    height: 500px;
  }
  .carousel-title {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .game-carousel {
    margin-left: 24px;
    margin-right: 24px;
  }
}

@media (max-width: 640px) {
  .game-carousel {
    margin-left: 20px;
    margin-right: 20px;
  }
  .carousel-track {
    height: 620px;
  }
  .carousel-content {
    padding: 0 24px 32px;
  }
  .carousel-title {
    font-size: 28px;
  }
  /* Content is bottom-anchored and can grow tall enough to reach the
     vertical middle of the track — keep the arrows up in the clear
     poster area instead of centered, so they never sit over the text. */
  .carousel-arrow {
    top: 16px;
    transform: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .carousel-dots {
    right: 24px;
  }
}
