/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

html,
body {
  height: 100%;
  overflow: hidden; /* 自己控制滚动 */
  -ms-scroll-chaining: none;
      overscroll-behavior: none; /* 关键：禁止 Mac 橡皮筋 */
}
body {
  --primary: #ffa51d;
  cursor: url("../img/common/public/cursor.webp")
      4 4,
    auto;
}
img {
  width: 100%;
  height: auto;
}

@font-face {
  font-family: "mianhuatang";
  src: url("../font/ERYaMianHuaTang.ttf");
  font-weight: 400;
  font-style: normal;
}
.font-mianhuatang {
  font-family: "mianhuatang";
}
@font-face {
  font-family: "huhmlet";
  src: url("../font/ERYaMianHuaTang.ttf");
  font-weight: 600;
}
.font-huhmlet {
  font-family: "huhmlet";
}
@font-face {
  font-family: "siyuanhei";
  src: url("../font/SourceHanSansCN-Regular.ttf");
  font-weight: 400;
}
@font-face {
  font-family: "siyuanhei";
  src: url("../font/SourceHanSansCN-Medium.ttf");
  font-weight: 500;
}
@font-face {
  font-family: "siyuanhei";
  src: url("../font/SourceHanSansCN-Bold.otf");
  font-weight: 600;
}
@font-face {
  font-family: "jp_fallback_body";
  src: url("../font/jp_fallback_body.otf");
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "SourceHanSansTWHK";
  src: url("../font/SourceHanSansTWHK.otf");
  font-style: normal;
  font-weight: 600;
}
.font-siyuanlei {
  font-family: "siyuanhei";
}

#pc_container {
  background-color: #000;
  width: 100vw;
  height: 100vh;
  position: relative;
  /* overflow: hidden; */
  background-image: url("../img/common/public/overflow_bg.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#pc_container__wrap {
  aspect-ratio: 16 / 9;
  max-width: 100vw;
  max-height: 100vh;
  position: relative;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%) !important;
  /* background-color: #fff; */

  --designW: 1920px;
  --designH: 1080px;
  --s: min(100vw / var(--designW), 100vh / var(--designH));
}
#pc_container__ground {
  width: 2500px;
  /* height: min-content; */
  height: 1080px;
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%) scale(var(--s));
      -ms-transform: translate(-50%, -50%) scale(var(--s));
          transform: translate(-50%, -50%) scale(var(--s)) !important;
  /* transform: translate(-50%, -50%) scale(var(--s));
  transform-origin: center; */
  overflow: hidden;
}
#pc_container__content {
  width: var(--designW);
  height: var(--designH);
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%) !important;
  -webkit-transform-origin: center;
      -ms-transform-origin: center;
          transform-origin: center !important;
}
.pc_continer_overflow_bg,
.consult_wrapper {
  position: absolute;
  left: 50%;
  top: 0;
  width: 130%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  -webkit-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  max-width: calc(100vw / var(--s));
  pointer-events: none;
}
.consult_wrapper {
  z-index: 99;
}
.global_bg {
  display: block !important;
}
.global_bg > * {
  pointer-events: all;
}
.text-primary {
  color: var(--primary);
}
.consult,
.consult_close {
  position: absolute;
  right: 0;
  top: 50%;
  z-index: 10;
  -webkit-transform: translate(100%, -50%);
      -ms-transform: translate(100%, -50%);
          transform: translate(100%, -50%);
  width: 111px;
  height: 531px;
  /* background: url(../img/common/public/consult.webp); */
  background: url(../img/common/consult/consult_bg.webp);
  background-size: contain;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  margin-top: -25px;
}
.consult.show {
  -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
          transform: translate(0, -50%);
}
.consult_item {
  position: absolute;
  width: 60px;
  height: 60px;
  /* cursor: pointer; */
  /* background-color: rgba(0, 0, 0, .3); */
  right: 0;
  display: block;
}
.consult_item .item_qrcode {
  display: none;
  width: 143px;
  height: 153px;
  background: url(../img/common/consult/scan_bg.webp)
    no-repeat center/143px 153px;
  position: absolute;
  top: 50%;
  right: calc(100% + 4px);
  z-index: 11;
  -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
          transform: translate(0, -50%);
  padding: 15px 25px 15px 15px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  font-size: 15px;
  text-align: center;
  color: #d98900;
}
.consult_item .item_qrcode img {
  width: 100%;
  height: auto;
}
.consult_item .item_qrcode p {
  margin-top: -5px;
  white-space: nowrap;
}

.consult_item:has(.item_qrcode):hover .item_qrcode {
  display: block;
}

/**/
.consult_btn_close {
  width: 40px;
  height: 100px;
  /* cursor: pointer; */
  position: relative;
  left: 0;
  top: 50%;
  -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
          transform: translate(0, -50%);
  /* background-color: rgba(0, 0, 0, .3); */
  background: url(../img/common/consult/arrow.webp)
    no-repeat 20px/20px 23px;
}
.consult_btn_close:hover {
  background: url(../img/common/consult/arrow_active.webp)
    no-repeat 20px/20px 23px;
}
.consult_close {
  width: 66px;
  height: 144px;
  -webkit-transform: translate(100%, -50%);
      -ms-transform: translate(100%, -50%);
          transform: translate(100%, -50%);
  background: url(../img/common/public/consult_close.webp);

  /* cursor: pointer; */
}
[lang="ko"] .consult_close {
  background: url(../img/ko/consult/consult_close.webp);
}
.consult_close:hover {
  background: url(../img/common/consult/consult_close_active.webp);
}
[lang="ko"] .consult_close:hover {
  background: url(../img/ko/consult/consult_close_active.webp);
}
.consult_close.show {
  -webkit-transform: translate(0, -50%);
      -ms-transform: translate(0, -50%);
          transform: translate(0, -50%);
}

