/* ---- static-clone overrides: the original ships a JS swiper/marquee, we re-drive them ---- */

html,
body {
  background: #0d0a12;
  -webkit-text-size-adjust: 100%;
}

/* banner slider is driven by custom.js */
.home_swiper .swiper-wrapper {
  transform: translate3d(0, 0, 0);
  transition: transform 0.4s ease;
  will-change: transform;
}

.home_swiper .swiper-slide {
  flex: 0 0 auto;
  width: min(calc(100vw - 38px), 398px) !important;
}

/* notice marquee is driven by custom.js */
.van-notice-bar__content {
  transition: none;
  will-change: transform;
  white-space: nowrap;
}

/* dancing dot on the active pagination bullet */
.swiper-pagination-bullet {
  position: relative;
}

.anim-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  animation: clone-pulse 1.6s ease-out infinite;
}

@keyframes clone-pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* horizontal game rails: whole row scrolls, buttons nudge it */
.gameListNew {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.gameListNew::-webkit-scrollbar {
  display: none;
}

/* keep the clickable bits feeling clickable */
.loginBtn,
.van-tab,
.tabbarNew .van-tabbar-item,
.options .item,
.wallet,
.more_icon,
.back-top,
.left_btn,
.right_btn {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.back-top.is-visible {
  display: block !important;
}

/* the floating bar itself is already fixed by the original sheet; the wrapper stays in flow */

/* tiny demo toast for the stubbed buttons */
.clone-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.94);
  padding: min(2.667vw, 11.413px) min(5.333vw, 22.827px);
  border-radius: min(1.6vw, 6.848px);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: min(3.733vw, 15.979px);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.clone-toast.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* desktop: keep the phone frame centred like the original */
@media (min-width: 429px) {
  body {
    max-width: 428px;
    margin: 0 auto;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.55);
  }
  .portal-header {
    max-width: 428px;
    margin: 0 auto;
  }
  .back-top {
    max-width: 428px;
  }
}
