.language-switch {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 116px;
    height: 36px;
    padding: 3px;
    margin-left: .55rem;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 999px;
    background: rgba(20, 42, 43, .68);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .16);
    align-self: center;
    flex: none;
}
.language-switch::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(50% - 3px);
    border-radius: 999px;
    background: #e9b44c;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
    transition: transform .18s ease;
}
.language-switch.is-en::before { transform: translateX(100%); }
.language-switch > * {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: 600 .78rem/1 "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: color .18s ease;
}
.language-switch:not(.is-en) > :first-child,
.language-switch.is-en > :last-child {
    color: #1e3231;
    font-weight: 800;
}
.language-switch:not(.is-en) > a:last-child:hover,
.language-switch.is-en > a:first-child:hover { color: #e9b44c; background: none; }
.language-switch > a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 999px;
}
@media (max-width: 540px) {
    .language-switch {
        width: 108px;
        margin-left: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .language-switch::before,
    .language-switch > * { transition: none; }
}
