/* ===== launge — полное скрытие нативной плашки Google Translate ===== */
.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
body > .skiptranslate,
body > iframe.skiptranslate,
html > .skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html,
html.translated-ltr,
html.translated-rtl,
body {
    top: 0 !important;
    margin-top: 0 !important;
    position: static !important;
    min-height: 100vh !important;
}

.goog-tooltip,
.goog-tooltip:hover,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-spinner-pos,
.goog-te-spinner-animation {
    display: none !important;
}

.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: none !important;
}

font[style*="background-color"] {
    background-color: transparent !important;
}

#google_translate_element {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===== launge — виджет смены языка в стиле solution2 ===== */
.launge-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    color: #c8cde0;
    -webkit-user-select: none;
    user-select: none;
    margin: 0 5px;
    vertical-align: middle;
}

.launge-widget * {
    box-sizing: border-box;
}

/* Кнопка-триггер */
.launge-widget__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(1deg, #25252e 30%, #292932 100%);
    border: 1px solid #373744;
    padding: 5px 10px 5px 8px;
    cursor: pointer;
    color: #c8cde0;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    height: 32px;
    white-space: nowrap;
}

.launge-widget__toggle:hover {
    border-color: rgba(93, 186, 141, 0.4);
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    transform: translateY(-1px);
    color: #fff;
}

.launge-widget.is-open .launge-widget__toggle {
    border-color: rgba(93, 186, 141, 0.5);
    color: #fff;
}

.launge-widget.is-loading .launge-widget__toggle {
    pointer-events: none;
    opacity: 0.7;
}

.launge-widget.is-loading .launge-widget__toggle::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid rgba(93, 186, 141, 0.25);
    border-top-color: #5dba8d;
    border-radius: 50%;
    animation: laungeSpin 0.7s linear infinite;
    margin-left: 4px;
}

@keyframes laungeSpin {
    to { transform: rotate(360deg); }
}

/* Флаг в кнопке */
.launge-widget__flag {
    width: 22px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 1px 3px rgba(0,0,0,0.3);
}

.launge-widget__flag--text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    background: linear-gradient(1deg, #373744 0%, #2e2e3a 100%);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    color: #8288a1;
    letter-spacing: 0.5px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.launge-widget__current-name {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
}

.launge-widget__chev {
    width: 10px;
    height: 7px;
    color: #8288a1;
    transition: transform 0.25s ease, color 0.15s ease;
}

.launge-widget__toggle:hover .launge-widget__chev {
    color: #5dba8d;
}

.launge-widget.is-open .launge-widget__chev {
    transform: rotate(180deg);
    color: #5dba8d;
}

/* Выпадающее меню */
.launge-widget__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: linear-gradient(1deg, #25252e 30%, #292932 100%);
    border: 1px solid #373744;
    border-radius: 14px;
    box-shadow:
        0 16px 40px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.03);
    padding: 6px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.launge-widget__menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 11px;
    height: 11px;
    background: #292932;
    border-left: 1px solid #373744;
    border-top: 1px solid #373744;
    transform: rotate(45deg);
    border-radius: 2px;
    pointer-events: none;
}

.launge-widget.is-open .launge-widget__menu {
    display: block;
    animation: laungeFade 0.18s ease both;
}

@keyframes laungeFade {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Элемент списка */
.launge-widget__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    text-decoration: none;
    color: #8288a1;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
}

.launge-widget__item:hover {
    background: rgba(255,255,255,0.04);
    border-color: #373744;
    color: #c8cde0;
    text-decoration: none;
}

.launge-widget__item.is-active {
    background: rgba(93, 186, 141, 0.1);
    border-color: rgba(93, 186, 141, 0.25);
    color: #fff;
    font-weight: 600;
}

.launge-widget__item.is-active::after {
    content: '✓';
    margin-left: auto;
    color: #5dba8d;
    font-size: 13px;
    font-weight: 700;
}

.launge-widget__item-flag {
    width: 22px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 1px 2px rgba(0,0,0,0.3);
}

.launge-widget__item-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 767px) {
    .launge-widget__menu {
        right: auto;
        left: 0;
        min-width: 180px;
    }
    .launge-widget__menu::before {
        right: auto;
        left: 14px;
    }
    .launge-widget__current-name {
        display: none;
    }
}

/* ===== PBGame Languages — публичная страница ===== */
.launge-page__body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: linear-gradient(1deg, #25252e 30%, #292932 100%);
    border: 1px solid #373744;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.launge-page__intro h3 {
    margin: 0 0 7px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.launge-page__intro p {
    margin: 0;
    max-width: 640px;
    color: #8288a1;
    font-size: 13px;
    line-height: 1.55;
}

.launge-page__version {
    font-size: 11px;
    font-weight: 600;
    color: #8288a1;
    margin-top: 6px;
}

.launge-page__widget {
    display: flex;
    justify-content: flex-end;
    min-width: 220px;
}

@media (max-width: 767px) {
    .launge-page__body {
        align-items: flex-start;
        padding: 14px;
    }
    .launge-page__widget {
        width: 100%;
        justify-content: flex-start;
    }
}
