.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #85927d66;
  border-radius: 20px;
  flex-shrink: 0;
  margin-left: auto;
  font:
    12px system-ui,
    sans-serif;
}
.language-switch button {
  font: inherit;
  white-space: nowrap;
  border: 0;
  border-radius: 16px;
  padding: 7px 10px;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.language-switch button[aria-pressed='true'] {
  background: #59694d;
  color: #fff;
}
.language-switch button:focus-visible {
  outline: 2px solid #c38454;
  outline-offset: 2px;
}
.site-header,
.play-header {
  flex-wrap: wrap;
  gap: 12px;
}
html[lang='kk'] .studio-nav button {
  padding-inline: 14px;
}
html[lang='kk'] .workbench-subnav button {
  font-size: 10px;
}
html[lang='kk'] .it span {
  overflow-wrap: anywhere;
}
html[lang='kk'] .game-heading h1 {
  overflow-wrap: break-word;
}
.game-language-note {
  font-size: 12px;
  opacity: 0.75;
}
.keyboard > div {
  flex-wrap: nowrap;
}
.keyboard button {
  min-width: 0;
}
@media (max-width: 600px) {
  .language-switch {
    font-size: 11px;
  }
  .language-switch button {
    padding: 6px 8px;
  }
  .play-header .connection-badge {
    order: 3;
  }
  .keyboard button {
    padding-inline: 3px;
    font-size: 13px;
  }
}

.compact-studio .language-switch {
  color: #46563f;
}
.compact-studio .language-switch button[aria-pressed='true'] {
  background: #596f4e;
  color: #fff;
}

:root[data-scene='night'] .compact-studio .language-switch {
  color: #dce4cc;
  background: #344132;
  border-color: #66765b;
}
