/* Premium presentation for the existing game carousel. */
.hero.ad-hero {
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 56, 18, 0.24), transparent 58%),
    linear-gradient(180deg, #140907 0%, #090504 100%) !important;
  border-top: 1px solid rgba(244, 195, 91, 0.38) !important;
  border-bottom: 3px solid #d8a22f !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 229, 148, 0.16),
    inset 0 -28px 50px rgba(0, 0, 0, 0.34),
    0 14px 30px rgba(0, 0, 0, 0.30) !important;
}

.hero.ad-hero::before {
  content: "";
  position: absolute;
  inset: 9px 10px 25px;
  z-index: 2;
  display: block;
  pointer-events: none;
  border: 1px solid rgba(244, 195, 91, 0.58);
  border-radius: 10px;
  background:
    linear-gradient(90deg, #f7d273, #9b621d) left top / 44px 2px no-repeat,
    linear-gradient(180deg, #f7d273, #9b621d) left top / 2px 44px no-repeat,
    linear-gradient(270deg, #f7d273, #9b621d) right top / 44px 2px no-repeat,
    linear-gradient(180deg, #f7d273, #9b621d) right top / 2px 44px no-repeat,
    linear-gradient(90deg, #9b621d, #f7d273) left bottom / 44px 2px no-repeat,
    linear-gradient(0deg, #f7d273, #9b621d) left bottom / 2px 44px no-repeat,
    linear-gradient(270deg, #9b621d, #f7d273) right bottom / 44px 2px no-repeat,
    linear-gradient(0deg, #f7d273, #9b621d) right bottom / 2px 44px no-repeat;
  box-shadow:
    inset 0 0 24px rgba(0, 0, 0, 0.20),
    0 0 12px rgba(216, 162, 47, 0.10);
}

.hero.ad-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block !important;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 2, 1, 0.28), transparent 12%, transparent 88%, rgba(7, 2, 1, 0.28)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.20), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.26));
  animation: none !important;
  transform: none !important;
}

.hero.ad-hero .hero-slides,
.hero.ad-hero .hero-slide {
  z-index: 1;
}

.hero.ad-hero .hero-slide img {
  filter: contrast(1.035) saturate(1.04);
}

.hero.ad-hero .carousel-arrow {
  width: 38px;
  height: 46px;
  border: 1px solid rgba(244, 195, 91, 0.72);
  background: linear-gradient(145deg, rgba(42, 19, 12, 0.94), rgba(9, 5, 4, 0.94));
  color: #f7d273;
  box-shadow: inset 0 0 12px rgba(244, 195, 91, 0.10), 0 5px 16px rgba(0, 0, 0, 0.40);
  text-shadow: 0 0 8px rgba(255, 214, 112, 0.46);
}

.hero.ad-hero .carousel-arrow.prev {
  left: 10px;
  border-radius: 0 12px 12px 0;
}

.hero.ad-hero .carousel-arrow.next {
  right: 10px;
  border-radius: 12px 0 0 12px;
}

.hero.ad-hero .carousel-dots {
  bottom: 9px;
  padding: 4px 9px;
  border: 1px solid rgba(244, 195, 91, 0.28);
  border-radius: 999px;
  background: rgba(12, 6, 4, 0.76);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.34);
}

.hero.ad-hero .carousel-dot {
  width: 8px;
  height: 8px;
  border-color: #c99a3c;
  background: transparent;
}

.hero.ad-hero .carousel-dot.active {
  width: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b67b24, #ffe28a, #b67b24);
  box-shadow: 0 0 8px rgba(255, 210, 102, 0.46);
}

@media (max-width: 600px) {
  .hero.ad-hero::before {
    inset: 7px 7px 23px;
    border-radius: 7px;
  }

  .hero.ad-hero .carousel-arrow {
    width: 31px;
    height: 40px;
    font-size: 23px;
  }

  .hero.ad-hero .carousel-arrow.prev { left: 7px; }
  .hero.ad-hero .carousel-arrow.next { right: 7px; }
}

/* Borderless 3D presentation. */
.hero.ad-hero {
  perspective: 1000px;
  border: 0 !important;
  box-shadow:
    inset 0 24px 42px rgba(0, 0, 0, 0.28),
    inset 0 -30px 55px rgba(0, 0, 0, 0.46),
    0 18px 34px rgba(0, 0, 0, 0.34) !important;
}

.hero.ad-hero::before {
  display: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero.ad-hero::after {
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 73%, rgba(225, 150, 43, 0.23) 0%, rgba(119, 55, 15, 0.11) 30%, transparent 64%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 24%, transparent 72%, rgba(0, 0, 0, 0.34));
}

.hero.ad-hero .hero-slide img {
  position: absolute;
  top: 50%;
  left: 14px;
  width: calc(100% - 28px);
  height: auto;
  max-height: calc(100% - 34px);
  object-fit: contain;
  border: 0;
  border-radius: 11px;
  transform-origin: center bottom;
  transform: translateY(-53%) rotateX(3.2deg) scale(0.972);
  box-shadow:
    0 28px 30px rgba(0, 0, 0, 0.60),
    0 12px 18px rgba(0, 0, 0, 0.48),
    0 7px 22px rgba(216, 147, 42, 0.16);
  filter: contrast(1.045) saturate(1.06);
  transition: transform 0.45s ease, filter 0.45s ease, box-shadow 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero.ad-hero .hero-slide.active:hover img {
    transform: translateY(-54%) rotateX(1deg) scale(0.982);
    filter: contrast(1.055) saturate(1.08) brightness(1.025);
    box-shadow:
      0 32px 36px rgba(0, 0, 0, 0.64),
      0 14px 22px rgba(0, 0, 0, 0.48),
      0 8px 26px rgba(216, 147, 42, 0.20);
  }
}

/* Directional 3D carousel rotation. */
.hero.ad-hero .hero-slides {
  perspective: 950px;
  transform-style: preserve-3d;
}

.hero.ad-hero .hero-slide {
  transform: translateX(34%) translateZ(-150px) rotateY(-52deg) scale(0.82);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  opacity: 0;
  transition:
    transform 0.72s cubic-bezier(0.22, 0.72, 0.18, 1),
    opacity 0.56s ease;
  will-change: transform, opacity;
}

.hero.ad-hero .hero-slide.active {
  z-index: 2;
  transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1;
}

.hero.ad-hero .hero-slide.from-right {
  z-index: 3;
  transform: translateX(48%) translateZ(-190px) rotateY(-64deg) scale(0.76);
  opacity: 0;
}

.hero.ad-hero .hero-slide.from-left {
  z-index: 3;
  transform: translateX(-48%) translateZ(-190px) rotateY(64deg) scale(0.76);
  opacity: 0;
}

.hero.ad-hero .hero-slide.to-left {
  z-index: 1;
  transform: translateX(-48%) translateZ(-190px) rotateY(64deg) scale(0.76);
  opacity: 0;
}

.hero.ad-hero .hero-slide.to-right {
  z-index: 1;
  transform: translateX(48%) translateZ(-190px) rotateY(-64deg) scale(0.76);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hero.ad-hero .hero-slide {
    transition: opacity 0.25s ease;
    transform: none !important;
  }
}

.hero.ad-hero .carousel-arrow,
.hero.ad-hero .carousel-dots {
  border: 0;
}

.hero.ad-hero .carousel-arrow {
  background: linear-gradient(145deg, rgba(48, 24, 15, 0.88), rgba(8, 5, 4, 0.90));
  box-shadow: inset 0 0 13px rgba(244, 195, 91, 0.10), 0 8px 18px rgba(0, 0, 0, 0.48);
}

@media (max-width: 600px) {
  .hero.ad-hero .hero-slide img {
    left: 8px;
    width: calc(100% - 16px);
    max-height: calc(100% - 28px);
    border-radius: 7px;
    transform: translateY(-53%) rotateX(3deg) scale(0.98);
    box-shadow: 0 19px 23px rgba(0, 0, 0, 0.58), 0 5px 15px rgba(216, 147, 42, 0.14);
  }
}

/* Restore the original calm cross-fade between game banners. */
.hero.ad-hero .hero-slide,
.hero.ad-hero .hero-slide.active,
.hero.ad-hero .hero-slide.from-right,
.hero.ad-hero .hero-slide.from-left,
.hero.ad-hero .hero-slide.to-left,
.hero.ad-hero .hero-slide.to-right {
  transform: none !important;
  transition: opacity 0.5s ease !important;
}

/* Exact neutral background requested for the game showcase. */
.hero.ad-hero {
  background: #141414 !important;
  box-shadow: none !important;
}

.hero.ad-hero::after {
  display: none !important;
  background: none !important;
}
