@charset "UTF-8";
.level-table {
  width: 300px;
  border: 2px solid #b57d2a;
  font-family: "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
}

.level-table .row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  min-height: 44px;
  border-bottom: 1px solid #b57d2a;
}

.level-table .row:last-child {
  border-bottom: none;
}

.level-table .label {
  width: 120px;
  background: #9b7332;
  color: #fff;
  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;
}

.level-table .value {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  background: #f7f7f7;
  color: #bd812d;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding-left: 26px;
}

.table-title {
  width: 120px;
  background: #201107;
  color: #dfcf9c;
  font-weight: bold;
  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;
}

.text-ol {
  margin-left: 1em;
}

:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
}

body {
  background: url("../images/container-bg.jpg") center repeat-y;
  color: #fff;
  font-family: "Microsoft JhengHei", Arial, sans-serif;
}

a:focus-visible {
  outline: 3px solid #ffe09b;
  outline-offset: 5px;
}

.wrap {
  overflow: hidden;
}

.header-viewport {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.header {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1920/1080;
  background: url("../images/header-bg.jpg") center top/100% 100% no-repeat;
}

.header-fireworks {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 38%;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .header-fireworks {
    display: none;
  }
}
.header-characters {
  position: absolute;
  top: 0;
  right: 0;
  width: 80.208333%;
  height: auto;
}

.header-copy {
  position: absolute;
  top: 19.074%;
  left: 5.208333%;
  width: 46.458333%;
  max-width: 892px;
}

.game-logo {
  display: block;
  width: 36.547085%;
  margin: 0 auto 1.121076%;
}

.game-logo img {
  width: 100%;
}

.header h1 {
  width: 100%;
}

.header h1 img {
  width: 100%;
}

.container {
  position: relative;
  margin-top: -7.291667vw;
  padding: 8.802083vw 24px 5vw;
  background: none;
}

.event-ornament {
  display: none;
}

@media (min-width: 1000px) {
  .container > .inner {
    width: min(1128px, 66vw);
  }

  .event-ornament {
    display: block;
    position: absolute;
    top: var(--ornament-top);
    width: min(16vw, 300px);
    height: auto;
    pointer-events: none;
  }

  .ornament-left {
    right: 101%;
  }

  .ornament-right {
    left: 101%;
  }

  .ornament-small {
    width: min(12vw, 185px);
  }

  .ornament-firework {
    width: min(15vw, 230px);
    aspect-ratio: 1 / 1.25;
  }

  .ornament-firework canvas {
    position: absolute;
    max-width: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  img.event-ornament {
    transform-origin: 50% 65%;
    animation: lantern-float 3.8s ease-in-out -1.2s infinite alternate;
  }

  img.ornament-right {
    animation-duration: 4.6s;
    animation-delay: -4s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ornament-firework {
    display: none;
  }
}

@keyframes lantern-float {
  from {
    transform: translate(-7px, 10px) rotate(-5deg);
  }
  to {
    transform: translate(7px, -22px) rotate(5deg);
  }
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12.447917vw;
  background: url("../images/container-top.png") center top/100% 100% no-repeat;
  pointer-events: none;
}

.inner {
  position: relative;
  width: min(1128px, 100%);
  margin: 0 auto;
}

.inner h2 {
  position: relative;
  width: min(309px, 40%);
  margin: 0 auto 16px;
}

.inner + .inner {
  margin-top: clamp(48px, 5vw, 96px);
}

/* 以 309 × 113 的標題原圖為基準，讓兩朵雲隨標題等比例縮放。 */
.inner h2::before,
.inner h2::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: center/contain no-repeat;
}

.inner h2::before {
  left: 21%;
  top: 25%;
  width: 20.39%;
  aspect-ratio: 63/22;
  background-image: url("../images/tit-deco-left.png");
}

.inner h2::after {
  right: 21%;
  top: 5%;
  width: 24.27%;
  aspect-ratio: 75/26;
  background-image: url("../images/tit-deco-right.png");
}

@media (prefers-reduced-motion: no-preference) {
  .inner h2::before {
    -webkit-animation: title-cloud-drift 5s ease-in-out infinite alternate;
            animation: title-cloud-drift 5s ease-in-out infinite alternate;
  }
  .inner h2::after {
    animation: title-cloud-drift 6s ease-in-out infinite alternate-reverse;
  }
}
@-webkit-keyframes title-cloud-drift {
  from {
    -webkit-transform: translateX(-7%);
            transform: translateX(-7%);
  }
  to {
    -webkit-transform: translateX(7%);
            transform: translateX(7%);
  }
}
@keyframes title-cloud-drift {
  from {
    -webkit-transform: translateX(-7%);
            transform: translateX(-7%);
  }
  to {
    -webkit-transform: translateX(7%);
            transform: translateX(7%);
  }
}
.inner h2 img {
  width: 100%;
}

.event-content {
  position: relative;
  padding: 6.382979% 0 7.092199%;
  background: url("../images/content-middle.png") center/100% auto repeat-y content-box;
  color: #453524;
}

.word-card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 18px;
}

.word-card-copy {
  grid-area: 1/1;
}

.event-word-cards {
  grid-area: 1/2;
  width: 100%;
  max-width: 310px;
  height: auto;
  justify-self: center;
}

@media (max-width: 600px) {
  .word-card-layout {
    grid-template-columns: 1fr;
  }
  .word-card-copy,
  .event-word-cards {
    grid-area: auto;
  }
  .event-word-cards {
    width: min(90%, 270px);
  }
}
.heroes-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 46%);
  align-items: center;
  gap: 20px;
}

