@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@500;600;700;800;900&family=Noto+Serif+Thai:wght@500;600;700;800;900&family=Prompt:wght@300;400;500;600;700;800&display=swap");

:root {
  --ff: "Prompt", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif;
  --ff_o: "Noto Serif Thai", "Prompt", "Leelawadee UI", serif;
}

html,
body,
button,
input,
textarea,
select {
  font-family: "Prompt", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif !important;
}

body {
  font-weight: 400;
  letter-spacing: 0.005em;
}

.header__logo {
  align-items: center;
  gap: 10px;
  max-width: none !important;
  min-width: 112px;
}

.header__logo img {
  display: none !important;
}

.header__logo::after {
  content: "L2Tor";
  color: #f4d7a1;
  font-family: "Noto Serif Thai", "Prompt", serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(180deg, #fff7d7 0%, #f2c974 50%, #9c6325 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(244, 215, 161, 0.38));
}

.header {
  background: rgba(13, 12, 11, 0.9) !important;
  border-bottom: 1px solid rgba(244, 215, 161, 0.13) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  z-index: 60 !important;
}

.header__row {
  justify-content: flex-start !important;
  gap: clamp(28px, 5vw, 82px) !important;
}

.nav__list {
  gap: clamp(18px, 3.4vw, 62px);
}

.nav__link {
  position: relative;
  min-height: var(--header-h);
  align-items: center;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 800 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav__link:hover,
.nav__link--selected {
  color: #fff3cf !important;
  text-shadow: 0 0 18px rgba(244, 215, 161, 0.42);
}

.nav__link span {
  display: none !important;
}

.lang {
  display: none !important;
}

.nav__item:has(a[href="/statistics/"]) {
  display: none !important;
}

.home__logo {
  display: none !important;
}

.home__logo::after {
  content: "";
  display: none;
}

.home__content {
  max-width: 760px;
}

.home__title {
  display: block;
  margin-bottom: 18px;
  padding-top: 0.08em;
  padding-bottom: 0.04em;
  color: #ffe4a9;
  font-size: clamp(58px, 6.8vw, 112px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: 0.015em !important;
  text-transform: uppercase;
  overflow: visible !important;
  background: linear-gradient(180deg, #fff7d7 0%, #f4cf82 44%, #9b682c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 22px rgba(244, 199, 132, 0.34));
}

.home__title::after {
  content: "Lineage 2 High Five";
  display: block;
  margin-top: 18px;
  color: rgba(255, 244, 222, 0.9);
  font-size: clamp(16px, 1.65vw, 28px);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.start-project {
  display: none !important;
}

.header__download,
.menu__panel,
.modal__action:first-child,
.steps__register-btn {
  display: none !important;
}

.home__title,
.advantages__title,
.slider__title,
.features__title,
.promo__title,
.inner-heading__title,
.modal__heading,
.download__title,
.donate__title,
.steps__title,
.advantages__item-heading,
.slider__item-heading,
.features__item-heading {
  font-family: "Noto Serif Thai", "Prompt", "Leelawadee UI", serif !important;
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 800;
}

.home__title,
.advantages__title,
.slider__title,
.features__title,
.promo__title,
.inner-heading__title {
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 22px rgba(244, 215, 161, 0.18);
}

.inner-heading__title,
.download__title {
  overflow: visible !important;
  padding-top: 0.18em;
  padding-bottom: 0.12em;
  line-height: 1.35 !important;
}

.download__heading,
.inner-heading {
  overflow: visible !important;
}

.advantages__title {
  max-width: 980px;
  margin-inline: auto;
  font-size: clamp(32px, 4.5vw, 58px) !important;
  line-height: 1.42 !important;
  letter-spacing: 0.01em !important;
  text-wrap: balance;
}

.slider__title,
.features__title {
  font-size: clamp(30px, 4.2vw, 54px) !important;
  line-height: 1.35 !important;
  text-wrap: balance;
}

.slider__title {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(26px, 3.05vw, 42px) !important;
  line-height: 1.48 !important;
}

.features__item-heading {
  font-size: clamp(18px, 1.35vw, 24px) !important;
  line-height: 1.32 !important;
  text-wrap: balance;
}

.features__descr p {
  max-width: 360px;
  margin-inline: auto;
  text-wrap: balance;
}

.promo__title {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(28px, 3.8vw, 54px) !important;
  line-height: 1.32 !important;
  letter-spacing: 0.01em !important;
  text-wrap: balance;
}

.promo__title span {
  display: block;
  margin-top: 6px;
  font-size: clamp(38px, 5.6vw, 82px) !important;
  line-height: 1.05 !important;
}

.footer__logo {
  pointer-events: none;
}

.footer__logo img {
  display: none !important;
}

.footer__logo span {
  font-family: "Prompt", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif !important;
  color: #f4d7a1;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav__link,
.menu-nav__link,
.header__download,
.modal__download,
.home__play,
.promo__play,
.footer__nav-link {
  font-family: "Prompt", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif !important;
  font-weight: 700;
}

.home__info p,
.advantages__subheading p,
.slider__item-info p,
.features__descr p,
.promo__subheading p,
.footer__warn p,
.steps__info-guidance p,
.steps__info-heading p,
.steps__grid-item-subheading,
.steps__mirror-name p,
.inner-heading__subheading p {
  font-family: "Prompt", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif !important;
  line-height: 1.75;
  font-weight: 400;
}

.video-modal {
  z-index: 45 !important;
}

.video-modal__container {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: calc(var(--header-h) + 72px) clamp(14px, 3vw, 44px) 28px !important;
  background: rgba(0, 0, 0, 0.78) !important;
  overflow-y: auto !important;
}

.video-modal__body {
  position: relative !important;
  width: min(1080px, 100%) !important;
  max-height: calc(100vh - var(--header-h) - 104px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  background: #050505 !important;
  border: 1px solid rgba(244, 215, 161, 0.24);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.72);
}

.video-modal__wrapper {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--header-h) - 104px) !important;
  overflow: hidden !important;
}

.video-modal__wrapper iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.video-modal__close {
  top: -54px !important;
  right: 0 !important;
  z-index: 5 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 244, 218, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(28, 24, 18, 0.98), rgba(5, 5, 5, 0.96)) !important;
  border: 1px solid rgba(244, 215, 161, 0.42) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.58), inset 0 0 18px rgba(244, 215, 161, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-modal__close::before,
.video-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff8df, #d8b36b);
  box-shadow: 0 0 10px rgba(244, 215, 161, 0.28);
}

.video-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.video-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.video-modal__close:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 235, 184, 0.78) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.64), 0 0 22px rgba(244, 215, 161, 0.18);
}

