/* Five-language refinements — loaded after the original design system. */
.language-select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 5.6rem;
  height: 2.25rem;
  border: 1px solid rgba(194, 164, 107, .55);
  border-radius: 999px;
  padding: 0 1.9rem 0 .82rem;
  color: inherit;
  background-color: transparent;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 1px),
    calc(100% - 10px) calc(50% - 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  font: 600 .68rem/1 Arial, "Helvetica Neue", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: border-color .25s ease, background-color .25s ease;
}

.language-select:hover,
.language-select:focus-visible {
  border-color: #b88c31;
  background-color: rgba(194, 164, 107, .08);
}

.language-select option {
  color: #0f2a33;
  background: #f6f3eb;
  font-size: .8rem;
  letter-spacing: 0;
  text-transform: none;
}

.gate__language .language-select {
  color: #f6f3eb;
  border-color: rgba(246, 243, 235, .58);
  background-color: rgba(8, 29, 34, .18);
  backdrop-filter: blur(12px);
}

.language .language-select {
  color: #0f2a33;
}

body[data-lang="zh"],
body[data-lang="zh"] button,
body[data-lang="zh"] input,
body[data-lang="zh"] select,
body[data-lang="zh"] textarea {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body[data-lang="ko"],
body[data-lang="ko"] button,
body[data-lang="ko"] input,
body[data-lang="ko"] select,
body[data-lang="ko"] textarea {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

body[data-lang="ru"],
body[data-lang="ru"] button,
body[data-lang="ru"] input,
body[data-lang="ru"] select,
body[data-lang="ru"] textarea {
  font-family: Arial, "Helvetica Neue", sans-serif;
}

body[data-lang="zh"] h1,
body[data-lang="zh"] h2,
body[data-lang="zh"] h3,
body[data-lang="ko"] h1,
body[data-lang="ko"] h2,
body[data-lang="ko"] h3 {
  font-family: "Noto Serif SC", "Songti SC", "Noto Serif KR", "Batang", Georgia, serif;
  word-break: keep-all;
}

body[data-lang="ru"] h1,
body[data-lang="ru"] h2,
body[data-lang="ru"] h3 {
  font-family: Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

body[data-lang="ru"] .gate__content h1,
body[data-lang="ru"] .hero__content h1 {
  font-size: clamp(3.1rem, 6.4vw, 7.8rem);
}

body[data-lang="ru"] .desktop-nav {
  gap: clamp(.75rem, 1.4vw, 1.8rem);
}

body[data-lang="ru"] .desktop-nav button {
  font-size: .67rem;
}

@media (max-width: 760px) {
  .language-select {
    min-width: 4.85rem;
    height: 2rem;
    padding-left: .68rem;
    padding-right: 1.55rem;
    background-position:
      calc(100% - 12px) calc(50% - 1px),
      calc(100% - 8px) calc(50% - 1px);
    font-size: .62rem;
  }

  body[data-lang="ru"] .gate__content h1,
  body[data-lang="ru"] .hero__content h1 {
    font-size: clamp(2.65rem, 13.2vw, 4.5rem);
  }
}
