@charset "UTF-8";
/* Shared reset for Traditional Chinese and English pages. */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
   -ms-text-size-adjust: 100%;
       text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

body {
  min-width: 320px;
  font-family: "Microsoft JhengHei", "PingFang TC", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Keep list markers and link styles until a component overrides them. */
ul,
ol {
  -webkit-padding-start: 1.5em;
          padding-inline-start: 1.5em;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
input,
select {
  margin: 0;
}

button,
select {
  text-transform: none;
}

button,
[type=button],
[type=reset],
[type=submit] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

textarea {
  margin: 0;
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #1769aa;
  outline-offset: 3px;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.wrap {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  -webkit-transform-origin: top left;
          transform-origin: top left;
  min-width: 1280px;
}

.container {
  width: 100%;
  min-width: 1280px;
  margin: 0 auto;
}

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

.header {
  width: 100%;
  height: 950px;
  background: url("../images/header-bg.jpg") no-repeat center top;
}

/* Header links and shared language selector. */
.header {
  position: relative;
}
.header:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 100%;
  height: 53px;
  background: url("../images/sec1-top.png") no-repeat center top;
  z-index: 10;
}

.header-actions {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 30;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 20px;
}

.header-steam {
  display: block;
  width: 276px;
}

.header-steam:hover {
  -webkit-filter: brightness(1.08);
          filter: brightness(1.08);
}

.language-switcher {
  position: relative;
}

.language-toggle {
  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: 70px;
  height: 69px;
  padding: 4px;
  border: 0;
  background: transparent;
}

.language-toggle img {
  width: 70px;
  height: auto;
}

.language-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  width: 104px;
  margin: 0;
  padding: 6px 0;
  border-radius: 10px;
  background: rgba(61, 37, 31, 0.78);
  list-style: none;
  text-align: center;
}

.language-menu::before {
  content: "";
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  bottom: 100%;
  border-right: 5px solid transparent;
  border-bottom: 5px solid rgba(61, 37, 31, 0.78);
  border-left: 5px solid transparent;
}

.language-menu a {
  display: block;
  padding: 5px 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.language-menu a[aria-current=page] {
  color: #fff0b5;
}

.language-menu a:hover,
.language-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.header-tit {
  position: absolute;
  top: 450px;
  left: 50%;
  width: 855px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.header-tit img {
  width: 100%;
  height: auto;
}

.header-logo {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 20;
  width: 286px;
}

.header-logo img {
  width: 100%;
  height: auto;
}

/* 放在 wrap 外，避免日後 wrap 的縮放影響 fixed 定位。 */
.social-sidebar {
  position: fixed;
  top: 50%;
  right: 16px;
  z-index: 50;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  width: 118px;
  height: 446px;
  padding-top: 130px;
  background: url("../images/right-box-bg.png") no-repeat center/100% 100%;
}

.social-btn {
  display: block;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  width: 68px;
  height: 68px;
}

.social-btn[href]:hover {
  -webkit-filter: brightness(1.1);
          filter: brightness(1.1);
}

.sec1 {
  width: 100%;
  height: 960px;
  background: url("../images/bg-common.jpg") no-repeat center top;
}

.sec2 {
  width: 100%;
  height: 1052px;
  background: url("../images/sec2-bg.jpg") no-repeat center top;
}

.sec3 {
  width: 100%;
  height: 795px;
  background: url("../images/bg-common.jpg") no-repeat center top;
}

.sec4 {
  width: 100%;
  height: 951px;
  background: url("../images/sec4-bg.jpg") no-repeat center top;
}

.sec5 {
  width: 100%;
  height: 950px;
  background: url("../images/bg-common.jpg") no-repeat center top;
}

.sec6 {
  width: 100%;
  height: 774px;
  background: url("../images/sec6-bg.jpg") no-repeat center top;
}

.footer {
  width: 100%;
  height: 203px;
  background: url("../images/footer-bg.jpg") no-repeat center top;
}

.hr {
  display: block;
  width: 100%;
  height: 5px;
  border: none;
  background-color: #91624a;
}

.tit-box {
  width: 100%;
  height: auto;
  text-align: center;
  margin-bottom: 20px;
  z-index: 20;
}

.tit-box img {
  margin: 0 auto;
}

/* Section 1: shared registration layout. */
.sec1 {
  height: auto;
  min-height: 960px;
  padding: 40px 0 60px;
  color: #715032;
  background-color: #fae4bd;
  background-size: cover;
}

.preregister-intro {
  margin: 0 auto 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}

.preregister-book {
  position: relative;
  display: grid;
  grid-template-columns: 60% 40%;
  width: 1067px;
  min-height: 483px;
  margin: 0 auto;
  padding: 48px 57px 40px 80px;
  background: url("../images/sec1-book-bg.png") no-repeat center/100% 100%;
}

.preregister-form {
  min-width: 0;
  padding-right: 65px;
}

.preregister-subtitle img {
  margin: 0 auto;
}

.preregister-fields {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.preregister-field {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 14px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.preregister-field label {
  font-size: 20px;
  font-weight: 700;
}

.preregister-field input,
.preregister-field select {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 6px 12px;
  border: 1px solid #dcb692;
  border-radius: 5px;
  background-color: #fff;
  font-size: 16px;
}

.preregister-field input::-webkit-input-placeholder {
  color: #929292;
}

.preregister-field input::-moz-placeholder {
  color: #929292;
}

.preregister-field input:-ms-input-placeholder {
  color: #929292;
}

.preregister-field input::-ms-input-placeholder {
  color: #929292;
}

.preregister-field input::placeholder {
  color: #929292;
}

.preregister-field select:invalid {
  color: #929292;
}

.preregister-email {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 7px;
  min-width: 0;
}

.verification-button {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid #1779c5;
  border-radius: 5px;
  background: -webkit-gradient(linear, left top, left bottom, from(#57c6fa), to(#309de7));
  background: linear-gradient(#57c6fa, #309de7);
  -webkit-box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3137254902);
          box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.3137254902);
  color: #fff;
  font-weight: 700;
}

.preregister-submit {
  display: block;
  width: 100%;
  margin: 26px auto 12px;
  padding: 0;
  border: 0;
  background: none;
}

.preregister-submit img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.preregister-submit:hover, .verification-button:hover {
  -webkit-filter: brightness(1.07);
          filter: brightness(1.07);
}

.preregister-hint {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.preregister-hint::before, .preregister-hint::after {
  content: "";
  -webkit-box-flex: 0;
      -ms-flex: 0 0 15px;
          flex: 0 0 15px;
  height: 16px;
  background: url("../images/sec1-deco-star.png") no-repeat center/contain;
}

.preregister-status {
  font-size: 14px;
  text-align: center;
  color: #974323;
}

.preregister-status:not(:empty) {
  margin-top: 8px;
}

.preregister-reward-description {
  margin: 8px 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.preregister-reward-list {
  display: grid;
  gap: 5px;
  padding: 0;
  list-style: none;
}

.preregister-reward-list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  min-height: 64px;
  padding: 4px 8px;
  border: 1px solid #d97628;
  border-radius: 13px;
  background: linear-gradient(100deg, #ffe8ae, #ffda77);
  -webkit-box-shadow: inset 0 0 0 2px #fff3ce;
          box-shadow: inset 0 0 0 2px #fff3ce;
  font-size: 18px;
  font-weight: 700;
}

.preregister-reward-list img {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 54px;
          flex: 0 0 54px;
}

.preregister-reward-list strong {
  display: grid;
  place-items: center;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 48px;
          flex: 0 0 48px;
  min-height: 46px;
  margin-left: auto;
  border-radius: 9px;
  background: #fff3cd;
  font-size: 20px;
}

.preregister-deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.preregister-deco--yeti {
  width: 332px;
  left: -290px;
  bottom: -64px;
}

.preregister-deco--rabbit {
  width: 323px;
  right: -300px;
  bottom: -40px;
}

.event-notice {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  width: 900px;
  margin: 22px auto 0;
  padding: 16px 30px;
  border: 4px solid #805b34;
  border-radius: 13px;
  background: url("../images/notice-dot.png") left 5px top 5px/18px 18px no-repeat, url("../images/notice-dot.png") right 5px top 5px/18px 18px no-repeat, url("../images/notice-dot.png") left 5px bottom 5px/18px 18px no-repeat, url("../images/notice-dot.png") right 5px bottom 5px/18px 18px no-repeat #8d653b;
  -webkit-box-shadow: inset 0 2px #cba573;
          box-shadow: inset 0 2px #cba573;
  color: #ffdcaf;
  font-size: 15px;
  font-weight: 700;
}

.event-notice h3 {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 86px;
          flex: 0 0 86px;
}

.event-notice ol {
  padding-left: 1.3em;
}

@media (max-width: 1279px) {
  .wrap, .container {
    min-width: 0;
  }
  .inner {
    width: 100%;
  }
  .sec1 > .inner {
    padding: 0 24px;
  }
  .preregister-book {
    width: 100%;
    max-width: 1067px;
    padding-left: 6%;
    padding-right: 4%;
  }
  .preregister-form {
    padding-right: 40px;
  }
  .preregister-deco {
    display: none;
  }
  .event-notice {
    width: min(900px, 100%);
  }
}
@media (max-width: 767px) {
  .header {
    height: 510px;
    background-size: auto 510px;
  }
  .header-logo {
    width: 120px;
    top: 12px;
    left: 8px;
  }
  .header-actions {
    top: 16px;
    right: 16px;
    gap: 4px;
  }
  .header-steam {
    width: 136px;
  }
  .language-toggle {
    width: 36px;
    height: 36px;
  }
  .language-menu {
    left: auto;
    right: -8px;
    -webkit-transform: none;
            transform: none;
  }
  .language-menu::before {
    left: auto;
    right: 21px;
    -webkit-transform: none;
            transform: none;
  }
  .header-tit {
    top: auto;
    bottom: 40px;
    width: min(90%, 520px);
  }
  .social-sidebar {
    top: auto;
    right: 8px;
    bottom: 8px;
    -webkit-transform: none;
            transform: none;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    width: auto;
    height: auto;
    gap: 6px;
    padding: 6px;
    border-radius: 28px;
    background: rgba(255, 244, 219, 0.9294117647);
    -webkit-box-shadow: 0 2px 8px rgba(113, 80, 50, 0.2509803922);
            box-shadow: 0 2px 8px rgba(113, 80, 50, 0.2509803922);
  }
  .social-btn {
    width: 38px;
    height: 38px;
  }
  .sec1 {
    min-height: 0;
    padding: 28px 0 40px;
  }
  .sec1 > .inner {
    padding: 0 16px;
  }
  .sec1 .tit-box img {
    max-width: 95%;
  }
  .preregister-intro {
    max-width: 530px;
    font-size: 16px;
    margin-bottom: 20px;
  }
  .preregister-book {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    max-width: 530px;
    padding: 20px 31px;
    border: 3px solid #c79243;
    border-radius: 16px;
    background: -webkit-gradient(linear, left top, left bottom, from(#fffef8), to(#fff0c2));
    background: linear-gradient(#fffef8, #fff0c2);
    -webkit-box-shadow: inset 0 0 0 5px #ffda8d;
            box-shadow: inset 0 0 0 5px #ffda8d;
  }
  .preregister-form {
    padding: 0;
  }
  .preregister-subtitle img {
    width: min(100%, 317px);
  }
  .preregister-fields {
    gap: 14px;
    margin-top: 22px;
  }
  .preregister-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
  }
  .preregister-field label {
    font-size: 17px;
  }
  .preregister-field input, .preregister-field select {
    height: 44px;
  }
  .verification-button {
    padding: 6px 8px;
    font-size: 14px;
  }
  .preregister-submit {
    margin-top: 20px;
  }
  .preregister-hint {
    font-size: 14px;
    gap: 2px;
  }
  .preregister-hint::before, .preregister-hint::after {
    -ms-flex-preferred-size: 10px;
        flex-basis: 10px;
    background-size: contain;
  }
  .preregister-rewards {
    padding-top: 20px;
    border-top: 2px dashed #dab16a;
  }
  .preregister-reward-list li {
    font-size: 15px;
    gap: 4px;
    padding-inline: 5px;
  }
  .preregister-reward-list strong {
    -ms-flex-preferred-size: 38px;
        flex-basis: 38px;
    font-size: 18px;
  }
  .event-notice {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 10px;
    max-width: 480px;
    padding: 18px 20px;
    font-size: 14px;
  }
  .event-notice h3 {
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
  }
  .event-notice h3 img {
    width: 72px;
  }
}
/* 書本中線兩側增加留白，手機單欄不套用。 */
@media (min-width: 768px) {
  .preregister-form {
    padding-right: 85px;
  }
  .preregister-rewards {
    padding-left: 20px;
  }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .preregister-form {
    padding-right: 60px;
  }
}
.verification-button:disabled {
  border-color: #aaa;
  background: #b5b5b5;
  -webkit-box-shadow: none;
          box-shadow: none;
  color: #fff;
  cursor: not-allowed;
  -webkit-filter: none;
          filter: none;
}

/* Keep the form geometry stable during the resend countdown. */
.verification-button {
  width: 116px;
  height: 40px;
  line-height: 24px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.preregister-form {
  position: relative;
}

.preregister-status,
.preregister-status:not(:empty) {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  min-height: 0;
  margin-top: 6px;
  font-size: 12px;
  line-height: 18px;
}

@media (max-width: 767px) {
  .verification-button {
    width: 104px;
    height: 44px;
  }
}
.preregister-field input:focus,
.preregister-field select:focus {
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

/* Section 2: referral rewards. */
.sec2 {
  height: auto;
  min-height: 1052px;
  padding: 40px 0 48px;
  background-color: #a3e8e9;
  background-size: cover;
  color: #715032;
}

.sec2 > .inner {
  position: relative;
}

.recruit-intro {
  position: relative;
  z-index: 2;
  margin: 0 auto 16px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 0 5px #fff, 0 0 3px #fff, 0 0 2px #fff;
}

.recruit-content {
  position: relative;
  width: 1089px;
  margin: 0 auto;
}

.recruit-top-prize {
  position: relative;
  z-index: 2;
  width: 690px;
  margin: 0 auto;
}

.recruit-top-prize img {
  width: 100%;
}

.recruit-rewards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 0 0 20px;
  margin: 4px 0 0;
  list-style: none;
}

.recruit-rewards li:nth-child(2) {
  -webkit-transform: translateY(20px);
          transform: translateY(20px);
}

.recruit-rewards img {
  width: 100%;
  height: auto;
}

.recruit-character {
  position: absolute;
  pointer-events: none;
}

.recruit-character--monkey {
  width: 363px;
  top: 25px;
  left: -140px;
}

.recruit-character--shark {
  width: 602px;
  top: -140px;
  right: -330px;
}

.recruit-character-name {
  position: absolute;
  top: 185px;
  left: 120px;
  width: 45px;
}

.sec2 .event-notice {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .sec2 {
    min-height: 0;
    padding: 60px 0 80px;
  }
  .sec2 > .inner {
    padding: 0 32px;
  }
  .recruit-content {
    width: 100%;
  }
  .recruit-top-prize {
    width: 64%;
  }
  .recruit-character--monkey {
    width: 30%;
    left: -8%;
  }
  .recruit-character--shark {
    width: 46%;
    right: -15%;
    top: -90px;
  }
  .recruit-character-name {
    top: 23.3%;
    left: 20%;
    width: 7.5%;
  }
  .recruit-intro {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .sec2 {
    min-height: 0;
    padding: 60px 0 60px;
  }
  .sec2 > .inner {
    padding: 0 16px;
  }
  .recruit-intro {
    max-width: 480px;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    text-shadow: 0 0 5px #000;
  }
  .recruit-content {
    width: 100%;
    max-width: 480px;
    padding-top: 170px;
  }
  .recruit-character--monkey {
    width: 150px;
    top: 30px;
    left: -10px;
  }
  .recruit-character--shark {
    width: 180px;
    top: -10px;
    right: -10px;
  }
  .recruit-character-name {
    top: 23.3%;
    left: 20%;
    width: 7.5%;
  }
  .recruit-top-prize {
    width: 100%;
  }
  .recruit-rewards {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 0;
  }
  .recruit-rewards li {
    width: min(100%, 359px);
  }
  .recruit-rewards li:nth-child(2) {
    -webkit-transform: none;
            transform: none;
  }
}
/* Section 3: closed beta recruitment. */
.sec3 {
  height: auto;
  min-height: 795px;
  padding: 78px 0 60px;
  color: #795537;
  background-color: #fae4bd;
  background-size: cover;
}

.cb-description {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.cb-description time {
  color: #ff753b;
}

.cb-join {
  position: relative;
  width: 1024px;
  margin: 80px auto 0;
  padding: 70px 68px 54px;
  background: url("../images/sec3-cont-top.png") center top/100% 47px no-repeat, url("../images/sec3-cont-bottom.png") center bottom/100% 47px no-repeat, url("../images/sec3-cont-mid.png") center/100% 49px repeat-y;
}

.cb-join-title {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 564px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 2;
}

.cb-platforms {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 40px;
}

.cb-platforms a {
  display: block;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  max-width: 416px;
}

.cb-platforms img {
  width: 100%;
  height: auto;
}

.cb-platforms a:hover {
  -webkit-filter: brightness(1.08);
          filter: brightness(1.08);
}

.cb-elephant {
  position: absolute;
  left: -240px;
  bottom: -10px;
  width: 330px;
  z-index: 3;
  pointer-events: none;
}

.cb-bubble {
  position: absolute;
  width: 215px;
  left: 6px;
  bottom: calc(100% - 32px);
}

.cb-horse {
  position: absolute;
  width: 468px;
  right: -320px;
  top: -300px;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .sec3 {
    min-height: 0;
    padding: 60px 0 80px;
  }
  .sec3 > .inner {
    padding: 0 32px;
  }
  .cb-description {
    font-size: 18px;
  }
  .cb-join {
    width: 90%;
    padding-inline: 60px;
  }
  .cb-elephant {
    width: 220px;
    left: -120px;
  }
  .cb-bubble {
    width: 145px;
  }
  .cb-horse {
    width: 280px;
    right: -120px;
    top: -180px;
  }
  .cb-platforms {
    gap: 24px;
  }
}
@media (max-width: 767px) {
  .sec3 {
    min-height: 0;
    padding: 60px 0 60px;
  }
  .sec3 > .inner {
    padding: 0 32px;
  }
  .cb-description {
    max-width: 530px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
  }
  .cb-description p + p {
    margin-top: 8px;
  }
  .cb-join {
    width: 100%;
    max-width: 530px;
    margin-top: 50px;
    padding: 48px 24px 26px;
    border: 3px solid #b48130;
    border-radius: 20px;
    background: #fff4df;
    -webkit-box-shadow: inset 0 0 0 5px #ffdb91;
            box-shadow: inset 0 0 0 5px #ffdb91;
  }
  .cb-join-title {
    top: -24px;
    width: min(96%, 400px);
  }
  .cb-platforms {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 16px;
  }
  .cb-platforms a {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
    width: 100%;
    max-width: 320px;
  }
  .cb-elephant {
    display: none;
  }
  .cb-bubble {
    display: none;
  }
  .cb-horse {
    display: none;
  }
}
/* Section 4: milestone states are controlled by .is-achieved. */
.sec4 {
  height: auto;
  min-height: 951px;
  padding: 67px 0 40px;
  background-color: #b5d690;
  background-size: cover;
}

.milestone-intro {
  position: relative;
  z-index: 2;
  margin: 0 16px 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 0 5px #000;
}

.milestone-map {
  position: relative;
  width: 1280px;
  height: 660px;
  margin: 0 auto;
  isolation: isolate;
  z-index: 10;
}

.milestone-map::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 1093px;
  height: 794px;
  top: -139px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background: url("../images/sec4-map.png") no-repeat center/contain;
  pointer-events: none;
}

.milestone-route {
  position: absolute;
  top: 220px;
  left: 156px;
  width: 972px;
  pointer-events: none;
}

.milestone {
  position: absolute;
}

.milestone > img:first-child {
  width: 100%;
  height: auto;
}

.milestone--1000 {
  width: 299px;
  top: 17px;
  left: 45px;
}

.milestone--3000 {
  width: 403px;
  top: 303px;
  left: 264px;
}

.milestone--5000 {
  width: 373px;
  top: 11px;
  left: 657px;
}

.milestone--10000 {
  width: 425px;
  top: 300px;
  left: 832px;
}

.milestone .milestone-achieved {
  display: none;
  position: absolute;
  width: 109px;
  height: auto;
  top: -4px;
  right: 0;
}

.milestone--1000 .milestone-achieved {
  top: 46px;
}

.milestone.is-achieved .milestone-achieved {
  display: block;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .sec4 {
    height: auto;
    min-height: 0px;
  }
  .milestone-map {
    width: 100%;
    height: auto;
    aspect-ratio: 1280/660;
  }
  .milestone-map::before {
    width: 85.4%;
    height: 120%;
    top: -15%;
  }
  .milestone-route {
    top: 39.4%;
    left: 10.2%;
    width: 75.9%;
  }
  .milestone--1000 {
    width: 23.36%;
    top: 0;
    left: 3.125%;
  }
  .milestone--3000 {
    width: 31.48%;
    top: 43.94%;
    left: 18.75%;
  }
  .milestone--5000 {
    width: 29.140625%;
    top: 1.666667%;
    left: 51.328125%;
  }
  .milestone--10000 {
    width: 33.2%;
    top: 43.94%;
    left: 64.06%;
  }
  .milestone .milestone-achieved {
    width: 27%;
  }
  .milestone--1000 .milestone-achieved {
    width: 36.45%;
    top: 16.5%;
  }
}
@media (max-width: 767px) {
  .sec4 {
    min-height: 0;
    padding: 60px 0 60px;
  }
  .sec4 > .inner {
    padding: 0;
  }
  .milestone-intro {
    max-width: 480px;
    margin: 0 auto 24px;
    font-size: 16px;
    line-height: 1.7;
    padding: 0 16px;
  }
  .milestone-map {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 28px;
    width: 100%;
    height: auto;
  }
  .milestone-map::before {
    top: 0;
    width: 100%;
    height: 100%;
    background-size: auto 100%;
    opacity: 0.55;
  }
  .milestone-route {
    display: none;
  }
  .milestone {
    position: relative;
    top: auto;
    left: auto;
    max-width: 100%;
  }
  .milestone .milestone-achieved {
    width: 27%;
  }
  .milestone--1000 .milestone-achieved {
    width: 36.45%;
    top: 16.5%;
  }
}
/* Keep the map's stacking context below the section heading and intro. */
.sec4 .tit-box {
  position: relative;
  z-index: 2;
}

.sec4 .milestone-map {
  z-index: 1;
}

/* Section 5: Swiper feature cards. */
.sec5 {
  height: auto;
  min-height: 950px;
  padding: 80px 0 80px;
  background-color: #fae4bd;
  background-size: cover;
}

.sec5 > .inner {
  padding: 0;
}

.feature-carousel {
  position: relative;
  width: 960px;
  margin: 30px auto 0;
}

.feature-swiper {
  width: 100%;
  overflow: visible;
}

.feature-swiper .swiper-slide {
  padding: 6px;
  border: 5px solid #fff4df;
  border-radius: 24px;
  background: #d8b887;
  -webkit-box-shadow: 0 3px 0 #ae7d4f;
          box-shadow: 0 3px 0 #ae7d4f;
  overflow: hidden;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.feature-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  border: 2px solid #ae7d4f;
  border-radius: 12px;
}

.feature-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

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

.feature-prev {
  left: -110px;
}

.feature-next {
  right: -110px;
}

.feature-prev:hover, .feature-next:hover {
  -webkit-filter: brightness(1.15);
          filter: brightness(1.15);
}

.feature-pagination {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  margin-top: 28px;
  z-index: 5;
}

.feature-pagination .swiper-pagination-bullet {
  width: 38px;
  height: 37px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: url("../images/sec5-page.png") no-repeat center/contain;
  opacity: 1;
  cursor: pointer;
}

.feature-pagination .swiper-pagination-bullet-active {
  background-image: url("../images/sec5-page-ac.png");
}

.feature-character {
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.feature-character--left {
  width: 413px;
  left: -400px;
  bottom: -10px;
}

.feature-character--right {
  width: 316px;
  right: -325px;
  top: -150px;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .sec5 {
    height: auto;
    min-height: 0;
    padding: 60px 0 80px;
  }
  .feature-carousel {
    width: 72%;
  }
  .feature-prev {
    left: -80px;
    width: 68px;
  }
  .feature-next {
    right: -80px;
    width: 68px;
  }
  .feature-character--left {
    width: 230px;
    left: -180px;
    bottom: -65px;
  }
  .feature-character--right {
    width: 200px;
    right: -160px;
    top: -95px;
  }
}
@media (max-width: 767px) {
  .sec5 {
    min-height: 0;
    padding: 28px 0 60px;
  }
  .sec5 > .inner {
    padding: 0 16px;
  }
  .feature-carousel {
    width: 86%;
    max-width: 480px;
    margin-top: 38px;
  }
  .feature-swiper .swiper-slide {
    padding: 3px;
    border-width: 3px;
    border-radius: 12px;
  }
  .feature-swiper .swiper-slide img {
    border-width: 1px;
    border-radius: 7px;
  }
  .feature-prev, .feature-next {
    width: 40px;
  }
  .feature-prev {
    left: -28px;
  }
  .feature-next {
    right: -28px;
  }
  .feature-pagination {
    gap: 4px;
    margin-top: 20px;
  }
  .feature-pagination .swiper-pagination-bullet {
    width: 26px;
    height: 26px;
  }
  .feature-character--left {
    display: none;
  }
  .feature-character--right {
    display: none;
  }
}
.feature-swiper {
  -ms-touch-action: pan-y;
      touch-action: pan-y;
  -moz-user-select: none;
   -ms-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}

.feature-swiper .swiper-slide img {
  -webkit-user-drag: none;
}

/* Section 6: follow links with a warm yellow hover glow. */
.sec6 {
  height: auto;
  min-height: 774px;
  padding: 127px 0 120px;
  background-color: #102354;
}

.follow-intro {
  margin: 0 16px 28px;
  text-align: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 15px #4b93ff;
}

.follow-content {
  position: relative;
  width: 832px;
  margin: 0 auto;
}

.follow-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.follow-links a {
  display: block;
  border-radius: 17px;
  -webkit-transition: -webkit-filter 180ms ease;
  transition: -webkit-filter 180ms ease;
  transition: filter 180ms ease;
  transition: filter 180ms ease, -webkit-filter 180ms ease;
}

.follow-links img {
  width: 100%;
  height: auto;
}

.follow-links a:hover,
.follow-links a:focus-visible {
  -webkit-filter: drop-shadow(0 0 6px #ffe687);
          filter: drop-shadow(0 0 6px #ffe687);
}

.follow-links a:focus-visible {
  outline: 2px solid #fff3b8;
  outline-offset: 4px;
}

.follow-owl {
  position: absolute;
  width: 252px;
  top: -220px;
  right: -190px;
  pointer-events: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .follow-content {
    width: 78%;
    max-width: 832px;
  }
  .follow-links {
    gap: 14px;
  }
  .follow-owl {
    width: 180px;
    top: -180px;
    right: -70px;
  }
}
@media (max-width: 767px) {
  .sec6 {
    min-height: 580px;
    padding: 40px 0 140px;
    background-size: auto 100%;
  }
  .sec6 > .inner {
    padding: 0 24px;
  }
  .follow-intro {
    margin-inline: 0;
    font-size: 16px;
    color: #fff;
  }
  .follow-content {
    width: 100%;
    max-width: 406px;
  }
  .follow-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .follow-owl {
    width: 110px;
    top: calc(100% + 16px);
    right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .follow-links a {
    -webkit-transition: none;
    transition: none;
  }
}
/* Footer: publisher and game rating information. */
.footer {
  height: auto;
  min-height: 203px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 42px 24px 30px;
  background-color: #141637;
  color: #8588c7;
  font-size: 12px;
  line-height: 1.5;
}

.footer-inner {
  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: 48px;
  width: 1320px;
  max-width: 100%;
  margin: 0 auto;
}

.footer-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.footer-logo {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 143px;
          flex: 0 0 143px;
  width: 143px;
  height: 40px;
}

.footer-rating {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer-rating-icon {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 40px;
          flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.footer-notices {
  padding: 0;
  list-style: none;
}

.footer-notices li {
  position: relative;
  padding-left: 0.8em;
}

.footer-notices li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.3em;
  font-size: 8px;
}

@media (max-width: 1279px) {
  .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 24px;
    max-width: 900px;
  }
}
@media (max-width: 767px) {
  .footer {
    padding: 32px 24px 88px;
  }
  .footer-inner {
    gap: 24px;
  }
  .footer-brand {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 12px;
    -ms-flex-negative: 1;
        flex-shrink: 1;
  }
  .footer-logo {
    -ms-flex-preferred-size: auto;
        flex-basis: auto;
  }
  .footer-brand p {
    overflow-wrap: break-word;
  }
  .footer-rating {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 12px;
  }
  .footer-notices li + li {
    margin-top: 4px;
  }
}
.recruit-reward--20 {
  position: relative;
}

.recruit-rewards .recruit-reward-gif {
  position: absolute;
  left: 25%;
  top: 66%;
  width: 22.28%;
  height: auto;
  pointer-events: none;
}

@media (max-width: 767px) {
  .recruit-content {
    padding-top: 0;
  }
  .recruit-character {
    display: none;
  }
}
/* Mobile hero uses the full portrait composition. */
@media (max-width: 767px) {
  .header {
    height: auto;
    aspect-ratio: 768/1499;
    background-image: url("../images/header-bg-m.jpg");
    background-position: center top;
    background-size: 100% auto;
  }
  .header-logo {
    top: 12px;
    left: 8px;
    width: clamp(100px, 27vw, 160px);
  }
  .header-tit {
    top: auto;
    bottom: 6%;
    left: 50%;
    width: 94%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    z-index: 11;
  }
  .header::before {
    height: 28px;
    background-size: auto 28px;
  }
}
@media (max-width: 767px) {
  .language-toggle {
    width: 52px;
    height: 52px;
    padding: 0;
  }
  .language-toggle img {
    width: 52px;
  }
  .language-menu {
    width: 120px;
  }
  .language-menu::before {
    right: 29px;
  }
  .language-menu a {
    padding: 9px 12px;
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .preregister-email {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    gap: 10px;
  }
  .preregister-email .verification-button {
    width: 100%;
    height: 44px;
  }
}
@media (max-width: 767px) {
  .follow-owl {
    width: 82px;
    top: -140px;
    right: -8px;
  }
}
.reservation-popup {
  width: min(560px, 100% - 32px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 40px 32px 28px;
  overflow-y: auto;
  border: 3px solid #c7954d;
  border-radius: 20px;
  background: -webkit-gradient(linear, left top, left bottom, from(#fffdf5), to(#fff0cb));
  background: linear-gradient(#fffdf5, #fff0cb);
  -webkit-box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3333333333), inset 0 0 0 5px #ffe1a1;
          box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3333333333), inset 0 0 0 5px #ffe1a1;
  color: #795537;
  text-align: center;
}

.reservation-popup::-ms-backdrop {
  background: rgba(16, 19, 39, 0.7019607843);
}

.reservation-popup::backdrop {
  background: rgba(16, 19, 39, 0.7019607843);
}

.reservation-popup h2 {
  margin: 0 0 16px;
  color: #a86b26;
  font-size: 28px;
}

.reservation-popup p {
  line-height: 1.7;
}

.reservation-popup-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 32px;
}

.reservation-invite {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  margin: 14px 0 18px;
}

.reservation-invite input {
  min-width: 0;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 10px 12px;
  border: 1px solid #d7b488;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
}

.reservation-copy, .reservation-popup-confirm {
  border: 1px solid #ba833b;
  border-radius: 8px;
  padding: 10px 16px;
  background: -webkit-gradient(linear, left top, left bottom, from(#ffe5a0), to(#f2bf63));
  background: linear-gradient(#ffe5a0, #f2bf63);
  color: #694322;
  font-weight: 700;
}

.reservation-copy-status {
  min-height: 24px;
  margin-top: 10px;
  font-size: 14px;
}

.reservation-popup-confirm {
  min-width: 140px;
  margin-top: 12px;
}

.message-popup-switch {
  display: inline-block;
  margin-left: 8px;
  background: #fff8e6;
  text-decoration: none;
}

body:has(.reservation-popup[open]) {
  overflow: hidden;
}

@media (max-width: 767px) {
  .reservation-popup {
    padding: 40px 20px 24px;
  }
  .reservation-invite {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .reservation-invite input, .reservation-copy {
    min-height: 44px;
  }
}
/* Keep the repeating middle strip out of the transparent rounded corners. */
@media (min-width: 768px) {
  .cb-join {
    background: url("../images/sec3-cont-top.png") center top/100% 47px no-repeat, url("../images/sec3-cont-bottom.png") center bottom/100% 47px no-repeat;
  }
  .cb-join::before {
    content: "";
    position: absolute;
    top: 47px;
    bottom: 47px;
    left: 0;
    right: 0;
    background: url("../images/sec3-cont-mid.png") center/100% 49px repeat-y;
    pointer-events: none;
  }
}
/* Entry reservation popup. */
.entry-popup {
  width: min(440px, 100% - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: #fff0d6;
  -webkit-box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5333333333);
          box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5333333333);
  color: #765039;
}

.entry-popup::-ms-backdrop {
  background: rgba(16, 19, 39, 0.6509803922);
}

.entry-popup::backdrop {
  background: rgba(16, 19, 39, 0.6509803922);
}

.entry-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
}

.entry-popup-close img {
  width: 100%;
}

.entry-popup-form {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 38px 32px 6px;
}

.entry-popup > h2 {
  position: absolute;
  top: -116px;
  left: 50%;
  width: 279px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}

.entry-popup > h2 img {
  width: 100%;
}

.entry-popup > h2:focus,
.entry-popup > h2:focus-visible,
.reservation-popup > h2:focus,
.reservation-popup > h2:focus-visible,
.message-popup > p:focus,
.message-popup > p:focus-visible {
  outline: none;
}

.entry-popup-intro {
  margin-bottom: 2px;
  font-size: 16px;
  line-height: 1.45;
}

.entry-popup-form label {
  margin-bottom: -4px;
  font-size: 16px;
  font-weight: 700;
}

.entry-popup-form input,
.entry-popup-form select {
  width: 100%;
  height: 42px;
  padding: 7px 12px;
  border: 1px solid #d7b488;
  border-radius: 5px;
  background: #fff;
  font-size: 16px;
}

.entry-popup-form input:focus,
.entry-popup-form select:focus {
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}

.entry-popup-form .verification-button,
.entry-popup-submit {
  width: 100%;
  height: 42px;
  border-radius: 5px;
}

.entry-popup-submit {
  margin-top: 9px;
  border: 1px solid #087dcc;
  background: -webkit-gradient(linear, left top, left bottom, from(#47caff), to(#1474df));
  background: linear-gradient(#47caff, #1474df);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.entry-popup-form .preregister-status,
.entry-popup-form .preregister-status:not(:empty) {
  position: static;
  min-height: 0;
  margin: 0;
}

.entry-popup-rewards {
  padding: 16px 32px 20px;
  border-radius: 0 0 24px 24px;
  background: #986047;
  color: #fff0df;
  font-size: 14px;
  line-height: 1.5;
}

.entry-popup-rewards p + p {
  margin-top: 5px;
}

@media (max-width: 767px) {
  .entry-popup {
    overflow: visible;
  }
  .entry-popup-form {
    padding: 38px 20px 6px;
  }
  .entry-popup > h2 {
    top: -105px;
    width: 250px;
  }
  .entry-popup-rewards {
    padding: 14px 20px 18px;
  }
}
@media (max-width: 767px) and (max-height: 650px) {
  .entry-popup > h2 {
    top: -78px;
    width: 190px;
  }
}
/* Fixed section navigation. The star asset is naturally 17 x 17px. */
.left-menu {
  position: fixed;
  top: 50%;
  left: 24px;
  z-index: 50;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 18px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  color: #765334;
  font-size: 14px;
  line-height: 24px;
}

.left-menu[hidden] {
  display: none;
}

.left-menu::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 8px;
  width: 1px;
  background: currentColor;
  pointer-events: none;
}

.left-menu a {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 2px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.left-menu a::before {
  content: "";
  -webkit-box-flex: 0;
      -ms-flex: 0 0 17px;
          flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background: url("../images/left-menu-star.png") center/12px 12px no-repeat;
  -webkit-transition: background-size 160ms ease;
  transition: background-size 160ms ease;
}

.left-menu a span {
  padding: 0 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}

.left-menu a.ac::before {
  background-size: 17px 17px;
}

.left-menu a.ac span {
  background: #765334;
  color: #fff;
}

.left-menu a:hover span {
  background: #765334;
  color: #fff;
}

.left-menu a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 14px;
}

@media (max-width: 1279px) {
  .left-menu {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .left-menu a::before {
    -webkit-transition: none;
    transition: none;
  }
}
/* Fade down into view when the first section enters the screen. */
.left-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transform: translateY(calc(-50% - 24px));
          transform: translateY(calc(-50% - 24px));
  -webkit-transition: opacity 350ms ease, visibility 350ms, -webkit-transform 350ms ease;
  transition: opacity 350ms ease, visibility 350ms, -webkit-transform 350ms ease;
  transition: opacity 350ms ease, transform 350ms ease, visibility 350ms;
  transition: opacity 350ms ease, transform 350ms ease, visibility 350ms, -webkit-transform 350ms ease;
}

.left-menu.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .left-menu {
    -webkit-transition: none;
    transition: none;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
  }
}
/* Compact reservation popup typography on phones. */
@media (max-width: 767px) {
  .entry-popup-intro,
  .entry-popup-form label,
  .entry-popup-form input,
  .entry-popup-form select,
  .entry-popup-form .verification-button {
    font-size: 14px;
  }
  .entry-popup-submit {
    font-size: 18px;
  }
  .entry-popup-rewards,
  .entry-popup-form .preregister-status {
    font-size: 12px;
  }
}
/* Gentle, staggered motion for decorative characters. */
@-webkit-keyframes character-float {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(-0.6deg);
            transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    -webkit-transform: translateY(-8px) rotate(0.6deg);
            transform: translateY(-8px) rotate(0.6deg);
  }
}
@keyframes character-float {
  0%, 100% {
    -webkit-transform: translateY(0) rotate(-0.6deg);
            transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    -webkit-transform: translateY(-8px) rotate(0.6deg);
            transform: translateY(-8px) rotate(0.6deg);
  }
}
@-webkit-keyframes character-sway {
  0%, 100% {
    -webkit-transform: rotate(-1deg);
            transform: rotate(-1deg);
  }
  50% {
    -webkit-transform: rotate(1deg);
            transform: rotate(1deg);
  }
}
@keyframes character-sway {
  0%, 100% {
    -webkit-transform: rotate(-1deg);
            transform: rotate(-1deg);
  }
  50% {
    -webkit-transform: rotate(1deg);
            transform: rotate(1deg);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .preregister-deco,
  .recruit-character,
  .cb-elephant,
  .cb-horse,
  .feature-character,
  .follow-owl {
    -webkit-transform-origin: center bottom;
            transform-origin: center bottom;
    -webkit-animation: character-float 5s ease-in-out infinite;
            animation: character-float 5s ease-in-out infinite;
  }
  .preregister-deco--yeti {
    -webkit-animation-name: character-sway;
            animation-name: character-sway;
    -webkit-animation-duration: 6s;
            animation-duration: 6s;
    -webkit-animation-delay: -2s;
            animation-delay: -2s;
  }
  .preregister-deco--rabbit {
    -webkit-animation-duration: 4.8s;
            animation-duration: 4.8s;
    -webkit-animation-delay: -1.2s;
            animation-delay: -1.2s;
  }
  .recruit-character--monkey {
    -webkit-animation-name: character-sway;
            animation-name: character-sway;
    -webkit-animation-duration: 5.4s;
            animation-duration: 5.4s;
    -webkit-animation-delay: -3s;
            animation-delay: -3s;
  }
  .recruit-character--shark {
    -webkit-animation-duration: 6.2s;
            animation-duration: 6.2s;
    -webkit-animation-delay: -2.4s;
            animation-delay: -2.4s;
  }
  .cb-elephant {
    -webkit-animation-name: character-sway;
            animation-name: character-sway;
    -webkit-animation-duration: 6.5s;
            animation-duration: 6.5s;
    -webkit-animation-delay: -1.5s;
            animation-delay: -1.5s;
  }
  .cb-horse {
    -webkit-animation-duration: 5.6s;
            animation-duration: 5.6s;
    -webkit-animation-delay: -3.6s;
            animation-delay: -3.6s;
  }
  .feature-character--left {
    -webkit-animation-name: character-sway;
            animation-name: character-sway;
    -webkit-animation-duration: 5.8s;
            animation-duration: 5.8s;
    -webkit-animation-delay: -2.8s;
            animation-delay: -2.8s;
  }
  .feature-character--right {
    -webkit-animation-duration: 5.2s;
            animation-duration: 5.2s;
    -webkit-animation-delay: -0.8s;
            animation-delay: -0.8s;
  }
  .follow-owl {
    -webkit-animation-duration: 4.6s;
            animation-duration: 4.6s;
    -webkit-animation-delay: -1.8s;
            animation-delay: -1.8s;
  }
}
/* Float each complete milestone card, including its achieved badge. */
@-webkit-keyframes milestone-float {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
}
@keyframes milestone-float {
  0%, 100% {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .milestone {
    -webkit-animation: milestone-float 5s ease-in-out infinite;
            animation: milestone-float 5s ease-in-out infinite;
  }
  .milestone--3000 {
    -webkit-animation-duration: 5.6s;
            animation-duration: 5.6s;
    -webkit-animation-delay: -1.4s;
            animation-delay: -1.4s;
  }
  .milestone--5000 {
    -webkit-animation-duration: 4.8s;
            animation-duration: 4.8s;
    -webkit-animation-delay: -2.8s;
            animation-delay: -2.8s;
  }
  .milestone--10000 {
    -webkit-animation-duration: 6s;
            animation-duration: 6s;
    -webkit-animation-delay: -4.2s;
            animation-delay: -4.2s;
  }
}
/* Keep decorative characters and milestone cards still on phones. */
@media (max-width: 767px) {
  .preregister-deco,
  .recruit-character,
  .cb-elephant,
  .cb-horse,
  .feature-character,
  .follow-owl,
  .milestone {
    -webkit-animation: none;
            animation: none;
  }
}
/* Light menu labels over Part 6's dark background. */
.left-menu.is-part6 a span {
  background: transparent;
  color: #fff;
}

.left-menu.is-part6 a.ac span,
.left-menu.is-part6 a:hover span {
  background: rgb(52, 60, 118);
  color: #fff;
}

/* Full-screen loading cover with sequential lettering. */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #fae4bd url("../images/bg-common.jpg") center/cover no-repeat;
  opacity: 1;
  -webkit-transition: opacity 400ms ease;
  transition: opacity 400ms ease;
}

.page-loader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.page-loader-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
}

.page-loader-logo {
  width: min(286px, 60vw);
  height: auto;
}

.page-loader-text {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #765334;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: 3px;
}

.page-loader-text span {
  opacity: 0;
  -webkit-animation: loading-letter 2s linear infinite;
          animation: loading-letter 2s linear infinite;
}

.page-loader-text span:nth-child(2) {
  -webkit-animation-delay: 100ms;
          animation-delay: 100ms;
}

.page-loader-text span:nth-child(3) {
  -webkit-animation-delay: 200ms;
          animation-delay: 200ms;
}

.page-loader-text span:nth-child(4) {
  -webkit-animation-delay: 300ms;
          animation-delay: 300ms;
}

.page-loader-text span:nth-child(5) {
  -webkit-animation-delay: 400ms;
          animation-delay: 400ms;
}

.page-loader-text span:nth-child(6) {
  -webkit-animation-delay: 500ms;
          animation-delay: 500ms;
}

.page-loader-text span:nth-child(7) {
  -webkit-animation-delay: 600ms;
          animation-delay: 600ms;
}

.page-loader-text span:nth-child(8) {
  -webkit-animation-delay: 700ms;
          animation-delay: 700ms;
}

.page-loader-text span:nth-child(9) {
  -webkit-animation-delay: 800ms;
          animation-delay: 800ms;
}

.page-loader-text span:nth-child(10) {
  -webkit-animation-delay: 900ms;
          animation-delay: 900ms;
}

@-webkit-keyframes loading-letter {
  0%, 75% {
    opacity: 1;
  }
  76%, 100% {
    opacity: 0;
  }
}

@keyframes loading-letter {
  0%, 75% {
    opacity: 1;
  }
  76%, 100% {
    opacity: 0;
  }
}
body.is-loading {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    -webkit-transition: none;
    transition: none;
  }
  .page-loader-text span {
    -webkit-animation: none;
            animation: none;
    opacity: 1;
  }
}
/* Reserve scrollbar space through loading and modal open/close. */
html {
  scrollbar-gutter: stable;
}

html:has(.page-loader),
html:has(.entry-popup[open]),
html:has(.reservation-popup[open]) {
  overflow: hidden;
}

/* A loading cover inside the modal must remain opaque to pointer input. */
.entry-popup .page-loader {
  pointer-events: auto;
}

/* Scroll content independently of the original floating title and close button. */
.entry-popup-scroll {
  display: contents;
}

.entry-popup > h2 {
  z-index: 2;
}

@media (max-width: 767px) {
  .entry-popup {
    top: calc(var(--popup-viewport-top, 0px) + 119px);
    bottom: calc(100% - var(--popup-viewport-top, 0px) - var(--popup-viewport-height, 100dvh) + 14px);
    margin: auto;
    max-height: calc(var(--popup-viewport-height, 100dvh) - 133px);
  }
  .entry-popup-scroll {
    display: block;
    max-height: calc(var(--popup-viewport-height, 100dvh) - 133px);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    border-radius: inherit;
    scroll-padding-block: 48px 20px;
  }
  .entry-popup-close {
    width: 44px;
    height: 44px;
    top: 4px;
    right: 8px;
    padding: 5px;
    border-radius: 50%;
    background: #fff0d6;
  }
}
@media (max-width: 767px) and (max-height: 650px) {
  .entry-popup {
    top: calc(var(--popup-viewport-top, 0px) + 92px);
    max-height: calc(var(--popup-viewport-height, 100dvh) - 106px);
  }
  .entry-popup-scroll {
    max-height: calc(var(--popup-viewport-height, 100dvh) - 106px);
  }
}
/* Keep keyboard focus visible without adding a ring on initial modal open. */
.entry-popup-form input:focus-visible,
.entry-popup-form select:focus-visible {
  outline: 2px solid #986047;
  outline-offset: 2px;
}

.entry-popup-hint {
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .entry-popup-hint {
    font-size: 12px;
  }
}
/* Subtle feedback for popup close controls. */
.entry-popup-close,
.reservation-popup-close {
  -webkit-transition: -webkit-transform 180ms ease, -webkit-filter 180ms ease;
  transition: -webkit-transform 180ms ease, -webkit-filter 180ms ease;
  transition: transform 180ms ease, filter 180ms ease;
  transition: transform 180ms ease, filter 180ms ease, -webkit-transform 180ms ease, -webkit-filter 180ms ease;
}

@media (hover: hover) {
  .entry-popup-close:hover,
  .reservation-popup-close:hover {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    -webkit-filter: brightness(1.15);
            filter: brightness(1.15);
  }
}
.entry-popup-close:active,
.reservation-popup-close:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .entry-popup-close,
  .reservation-popup-close {
    -webkit-transition: none;
    transition: none;
    -webkit-transform: none;
            transform: none;
  }
}
/* Desktop hero video; the existing portrait artwork stays on phones. */
.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
}
.header-video.is-playing { opacity: 1; }
.header .header-tit { z-index: 11; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .header-video { display: none; }
}

/* 進場預約視窗的獎勵內容 */
.entry-popup-reward-items {
  color: #ffcaad;
}

.game-start {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  width: clamp(112px, 18vw, 200px);
  aspect-ratio: 200 / 86;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 2px solid white;
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 30px;
  background: linear-gradient(#b72a60, #ed508a);
  box-shadow: 0 4px 8px #59273a40;
  cursor: pointer;
  visibility: hidden;
  transform: translateX(calc(100% + 24px));
  transition: transform .35s ease, visibility 0s .35s;
}

.game-start.is-visible {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

.game-start img {
  position: relative;
  width: auto;
  height: auto;
  max-width: 67%;
  max-height: 80%;
}

.game-start::after {
  --shine-easing: cubic-bezier(0.37, 0, 0.63, 1);
  content: "";
  position: absolute;
  inset: -40% 0;
  pointer-events: none;
  background: linear-gradient(125deg, transparent 37%, #fff9 50%, transparent 63%);
  transform: translateX(-110%);
}

@media (prefers-reduced-motion: no-preference) {
  .game-start.is-visible::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 9% 54%, #fff9 1px, transparent 2px),
      radial-gradient(circle at 22% 86%, #ffeaca 1px, transparent 2.5px),
      radial-gradient(circle at 38% 28%, #fff8 .8px, transparent 1.6px),
      radial-gradient(circle at 58% 68%, #ffeddd 1px, transparent 2px),
      radial-gradient(circle at 78% 38%, #fffa 1.2px, transparent 2.4px),
      radial-gradient(circle at 91% 80%, #fff9 1px, transparent 2px);
    animation: game-start-particles 4.8s linear -1.2s infinite;
  }
  @keyframes game-start-particles {
    0% { transform: translate(-2px, 22%); opacity: 0; }
    25%, 65% { opacity: .65; }
    100% { transform: translate(3px, -35%); opacity: 0; }
  }
  .game-start.is-visible::after {
    animation: game-start-shine 3.6s var(--shine-easing) infinite;
  }
  @keyframes game-start-shine {
    0% { transform: translateX(-110%); }
    35%, 100% { transform: translateX(110%); }
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .game-start img { transition: transform .2s ease-out; }
  .game-start:hover img { transform: scale(.94); }
  .game-start.is-visible:hover::after {
    animation: game-start-hover-shine .55s var(--shine-easing);
  }
  @keyframes game-start-hover-shine {
    from { transform: translateX(-110%); }
    to { transform: translateX(110%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-start { transition: none; }
}

.utc-clock:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  width: fit-content;
  max-width: 100%;
  margin: 24px auto 0;
  padding: .85em 1.2em;
  border: 1px solid rgba(213, 236, 255, .42);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(159, 206, 248, .28), rgba(17, 42, 85, .55));
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  backdrop-filter: blur(12px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), 0 5px 16px rgba(4, 16, 43, .2);
  color: #f5faff;
  text-shadow: 0 1px 3px rgba(9, 28, 60, .7);
  font: 500 clamp(14px, 2vw, 20px)/1.3 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767px) {
  .game-start { display: none; }
  .follow-owl { top: calc(100% + 84px); }
}