.heroes-intro-image {
  width: 100%;
  height: auto;
}

@media (max-width: 1400px) {
  .heroes-intro {
    grid-template-columns: 1fr;
  }

  .heroes-intro-image {
    display: none;
  }
}

.event-details {
  padding: 0 8%;
  line-height: 1.8;
}

.event-details h3 {
  margin-bottom: 8px;
}

.event-npc {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
}

.event-npc h3 {
  margin: 0;
}

.event-details h3:not(:first-child) {
  margin-top: 24px;
}

.event-details h3 img {
  width: clamp(138px, 22vw, 191px);
  height: auto;
}

.event-details ul {
  padding-left: 1.5em;
  list-style: disc;
}

.reward-panel {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 38px);
  background: -webkit-gradient(linear, left top, left bottom, from(#604331), to(#38261d));
  background: linear-gradient(#604331, #38261d);
  outline: 1px solid #907749;
  outline-offset: -7px;
}

.reward-panel h3 {
  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;
  gap: 0.65em;
  margin: 0 0 0.85em;
  color: #f9e4ae;
  font: normal clamp(22px, 3vw, 36px)/1.3;
}

.reward-panel h3::before,
.reward-panel h3::after {
  content: "";
  width: min(16%, 150px);
  height: 6px;
  background: #dfba77;
  clip-path: polygon(0 50%, 3% 0, 5% 40%, 95% 40%, 97% 0, 100% 50%, 97% 100%, 95% 60%, 5% 60%, 3% 100%);
}

.reward-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.reward-card {
  padding: 9px;
  border: 2px solid #dfba77;
  border-radius: 12px;
  outline-offset: -6px;
  background: #f6eddf;
  color: #382e2a;
}

.reward-card h4 {
  padding: 8px;
  border-radius: 4px;
  background: #433448;
  color: #ffe4a5;
  text-align: center;
  font-size: clamp(18px, 2vw, 24px);
}

.reward-card:nth-child(2) h4 {
  background: #343b59;
}

.reward-card dl {
  margin: 0 8px;
}

.reward-card dl > div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 8px;
  padding: 8px 0;
}

.reward-card dl > div + div {
  border-top: 1px solid #d9c7aa;
}

.reward-card dd {
  color: #805925;
  font-weight: bold;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .reward-boxes {
    grid-template-columns: 1fr;
  }
}
.exchange-table {
  width: 100%;
  margin-top: 12px;
  line-height: 1.5;
}

.exchange-table th,
.exchange-table td {
  border: 1px solid #ba9c68;
  padding: 6px clamp(4px, 1vw, 12px);
  text-align: left;
}

.medal-combinations tr > :not(:nth-child(2)) {
  text-align: center;
}

.exchange-table thead {
  background: #ead4ae;
}

.exchange-table tbody {
  background-color: #fff;
}

.card-character,
.event-eligibility-note {
  color: #a02825;
}

.event-content::before,
.event-content::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.event-content::before {
  top: 0;
  aspect-ratio: 1128/72;
  background-image: url("../images/content-top.png");
}

.event-content::after {
  bottom: 0;
  aspect-ratio: 1128/80;
  background-image: url("../images/content-bottom.png");
}

.inner h2[id] {
  scroll-margin-top: 16px;
}

.event-nav {
  position: fixed;
  z-index: 11;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  padding: 6px 6px 6px 0;
  /* border: 1px solid #b9995e;
  border-radius: 8px;
  background: #212744; */
  color: #fff3d8;
}

.event-nav {
  opacity: 0;
  visibility: hidden;
  translate: 0 -12px;
}

.event-nav.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

@media (prefers-reduced-motion: no-preference) {
  .event-nav {
    -webkit-transition: opacity 280ms ease-out, translate 280ms ease-out, visibility 0s 280ms;
    transition: opacity 280ms ease-out, translate 280ms ease-out, visibility 0s 280ms;
  }
  .event-nav.is-visible {
    -webkit-transition-duration: 360ms, 360ms, 0s;
            transition-duration: 360ms, 360ms, 0s;
    -webkit-transition-delay: 0s;
            transition-delay: 0s;
  }
}
.event-nav a,
.event-nav-toggle {
  display: block;
  padding: 8px 12px;
  border-radius: 0px 40px 40px 0px;
  font-size: 15px;
}

.event-nav a:hover,
.event-nav a[aria-current] {
  background-color: #ecd49b;
  color: #47331f;
}

@media (min-width: 1000px) and (min-height: 401px) {
  .event-nav a {
    background: -webkit-gradient(linear, left top, left bottom, from(#ecd49b), to(#ecd49b)) left center/0% 100% no-repeat;
    background: linear-gradient(#ecd49b, #ecd49b) left center/0% 100% no-repeat;
    border-radius: 0px 40px 40px 0px;
  }
  .event-nav a:hover,
  .event-nav a[aria-current] {
    background-color: transparent;
    background-size: 100% 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .event-nav a {
    -webkit-transition: background-size 240ms ease-out, color 160ms ease-out;
    transition: background-size 240ms ease-out, color 160ms ease-out;
  }
}
.event-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
}

@media (max-width: 999px), (max-height: 400px) {
  .event-nav {
    top: auto;
    bottom: 12px;
    left: 8px;
    -webkit-transform: none;
            transform: none;
    padding: 3px;
  }
  .event-nav-toggle {
    display: block;
  }
  .event-nav ul {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    width: -webkit-max-content;
    width: -moz-max-content;
    width: max-content;
    max-height: 70vh;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #b9995e;
    border-radius: 6px;
    background: #212744;
  }
  .event-nav-toggle[aria-expanded=false] + ul {
    display: none;
  }
}
@media (max-width: 999px) {
  .event-nav {
    display: none;
  }
}

.social-sidebar {
  position: fixed;
  z-index: 10;
  top: 15vw;
  right: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 36px;
  background: rgba(12, 20, 45, 0.65);
}

.social-sidebar a,
.social-unavailable {
  display: block;
  width: 44px;
  height: 44px;
}

.social-sidebar a {
  -webkit-transition: -webkit-transform 0.2s;
  transition: -webkit-transform 0.2s;
  transition: transform 0.2s;
  transition: transform 0.2s, -webkit-transform 0.2s;
}

.social-sidebar a:hover {
  -webkit-transform: translateY(-3px);
          transform: translateY(-3px);
}

.footer {
  background: #000;
  color: #858585;
  border-top: 32px solid transparent;
  -o-border-image: url("../images/container-bg.jpg") 32 stretch;
     border-image: url("../images/container-bg.jpg") 32 stretch;
}

.footer-social-btns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 25px;
  padding: 28px 0;
  background: #181818;
}

.footer-social-btns a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  color: #ccc;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

.footer-social-btns img {
  width: 40px;
  height: 40px;
  max-width: none;
}

.footer-social-btns a:hover {
  background: #8c734a;
}

.footer-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 22px 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 48px;
}

.footer-left,
.footer-right {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.footer-left {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 43%;
          flex: 0 0 43%;
  gap: 10px;
}

.lager-logo {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 143px;
          flex: 0 0 143px;
  height: 40px;
  background: url("../images/lager-logo.png") center/contain no-repeat;
}

.copyright,
.class-txt {
  font-size: 12px;
  line-height: 1.45;
}

.class-level {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 40px;
          flex: 0 0 40px;
  margin-right: 10px;
}

.text-row {
  margin: 10px 0 20px;
}

.pic-row {
  border-bottom: 1px solid #553e2f;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

@media (min-width: 1921px) {
  .inner {
    width: 58.75vw;
  }
  .inner h2 {
    width: 16.09375vw;
  }
}
@media (max-width: 1100px) {
  .social-sidebar {
    right: 8px;
    padding: 8px;
    gap: 6px;
  }
  .footer-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 24px;
  }
  .footer-left {
    -webkit-box-flex: 1;
        -ms-flex: auto;
            flex: auto;
  }
  .footer-right {
    max-width: 680px;
  }
}
@media (max-width: 600px) {
  .event-npc {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    row-gap: 4px;
  }
  .header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 6px;
    padding: 26px 0 0;
    aspect-ratio: auto;
    background-size: auto 100%;
    background-position: 42% top;
  }
  .header-fireworks {
    height: clamp(110px, 33vw, 180px);
  }
  .header-characters {
    position: static;
    -ms-flex-item-align: end;
        align-self: flex-end;
    width: 152%;
    max-width: none;
    height: auto;
  }
  .header-copy {
    position: static;
    -webkit-box-ordinal-group: 0;
        -ms-flex-order: -1;
            order: -1;
    margin: 0 auto;
    width: 94%;
  }
  .game-logo {
    width: 40%;
    margin-bottom: 6px;
  }
  .container {
    margin-top: -48px;
    padding: 72px 12px 80px;
  }
  .container::before {
    height: 75px;
    background-size: auto 75px;
  }
  .inner h2 {
    width: 220px;
    max-width: 70%;
    margin-bottom: 14px;
  }
  .social-sidebar {
    top: auto;
    bottom: 12px;
    right: 10px;
    gap: 8px;
    padding: 8px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
  .social-sidebar a,
  .social-unavailable {
    width: 36px;
    height: 36px;
  }
  .footer {
    border-top-width: 16px;
  }
  .footer-inner {
    padding: 24px 18px 90px;
  }
  .footer-left {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
  }
  .lager-logo {
    -webkit-box-flex: 0;
        -ms-flex: none;
            flex: none;
    width: 143px;
  }
  .footer-right {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .class-txt {
    line-height: 1.7;
  }
}

/* 進站感謝信燈箱 */
html.letter-open {
  overflow: hidden;
}

.welcome-letter {
  position: fixed;
  inset: 0;
  width: min(92vw, 1092px, 198vh);
  max-width: none;
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: auto;
}

.welcome-letter::backdrop {
  background: rgb(0 0 0 / 72%);
}

.welcome-letter.is-closing {
  animation: letter-exit 320ms ease-in forwards;
}

.welcome-letter.is-closing::backdrop {
  animation: letter-backdrop-exit 320ms ease-in forwards;
}

@keyframes letter-exit {
  to {
    opacity: 0;
    transform: translateY(30px);
  }
}

@keyframes letter-backdrop-exit {
  to {
    opacity: 0;
  }
}

.welcome-letter-image {
  width: 100%;
  height: auto;
}

.welcome-letter-close {
  position: absolute;
  top: 8%;
  right: 4%;
  width: clamp(36px, 5.5vw, 62px);
  padding: 0;
  border: 0;
  background: transparent;
}

.welcome-letter-close:focus-visible {
  outline: none;
}

@media (max-width: 600px) {
  .welcome-letter {
    width: min(94vw, 98vh);
  }

  .welcome-letter-close {
    top: 5%;
    right: 5%;
  }
}
