.language-switcher {
    position: fixed;
    z-index: 1100;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    display: inline-grid;
    grid-template-columns: repeat(2, 42px);
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: rgba(7, 11, 18, .54);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    isolation: isolate;
}

.language-switcher::before {
    position: absolute;
    z-index: -1;
    top: 2px;
    left: 2px;
    width: 42px;
    height: 40px;
    border: 1px solid rgba(117, 237, 180, .38);
    border-radius: 6px;
    background: rgba(117, 237, 180, .18);
    box-shadow: inset 0 0 12px rgba(117, 237, 180, .08);
    content: "";
    transform: translateX(0);
    transition: transform 260ms cubic-bezier(.22, 1, .36, 1), background-color 180ms ease, box-shadow 180ms ease;
}

html[lang="en"] .language-switcher::before,
.language-switcher[data-target-language="en"]::before {
    transform: translateX(42px);
}

.language-switcher[data-target-language="de"]::before {
    transform: translateX(0);
}

.language-switcher.is-switching::before {
    background: rgba(117, 237, 180, .3);
    box-shadow: 0 0 18px rgba(117, 237, 180, .22), inset 0 0 12px rgba(117, 237, 180, .12);
}

.language-switcher a {
    display: grid;
    min-width: 42px;
    min-height: 40px;
    place-items: center;
    border-radius: 6px;
    color: rgba(216, 225, 236, .62);
    font: 800 12px/1 system-ui, sans-serif;
    text-decoration: none;
    transition: color 180ms ease, opacity 180ms ease;
}

.language-switcher a[aria-current="true"] {
    color: #cffff0;
}

.language-switcher a:hover,
.language-switcher a:focus-visible {
    color: #ffffff;
}

.language-switcher a:focus-visible {
    outline: 2px solid rgba(117, 237, 180, .8);
    outline-offset: -2px;
}

html.swetch-language-transition body > :not(.language-switcher):not(.skip-link) {
    transition: opacity 220ms ease, transform 260ms cubic-bezier(.22, 1, .36, 1), filter 220ms ease;
}

html.swetch-language-leaving body > :not(.language-switcher):not(.skip-link),
html.swetch-language-arriving body > :not(.language-switcher):not(.skip-link) {
    opacity: .35;
    filter: saturate(.7);
    transform: translateY(-4px);
}

.language-suggestion {
    position: fixed;
    z-index: 1099;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    display: flex;
    width: fit-content;
    max-width: min(520px, calc(100vw - 24px));
    margin-left: auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(117, 237, 180, .38);
    border-radius: 8px;
    color: #eef4fb;
    background: rgba(8, 15, 23, .96);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .4);
    font: 600 14px/1.35 system-ui, sans-serif;
}

.language-suggestion a { color: #75edb4; font-weight: 800; }
.language-suggestion button {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    color: #eef4fb;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.translation-fallback-note {
    display: inline-block;
    margin-bottom: 8px;
    color: #f3c878;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 0;
}

@media (max-width: 520px) {
    .language-switcher { top: 8px; right: 8px; }
    .language-suggestion { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .language-switcher::before,
    .language-switcher a,
    html.swetch-language-transition body > :not(.language-switcher):not(.skip-link) {
        transition: none;
    }
}
.game-card.is-new::before {
    content: "Neu";
}

html[lang="en"] .game-card.is-new::before {
    content: "New";
}

html[lang="en"] .cover.has-playing-trailer::after,
html[lang="en"] .cover.has-playing-trailer.is-muted::after {
    content: "Enable sound";
}

html[lang="en"] .cover.has-playing-trailer.has-sound::after {
    content: "Sound on";
}
