/* Language toggle — fixed, subtle */
.lang-switch {
  position: fixed;
  bottom: 1.15rem;
  left: 1.15rem;
  z-index: 44;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 10, 22, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.lang-switch__btn {
  min-width: 2.15rem;
  height: 1.85rem;
  padding: 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(246, 248, 255, 0.72);
  font-family: var(--font-mono, "JetBrains Mono", ui-monospace, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-switch__btn:hover {
  color: #fff;
}

.lang-switch__btn.is-active {
  background: rgba(243, 196, 0, 0.18);
  color: #f9dd86;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid rgba(243, 196, 0, 0.65);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .lang-switch {
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.12rem;
    opacity: 0.92;
  }

  .lang-switch__btn {
    min-width: 1.95rem;
    height: 1.65rem;
    font-size: 0.62rem;
    padding: 0 0.45rem;
  }
}
