@charset "UTF-8";
/* 基礎樣式與版面 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
}

html * {
  font-family: "Microsoft JhengHei";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*:after,
*:before {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: #251620;
  color: #373737;
  font-size: 12px;
  font-weight: bold;
  height: 100%;
}

* {
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  text-decoration: none;
}

.wrap {
  margin: 0 auto;
  overflow: hidden;
  -webkit-transform-origin: top left;
          transform-origin: top left;
  min-width: 1280px;
  background: url(../images/container-bg.jpg) no-repeat center top;
  background-attachment: fixed;
}

.container {
  width: 100%;
  min-width: 1280px;
  margin: 0 auto;
  clip-path: inset(0);
  isolation: isolate;
}

.container-video-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
  background: #251620;
}

.container-video {
  position: absolute;
  left: -60px;
  width: calc(100% + 120px);
  height: calc(100% + 120px);
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  -webkit-filter: blur(6px);
          filter: blur(6px);
}

/* Header 主視覺 */
.header {
  width: 100%;
  height: 960px;
  overflow: hidden;
  background: url(../images/header-bg.jpg) no-repeat center top;
}

.header-title {
  position: absolute;
  left: 50%;
  bottom: 45px;
  width: 614px;
  height: auto;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 40;
  pointer-events: none;
  -webkit-animation: header-title-brightness 8.7s ease-in-out infinite;
          animation: header-title-brightness 8.7s ease-in-out infinite;
}

@-webkit-keyframes header-title-brightness {
  0%, 100% {
    -webkit-filter: brightness(1);
            filter: brightness(1);
  }
  13% {
    -webkit-filter: brightness(1.5);
            filter: brightness(1.5);
  }
  29% {
    -webkit-filter: brightness(0.96);
            filter: brightness(0.96);
  }
  37% {
    -webkit-filter: brightness(1.06);
            filter: brightness(1.06);
  }
  61% {
    -webkit-filter: brightness(1.7);
            filter: brightness(1.7);
  }
  76% {
    -webkit-filter: brightness(1.02);
            filter: brightness(1.02);
  }
  89% {
    -webkit-filter: brightness(1.1);
            filter: brightness(1.1);
  }
}

@keyframes header-title-brightness {
  0%, 100% {
    -webkit-filter: brightness(1);
            filter: brightness(1);
  }
  13% {
    -webkit-filter: brightness(1.5);
            filter: brightness(1.5);
  }
  29% {
    -webkit-filter: brightness(0.96);
            filter: brightness(0.96);
  }
  37% {
    -webkit-filter: brightness(1.06);
            filter: brightness(1.06);
  }
  61% {
    -webkit-filter: brightness(1.7);
            filter: brightness(1.7);
  }
  76% {
    -webkit-filter: brightness(1.02);
            filter: brightness(1.02);
  }
  89% {
    -webkit-filter: brightness(1.1);
            filter: brightness(1.1);
  }
}
.header-bottom-fog {
  width: 100%;
  height: 0;
  z-index: 30;
  pointer-events: none;
}
.header-bottom-fog img {
  position: absolute;
  top: 58px;
  left: 50%;
  width: 1920px;
  min-width: 100%;
  height: auto;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.header-video {
  --video-offset: 90px;
  position: absolute;
  top: calc(0px - var(--video-offset));
  left: 0;
  width: 100%;
  height: calc(100% + var(--video-offset));
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center top;
     object-position: center top;
  pointer-events: none;
  z-index: 0;
}

/* 桌面固定選單 */
.top-menu {
  position: fixed;
  top: 50%;
  -webkit-transform: translateY(-60%);
          transform: translateY(-60%);
  left: 12px;
  width: 200px;
  height: 298px;
  z-index: 100;
  background: url("../images/left-menu.png") no-repeat center/contain;
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.top-menu.show {
  opacity: 1;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.promo-btn {
  position: fixed;
  right: 10px;
  bottom: 30px;
  width: 210px;
  height: auto;
  z-index: 50;
  -webkit-transform-origin: center bottom;
          transform-origin: center bottom;
  -webkit-animation: promo-sway 3s ease-in-out infinite;
          animation: promo-sway 3s ease-in-out infinite;
}

.promo-btn img {
  display: block;
  width: 100%;
  height: auto;
}

#menu {
  padding-top: 42px;
}

#menu a {
  width: 150px;
  height: 29px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 auto 2px;
  background: none;
  color: #806a49;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}

#menu a:hover {
  color: #fff4d8;
}

#menu a.active {
  background: url("../images/right-menu-btn-ac-bg.png") no-repeat center/100% 100%;
  color: #fff;
}

