/* Custom responsive layer. The original CSS stays in assets/index_home.css. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  overscroll-behavior-x: none;
}

img {
  max-width: 100%;
}

.NIE-topBar-main,
.btn-login,
.bar-side,
.part5,
.part6 {
  display: none !important;
}

.swiper-wrapper {
  will-change: transform;
}

.swiper-slide img {
  backface-visibility: hidden;
}

.swiper-slide[data-hidden-duplicate="true"] {
  display: none !important;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  left: 50%;
  position: absolute;
  top: 4.38rem;
  transform: translateX(-50%);
  z-index: 55;
}

.hero-subtitle {
  color: #fff;
  font-family: mcS2, sans-serif;
  font-size: 0.22rem;
  left: 50%;
  line-height: 1.25;
  position: absolute;
  text-align: center;
  text-shadow: #5d647a 0 2px;
  top: 2.95rem;
  transform: translateX(-50%);
  white-space: nowrap;
  width: 90vw;
  z-index: 55;
}

.hero-actions .btn-home-download {
  left: auto !important;
  min-width: 180px;
  position: relative;
  top: auto !important;
  transform: none !important;
  white-space: nowrap;
}

.hero-actions .btn-home-get {
  display: flex !important;
}

.part2 .swiper-explore {
  overflow: hidden !important;
}

.part2 .swiper-explore .swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.part2 .swiper-explore .swiper-slide {
  flex: 0 0 100% !important;
  min-width: 100% !important;
}

/* The main exploration controls are explicit text arrows so the original
   pseudo-element sprites cannot make both controls point in the same way. */
.part2 .part-con > .explore-navigation {
  align-items: center !important;
  display: flex !important;
  gap: 52px !important;
  justify-content: center !important;
  margin: 18px auto 0 !important;
  position: static !important;
}

.part2 .part-con > .explore-navigation button {
  align-items: center !important;
  background: #151515 !important;
  border: 2px solid #fff !important;
  box-sizing: border-box !important;
  color: #fff !important;
  display: flex !important;
  height: 54px !important;
  justify-content: center !important;
  min-width: 72px !important;
  padding: 0 !important;
  position: static !important;
  width: 72px !important;
}

.part2 .part-con > .explore-navigation button::before,
.part2 .part-con > .explore-navigation button::after {
  content: none !important;
  display: none !important;
}

.part2 .part-con > .explore-navigation .gallery-arrow {
  color: #fff !important;
  display: block !important;
  font-family: Arial, sans-serif !important;
  font-size: 42px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  transform: none !important;
}

.part2 .part-con > .explore-navigation .swiper-explore-prev::before,
.part2 .part-con > .explore-navigation .swiper-explore-prev::after,
.part2 .part-con > .explore-navigation .swiper-explore-next::before,
.part2 .part-con > .explore-navigation .swiper-explore-next::after {
  content: none !important;
  display: none !important;
}

.part4 .img-group {
  aspect-ratio: 16 / 9;
  background: #080808;
  height: auto !important;
  margin: 0 auto;
  max-width: 720px;
  min-height: 0 !important;
  overflow: hidden;
  width: min(720px, calc(100% - 64px));
}

.part4 .swiper-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  transition: transform .28s ease;
}

.part4 .swiper-slide {
  box-sizing: border-box;
  flex: 0 0 100% !important;
  min-width: 100% !important;
  width: 100% !important;
}