.star-mask {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 999;
  pointer-events: none;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}
#home,
#roles,
#game,
#news,
#pay {
  height: 1080px !important;
  padding-top: 90px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  display: none;
}
#home {
  display: block;
  padding-top: 0;
}
#footer,
#consult_wrapper {
  display: block !important;
}

/* 首页 */
#subscribe {
  position: absolute;
  bottom: 40px;
  left: 50%;
  z-index: 10;
  -webkit-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  margin-left: -12px;
  width: 395px;
  height: 110px;
  /* cursor: pointer; */
  background: url(../img/common/public/subscribe_btn.webp);
  background-size: contain;
  -webkit-transition: all 0.1s ease;
  -o-transition: all 0.1s ease;
  transition: all 0.1s ease;
}
[lang="ko"] #subscribe {
  background: url(../img/ko/public/subscribe_btn.webp);
  background-size: contain;
}
#subscribe:active {
  -webkit-transform: translate(-50%, 0) scale(0.92);
      -ms-transform: translate(-50%, 0) scale(0.92);
          transform: translate(-50%, 0) scale(0.92);
}
#download {
  position: absolute;
  bottom: 43px;
  left: 50%;
  z-index: 10;
  -webkit-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  width: 497px;
  height: 152px;
  /* cursor: pointer; */
  background-image: url(../img/common/public/pc_download.webp);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  display: none;
}
[lang="ko"] #download {
  background-image: url(../img/ko/public/pc_download.webp);
}
#download_android,
#download_ios {
  display: block;
  /* background-color: rgba(255, 102, 0, 0.5); */
  width: 186px;
  height: 57px;
  position: absolute;
  left: 155px;
  top: 12px;
}
#download_ios {
  top: 82px;
}
#pay_icon {
  display: block;
  width: 123px;
  height: 123px;
  position: absolute;
  top: 14px;
  left: 14px;
}

#download_official {
  position: absolute;
  bottom: 43px;
  left: 50%;
  z-index: 10;
  -webkit-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  width: 363px;
  height: 152px;
  /* cursor: pointer; */
  background-image: url(../img/common/public/pc_download_official.webp);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
[lang="ko"] #download_official {
  background-image: url(../img/ko/public/pc_download_official.webp);
}
#download_official #download_android,
#download_official #download_ios {
  display: block;
  /* background-color: rgba(255, 102, 0, 0.5); */
  width: 186px;
  height: 57px;
  position: absolute;
  left: 20px;
  top: 12px;
}
#download_official #download_ios {
  top: 82px;
}

#home .pc_continer_overflow_bg {
  /* background: url(../img/common/home/home_bg.webp) no-repeat
    center/cover; */
  position: relative;
}
#section_wrapper_home_bg_video {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2500px;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
  -webkit-transform: translateX(-50%);
      -ms-transform: translateX(-50%);
          transform: translateX(-50%);
}
#home .slogan {
  position: absolute;
  bottom: 164px;
  left: 50%;
  z-index: 10;
  -webkit-transform: translate(-50%, 0);
      -ms-transform: translate(-50%, 0);
          transform: translate(-50%, 0);
  width: 828px;
  height: auto;
  background-image: url(../img/common/home/slogan.gif);
  background-size: 100% auto;
  aspect-ratio: 628/261;
}
[lang="ko"] #home .slogan {
  background-image: url(../img/ko/home/slogan.gif);
  width: 826px;
  aspect-ratio: 885/426;
  bottom: 150px;
}

/* ── 侧栏：新版底框 + 三个新社交入口（常态橙 / 悬停深棕）────────────────
   底框与图标均按素材原始尺寸 1:1 呈现，不做拉伸；三个图标在框内垂直居中 */
.consult {
  width: 113px;
  height: 323px;
  background-image: url(../img/common/consult/consult_bg_v2.webp);
  background-size: 113px 323px;
  background-repeat: no-repeat;
}
.consult_item:nth-of-type(1) { top: 54px; }
.consult_item:nth-of-type(2) { top: 131px; }
.consult_item:nth-of-type(3) { top: 208px; }

.consult_item[data-social="kakaotalk"] {
  background: url(../img/common/consult/kakaotalk.webp) no-repeat center/39px 37px;
}
.consult_item[data-social="kakaotalk"]:hover {
  background: url(../img/common/consult/kakaotalk_active.webp) no-repeat center/39px 37px;
}
.consult_item[data-social="youtube"] {
  background: url(../img/common/consult/youtube_v2.webp) no-repeat center/39px 39px;
}
.consult_item[data-social="youtube"]:hover {
  background: url(../img/common/consult/youtube_v2_active.webp) no-repeat center/39px 39px;
}
.consult_item[data-social="community"] {
  background: url(../img/common/consult/community.webp) no-repeat center/39px 30px;
}
.consult_item[data-social="community"]:hover {
  background: url(../img/common/consult/community_active.webp) no-repeat center/39px 30px;
}

/* 收起按钮箭头换新素材 */
.consult_btn_close {
  background: url(../img/common/consult/arrow_v2.webp) no-repeat 20px/20px 23px;
}
.consult_btn_close:hover {
  background: url(../img/common/consult/arrow_v2_active.webp) no-repeat 20px/20px 23px;
}

/* 顶部新增 tab：타타 MBTI */
.header_nav__item[data-nav="mbti"] img {
  height: 32px;
}