.social-btns {
  z-index: 100;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: right;
      -ms-flex-pack: right;
          justify-content: right;
  padding-top: 42px;
  padding-right: 60px;
}
.social-btns a {
  display: block;
  width: 60px;
  height: 60px;
  margin-right: 10px;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border-radius: 50%;
}
.social-btns a img {
  width: 100%;
  height: 100%;
}
.social-btns a:hover {
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
  -webkit-box-shadow: 0 0 15px rgba(165, 92, 35, 0.8);
          box-shadow: 0 0 15px rgba(165, 92, 35, 0.8);
}

.m-social-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.m-social-btns a {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  -webkit-transition: -webkit-filter 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-filter 0.3s, -webkit-box-shadow 0.3s;
  transition: filter 0.3s, box-shadow 0.3s;
  transition: filter 0.3s, box-shadow 0.3s, -webkit-filter 0.3s, -webkit-box-shadow 0.3s;
}

.m-social-btns a img {
  display: block;
  width: 100%;
  height: 100%;
}

.m-social-btns a:hover {
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
  -webkit-box-shadow: 0 0 15px rgba(165, 92, 35, 0.8);
          box-shadow: 0 0 15px rgba(165, 92, 35, 0.8);
}

.logo {
  display: block;
  width: 278px;
  height: 242px;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 50;
}

.inner {
  width: 1280px;
  height: 100%;
  margin: 0 auto;
  z-index: 20;
}

.tit-box {
  width: 100%;
  text-align: center;
}

/* 頁尾 */
.footer {
  width: 100%;
  height: 150px;
  background: #09172e;
  color: #5c7091;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.footer-inner {
  width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.footer-left, .footer-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 12px;
}

.lager-logo {
  width: 143px;
  height: 40px;
  margin-right: 10px;
  background: url("../images/lager-logo.png") center no-repeat;
}

.class-level {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

/* 漢堡選單按鈕 */
.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  width: 50px;
  height: 50px;
  background: #f2e6d3;
  border-radius: 50% 0 50% 0;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
  z-index: 1000;
  border: 3px solid #b68862;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #b68862;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  top: 21px;
  left: 9px;
  border-radius: 10px;
}

.hamburger div::before,
.hamburger div::after {
  content: "";
  width: 25px;
  height: 3px;
  background: #b68862;
  position: absolute;
  left: 0;
  border-radius: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.hamburger div::before {
  top: -8px;
}

.hamburger div::after {
  top: 8px;
}

/* 漢堡選單開啟時變叉叉 */
.hamburger.active div {
  background: transparent;
}

.hamburger.active div::before {
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
  top: 0;
}

.hamburger.active div::after {
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  top: 0;
}

/* 側邊選單 */
.menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  overflow-y: auto;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
  padding-bottom: 20px;
  background: rgba(21, 20, 41, 0.95);
  color: white;
  padding-top: 0px;
  -webkit-transition: left 0.3s ease;
  transition: left 0.3s ease;
  z-index: 999;
}

.menu.active {
  left: 0;
}

.scroll-btn {
  width: 100%;
  display: block;
  height: 50px;
  font-size: 18px;
  text-align: center;
  line-height: 50px;
  color: #fff;
  text-shadow: 0 0 5px #d3def2;
  cursor: pointer;
}

.m-menu-logo {
  width: 177px;
  margin: 10px auto 0px;
}

.m-menu-logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* sec1：慶賀改版大放送 */
.sec1 {
  width: 100%;
  padding-top: 60px;
  height: auto;
  padding-bottom: 65px;
}

.sec1-login {
  text-align: center;
  margin: 8px auto 0;
}

.sec1-login-word {
  display: block;
  width: 683px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
}

.sec1-login-btn {
  display: block;
  width: 202px;
  height: 44px;
  margin: 0 auto;
  border: 0;
  border-radius: 24px;
  background: #af9469;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
  z-index: 50;
}

.sec1-login-btn:hover {
  -webkit-filter: brightness(1.12);
          filter: brightness(1.12);
}

.sec1-gifts {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 30px;
  margin-top: -25px;
}

.sec1-gift {
  width: 555px;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 555px;
          flex: 0 0 555px;
}

.sec1-gift-bg {
  display: block;
  width: 100%;
  height: auto;
}

.sec1-gift-decoration {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation: sec1-decoration-float 5.6s ease-in-out infinite;
          animation: sec1-decoration-float 5.6s ease-in-out infinite;
}

