﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;900&family=JetBrains+Mono:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0');

body { background-color: #050505; color: #fff; top: 0 !important; position: static !important; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ccff00; }
.material-symbols-rounded { font-size: 28px; }

/* --- ПРАВИЛЬНОЕ СКРЫТИЕ ГУГЛА --- */
.goog-te-banner-frame { display: none !important; }
.goog-te-gadget-icon { display: none !important; }
#google_translate_element { display: none !important; }
.skiptranslate { display: none !important; }

/* Скрываем iframe, но НЕ удаляем его из потока, иначе перевод сломается */
body > iframe[id*=":1.container"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    z-index: -9999 !important;
    top: -1000px !important;
}

.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
font { background-color: transparent !important; box-shadow: none !important; }
/* ----------------------------- */

/* КНОПКИ ЯЗЫКА */
.lang-switcher-container {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    padding: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 50;
}

/* Для хедера */
header .lang-switcher-container { margin-right: 15px; }

/* Для экрана авторизации */
#auth-screen .lang-switcher-container {
    position: absolute;
    top: 20px;
    right: 20px;
}

.lang-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: bold;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: transparent;
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
    color: #000;
    background: #ccff00;
    box-shadow: 0 0 10px rgba(204, 255, 0, 0.2);
}

/* SYSTEM LOADER */
#system-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: #050505; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
}
.hidden-screen { opacity: 0; pointer-events: none; }

.section-bg { position: relative; background-color: #050505; }
.section-bg::before { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); z-index: 1; }
.section-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, #050505 0%, transparent 15%, transparent 85%, #050505 100%); z-index: 2; pointer-events: none; }
.section-content { position: relative; z-index: 10; }

.is-obfuscated { animation: matrix 0.1s infinite steps(2); text-shadow: 2px 0 red, -2px 0 blue; filter: blur(0.5px); }
.format-cb:checked + div { background-color: #ccff00; color: #000; border-color: #ccff00; }
.ascii-output { font-family: 'Courier New', Courier, monospace; line-height: 0.6; white-space: pre; overflow-x: auto; }
canvas { cursor: crosshair; touch-action: none; }

.music-trigger { position: relative; }

.music-beckon .music-icon {
    animation: pixel-bounce 0.4s steps(2) infinite alternate;
    color: #ccff00;
    text-shadow: 2px 2px 0px #000;
}

.music-notes-container {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 0;
}

.music-beckon .music-notes-container {
    opacity: 1;
    transition: opacity 0.2s;
}

.pixel-note {
    position: absolute;
    font-size: 10px;
    color: #ccff00;
    opacity: 0;
}

.music-beckon .note-1 { animation: float-note 1s steps(4) infinite; left: -10px; animation-delay: 0s; }
.music-beckon .note-2 { animation: float-note 1s steps(4) infinite; left: 10px; animation-delay: 0.5s; }

@keyframes pixel-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

@keyframes float-note {
    0% { transform: translateY(0) translateX(0); opacity: 1; }
    50% { transform: translateY(-15px) translateX(-5px); opacity: 0.8; }
    100% { transform: translateY(-30px) translateX(5px); opacity: 0; }
}

.music-playing .music-icon {
    text-shadow: 0 0 10px #ccff00;
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% { color: #fff; }
    50% { color: #ccff00; }
    100% { color: #fff; }
}