﻿.language-switch {
  position: fixed;
  z-index: 20;
  top: max(.55rem, env(safe-area-inset-top));
  right: max(clamp(.5rem, 2vw, 2rem), env(safe-area-inset-right));
  display: inline-flex;
  isolation: isolate;
  align-items: center;
  color: #532039;
}
.language-switch::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 3.65rem;
  height: 1.55rem;
  transform: translate(-50%, -50%);
  border-radius: 2rem;
  background: #f9efdf;
}
.embedded-language .language-switch,
body:has(.sound-choice[open]) > .language-switch { display: none; }
.language-switch button {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 32px;
  min-height: 34px;
  padding: 0 .28rem;
  background: transparent;
  color: inherit;
  font: 400 .69rem/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: .045em;
  cursor: pointer;
}
.language-switch button + button { justify-content: flex-start; }
.language-switch button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: .27em; }
.language-switch button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; border-radius: .5rem; }
@media (pointer: coarse) {
  .language-switch button { min-width: 44px; min-height: 44px; }
}