.sec1-gift-blue .sec1-gift-decoration {
  width: 150px;
  left: -30px;
  bottom: -2px;
}

.sec1-gift-pink .sec1-gift-decoration {
  width: 198px;
  right: -101px;
  bottom: 6px;
  -webkit-animation-duration: 6.8s;
          animation-duration: 6.8s;
  -webkit-animation-delay: -2.4s;
          animation-delay: -2.4s;
}

@-webkit-keyframes sec1-decoration-float {
  0%, 100% {
    -webkit-transform: translate(0, 0) rotate(-1deg);
            transform: translate(0, 0) rotate(-1deg);
  }
  35% {
    -webkit-transform: translate(2px, -7px) rotate(1.5deg);
            transform: translate(2px, -7px) rotate(1.5deg);
  }
  70% {
    -webkit-transform: translate(-2px, -3px) rotate(-0.5deg);
            transform: translate(-2px, -3px) rotate(-0.5deg);
  }
}

@keyframes sec1-decoration-float {
  0%, 100% {
    -webkit-transform: translate(0, 0) rotate(-1deg);
            transform: translate(0, 0) rotate(-1deg);
  }
  35% {
    -webkit-transform: translate(2px, -7px) rotate(1.5deg);
            transform: translate(2px, -7px) rotate(1.5deg);
  }
  70% {
    -webkit-transform: translate(-2px, -3px) rotate(-0.5deg);
            transform: translate(-2px, -3px) rotate(-0.5deg);
  }
}
.sec1-gift-actions {
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  bottom: 48px;
  width: 263px;
  z-index: 3;
}

.sec1-reward-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}

.sec1-reward-btn[hidden] {
  display: none;
}

.sec1-reward-btn:disabled {
  cursor: default;
}

.sec1-reward-btn:not(:disabled):hover {
  -webkit-filter: brightness(1.12);
          filter: brightness(1.12);
}

.sec1-reward-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.sec1-notice {
  width: 1140px;
  margin: 45px auto 0;
  color: #bda071;
  font-size: 16px;
  line-height: 1.8;
  font-weight: normal;
}

.sec1-notice-title {
  display: block;
  width: 348px;
  height: auto;
  margin-left: -40px;
  margin-bottom: -20px;
}

.sec1-notice ol {
  padding-left: 24px;
}

.sec2-word1 {
  width: 699px;
  height: 166px;
  margin: 0 auto;
}

/* sec2-1：藍鬍子任務 */
.sec2-1 {
  width: 1225px;
  margin: 30px auto 0;
}

.sec2-subtitle {
  text-align: center;
  margin-bottom: 12px;
}

.sec2-subtitle img {
  display: block;
  width: 338px;
  height: auto;
  margin: 0 auto;
}

.sec2-1-panel {
  min-height: 438px;
  padding: 96px 28px 40px 624px;
  background: url("../images/sec2-1-pic1.png") no-repeat center top;
  color: #fff;
  font-size: 18px;
  line-height: 1.75;
}

.sec2-1-limit-title img {
  display: block;
  width: 328px;
  height: auto;
  max-width: 100%;
  margin-bottom: 4px;
}

.sec2-1-limits {
  list-style-position: inside;
  margin-bottom: 6px;
}

.sec2-1-highlight {
  color: #fff3a0;
}

/* sec2-2：地圖輪播 */
.sec2 {
  width: 100%;
  height: auto;
  padding-bottom: 0px;
}

.sec2-2 {
  width: 1225px;
  margin: 55px auto 0;
}

.sec2-2 .sec2-subtitle {
  margin-bottom: 12px;
}

.sec2-map-frame {
  width: 1022px;
  margin: 0 auto;
  padding: 12px 31px;
  background: url("../images/sec2-2-pic4.png") no-repeat center/100% 100%;
}

.sec2-map-swiper {
  width: 100%;
  overflow: hidden;
  border-radius: 48px 0 48px 0;
}

.sec2-map-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
}

.sec2-map-prev,
.sec2-map-next {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 69px;
  height: 73px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 2;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}

.sec2-map-prev {
  left: -70px;
}

.sec2-map-next {
  right: -70px;
}

.sec2-map-prev img,
.sec2-map-next img {
  display: block;
  width: 100%;
  height: auto;
}

.sec2-map-prev:hover,
.sec2-map-next:hover {
  -webkit-filter: brightness(1.2);
          filter: brightness(1.2);
}

/* sec2-3：角色介紹 */
.sec2-3 {
  width: 1225px;
  margin: 55px auto 0;
}

.sec2-npc-stage {
  width: 100%;
  aspect-ratio: 1225/920;
}