.video-modal__close img {
  display: none !important;
}

.home__play-video {
  align-items: center !important;
  gap: 18px !important;
  min-height: 96px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.54), rgba(12, 12, 12, 0));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.home__play-video:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 18px rgba(244, 215, 161, 0.18));
}

.home__play-btn {
  position: relative;
  width: 92px !important;
  height: 92px !important;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 215, 161, 0.38);
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 215, 161, 0.13), transparent 48%),
    linear-gradient(145deg, rgba(18, 16, 13, 0.94), rgba(4, 4, 4, 0.98));
  box-shadow:
    inset 0 0 24px rgba(244, 215, 161, 0.07),
    0 14px 32px rgba(0, 0, 0, 0.44);
}

.home__play-btn::before,
.home__play-btn::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 237, 195, 0.22);
  pointer-events: none;
}

.home__play-btn::after {
  inset: 8px;
  border-color: rgba(244, 215, 161, 0.18);
  box-shadow: 0 0 26px rgba(244, 215, 161, 0.1);
}

.home__play-btn img {
  width: 34px !important;
  height: 34px !important;
  filter: sepia(1) saturate(0.75) brightness(1.35) drop-shadow(0 0 12px rgba(244, 215, 161, 0.38));
  transform: translateX(3px);
}

.home__play-video span {
  position: relative;
  color: rgba(255, 245, 225, 0.92) !important;
  font-size: clamp(18px, 1.5vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.72), 0 0 18px rgba(244, 215, 161, 0.16);
}

.home__play-video span::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin-top: 9px;
  background: linear-gradient(90deg, rgba(244, 215, 161, 0.72), rgba(244, 215, 161, 0));
}

.l2tor-terms-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  text-align: left;
}

.page-terms > :not(.wreath):not(.l2tor-terms-static):not(.l2tor-terms-content) {
  display: none !important;
}

.l2tor-terms-static {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  text-align: left;
}

.l2tor-terms-static h3 {
  margin-bottom: 18px;
  color: #f4d7a1;
  font-family: "Noto Serif Thai", "Prompt", serif;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  text-align: center;
}

.l2tor-terms-static h4 {
  margin: 28px 0 12px;
  color: rgba(255, 238, 199, 0.95);
  font-family: "Prompt", "Leelawadee UI", "Noto Sans Thai", "Tahoma", sans-serif;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.45;
  font-weight: 800;
}

.l2tor-terms-static p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85;
}

.l2tor-terms-static a {
  color: #f4d7a1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.l2tor-terms-content h3 {
  margin-bottom: 18px;
  color: #f4d7a1;
  font-family: "Noto Serif Thai", "Prompt", serif;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.35;
  text-align: center;
}

.l2tor-terms-content p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.85;
}

.footer__nav-link {
  line-height: 1.45 !important;
}

.footer__nav-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.footer__nav-title {
  display: block;
}

.footer__nav-note {
  display: block;
  max-width: 18rem;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.68);
}

@media only screen and (min-width: 75em) {
  .footer__nav-link {
    align-items: flex-start;
    text-align: left;
  }
}

.nav__link,
.menu-nav__link,
.modal__download,
.home__play,
.promo__play,
.header__download {
  line-height: 1.5 !important;
  overflow: visible !important;
  padding-top: 0.12em;
  padding-bottom: 0.12em;
  white-space: nowrap;
}

.nav__link {
  min-height: calc(var(--header-h) + 6px);
}

.home__play,
.promo__play {
  flex-shrink: 0;
}

.home__play span,
.promo__play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.16em;
  padding-bottom: 0.06em;
  font-family: "Noto Sans Thai", "Prompt", "Leelawadee UI", "Tahoma", sans-serif !important;
  font-size: clamp(22px, 1.65vw, 28px) !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  letter-spacing: 0.01em;
  transform: none;
}

.inner-heading__title,
.download__title,
.donate__title,
.steps__title,
.advantages__title,
.slider__title,
.features__title,
.promo__title {
  overflow: visible !important;
  padding-top: 0.18em;
  padding-bottom: 0.14em;
}

@media (max-width: 768px) {
  .header__logo::after {
    font-size: 22px;
  }

  .home__title span {
    font-size: 34px !important;
  }

  .home__title {
    font-size: 46px !important;
    line-height: 1.08 !important;
    padding-top: 0.1em;
  }

  .home__title::after {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .advantages__title {
    font-size: 30px !important;
    line-height: 1.28 !important;
  }

  .promo__title {
    font-size: 26px !important;
    line-height: 1.38 !important;
  }

  .promo__title span {
    font-size: 42px !important;
    line-height: 1.08 !important;
  }
}
