:root {
  color-scheme: dark;
  background: #12143f;
  --first-screen-entry-delay: 0.5s;
  scrollbar-color: rgba(122, 127, 220, 0.82) rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(122, 127, 220, 0.82) rgba(255, 255, 255, 0.2);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(122, 127, 220, 0.82);
}

html,
body {
  min-width: 2560px;
  min-height: 100%;
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  background: #12143f;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: #12143f;
  color: #ffffff;
  font-size: 18px;
  letter-spacing: 0.12em;
  opacity: 1;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.page-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.page-loader__content {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.page-loader__spinner {
  width: 46px;
  height: 46px;
  border: 5px solid rgba(255, 255, 255, 0.28);
  border-top-color: #7a7fdc;
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.activity-stage {
  position: relative;
  left: 50%;
  z-index: 1;
  width: 2560px;
  margin-left: -1280px;
}

.activity-section {
  position: relative;
  width: 2560px;
  height: 11163px;
  overflow: hidden;
}

.activity-section__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 2560px;
  height: 11163px;
  background-image: url('https://static.web.sdo.com/bnb/pic/bnb/act_bnb/20260923NDstore/bg1.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 2560px 11163px;
}

.site-logo {
  position: absolute;
  top: 63px;
  left: 50%;
  z-index: 12;
  display: block;
  width: 159px;
  height: 150px;
  margin-left: -1127px;
  background-image: url('https://static.web.sdo.com/bnb/pic/bnb/act_bnb/2024bnb_zm/logo.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  transition: transform 0.25s ease, filter 0.25s ease;
  animation: site-logo-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) calc(0.9s + var(--first-screen-entry-delay)) both;
  animation-play-state: paused;
}

html:not(.is-loading) .site-logo {
  animation-play-state: running;
}

.site-logo:hover,
.actGotop:hover {
  filter: brightness(1.12);
  transform: translateY(-6px);
}

.site-logo:focus-visible,
.actGotop:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
}

/* ---- 设计层通用 ---- */
.design-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 2560px;
  pointer-events: none;
  animation-play-state: paused;
}

html:not(.is-loading) .design-layer {
  animation-play-state: running;
}

.design-layer img,
.design-layer .dongci-gif,
.design-layer .banner-gif,
.design-layer .bottom-gif {
  position: absolute;
  display: block;
}

.design-layer--decor-dot {
  z-index: 1;
}

[data-reveal-on-scroll] {
  opacity: 0;
  transform: translate3d(0, 64px, 0) scale(0.95);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

html:not(.is-loading) [data-reveal-on-scroll].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* ---- 点缀：整页氛围装饰（一暗一闪） ---- */
.design-layer--decor-dot img {
  top: 1706px;
  left: 61px;
  width: 2499px;
  height: 9002px;
  transform-origin: 50% 50%;
  will-change: filter, transform;
  animation: decor-dot-flicker 3.2s ease-in-out calc(1.2s + var(--first-screen-entry-delay)) infinite, decor-dot-float 6s ease-in-out calc(1.2s + var(--first-screen-entry-delay)) infinite;
  animation-play-state: paused;
}

html:not(.is-loading) .design-layer--decor-dot img {
  animation-play-state: running;
}

/* ---- 顶部 KV ---- */
.design-layer--kv {
  top: 103px;
  height: 1543px;
  z-index: 3;
}
/* KV 弹跳入场（覆盖通用 reveal 过渡，带过冲弹性） */
.design-layer--kv[data-reveal-on-scroll] {
  opacity: 0;
  transform: translate3d(0, 140px, 0) scale(0.8);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html:not(.is-loading) .design-layer--kv[data-reveal-on-scroll].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.design-layer--kv img.design-img--char { top: 0px; left: 392px; width: 1940px; height: 1015px; }
.design-layer--kv img.design-img--title { top: 701px; left: 307px; width: 1891px; height: 842px; }
.design-layer--kv img.design-img--activitytime { top: 1345px; left: 752px; width: 1094px; height: 63px; }

/* 立绘中的两个人物持续上下浮动 */
.design-layer--kv img.design-img--char {
  animation: kv-float 4s ease-in-out infinite;
  animation-play-state: paused;
}
html:not(.is-loading) .design-layer--kv img.design-img--char {
  animation-play-state: running;
}

/* 星光主题标题 + 活动时间标：持续放大缩小（呼吸感） */
.design-layer--kv img.design-img--title,
.design-layer--kv img.design-img--activitytime {
  transform-origin: 50% 50%;
  animation: kv-scale 5s ease-in-out infinite;
  animation-play-state: paused;
}
html:not(.is-loading) .design-layer--kv img.design-img--title,
html:not(.is-loading) .design-layer--kv img.design-img--activitytime {
  animation-play-state: running;
}

/* ---- 副标题：泡泡音浪唱吧 ---- */
.design-layer--subtitle { top: 1871px; height: 369px; }
.design-layer--subtitle .design-img { top: 0px; left: 800px; width: 922px; height: 369px; }

/* ---- 积分兑换面板 ---- */
.design-layer--panel { top: 2344px; height: 588px; }
.design-layer--panel .design-img { top: 0px; left: 907px; width: 787px; height: 588px; }

/* ---- 动次哒次套装收集模块 ---- */
.design-layer--dongci { top: 3407px; height: 1949px; }
.design-layer--dongci .design-img { top: 0px; left: 683px; width: 1342px; height: 1949px; }
.design-layer--dongci .dongci-gif { z-index: 4; }
.design-layer--dongci .dongci-gif--1 { top: 195px; left: 1065px; width: 110px; height: 110px; }
.design-layer--dongci .dongci-gif--2 { top: 197px; left: 1389px; width: 110px; height: 110px; }
.design-layer--dongci .dongci-gif--3 { top: 498px; left: 881px; width: 134px; height: 134px; }
.design-layer--dongci .dongci-gif--4 { top: 510px; left: 1216px; width: 110px; height: 110px; }
.design-layer--dongci .dongci-gif--5 { top: 509px; left: 1540px; width: 110px; height: 110px; }
.design-layer--dongci .dongci-effect { top: 94px; left: 1649px; width: 397px; height: 261px; z-index: 5; }
.design-layer--dongci .dongci-effect--1 { top: 134px; left: 722px; width: 181px; height: 187px; z-index: 5; }

/* ---- 泡泡唱吧活动公告（2notice，叠于动次哒次上方） ---- */
.design-layer--notice { top: 2952px; height: 478px; }
.design-layer--notice .design-img { top: 0px; left: 1099px; width: 377px; height: 478px; z-index: 6; }

/* ---- 精彩主题活动：标题横幅（位于佳节欢乐送上方） ---- */
.design-layer--theme-title { top: 4195px; height: 370px; }
.design-layer--theme-title .design-img { top: 0px; left: 821px; width: 927px; height: 370px; }

/* ---- 活动横幅区 ---- */
.design-layer--banners { top: 4581px; height: 4272px; }
.design-layer--banners .banner { width: 956px; height: 511px; }
.design-layer--banners .banner--fest-send { top: 0px; left: 788px; }
.design-layer--banners .banner--show { top: 528px; left: 794px; width: 1317px; height: 511px; }
.design-layer--banners .banner-effect { top: 657px; left: 1763px; width: 348px; height: 229px; z-index: 5; }
.design-layer--banners .banner--candy { top: 1080px; left: 788px; }
.design-layer--banners .banner--armory { top: 1617px; left: 788px; }
.design-layer--banners .banner--treasury { top: 2154px; left: 788px; }
.design-layer--banners .banner--destiny { top: 2680px; left: 788px; }
.design-layer--banners .banner--carnival { top: 3224px; left: 781px; }
.design-layer--banners .banner--special { top: 3761px; left: 781px; }
.design-layer--banners .banner-gif { z-index: 4; width: 110px; height: 110px; }
.design-layer--banners .banner-gif--6 { top: 701px; left: 1372px; }
.design-layer--banners .banner-gif--7 { top: 1251px; left: 1366px; }
.design-layer--banners .banner-gif--8 { top: 1790px; left: 1366px; }
.design-layer--banners .banner-gif--9 { top: 2313px; left: 1258px; width: 134px; height: 134px; }
.design-layer--banners .banner-gif--10 { top: 2324px; left: 1401px; }
.design-layer--banners .banner-gif--11 { top: 2312px; left: 1525px; width: 134px; height: 134px; }

/* ---- 底部区域 ---- */
.design-layer--bottom { top: 8892px; height: 1867px; }
.design-layer--bottom .bottom-img--love { top: 0px; left: 619px; width: 1322px; height: 506px; }
.design-layer--bottom .bottom-img--frame { top: 527px; left: 74px; width: 2411px; height: 480px; }
.design-layer--bottom .bottom-img--login { top: 1026px; left: 561px; width: 1425px; height: 841px; }
.design-layer--bottom .bottom-gif { top: 1208px; left: 1639px; width: 110px; height: 110px; z-index: 4; }

.star-mask-canvas {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.actGotop {
  position: fixed;
  z-index: 8;
  right: 20px;
  bottom: 165px;
  display: none;
  width: 74px;
  height: 64px;
  padding: 0;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: url('https://static.web.sdo.com/bnb/pic/bnb/act_bnb/2024bnb_zm/top.png');
  background-position: 0 0;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

@keyframes site-logo-in {
  from {
    opacity: 0;
    transform: translate3d(0, -24px, 0) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* 点缀一暗一闪（仿 decor-cat-flicker） */
@keyframes decor-dot-flicker {
  0%,
  100% {
    filter: brightness(0.78);
  }

  32% {
    filter: brightness(1.12);
  }

  44% {
    filter: brightness(1.48);
  }

  58% {
    filter: brightness(1.08);
  }
}

/* 点缀整层缓慢上下浮动 */
@keyframes decor-dot-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-28px);
  }
}

/* KV 角色持续上下浮动 */
@keyframes kv-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* KV 标题/活动时间：呼吸式放大缩小 */
@keyframes kv-scale {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .site-logo,
  [data-reveal-on-scroll] {
    opacity: 1;
  }
}