/* ============================================================
   Standalone language switcher stylesheet, used by every app
   subpage (echoes/, block-blaster/, colornumbermatch/) and their
   localized copies. The homepage and utility pages already include
   these rules in /assets/home.css and /assets/site.css.
   ============================================================ */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px 7px 12px;
    background: var(--card-bg, rgba(12, 16, 38, 0.55));
    border: 1px solid var(--border, rgba(255, 255, 255, 0.14));
    border-radius: 100px;
    color: var(--text, #fff);
    font-size: 0.82em;
    font-weight: 500;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.lang-switcher:hover {
    background: var(--card-bg-hover, rgba(20, 26, 54, 0.7));
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}
.lang-switcher .lang-icon {
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: 0.85;
    flex-shrink: 0;
}
.lang-switcher .lang-caret {
    width: 10px;
    height: 10px;
    fill: currentColor;
    opacity: 0.65;
    flex-shrink: 0;
    pointer-events: none;
}
.lang-switcher select {
    background: transparent;
    border: none;
    color: currentColor;
    font: inherit;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-width: 130px;
}
.lang-switcher select::-ms-expand { display: none; }
.lang-switcher select option {
    background: #0a0e22;
    color: #fff;
}
@media (max-width: 720px) {
    .lang-switcher { padding: 6px 10px; font-size: 0.78em; gap: 6px; }
    .lang-switcher select { max-width: 90px; }
}
@media (max-width: 520px) {
    .lang-switcher select { max-width: 0; padding: 0; }
    .lang-switcher { padding: 6px 9px; }
}
