.top-nav {
  align-items: center
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 145px;
  margin: 0 0 0 8px;
  color: #efd6ff;
  font-size: 13px
}

.language-switcher>span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap
}

.language-switcher select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 7px 10px;
  color: #fff;
  border: 1px solid #86539f;
  border-radius: 8px;
  background: #29133d;
  font: inherit;
  cursor: pointer
}

html[lang=zh-Hans] body {
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif
}

html[lang=zh-Hans] h1 {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.3;
  font-weight: 800
}

html[lang=zh-Hans] h1 span {
  line-height: 1.3
}

html[lang=ms] .top-nav a {
  overflow-wrap: normal
}

@media(max-width:680px) {
  html[lang=ms] .top-nav a {
    padding-inline: 3px;
    font-size: 11px
  }

  html[lang=ms] .footer-links {
    gap: 8px
  }

  html[lang=ms] .footer-links a {
    font-size: clamp(9px, 2.6vw, 14px)
  }

  html[lang=zh-Hans] .top-nav a {
    padding-inline: 6px
  }

  html[lang=zh-Hans] .footer-links {
    gap: 14px
  }
}

@media(max-width:680px) {
  .top-nav {
    overflow: visible;
    gap: 2px;
    flex-wrap: nowrap
  }

  .top-nav a {
    flex: 1 1 auto;
    min-width: 0;
    padding-inline: 3px;
    font-size: clamp(10px, 2.65vw, 12px)
  }

  html[lang=ms] .top-nav a {
    padding-inline: 2px;
    font-size: 11px
  }

  html[lang=ms] .top-nav a[data-mobile-label] {
    font-size: 0
  }

  html[lang=ms] .top-nav a[data-mobile-label]::before {
    content: attr(data-mobile-label);
    font-size: 10.5px;
    white-space: nowrap
  }

  .language-switcher {
    flex: 0 0 40px;
    width: 40px;
    height: 38px;
    margin: 0 0 0 3px;
    border: 1px solid #86539f;
    border-radius: 8px;
    background: #29133d;
    justify-content: center
  }

  .language-switcher::after {
    content: 'EN';
    font-size: 11px;
    font-weight: 600;
    pointer-events: none
  }

  html[lang=ms] .language-switcher::after {
    content: 'BM'
  }

  html[lang=zh-Hans] .language-switcher::after {
    content: '中'
  }

  .language-switcher select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    min-height: 0;
    padding: 0
  }

  .language-switcher:focus-within {
    outline: 2px solid #efa2ff;
    outline-offset: 2px
  }
}
