/* Choose Your Game — coverflow carousel (self-contained) */

#choose-game .mb-cg {
  --mb-cg-active-w: 540px;
  --mb-cg-active-h: 735px;
  --mb-cg-side-w: 360px;
  --mb-cg-side-h: 490px;
  --mb-cg-step: 210px;
  --mb-cg-depth: 48px;
  --mb-cg-rotate: 18deg;
  --mb-cg-scale-drop: 0.165;
  --mb-cg-snap-ratio: 0.22;
  --mb-cg-wheel-threshold: 100;
  --mb-cg-wheel-cooldown: 420;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

#choose-game .mb-cg__stage {
  position: relative;
  width: 100%;
  height: var(--mb-cg-active-h);
  margin: 0 auto;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  overflow: visible;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

#choose-game .mb-cg.is-dragging .mb-cg__stage {
  cursor: grabbing;
}

#choose-game .mb-cg.is-dragging .mb-cg__slide {
  transition: none;
}

#choose-game .mb-cg.is-dragging .mb-cg__card {
  transition: none;
}

#choose-game .mb-cg__track {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-style: preserve-3d;
}

#choose-game .mb-cg__slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--mb-cg-active-w);
  height: var(--mb-cg-active-h);
  margin: 0;
  padding: 0;
  transform-style: preserve-3d;
  transition:
    transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
  will-change: transform, opacity;
}

#choose-game .mb-cg.is-animating .mb-cg__slide {
  transition-duration: 0.46s, 0.35s;
}

#choose-game .mb-cg__card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--mb-cg-side-w);
  height: var(--mb-cg-side-h);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #111;
  text-decoration: none;
  cursor: pointer;
  transition:
    width 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.46s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

#choose-game .mb-cg__slide.is-active .mb-cg__card {
  width: var(--mb-cg-active-w);
  height: var(--mb-cg-active-h);
  border-color: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 64px rgba(0, 0, 0, 0.62);
}

#choose-game .mb-cg__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#choose-game .mb-cg__controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
}

#choose-game .mb-cg__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

#choose-game .mb-cg__btn:hover {
  background: rgba(129, 4, 203, 0.85);
  border-color: #fff;
}

#choose-game .mb-cg__btn--prev {
  left: clamp(8px, 2vw, 24px);
}

#choose-game .mb-cg__btn--next {
  right: clamp(8px, 2vw, 24px);
}

@media (max-width: 768px) {
  #choose-game .mb-cg {
    --mb-cg-active-w: 320px;
    --mb-cg-active-h: 452px;
    --mb-cg-side-w: 252px;
    --mb-cg-side-h: 362px;
    --mb-cg-step: 128px;
    --mb-cg-depth: 36px;
    --mb-cg-rotate: 12deg;
  }

  #choose-game .mb-cg__card {
    border-width: 3px;
  }

  #choose-game .mb-cg__btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  #choose-game .mb-cg {
    --mb-cg-active-w: 288px;
    --mb-cg-active-h: 406px;
    --mb-cg-side-w: 224px;
    --mb-cg-side-h: 318px;
    --mb-cg-step: 108px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  #choose-game .mb-cg {
    --mb-cg-active-w: 400px;
    --mb-cg-active-h: 544px;
    --mb-cg-side-w: 280px;
    --mb-cg-side-h: 380px;
    --mb-cg-step: 168px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #choose-game .mb-cg__slide,
  #choose-game .mb-cg__card {
    transition-duration: 0.01ms !important;
  }
}
