/* GamePC homepage campaign carousel: four cards, compact controls, no overlays. */
body.in-index .content-wrapper.homepage-box.before-carousel,
body.in-index .content-wrapper.homepage-box.before-carousel > .content-wrapper-in,
body.in-index #carousel {
  background-color: #fff !important;
  background-image: none !important;
}

body.in-index #carousel {
  --gpc-carousel-gap: 18px;
  --gpc-carousel-control: 44px;
  position: relative;
  width: 100%;
  height: auto !important;
  padding: 18px 20px 42px !important;
}

body.in-index #carousel .carousel-inner {
  display: flex !important;
  width: 100%;
  height: auto !important;
  gap: var(--gpc-carousel-gap);
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.in-index #carousel .carousel-inner::-webkit-scrollbar {
  display: none;
}

body.in-index #carousel .carousel-inner > .item {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  flex: 0 0 calc((100% - (3 * var(--gpc-carousel-gap))) / 4) !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  transform: none !important;
  transition: none !important;
  overflow: hidden;
  border-radius: 12px;
  scroll-snap-align: start;
}

body.in-index #carousel .carousel-inner > .item > a,
body.in-index #carousel .carousel-inner > .item img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

body.in-index #carousel .carousel-inner > .item img {
  aspect-ratio: 22 / 25;
  object-fit: cover !important;
  border-radius: 12px;
}

body.in-index #carousel .carousel-control {
  top: 50% !important;
  bottom: auto !important;
  width: var(--gpc-carousel-control) !important;
  min-width: var(--gpc-carousel-control) !important;
  max-width: var(--gpc-carousel-control) !important;
  height: var(--gpc-carousel-control) !important;
  min-height: var(--gpc-carousel-control) !important;
  max-height: var(--gpc-carousel-control) !important;
  margin: 0 !important;
  border: 1px solid rgba(38, 2, 96, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 24px rgba(25, 5, 55, 0.18);
  color: #260260 !important;
  opacity: 1 !important;
  padding: 0 !important;
  overflow: hidden !important;
  isolation: isolate;
  box-sizing: border-box !important;
  flex: 0 0 var(--gpc-carousel-control) !important;
  transform: translateY(-70%);
  z-index: 5;
}

body.in-index #carousel .carousel-control::before {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: inherit !important;
  font-size: 18px !important;
  line-height: 1 !important;
  transform: none !important;
}

body.in-index #carousel .carousel-control.left {
  left: 16px !important;
  right: auto !important;
}

body.in-index #carousel .carousel-control.right {
  right: 56px !important;
  left: auto !important;
}

body.in-index #carousel .carousel-control:hover,
body.in-index #carousel .carousel-control:focus {
  width: var(--gpc-carousel-control) !important;
  min-width: var(--gpc-carousel-control) !important;
  max-width: var(--gpc-carousel-control) !important;
  height: var(--gpc-carousel-control) !important;
  min-height: var(--gpc-carousel-control) !important;
  max-height: var(--gpc-carousel-control) !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.98) !important;
  color: #260260 !important;
}

body.in-index #carousel .carousel-indicators {
  position: absolute !important;
  inset: auto 0 14px !important;
  display: flex !important;
  justify-content: center;
  gap: 8px;
  width: auto !important;
  height: 10px;
  margin: 0 !important;
  pointer-events: auto;
}

body.in-index #carousel .carousel-indicators > li {
  position: static !important;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #d8cfe8 !important;
  transform: none !important;
}

body.in-index #carousel .carousel-indicators > li.gpc-active {
  background: #4b00b5 !important;
  box-shadow: 0 0 0 3px rgba(75, 0, 181, 0.12);
}

body.in-index #carousel .carousel-indicators > li.gpc-hidden-dot {
  display: none !important;
}

@media (min-width: 768px) and (max-width: 1199px) {
  body.in-index #carousel .carousel-inner > .item {
    flex-basis: calc((100% - (2 * var(--gpc-carousel-gap))) / 3) !important;
  }
}

@media (max-width: 767px) {
  body.in-index #carousel {
    --gpc-carousel-gap: 12px;
    --gpc-carousel-control: 38px;
    width: 100vw !important;
    max-width: 100vw;
    overflow: hidden !important;
    padding: 10px 10px 34px !important;
  }

  body.in-index #carousel .carousel-inner {
    padding-right: 0 !important;
  }

  body.in-index #carousel .carousel-inner > .item {
    flex-basis: 100% !important;
    border-radius: 10px;
  }

  body.in-index #carousel .carousel-control {
    display: none !important;
  }

  body.in-index #carousel .carousel-indicators {
    bottom: 10px !important;
  }
}

/* LOCK 2026-07-31: stable navigation geometry and colors. */
#navigation .menu-level-1 > li > a {
  display: flex !important;
  align-items: center !important;
}

@media (min-width: 768px) {
  #navigation,
  #navigation .navigation-in,
  #navigation .menu-level-1,
  .navigation-wrapper > .menu-helper,
  .navigation-wrapper > .menu-helper > span {
    background-color: #3f00a8 !important;
    background-image: linear-gradient(90deg, #310078, #4b00b5) !important;
  }

  .navigation-wrapper::before {
    content: "" !important;
    position: absolute !important;
    z-index: 0 !important;
    bottom: 0;
    left: 50%;
    width: 100vw;
    height: 44px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #310078, #4b00b5);
    pointer-events: none;
  }

  .navigation-wrapper > #navigation,
  .navigation-wrapper > .menu-helper {
    z-index: 1;
  }

  #navigation,
  .navigation-wrapper > .menu-helper {
    height: 44px !important;
    min-height: 44px !important;
  }

  #navigation {
    border: 0 !important;
    box-shadow: none !important;
  }

  #navigation .navigation-in,
  #navigation .menu-level-1 {
    min-height: 44px !important;
  }

  #navigation .menu-level-1 > li > a,
  .navigation-wrapper > .menu-helper > span {
    height: 42px !important;
    min-height: 42px !important;
  }

  .navigation-wrapper > .menu-helper > span {
    display: flex !important;
    width: auto !important;
    min-width: 94px !important;
    padding: 0 14px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font: 750 14px/16.1px Nunito, sans-serif !important;
  }

  #navigation .menu-level-1 > li > a,
  #navigation .menu-level-1 > li > a b,
  #navigation .menu-level-1 > li > a .submenu-arrow,
  .navigation-wrapper > .menu-helper > span::after {
    color: #fff !important;
    opacity: 1 !important;
  }

  #navigation .menu-level-1 > li:hover > a,
  #navigation .menu-level-1 > li.exp > a,
  #navigation .menu-level-1 > li.active > a {
    color: #fff !important;
    background: rgba(255, 255, 255, .07) !important;
  }

  #navigation .menu-level-2,
  #navigation .menu-level-3 {
    background-color: #fff !important;
    background-image: none !important;
  }
}