.sec2-npc-swiper {
  width: 100%;
  height: 100%;
  top: -50px;
}

.sec2-npc-character {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: 67%;
  -o-object-fit: contain;
     object-fit: contain;
  z-index: 2;
}

.sec2-npc-intro {
  position: absolute;
  top: 13.04%;
  right: 4.9%;
  width: 43.76%;
  height: auto;
}

.sec2-npc-tabs {
  position: absolute;
  right: 10.61%;
  bottom: 23%;
  width: 32.24%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  z-index: 5;
}

.sec2-npc-tab {
  width: 28.61%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}

.sec2-npc-tab img {
  display: block;
  width: 100%;
  height: auto;
}

.sec2-npc-tab:hover {
  -webkit-filter: brightness(1.15);
          filter: brightness(1.15);
}

.sec2-npc-tab::after {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  width: 44%;
  aspect-ratio: 49/17;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: url("../images/tab-deco.png") no-repeat center/contain;
  pointer-events: none;
}

.sec2-npc-prev,
.sec2-npc-next {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 69px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 5;
}

.sec2-npc-prev {
  left: 0;
}

.sec2-npc-next {
  right: 0;
}

.sec2-npc-prev img,
.sec2-npc-next img {
  display: block;
  width: 100%;
  height: auto;
}

.sec2-npc-character.is-entering {
  -webkit-animation: sec2-npc-enter 0.6s ease-out both;
          animation: sec2-npc-enter 0.6s ease-out both;
}