.part4 .img-group .mode-image {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.part4 .swiper-container {
  overflow: hidden !important;
  width: 100% !important;
}

.part4 .mode-info {
  box-sizing: border-box;
  height: auto !important;
  margin: 0 auto;
  max-width: 820px;
  min-height: 0 !important;
  position: static !important;
  text-align: center;
  width: 100% !important;
}

.part4 .mode-title,
.part4 .mode-desc,
.part3 .way-title,
.part3 .way-desc {
  overflow-wrap: anywhere;
}

.part4 .swiper-gamemode-navigation {
  align-items: center;
  display: flex !important;
  justify-content: center;
  position: static !important;
  transform: none !important;
}

.part4 .swiper-gamemode-prev,
.part4 .swiper-gamemode-next {
  align-items: center;
  display: flex !important;
  justify-content: center;
  position: relative !important;
}

.part4 .swiper-gamemode-prev::after,
.part4 .swiper-gamemode-next::after {
  border: 0 !important;
  color: #fff !important;
  font-family: Arial, sans-serif !important;
  font-weight: 900 !important;
  height: auto !important;
  left: auto !important;
  line-height: 1 !important;
  position: static !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
}

.part4 .swiper-gamemode-prev::after {
  content: "←" !important;
}

.part4 .swiper-gamemode-next::after {
  content: "→" !important;
}

.container .page-top-bar .logo {
  background-image: url("./logo-zhishai-box-pixel.png") !important;
  background-position: left center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  image-rendering: pixelated;
}

.container .footer {
  background: #090909 !important;
}

.container .footer .nie-cn-logo,
.container .footer .nie-cn-part2 {
  display: none !important;
}

.container .footer .nie-copyright-new-inner {
  box-sizing: border-box;
  max-width: 1100px;
  text-align: center !important;
  width: 100% !important;
}

@media screen and (min-width: 769px) {
  .container .page-top-bar .logo {
    width: 2.45rem !important;
  }

  .part4 .swiper-gamemode-navigation {
    gap: 64px;
    margin: 4px auto 30px !important;
  }

  .part4 .swiper-gamemode-prev,
  .part4 .swiper-gamemode-next {
    background: rgba(0, 0, 0, .72) !important;
    border: 2px solid #777 !important;
    height: 54px !important;
    min-width: 64px !important;
    width: 64px !important;
  }

  .part4 .swiper-gamemode-prev::after,
  .part4 .swiper-gamemode-next::after {
    font-size: 36px !important;
  }
}

@media screen and (max-width: 768px) {
  html,
  body {
    min-width: 0 !important;
    width: 100% !important;
  }

  .container {
    background: #0b0b0b !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
    width: 100% !important;
  }

  .container .page-top-bar {
    align-items: center !important;
    background: #242226 !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .28) !important;
    height: 66px !important;
    justify-content: space-between !important;
    left: 0 !important;
    padding: 0 16px !important;
    position: absolute !important;
    top: 0 !important;
    z-index: 80 !important;
  }

  .container .page-top-bar .logo {
    flex: 0 1 auto !important;
    height: 31px !important;
    max-width: 132px !important;
    width: min(122px, 35vw) !important;
  }

  .container .page-top-bar .page-nav {
    display: none !important;
  }

  .container .page-top-bar .btn-group {
    display: flex !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    width: auto !important;
  }

  .container .page-top-bar .btn-group .btn-download {
    align-items: center !important;
    background: transparent !important;
    border: 2px solid #5ba83f !important;
    color: #82d568 !important;
    display: flex !important;
    font-size: 12px !important;
    gap: 7px !important;
    line-height: 18px !important;
    padding: 4px 7px 4px 8px !important;
    white-space: nowrap !important;
  }

  .container .page-top-bar .btn-group .btn-download:after {
    background-color: #82d568 !important;
    flex: 0 0 12px !important;
    height: 8px !important;
    width: 12px !important;
  }

  .container .bg-home {
    background-position: center top !important;
    height: clamp(610px, 168vw, 760px) !important;
    margin-top: 0 !important;
    min-height: 610px !important;
  }

  /* Keep the age notice below the header so it never sits on top of the logo. */
  .container > .bg-age {
    height: 48px !important;
    left: 16px !important;
    top: 76px !important;
    width: 38px !important;
    z-index: 70 !important;
  }

  .container .slogan {
    font-size: clamp(34px, 10vw, 48px) !important;
    line-height: 1.2 !important;
    top: 145px !important;
    width: 92vw !important;
  }

  .hero-subtitle {
    font-size: 12px !important;
    line-height: 1.45 !important;
    top: 278px !important;
    white-space: normal !important;
    width: 88vw !important;
  }

  .hero-actions {
    display: grid !important;
    gap: 7px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    left: 50% !important;
    top: 342px !important;
    transform: translateX(-50%) !important;
    width: min(170px, 48vw) !important;
  }

  .hero-actions .btn-home-download {
    align-items: center !important;
    display: flex !important;
    font-size: 14px !important;
    gap: 5px !important;
    justify-content: center !important;
    letter-spacing: 0 !important;
    min-height: 36px !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
    width: auto !important;
  }

  .hero-actions .btn-home-download:first-child {
    display: flex !important;
  }

  .hero-actions .btn-home-download:after {
    flex: 0 0 10px !important;
    height: 7px !important;
    width: 10px !important;
  }

  .part2,
  .part3,
  .part4 {
    background: #0b0b0b !important;
    color: #fff !important;
  }

  .part2 {
    padding: 28px 0 26px !important;
  }

  .part2 .part-title,
  .part3 .part-title {
    color: #fff !important;
    font-size: 23px !important;
    line-height: 1.3 !important;
    margin: 0 auto 14px !important;
    padding: 0 16px !important;
  }

  .part2 .part-desc {
    color: #e8e8e8 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin: 0 auto !important;
    max-width: 390px !important;
    padding: 0 20px !important;
    text-align: center !important;
  }

  .part2 .part-con {
    margin: 0 auto !important;
    overflow: visible !important;
    padding: 0 16px !important;
    position: relative !important;
  }

  .part2 .img-active {
    align-items: center !important;
    background: #141414 !important;
    box-sizing: border-box !important;
    margin: 18px auto 0 !important;
    max-width: 430px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .part2 .img-active img {
    aspect-ratio: auto !important;
    display: block !important;
    height: auto !important;
    max-height: 360px !important;
    object-fit: contain !important;
    width: 100% !important;
  }

  .part2 .desc-active {
    color: #e8e8e8 !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 12px auto 0 !important;
    max-width: 430px !important;
    padding: 0 4px !important;
    text-align: center !important;
  }

  .part2 .swiper-explore {
    display: none !important;
  }

  /* Keep one compact, visible arrow rail for the main exploration image. */
  .part2 .part-con > .explore-navigation {
    align-items: center !important;
    display: flex !important;
    gap: 44px !important;
    justify-content: center !important;
    margin: 12px auto 0 !important;
    position: static !important;
  }

  .part2 .part-con > .explore-navigation button {
    align-items: center !important;
    background: #151515 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    display: flex !important;
    height: 48px !important;
    justify-content: center !important;
    min-width: 64px !important;
    padding: 0 !important;
    position: static !important;
    width: 64px !important;
  }

  .part2 .part-con > .explore-navigation button::after {
    background: none !important;
    clip-path: none !important;
    color: #fff !important;
    content: "" !important;
    display: block !important;
    font-family: Arial, sans-serif !important;
    font-size: 32px !important;
    height: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
    width: auto !important;
  }

  .part2 .part-con > .explore-navigation .gallery-arrow {
    font-size: 38px !important;
  }

  .part2 .part-con > .explore-navigation .swiper-explore-prev::after {
    content: "←" !important;
  }

  .part2 .part-con > .explore-navigation .swiper-explore-next::after {
    content: "→" !important;
  }

  .part2 .swiper-explore > .swiper-explore-navigation {
    display: none !important;
  }

  .part3 .before-adorn {
    display: none !important;
  }

  .part3 {
    padding: 28px 0 24px !important;
  }

  .part3 .part-con {
    padding: 0 16px !important;
  }

  .part3 .part-inner {
    display: grid !important;
    gap: 12px !important;
    padding: 0 !important;
  }

  .part3 .way-item {
    align-items: center !important;
    background: #171717 !important;
    border: 1px solid #3a3a3a !important;
    box-shadow: 2px 2px 0 #000 !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    margin: 0 !important;
    padding: 10px !important;
  }

  .part3 .way-img,
  .part3 .way-img img {
    display: block !important;
    height: 72px !important;
    object-fit: cover !important;
    width: 72px !important;
  }

  .part3 .way-info {
    min-width: 0 !important;
    text-align: center !important;
  }

  .part3 .way-title {
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 4px !important;
  }

  .part3 .way-desc {
    color: #c8c8c8 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }

  .part4 {
    padding: 0 0 36px !important;
  }

  .part4 .mode-info {
    background: #0b0b0b !important;
    padding: 14px 16px 10px !important;
  }

  .part4 .swiper-gamemode-navigation {
    gap: 26px !important;
    margin: 12px auto 0 !important;
  }

  .part4 .swiper-gamemode-prev,
  .part4 .swiper-gamemode-next {
    background: #111 !important;
    border: 2px solid #fff !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 54px !important;
    width: 54px !important;
  }

  .part4 .swiper-gamemode-prev::after,
  .part4 .swiper-gamemode-next::after {
    font-size: 32px !important;
  }

  .part6 {
    display: none !important;
  }

  .container .footer .nie-copyright-new-inner {
    font-size: 11px;
    padding: 12px 16px 10px !important;
  }
}

/* Final override: remove every legacy sprite/pseudo arrow after the
   original responsive rules have been evaluated. */
.part2 .part-con > .explore-navigation button {
  background-image: none !important;
  clip-path: none !important;
  transform: none !important;
}

.part2 .part-con > .explore-navigation button::before,
.part2 .part-con > .explore-navigation button::after {
  background: none !important;
  background-image: none !important;
  clip-path: none !important;
  content: none !important;
  display: none !important;
  transform: none !important;
}

.part2 .part-con > .explore-navigation .gallery-arrow {
  background: transparent !important;
  clip-path: none !important;
  display: block !important;
  transform: none !important;
}
