@font-face {
  font-family: Cinzel;
  src: url("cinzel-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.undead-page .hero,
.undead-page .inner {
  max-width: 1280px;
  margin-inline: auto;
}

.undead-page .story h1 {
  color: var(--gold);
  font: 600 clamp(2.75rem, 6.25vw, 5.2rem)/1.07 Cinzel, var(--serif);
  min-height: 0;
  letter-spacing: .018em;
  text-shadow: 0 3px 24px #d5b77a26;
}

.undead-page .hook {
  min-height: 0;
  margin-bottom: 22px;
}

.undead-page .phone-copy {
  display: grid;
}

.undead-page .phone-copy .hook {
  grid-area: 1 / 1;
}

.undead-page .phone-copy [aria-hidden="true"] {
  visibility: hidden;
}

.undead-page .phone-copy .offer {
  align-self: center;
  color: var(--paper);
  font-size: clamp(1.2rem, 2.3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
}

.undead-page .offer-buy {
  display: inline-block;
  font-size: 1.4em;
  line-height: 1.12;
}

.undead-page .phone-slide {
  position: absolute;
  inset: 0;
  display: block;
}

.undead-page .phone-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.undead-page .phone-slide:focus-visible {
  outline-offset: -4px;
  outline-color: var(--paper);
}

.undead-page .player {
  margin-top: 17px;
}

.undead-page .player .circle {
  min-width: 44px;
  min-height: 44px;
}

.undead-page .undead-promo {
  display: grid;
  justify-items: center;
  gap: 22px;
  padding-block: clamp(26px, 4vw, 48px);
}

.undead-page .undead-promo img {
  display: block;
  width: min(100%, 960px);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.undead-page footer .inner {
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-block: 14px;
  font-size: 15px;
}

.undead-page .footer-apps {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 44px;
  color: var(--paper);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.undead-page .footer-apps .footer-copyright {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
}

.undead-page footer .inner a:hover {
  color: var(--gold);
}

@media (min-width: 701px) {
  .undead-page .stage {
    top: 0;
    bottom: 0;
    width: auto;
    height: 100%;
    translate: none;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .undead-page .hero-inner {
    min-height: calc(64vw * 1122 / 1402);
  }

  .undead-page .story {
    padding-block: 18px;
  }
}

@media (max-width: 700px) {
  .undead-page footer .inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }

  .undead-page .footer-apps {
    font-size: 16px;
  }

  .undead-page .story h1 {
    display: block;
    font-size: clamp(1.8rem, 8vw, 3.1rem);
  }

  .undead-page .mast nav {
    font-size: 15px;
  }

  .undead-page .hook {
    font-size: 17px;
  }

  .undead-page .player {
    margin-top: 13px;
  }
}

.undead-page .undead-languages {
  position: relative;
}

.undead-page .undead-languages > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--gold);
}

.undead-page .undead-languages > summary::-webkit-details-marker {
  display: none;
}

.undead-page .undead-languages > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.undead-page .undead-language-list {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 0;
  display: grid;
  width: min(216px, calc(100vw - 36px));
  max-height: min(62vh, 450px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 12px 35px rgb(0 0 0 / 55%);
}

.undead-page .undead-languages:not([open]) .undead-language-list {
  display: none;
}

.undead-page .undead-language-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 7px 10px;
  border-radius: 3px;
  font-size: 15px;
}

.undead-page .undead-language-list a:is(:hover, :focus-visible, [aria-current="page"]) {
  background: var(--line);
  color: var(--gold);
}

.undead-page .activex-caption {
  position: absolute;
  isolation: isolate;
  inset: auto 0 0;
  display: grid;
  place-content: center;
  gap: .22em;
  min-height: 30%;
  padding: 10% 6% 5%;
  color: var(--gold);
  font: 700 clamp(10px, 7cqw, 21px)/1.18 var(--undead-display, Georgia, serif);
  text-align: center;
  text-shadow: 0 2px 5px #02040b, 0 0 14px #050811;
  overflow-wrap: anywhere;
}

.undead-page .activex-caption::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(164deg, #0a101a33, #070c18a0),
    url("../activexdottech/th/undead.webp") right 76% / 570% auto no-repeat;
  mask-image: linear-gradient(to bottom, transparent, #000 18%);
}

.undead-page .activex-caption span:last-child {
  color: var(--gold);
  font-size: 1.22em;
  line-height: 1.16;
}

html:not([lang="th"]) .undead-page .offer-buy {
  font-family: var(--undead-display, Georgia, serif);
  font-weight: 700;
  text-shadow: 0 2px 12px #d5b77a24;
}

html:lang(en) .undead-page {
  --undead-display: Cinzel, Georgia, serif;
}

html:lang(zh-TW) .undead-page {
  --undead-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
}

html:lang(zh-CN) .undead-page {
  --undead-display: "Noto Serif SC", "Songti SC", SimSun, serif;
}

html:lang(ja) .undead-page {
  --undead-display: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

html:lang(ko) .undead-page {
  --undead-display: "Noto Serif KR", "Nanum Myeongjo", Batang, serif;
}

html:lang(hi) .undead-page {
  --undead-display: "Noto Serif Devanagari", "Nirmala UI", serif;
}

html:lang(lo) .undead-page {
  --undead-display: "Noto Serif Lao", "Lao UI", "Leelawadee UI", serif;
}

@media (max-width: 700px) {
  .undead-page .mast-inner {
    min-height: 53px;
    height: auto;
    flex-wrap: wrap;
    gap: 0 12px;
    padding-block: 4px;
  }

  .undead-page .mast nav {
    margin-inline-start: auto;
    gap: 7px;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  html:not([lang="th"]) .undead-page .hero-inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-inline: 0;
  }

  html:not([lang="th"]) .undead-page .stage {
    position: relative;
    inset: auto;
    width: min(100%, 540px);
    height: auto;
    align-self: center;
    mask-image: linear-gradient(to bottom, #000 94%, transparent);
  }

  html:not([lang="th"]) .undead-page .story {
    width: min(100%, 540px);
    margin-inline: auto;
    padding: 24px var(--pad);
  }

  html:not([lang="th"]) .undead-page .story h1 {
    display: block;
    font-size: clamp(2rem, 5.5vw, 3.1rem);
  }
}