@-webkit-keyframes sec2-npc-enter {
  from {
    opacity: 0;
    -webkit-transform: translateX(45px);
            transform: translateX(45px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}

@keyframes sec2-npc-enter {
  from {
    opacity: 0;
    -webkit-transform: translateX(45px);
            transform: translateX(45px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateX(0);
            transform: translateX(0);
  }
}
/* 共用內容框：上、中、下底圖 */
.content-frame {
  width: 1204px;
  margin: 0 auto;
}

.content-frame-top {
  aspect-ratio: 1204/86;
  background: url("../images/cont-top.png") no-repeat center/100% 100%;
}

.content-frame-middle {
  padding: 0 107px;
  background: url("../images/cont-middle.png") repeat-y center top/100% auto;
}

.content-frame-bottom {
  aspect-ratio: 1204/116;
  background: url("../images/cont-bottom.png") no-repeat center/100% 100%;
}

/* sec3：在線好禮打卡送 */
.sec3 {
  padding-bottom: 60px;
}

.sec3-content {
  color: #555;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  margin-top: 20px;
}

.sec3-block + .sec3-block {
  margin-top: 18px;
}

.sec3-subtitle {
  margin-bottom: 15px;
}

.sec3-subtitle img {
  display: block;
  width: 100%;
  height: auto;
}

.sec3-content ol {
  padding-left: 24px;
}

.sec3-gift {
  display: block;
  width: 565px;
  max-width: 100%;
  height: auto;
  margin: 20px auto 30px;
}

/* sec4：小精靈昇華系統 */
.sec4 {
  padding-bottom: 60px;
}

.sec4-content {
  color: #555;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.75;
  margin-top: 20px;
}

.sec4-content .content-frame-middle {
  padding: 0 98px;
}

.sec4-intro {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
}

.sec4-game-pic {
  display: block;
  width: 448px;
  height: auto;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.sec4-intro p {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.sec4-rules {
  margin-top: 34px;
}

.sec4-ghost {
  position: absolute;
  width: 260px;
  height: auto;
  right: -10px;
  bottom: calc(100% - 50px);
  z-index: 2;
  pointer-events: none;
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation: sec1-decoration-float 5.6s ease-in-out infinite;
          animation: sec1-decoration-float 5.6s ease-in-out infinite;
}

.sec4-rules ul {
  list-style: none;
}

.sec4-rules li {
  min-height: 50px;
  margin-bottom: 16px;
  padding: 9px 34px;
  background: url("../images/sec4-cont-bg.png") no-repeat center/100% 100%;
  color: #695337;
}

.sec4-rules li::before {
  content: "✦ ";
  color: #a88756;
}

.sec4-actions {
  min-height: 100px;
  padding-top: 14px;
  text-align: center;
}

.sec4-bat {
  position: absolute;
  left: 60px;
  top: -46px;
  width: 243px;
  height: auto;
  z-index: 2;
  pointer-events: none;
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-animation: sec1-decoration-float 6.8s ease-in-out -2.4s infinite;
          animation: sec1-decoration-float 6.8s ease-in-out -2.4s infinite;
}

.sec4-rate-btn {
  width: 383px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}

.sec4-rate-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.sec4-rate-btn:hover {
  -webkit-filter: brightness(1.15);
          filter: brightness(1.15);
}

/* 小精靈昇華機率 popup */
.sec4-rate-popup {
  position: fixed;
  inset: 0;
  width: min(560px, 90vw);
  max-height: 85vh;
  margin: auto;
  padding: 24px;
  border: 2px solid #bea271;
  border-radius: 18px;
  background: #f8f5e9;
  color: #555;
  -webkit-box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
          box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.sec4-rate-popup::-ms-backdrop {
  background: rgba(15, 10, 25, 0.75);
}

.sec4-rate-popup::backdrop {
  background: rgba(15, 10, 25, 0.75);
}

.sec4-rate-popup-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sec4-rate-popup-head h2 {
  font-size: 24px;
  color: #234c7d;
}

.sec4-rate-close {
  width: 36px;
  height: 36px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #234c7d;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sec4-rate-table-scroll {
  max-height: calc(85vh - 125px);
  overflow: auto;
}

.sec4-rate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
  font-weight: normal;
}

.sec4-rate-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #234c7d;
  color: #fff;
}

.sec4-rate-table th,
.sec4-rate-table td {
  padding: 9px 6px;
  border-bottom: 1px solid #dccbad;
}

.sec4-rate-table tbody tr:nth-child(even) {
  background: #eee5d4;
}

body.rate-popup-open {
  overflow: hidden;
}

/* sec5：新幻獸登場 */
.sec5 {
  padding-bottom: 0px;
}

.sec5-pet-stage {
  width: 1225px;
  aspect-ratio: 1225/750;
  margin: 0 auto;
}

.sec5-pet-swiper {
  width: 100%;
  height: 100%;
}

.sec5-pet-intro {
  position: absolute;
  left: 4.9%;
  top: 0;
  width: 43.76%;
  height: auto;
}

.sec5-pet-character {
  position: absolute;
  right: 0;
  top: 5%;
  width: 58.2%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.sec5-detail-btn {
  position: absolute;
  left: 16.08%;
  top: 47%;
  width: 21.39%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 3;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}

.sec5-detail-btn img {
  display: block;
  width: 100%;
  height: auto;
}

.sec5-detail-btn:hover {
  -webkit-filter: brightness(1.15);
          filter: brightness(1.15);
}

.sec5-pet-tabs {
  position: absolute;
  left: 17.2%;
  top: 62%;
  width: 19.18%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  z-index: 5;
}

.sec5-pet-tab {
  width: 48.1%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-transition: -webkit-filter 0.3s;
  transition: -webkit-filter 0.3s;
  transition: filter 0.3s;
  transition: filter 0.3s, -webkit-filter 0.3s;
}

.sec5-pet-tab img {
  display: block;
  width: 100%;
  height: auto;
}

.sec5-pet-tab::after {
  content: "";
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  width: 44%;
  aspect-ratio: 49/17;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: url("../images/tab-deco.png") no-repeat center/contain;
  pointer-events: none;
}

.sec5-pet-tab:hover {
  -webkit-filter: brightness(1.15);
          filter: brightness(1.15);
}

.sec5-pet-prev,
.sec5-pet-next {
  position: absolute;
  top: 45%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 69px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  z-index: 5;
}

.sec5-pet-prev {
  left: -15px;
}

.sec5-pet-next {
  right: -15px;
}

.sec5-pet-prev img,
.sec5-pet-next img {
  display: block;
  width: 100%;
  height: auto;
}

.sec5-pet-character.is-entering {
  -webkit-animation: sec2-npc-enter 0.6s ease-out both;
          animation: sec2-npc-enter 0.6s ease-out both;
}

/* 幻獸詳細資訊 popup */
.sec5-detail-popup {
  width: min(700px, 90vw);
}

.sec5-detail-scroll {
  max-height: calc(85vh - 125px);
  overflow: auto;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.8;
}

.sec5-detail-panel[hidden] {
  display: none;
}

.sec5-pet-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin-bottom: 20px;
}

.sec5-pet-stats div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid #dccbad;
}

.sec5-pet-stats dt {
  color: #234c7d;
  font-weight: bold;
}

.sec5-detail-panel h3 {
  margin: 20px 0 6px;
  color: #234c7d;
  font-weight: bold;
  border-bottom: 1px solid #bea271;
}

.sec5-skill-slots {
  margin-top: 10px;
}

/* sec6：特別活動 */
#sec6 {
  padding-bottom: 60px;
}

.sec6-content {
  color: #555;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.75;
  margin-top: 20px;
}

.sec6-content .content-frame-middle {
  padding: 10px 94px;
}

.sec6-activity {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
}

.sec6-activity + .sec6-activity {
  margin-top: 28px;
}

.sec6-activity-reverse {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: reverse;
      -ms-flex-direction: row-reverse;
          flex-direction: row-reverse;
}

.sec6-activity-pic {
  display: block;
  width: 452px;
  max-width: 45%;
  height: auto;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.sec6-activity-word {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

.sec6-activity-word h3 {
  margin-bottom: 12px;
}

.sec6-activity-word h3 img {
  display: block;
  width: 100%;
  height: auto;
}

/* sec7：藍鬍子秘密好禮 */
.sec7 {
  padding-bottom: 60px;
}

.sec7-stage {
  width: 1280px;
  margin: 0 auto;
}

.sec7-character {
  position: absolute;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.sec7-character-left {
  width: 672px;
  left: -175px;
  top: 65px;
}

.sec7-character-right {
  width: 560px;
  right: -35px;
  top: 55px;
}

.sec7-panel {
  width: 786px;
  min-height: 814px;
  margin: 0 auto;
  padding: 150px 66px 60px;
  background: url("../images/sec7-bg.png") no-repeat center/100% 100%;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  font-weight: bold;
  z-index: 2;
}

.sec7-welcome {
  color: #3b7ab4;
  font-size: 22px;
  font-weight: bold;
  display: none;
}

.sec7-subtitle {
  margin: 12px auto 8px;
}

.sec7-subtitle img {
  display: block;
  width: 100%;
  height: auto;
}

.sec7-dates {
  font-size: 20px;
}

.sec7-codes {
  width: 506px;
  max-width: 100%;
  margin: 24px auto 18px;
}

.sec7-code-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  min-height: 63px;
  border: 3px solid #d8cbb3;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.sec7-code-row + .sec7-code-row {
  margin-top: 8px;
}

.sec7-code-label {
  -ms-flex-item-align: stretch;
      align-self: stretch;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 108px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: #e8dcc3;
  color: #947c50;
  font-size: 20px;
  font-weight: bold;
}

.sec7-code-value {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  padding: 8px;
  font-size: 20px;
  overflow-wrap: anywhere;
}

.sec7-copy-btn {
  margin-right: 32px;
  padding: 4px 14px;
  border: 0;
  border-radius: 20px;
  background: #c1c1c1;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.sec7-copy-btn:hover,
.sec7-copy-btn.copied {
  background: #3b7ab4;
}

.sec7-copy-status {
  position: absolute;
  top: 100%;
  width: 100%;
  font-size: 12px;
  color: #3b7ab4;
}

.sec7-gift {
  display: block;
  width: 597px;
  max-width: 100%;
  height: auto;
  margin: 20px auto 0;
}

/* 減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
  .header-title,
  .sec1-gift-decoration,
  .sec2-npc-character.is-entering,
  .sec4-ghost,
  .sec4-bat,
  .sec5-pet-character.is-entering {
    -webkit-animation: none;
            animation: none;
  }
}
/* Lenis 桌機捲動 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.sec4-rate-table-scroll,
.sec5-detail-scroll {
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
}

.sec2-map-pagination {
  display: none;
}

/* 地窖互動入口 */
.entrance {
  --light-x: 50%;
  --light-y: 56%;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  color: #f5e7c7;
  background: #140f20 url("../images/loading.jpg") no-repeat center/cover;
  opacity: 1;
  -webkit-transition: opacity 0.8s ease, -webkit-filter 0.8s ease;
  transition: opacity 0.8s ease, -webkit-filter 0.8s ease;
  transition: opacity 0.8s ease, filter 0.8s ease;
  transition: opacity 0.8s ease, filter 0.8s ease, -webkit-filter 0.8s ease;
}

.entrance::-ms-backdrop {
  background: #140f20;
}

.entrance::backdrop {
  background: #140f20;
}

.entrance-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  pointer-events: none;
}

.entrance-open-video {
  visibility: hidden;
}

.entrance.is-opening > :not(.entrance-open-video):not(.entrance-shade) {
  visibility: hidden;
}

.entrance.is-opening .entrance-open-video {
  visibility: visible;
}

.entrance.is-opening.is-covering .entrance-open-video {
  visibility: hidden;
}

.entrance.is-opening .entrance-shade {
  opacity: 0;
}

.entrance-shade {
  opacity: 1;
  -webkit-transition: opacity 1.2s ease-out;
  transition: opacity 1.2s ease-out;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 230px at var(--light-x) var(--light-y), rgba(255, 235, 195, 0.35) 0%, rgba(255, 235, 195, 0.18) 32%, rgba(10, 7, 20, 0) 50%, rgba(10, 7, 20, 0.78) 100%);
}

.entrance-mist {
  position: absolute;
  bottom: -15%;
  left: -20%;
  width: 140%;
  height: 40%;
  background: radial-gradient(ellipse, rgba(115, 68, 173, 0.24), transparent 65%);
  -webkit-filter: blur(25px);
          filter: blur(25px);
  -webkit-animation: entrance-mist 9s ease-in-out infinite alternate;
          animation: entrance-mist 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.entrance-content {
  position: absolute;
  top: 31%;
  left: 50%;
  width: min(90%, 850px);
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  text-align: center;
  text-shadow: 0 2px 16px #090611;
}

.entrance-logo {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 220px;
  height: auto;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.entrance-content h1 {
  margin: 0px 0 30px;
  line-height: 0;
}
.entrance-content h1 img{
    display: block;
    width: 687px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
@media (max-width: 768px){
    .entrance-content h1 img{
        width: 371px;
    }
}

.entrance-unlock {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border: 1px solid #b89c65;
  border-radius: 50%;
  background: rgba(15, 17, 36, 0.55);
  -webkit-box-shadow: 0 0 30px rgba(80, 163, 231, 0.2), inset 0 0 20px rgba(80, 163, 231, 0.15);
          box-shadow: 0 0 30px rgba(80, 163, 231, 0.2), inset 0 0 20px rgba(80, 163, 231, 0.15);
  -webkit-transition: border-color 0.4s, -webkit-box-shadow 0.4s, -webkit-transform 0.4s;
  transition: border-color 0.4s, -webkit-box-shadow 0.4s, -webkit-transform 0.4s;
  transition: box-shadow 0.4s, transform 0.4s, border-color 0.4s;
  transition: box-shadow 0.4s, transform 0.4s, border-color 0.4s, -webkit-box-shadow 0.4s, -webkit-transform 0.4s;
  cursor: pointer;
}

.entrance-unlock:disabled {
  opacity: 0.5;
  cursor: wait;
}

.entrance-unlock:not(:disabled):hover,
.entrance-unlock:focus-visible {
  border-color: #ffe7a3;
  -webkit-box-shadow: 0 0 45px rgba(255, 213, 120, 0.5);
          box-shadow: 0 0 45px rgba(255, 213, 120, 0.5);
  -webkit-transform: scale(1.08);
          transform: scale(1.08);
  outline: 2px solid #ffe7a3;
  outline-offset: 6px;
}

.entrance-keyhole {
  width: 15px;
  height: 15px;
  margin-top: -10px;
  border-radius: 50%;
  background: #ead297;
  -webkit-filter: drop-shadow(0 0 7px #8acaff);
          filter: drop-shadow(0 0 7px #8acaff);
}

.entrance-keyhole::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 11px;
  height: 16px;
  background: #ead297;
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}

.entrance-status {
  font-size: 16px;
  letter-spacing: 0.14em;
}

.entrance-hint {
  margin-top: 12px;
  color: #b9b1c8;
  font-size: 12px;
  font-weight: normal;
  letter-spacing: 0.1em;
}

.entrance-skip {
  position: absolute;
  right: 30px;
  bottom: 28px;
  padding: 12px 18px;
  border: 1px solid rgba(220, 198, 157, 0.5);
  border-radius: 30px;
  background: rgba(15, 10, 25, 0.5);
  color: #e6d9bd;
  cursor: pointer;
}

.entrance-cursor {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 184px;
  height: auto;
  pointer-events: none;
  -webkit-filter: drop-shadow(0 0 8px #64a8ef);
          filter: drop-shadow(0 0 8px #64a8ef);
  z-index: 10;
}

.entrance.is-leaving {
  opacity: 0;
  -webkit-filter: brightness(1.5);
          filter: brightness(1.5);
  pointer-events: none;
}

.entrance.is-leaving .entrance-unlock {
  -webkit-transform: rotate(80deg) scale(1.15);
          transform: rotate(80deg) scale(1.15);
}

body.entrance-open {
  overflow: hidden;
}

@-webkit-keyframes entrance-mist {
  to {
    -webkit-transform: translate(6%, -8%);
            transform: translate(6%, -8%);
    opacity: 0.6;
  }
}

@keyframes entrance-mist {
  to {
    -webkit-transform: translate(6%, -8%);
            transform: translate(6%, -8%);
    opacity: 0.6;
  }
}
@media (min-width: 769px) and (pointer: fine) {
  .entrance.has-pointer,
  .entrance.has-pointer button {
    cursor: none;
  }
  .entrance.has-pointer .entrance-cursor {
    display: block;
  }
}
@media (max-width: 768px) {
  .entrance-content {
    top: 32%;
  }
  .entrance-shade {
    background: radial-gradient(ellipse at 50% 52%, transparent, rgba(10, 7, 20, 0.75) 80%);
  }
  .entrance-logo {
    width: 140px;
  }
  .entrance-skip {
    right: 18px;
    bottom: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entrance,
  .entrance-unlock {
    -webkit-transition: none;
    transition: none;
  }
  .entrance-mist {
    -webkit-animation: none;
            animation: none;
  }
}
/* 素材實際載入進度 */
.entrance-progress {
  width: min(280px, 80%);
  height: 6px;
  margin: 22px auto 9px;
  border: 1px solid rgba(225, 196, 136, 0.45);
  border-radius: 6px;
  background: rgba(10, 7, 20, 0.6);
  overflow: hidden;
}

.entrance-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: -webkit-gradient(linear, left top, right top, from(#759fd0), to(#e8d19b));
  background: linear-gradient(90deg, #759fd0, #e8d19b);
  -webkit-transition: width 0.25s ease;
  transition: width 0.25s ease;
}

.entrance-progress-text {
  color: #d7c59e;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.entrance-retry {
  margin-top: 10px;
  padding: 7px 14px;
  border: 1px solid #b89c65;
  border-radius: 20px;
  background: #21192f;
  color: #f5e7c7;
  cursor: pointer;
}

/* 進入首頁：純深藍遮罩淡出 */
.entrance.is-covering {
  background: #030914;
  -webkit-filter: none;
          filter: none;
  -webkit-transition: opacity 0.8s ease;
  transition: opacity 0.8s ease;
}

.entrance.is-covering > * {
  visibility: hidden;
}

.entrance.is-covering::-ms-backdrop {
  background: transparent;
}

.entrance.is-covering::backdrop {
  background: transparent;
}

.entrance.is-covering.is-leaving {
  opacity: 0;
  -webkit-filter: none;
          filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .entrance.is-covering {
    -webkit-transition: none;
    transition: none;
  }
}
/* 預留捲軸空間，避免入口與 popup 關閉時版面橫向跳動 */
html {
  scrollbar-gutter: stable;
}

/* 內頁進場：淡入並輕微上移，不覆蓋子元素的浮動與 Swiper 動畫 */
.scroll-reveal {
  --reveal-distance: 22px;
  opacity: 0;
}

.scroll-reveal.is-revealed {
  -webkit-animation: section-fade-in 1.2s ease-out var(--reveal-delay, 100ms) both;
          animation: section-fade-in 1.2s ease-out var(--reveal-delay, 100ms) both;
}

.scroll-reveal.reveal-complete {
  opacity: 1;
  -webkit-animation: none;
          animation: none;
}

@-webkit-keyframes section-fade-in {
  from {
    opacity: 0;
    translate: 0 var(--reveal-distance);
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes section-fade-in {
  from {
    opacity: 0;
    translate: 0 var(--reveal-distance);
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (max-width: 768px) {
  .scroll-reveal {
    --reveal-distance: 14px;
  }
  .scroll-reveal.is-revealed {
    -webkit-animation-duration: 1s;
            animation-duration: 1s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-revealed {
    opacity: 1;
    -webkit-animation: none;
            animation: none;
  }
}
@-webkit-keyframes promo-sway {
  0%, 100% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  50% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
}
@keyframes promo-sway {
  0%, 100% {
    -webkit-transform: rotate(-2deg);
            transform: rotate(-2deg);
  }
  50% {
    -webkit-transform: rotate(2deg);
            transform: rotate(2deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .promo-btn {
    -webkit-animation: none;
            animation: none;
  }
}

/* 首頁標題進場，保留原本水平置中與亮度動畫 */
.header-title{
    opacity: 1;
    translate: 0 0;
    transition: opacity 1.2s ease-out, translate 1.2s cubic-bezier(.22, 1, .36, 1);
}
.header-title.header-title-pending{
    opacity: 0;
    translate: 0 35px;
}
@media (prefers-reduced-motion: reduce){
    .header-title,
    .header-title.header-title-pending{
        opacity: 1;
        translate: 0 0;
        transition: none;
    }
}
