.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 5.1rem;
  height: 2.45rem;
  padding: 0 .55rem 0 .7rem;
  border: 1px solid rgba(198, 160, 255, .24);
  border-radius: .75rem;
  background: rgba(18, 14, 27, .82);
  color: #decaff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(14px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  z-index: 12;
}

.language-switcher:hover {
  border-color: rgba(198, 160, 255, .55);
  background: rgba(35, 25, 52, .94);
  transform: translateY(-1px);
}

.language-switcher > span {
  color: #ad78ff;
  font: 600 .82rem/1 'JetBrains Mono', monospace;
}

.language-switcher select {
  width: 100%;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 600 .68rem/1 'JetBrains Mono', monospace;
  letter-spacing: .02em;
}

.language-switcher select option {
  color: #f4eeff;
  background: #17111f;
}

.language-switcher.is-offline {
  opacity: .55;
}

.translation-engine {
  position: fixed;
  left: -9999px;
  bottom: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.goog-te-banner-frame.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

body { top: 0 !important; }

@media (max-width: 62rem) {
  .language-switcher {
    min-width: 4.6rem;
    height: 2.2rem;
    padding-inline: .55rem;
  }

  .language-switcher select {
    max-width: 3rem;
  }
}

@media (max-width: 32rem) {
  .language-switcher > span { display: none; }
  .language-switcher { min-width: 3.6rem; }
}
