/* Language menu (js/lang.js): a small glass list under the 中文/English
   button, in the page's own surface, border and type. Fixed, so it sits
   above the full-screen menu and the pinned scenes alike. */
.lang-menu {
  position: fixed;
  z-index: 120;
  min-width: 140px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font: 500 16px/24px var(--cjk);
  color: var(--t2);
  text-align: left;
  transition: background-color .2s, color .2s;
}
.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: rgba(255, 255, 255, .06);
  color: var(--t1);
  outline: none;
}
.lang-menu button[aria-checked='true'] {
  color: var(--gold);
}
.lang-menu button[aria-checked='true']::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
