/* language.css - the three flags (js/language.js, beacon-lang-1, 2026-11-23).
   Before sign-in they stand alone at the top left, over the bot check too;
   once signed in they sit inside the top bar, before Logout. */
.lang-flags {
    position: fixed;
    top: calc(1.8 * var(--vmin));
    left: calc(2.2 * var(--vmin));
    z-index: 10000;     /* over the bot check (9999) too: the language can be picked before answering it */
    display: flex;
    align-items: center;
    gap: calc(0.65 * var(--vmin));
    background: rgba(0,0,0,0.55);
    padding: calc(0.7 * var(--vmin)) calc(1.1 * var(--vmin));
    border-radius: calc(1.1 * var(--vmin));
    backdrop-filter: blur(calc(0.65 * var(--vmin)));
}

.user-bar .lang-flags {
    position: static;
    background: none;
    padding: 0;
    backdrop-filter: none;
    flex-shrink: 0;
}

.lang-flag,
.user-bar button.lang-flag {
    width: calc(3.3 * var(--vmin));
    height: calc(2.2 * var(--vmin));
    padding: 0;
    border: calc(0.2 * var(--vmin)) solid transparent;
    border-radius: calc(0.35 * var(--vmin));
    background: none;
    cursor: pointer;
    opacity: 0.55;
    box-sizing: content-box;
    line-height: 0;
    flex-shrink: 0;
}

.lang-flag svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: calc(0.2 * var(--vmin));
}

.lang-flag:hover,
.user-bar button.lang-flag:hover {
    opacity: 0.9;
    background: none;
}

.lang-flag.on,
.user-bar button.lang-flag.on {
    opacity: 1;
    border-color: #ffcc00;
}

.lang-flag:focus-visible {
    outline: calc(0.25 * var(--vmin)) solid #fff;
    outline-offset: calc(0.15 * var(--vmin));
}
