/* 04. Owl Carousel: preserve the desktop and mobile Figma card geometry. */
.brand-stage.owl-carousel {
  display: block;
  height: 388px;
}

.brand-stage .owl-stage-outer {
  height: 388px;
}

.brand-stage .owl-stage {
  touch-action: pan-y;
}

.brand-stage .brand-slide {
  width: 466px;
  height: 388px;
  position: relative;
}

.brand-stage .brand-card {
  top: 38px;
  width: 300px;
  height: 280px;
  opacity: .35;
  transition: width .35s ease, height .35s ease, top .35s ease, opacity .35s ease,
    translate .35s cubic-bezier(.22, 1, .36, 1);
}

.brand-stage .owl-item.center .brand-card,
.brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide:first-child .brand-card {
  top: 8px;
  width: 440px;
  height: 340px;
  opacity: 1;
}

/* The neighboring Figma cards are faded empty previews. */
.brand-stage .brand-logo,
.brand-stage .brand-caption {
  opacity: 0;
  transition: opacity .25s ease;
}

.brand-stage .owl-item.center .brand-logo,
.brand-stage .owl-item.center [data-brand="youwin"] .brand-caption,
.brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide:first-child .brand-logo,
.brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide:first-child .brand-caption {
  opacity: 1;
}

.brand-stage.owl-carousel .brand-logo img {
  height: auto;
  max-width: calc(100% + 5px);
}

.brand-stage [data-brand="youwin"] .brand-logo img {
  width: 387px;
}

.brand-stage [data-brand="uwin"] .brand-logo img {
  width: 202px;
}

.brand-stage [data-brand="mroyun"] .brand-logo img {
  width: 224px;
}

.brand-stage.owl-carousel .brand-caption img {
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
}

/* Static fallback: first card remains visible without vendor JavaScript. */
.brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide {
  display: none;
}

.brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide:first-child {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Mobile: 271px active card, 200px previews, and controls below the stage. */
@media(max-width:768px) {

  .brand-stage.owl-carousel,
  .brand-stage .owl-stage-outer {
    height: 348px;
  }

  .brand-stage .brand-slide {
    width: 251.5px;
    height: 348px;
  }

  .brand-stage .brand-card {
    top: 33px;
    width: 200px;
    height: 250px;
  }

  .brand-stage .owl-item.center .brand-card,
  .brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide:first-child .brand-card {
    top: 8px;
    width: 271px;
    height: 300px;
  }

  .brand-stage [data-brand="youwin"] .brand-logo img {
    width: 221px;
    height: 48px;
  }

  .brand-stage.owl-carousel .brand-logo img {
    max-width: 100%;
  }
}

@media(prefers-reduced-motion:reduce) {

  .brand-stage .brand-card,
  .brand-stage .brand-logo,
  .brand-stage .brand-caption {
    transition: none;
  }
}


/* Keep the Figma arrows above Owl’s positioned track. */
.brand-carousel .carousel-arrow {
  z-index: 2;
}

/* Side previews have no visible border or hover lift in the Figma layout. */
.brand-stage .brand-card {
  border-color: transparent;
}

.brand-stage .owl-item.center .brand-card,
.brand-stage:not(.owl-loaded):not(.owl-loading) .brand-slide:first-child .brand-card {
  border-color: var(--dark-border);
}

.brand-stage .owl-item:not(.center) .brand-card:hover {
  translate: none;
}