 /* --- ПОДКЛЮЧЕНИЕ ШРИФТА TOROKA ИЗ ТВОЕЙ ПАПКИ --- */
        @font-face {
            font-family: 'Toroka';
            src: url('fonts/Toroka.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
        }

        /* --- ПОДКЛЮЧЕНИЕ ШРИФТА MOUZAMBIK ИЗ ТВОЕЙ ПАПКИ --- */
        @font-face {
            font-family: 'Mouzambik';
            src: url('fonts/Mouzambik.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        html, body {
            max-width: 100%;
            overflow-x: hidden;
        }

        html {
            background-color: #000000; 
        }

        :root {
    --color-text-main: #FDFDFD;
    --color-accent: #DA6F3A;
    --color-accent-hover: #f27f47;
    --color-bg-dark: #000000;
    --panel-bg: rgba(15, 15, 15, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-blur: blur(12px);
}

/* Когда страница #ambience активна, меняем переменные */
body.page-ambience-active {
    background-color: transparent !important; /* ЗАМЕНИТЬ #FDFDFD на transparent */
}

        body {
            background-color: transparent; 
            color: #FDFDFD;
            font-family: 'Toroka', sans-serif; 
            min-height: 100vh;
            position: relative; 
        }

        /* Выносим фон в отдельный слой на заднем плане */
        /* Изменяем стили фонового слоя, чтобы он умел плавно размываться */
/* Выносим фон в отдельный слой на заднем плане */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5; /* Отодвигаем черный цвет дальше всего */
    background-color: #000000;
    transition: filter 0.1s ease-out;
    filter: blur(0px);
}

/* Размытие включается только когда активна страница ambience */
body.page-ambience-active::before {
    background-color: #FDFDFD !important;
}


        /* Сама анимация увеличения/уменьшения */
        @keyframes slowZoom {
            0% { 
                transform: scale(1); 
            }
            50% { 
                transform: scale(1.2); /* Увеличиваем на 12%. Можно изменить, если нужно сильнее */
            }
            100% { 
                transform: scale(1); 
            }
        }

        /* Слой для специфичного фона страницы #ambience */
#bg-ambience-layer {
    z-index: -2; /* Лежит поверх обычного фона, но под затемнением */
    display: none; /* Скрыт по умолчанию */
}

/* Когда этот класс активен, показываем видео */
#bg-ambience-layer.active {
    display: block;
}

/* 1. Возвращаем обертке её законное место, чтобы сайт не ломался */
.hero-wrapper {
    position: relative !important;
    z-index: 10 !important;
}
        #scroll-fade-overlay {
    z-index: -3 !important;
}

/* НОВОЕ ПРАВИЛО: Делаем фон белым только когда активна страница Ambience */
body.page-ambience-active #scroll-fade-overlay {
    background-color: #FFFFFF;
}

/* Отключаем черные тени на странице Ambience */
body.page-ambience-active::after {
    display: none !important;
}

/* Жестко задаем белый цвет для оверлея */
body.page-ambience-active #scroll-fade-overlay {
    background-color: #FFFFFF !important;
}

        .site-header { padding: 40px 20px; width: 100%; position: relative; width: 100%; z-index: 10000; padding-top: 25px; }
        
      /* --- ОБНОВЛЕННАЯ ПАНЕЛЬ НАВИГАЦИИ (ДЛЯ ПК) --- */
/* --- ОБНОВЛЕННАЯ ПАНЕЛЬ НАВИГАЦИИ (ДЛЯ ПК) --- */
.main-nav { 
    display: grid; 
   grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* 3 колонки: левая (гибкая), центр (по размеру логотипа), правая (гибкая) */
    align-items: center; 
    column-gap: 30px; /* Отступ между серыми плашками и логотипом */
    width: 100%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

/* Прижимаем левую серую плашку к правому краю своей колонки (ближе к логотипу) */
.nav-list-left { 
    justify-self: end;
    display: flex; 
    align-items: center; 
    background-color: rgba(40, 40, 40, 0.65); /* Полупрозрачный темно-серый цвет */
    backdrop-filter: blur(10px);              /* Красивое размытие фона под плашкой */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #DA6F3A;
    border-radius: 12px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    position: relative; 
}

/* Центрируем логотип строго по центру своей колонки */
.logo-wrapper {
    justify-self: center;
}

/* Прижимаем правую серую плашку к левому краю своей колонки (ближе к логотипу) */
.nav-list-right { 
    justify-self: start;
    display: flex; 
    align-items: center; 
    background-color: rgba(40, 40, 40, 0.65); /* Полупрозрачный темно-серый цвет */
    backdrop-filter: blur(10px);              
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #DA6F3A;
    border-radius: 12px; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    position: relative; 
}

.nav-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(218, 111, 58, 0.85); 
    border: 2px solid #DA6F3A; /* Добавили обводку */
    box-shadow: 0 0 12px rgba(218, 111, 58, 0.4); /* Добавили свечение */
    box-sizing: border-box; 
    border-radius: 12px; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 1;
    opacity: 0; 
    pointer-events: none; 
}

/* Выносим текст ссылок поверх оранжевого индикатора */
.nav-list-left li, .nav-list-right li {
    z-index: 2; 
}

/* 2. Жестко фиксируем физический размер ссылок */
.nav-link {
    text-decoration: none;
    color: #FDFDFD;
    font-size: 20px; /* Размер шрифта больше НЕ МЕНЯЕТСЯ */
    font-weight: 600;
    padding: 10px 25px; 
    display: inline-block;
    
    /* Анимируем только цвет и масштаб, чтобы серый бар стоял как монолит */
    transition: color 0.3s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1); 
    position: relative;
}

/* Принудительно отключаем старые эффекты, если они где-то остались */
.nav-link::after { display: none !important; }
.nav-link:hover { 
    transform: none !important; 
    color: #FFFFFF !important; 
}
.nav-link.active { 
    color: #FFFFFF !important; 
    transform: scale(1.15) !important; /* Увеличение только здесь */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
}
.nav-link.active:hover { transform: none !important; color: #FFFFFF !important; }

/* Немного центруем логотип по вертикали под новые плашки */
.brand-logo {
    transform: translateY(-2px);
}
         

        .brand-logo {
    color: #DA6F3A !important; 
    font-size: 45px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0; 
    transition: opacity 0.5s ease;
    
    position: relative; 
    display: inline-block; 
    
    /* --- ПОДНИМАЕМ ЛОГОТИП ВЫШЕ --- */
    transform: translateY(-6px); /* Если нужно еще выше, сделай -8px или -10px */
}


body.page-ambience-active .steam-top-icon {
filter: brightness(0) saturate(100%) invert(56%) sepia(85%) saturate(1478%) hue-rotate(345deg) brightness(95%) contrast(88%) !important;
    transition: filter 0.3s ease !important;
}

/* Иконки соцсетей (футер и контакты) */
/* Убираем зависимость от переменной, делаем их черными при active */
body.page-ambience-active .fa-brands {
    color: #000000 !important;
}

/* Копирайт в футере */
body.page-ambience-active .footer-legal-info {
    color: #000000 !important;
    opacity: 0.6;
}

        
        #intro-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #000000;
            z-index: 9999;
            transition: background-color 0.8s ease;
        }

        .intro-content {
            position: fixed; 
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(1); 
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 45px; 
            font-weight: 700;
            color: #DA6F3A;
            width: auto;
            z-index: 10000;
            /* Изменили 'all' на 'transform', чтобы анимация не ломалась */
            transition: transform 0.8s cubic-bezier(0.25, 1, 0.3, 1); 
        }

        .main-content { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; /* Контейнер растет вниз */
    justify-content: flex-start; /* Принудительно начинаем контент сверху (под шапкой) */
    align-items: center; /* Оставляем только горизонтальное центрирование */
}
        
        .hero-content {
            display: flex;
            flex-direction: column;
            align-items: center; 
            text-align: center;
            width: 100%;
        }

        .custom-game-logo {
            max-width: 700px; 
            height: auto;
            filter: drop-shadow(0px 4px 20px rgba(255, 255, 255, 0.2));
        }

        .game-status {
            font-size: 52px;
            letter-spacing: 22px;
            margin-top: 30px;
            margin-bottom: 45px;
            color: #FDFDFD;
        }

        .action-buttons { display: flex; gap: 30px; }
        
        .btn {
            background-color: #FDFDFD;
            color: #000000;
            font-family: 'Toroka', sans-serif;
            text-decoration: none;
            padding: 12px 35px;
            border-radius: 8px; 
            font-size: 20px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease;
        }

        .btn:hover {
            transform: translateY(-3px);
            background-color: #DA6F3A;
            color: #FDFDFD;
        }

        .btn-steam { 
            display: flex; 
            align-items: center; 
            gap: 10px; 
        }
        
        .steam-icon {
            width: 36px;
            height: 36px;
            object-fit: contain; 
            transition: filter 0.3s ease;
        }

        .btn-steam:hover .steam-icon {
            filter: brightness(0) invert(1);
        }

        #intro-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background-color: #000000;
            z-index: 9999; 
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background-color 1.2s ease-out; 
        }

        #intro-text {
            display: inline-block;
            vertical-align: middle; 
            overflow: hidden;
            white-space: nowrap;
            width: 0;
            text-align: center; 
            transition: width 0s cubic-bezier(0.25, 1, 0.5, 1); 
        }

/* --- Дописать в конец тега <style> --- */
.page-section {
    display: none; /* Прячет страницы */
    width: 100%;
    animation: fadeIn 0.4s ease forwards;
}

.page-section.active-page {
    display: flex; /* Показывает активную страницу */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.games-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
}

.page-title {
    font-size: 50px;
    letter-spacing: 4px;
    margin-bottom: 50px;
    color: #FDFDFD;
    text-transform: uppercase;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    width: 100%;
}

.game-card {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
    cursor: pointer;
}

.game-card:hover {
    border-color: #DA6F3A;
    background: var(--panel-bg);
    transform: translateY(-5px);
}

.game-card h3 { font-size: 24px; margin-bottom: 15px; color: #FDFDFD; }
.game-card p { font-size: 16px; color: #aaa; line-height: 1.6; }

/* Эффект легкого увеличения картинки при наведении */
.pdf-link img {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.pdf-link:hover img {
    transform: scale(1.02);
    border-color: #DA6F3A; 
    cursor: pointer;
}

/* --- ЯЗЫКОВОЙ СЕЛЕКТОР --- */
.lang-selector {
    position: absolute;
    top: 50px; /* Выравнивание по высоте относительно твоего меню */
    right: 40px;
    z-index: 1001; /* Поверх остальных элементов */
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.lang-btn:hover, .lang-btn.active {
    color: #DA6F3A;
    transform: scale(1.05);
}

.lang-btn svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

/* Выпадающее окошко с языками */
.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: var(--panel-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: langFadeIn 0.25s ease forwards;
}

.lang-dropdown.show {
    display: block;
}

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-option {
    display: flex; /* Включаем flex для выравнивания флага и текста */
    align-items: center; /* Центрируем их по вертикали  */
    width: 100%;
    padding: 10px 20px;
    background: none;
    border: none;
    color: #FDFDFD;
    text-align: left;
    font-family: 'Toroka', sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
    background: var(--panel-bg);
    color: #DA6F3A;
}

/* ДОБАВИТЬ ЭТОТ БЛОК */
.lang-option.active {
    background: var(--panel-bg);
    color: #DA6F3A;
    font-weight: bold; /* Делаем текст жирным, чтобы он выделялся */
}

/* --- БЛОКИ ДЛЯ НОВОСТЕЙ (placeholder) --- */

.news-section-wrapper {
    width: 100%;
    max-width: 1800px; 
    margin: 80px auto 0 auto; 
    padding: 0 40px;
    /* Я убрал отсюда темный фон и размытие, эта обертка должна быть прозрачной */
}

.news-grid-placeholder {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    width: 100%;
}

.news-card-empty {
    /* Перенесли темный полупрозрачный фон СЮДА */
    background-color: rgba(15, 15, 15, 0.6); 
    
    /* Перенесли сильное размытие СЮДА */
   backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px; 
    height: 400px; 
    transition: border-color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
}

/* Эффект при наведении на пустой блок */
.news-card-empty:hover {
    transform: translateY(-10px); 
}

.footer-legal-info {
    text-align: center;
    color: var(--text-color); /* Используем переменную */
    opacity: 0.6; /* Сохраняем прозрачность */
    font-size: 12px;
    line-height: 1.6;
    max-width: 1250px;
    margin: 0 auto;
    transition: color 0.5s ease; /* Добавляем плавность смены цвета */
}

/* Принудительно отменяем белый цвет, если он где-то был задан отдельно */
.footer-legal-disclaimer {
    font-size: 11px;
    color: var(--text-color) !important; /* Привязываем к переменной */
    opacity: 0.6; /* Делаем текст еще чуть бледнее */
    margin-top: 14px !important;
    transition: color 0.5s ease;
}

.footer-legal-info p {
    margin: 6px 0;
}

/* Выделяем твою студию чуть ярче */
.footer-legal-main {
    font-size: 14px;
    color: rgb(255, 255, 255); 
    font-weight: 600;
    margin-bottom: 10px !important;
}

/* Мелкий шрифт для предупреждения об интеллектуальной собственности */
.footer-legal-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25); /* Еще чуть бледнее, как на солидных игровых сайтах */
    margin-top: 14px !important;
}

/* --- СТИЛЬ ДЛЯ УМЕНЬШЕНИЯ ЛОГОТИПОВ В ПОДВАЛЕ --- */
.footer-logos-img {
    height: 150px; /* Вот тут мы уменьшил    и размер. Можно поставить 20px или 35px */
    width: auto;  /* Сохраняет пропорции, чтобы картинку не сплющило */
    object-fit: contain;
    margin-bottom: 20px; /* Отступ вниз до текста копирайта */
}

/* =======================================================
   ИДЕАЛЬНАЯ СИММЕТРИЯ ИКОНОК (FONTAWESOME STEAM И ГЛОБУС)
   ======================================================= */

/* 1. Ссылка-контейнер для Steam (Левая сторона) */
body .steam-top-link,
body.page-ambience-active .steam-top-link {
    position: absolute !important;
    top: 35px !important;  
    left: 40px !important; 
    z-index: 9999 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* 2. Жестко перебиваем старые фильтры и черные цвета */
body .steam-top-link .steam-top-icon,
body.page-ambience-active .steam-top-link .steam-top-icon {
    font-size: 36px !important; 
    color: #DA6F3A !important;  /* Оранжевый по умолчанию */
    
    /* УБИРАЕМ СТАРЫЙ ЧЕРНЫЙ ФИЛЬТР, КОТОРЫЙ ЛОМАЛ ЦВЕТ */
    filter: none !important;    
    -webkit-filter: none !important;
    
    transition: color 0.3s ease !important;
}

/* 3. Увеличение Steam при наведении */
body .steam-top-link:hover,
body.page-ambience-active .steam-top-link:hover {
    transform: scale(1.1) !important;
}

/* 4. Смена цвета на белый при наведении (Перебиваем всё) */
body .steam-top-link:hover .steam-top-icon,
body.page-ambience-active .steam-top-link:hover .steam-top-icon {
    color: #FDFDFD !important; /* Белый цвет */
    filter: none !important;
}

.page-section.games-content {
    display: none; 
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Отменяем center, чтобы внутренности не улетали вверх */
    flex-grow: 1;
    width: 100%;
}

.size-constrained-panel {
    width: 100%;
    min-height: 450px;
    max-width: 600px;
    padding: 50px;
    margin-bottom: 300px; /* Твой отступ для футера */
}

/* Специально для секции SUPPORT */
#page-support .glass-panel {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 150px;    /* Отступ сверху внутри секции */
    margin-bottom: 300px; /* Отступ снизу до футера */
}

/* Когда страница активна */
.page-section.active-page {
    display: flex;
}

/* Специально для отступа секции контактов */
    #page-contacts .news-card-empty {
        margin: 40px auto 300px auto;
    }

    #page-contacts .news-card-empty:hover {
    transform: none;
}

/* Изначально черный экран полностью скрыт */
.black-fullscreen-overlay {
    display: none;
}

/* Магия: когда URL заканчивается на #nodegames, показываем этот блок */
.black-fullscreen-overlay:target {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed; /* Фиксируем на экране */
    top: 0;
    left: 0;
    width: 100%; /* 100% ширины экрана */
    height: 100vh; /* 100% высоты экрана */
    background-color: #000000; /* Абсолютно черный фон */
    z-index: 99999; /* Делаем так, чтобы он был поверх вообще всех элементов на сайте */
}

/* Стили для самой картинки, чтобы она не сплющилась и влезала в экран */
.black-fullscreen-overlay img {
    max-width: 50%;
    max-height: 50%;
    object-fit: contain;
}

/* Стили для крестика закрытия */
.close-overlay {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ff0000;
    font-size: 30px;
    text-decoration: none;
    opacity: 1;
    transition: opacity 0.2s ease;
    font-family: sans-serif;
}

.close-overlay:hover {
    opacity: 1;
}

/* Добавь это в <style> */
.text-container {
    transition: font-size 0.3s ease; /* Плавное изменение размера */
}

#page-donate .glass-panel {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 150px;    /* Отступ сверху внутри секции */
    margin-bottom: 330px; /* Отступ снизу до футера */
}

#page-about .glass-panel {
    justify-content: center; 
    align-items: center; 
    margin-top: 0px;    
    margin-bottom: 0px; /* <-- Поменяйте значение на 0px */
}

/* --- СТИЛИ ДЛЯ MACOS-ПОДОБНОЙ АНИМАЦИИ МОДАЛКИ --- */
#image-modal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

#image-modal.active {
    opacity: 1;
    pointer-events: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#modal-img {
    /* Плавный переход для трансформации из миниатюры в центр */
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-radius 0.45s ease;
    will-change: transform;
}

#page-games {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 50px;    /* Отступ сверху внутри секции */
    margin-bottom: 330px; /* Отступ снизу до футера */
}

#page-news {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 50px;    /* Отступ сверху внутри секции */
    margin-bottom: 330px; /* Отступ снизу до футера */
}

#page-press {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 0px;    /* Отступ сверху внутри секции */
    margin-bottom: 330px; /* Отступ снизу до футера */
}

#page-press {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 0px;    /* Отступ сверху внутри секции */
    margin-bottom: 330px; /* Отступ снизу до футера */
}

#page-nodegames {
    justify-content: center;  /* Центр по горизонтали */
    align-items: center; /* Центр по вертикали */
    margin-top: 0px;    /* Отступ сверху внутри секции */
    margin-bottom: 330px; /* Отступ снизу до футера */
}


#bg-ambience-video {
    z-index: -4 !important;
}

/* Анимация плавного появления */
@keyframes fadeInOpacity {
    from { opacity: 0; }
    to { opacity: 1; }
}

#ambience-logo-reveal {
    opacity: 0; /* Скрыто изначально */
    transition: opacity 1.5s ease; /* Сделал появление чуть более плавным (1.5s) */
    max-width: 1200px;
    height: auto;
    margin-bottom: 20px;
}

#page-ambience {
    opacity: 1; 
    align-items: center; 
    margin-top: 0; /* Убрали отрицательный отступ -5vh */
    margin-bottom: 100px; 
    width: 100%;
}

.ambience-intro-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75vh; /* Интро занимает весь первый экран */
    width: 100%;
    position: relative;
}

.scroll-down-hint {
    margin-top: 60px;
    font-family: 'Toroka', sans-serif;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 6px;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseText {
    0% { opacity: 0.2; transform: translateY(0); }
    50% { opacity: 0.8; transform: translateY(8px); }
    100% { opacity: 0.2; transform: translateY(0); }
}

#scroll-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Находится под контентом, но поверх картинок фона */
    pointer-events: none; /* Пропускает клики */
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: backdrop-filter 0.1s ease-out; /* Плавность */
}

#glass-shards-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: -35vh; 
    margin-top: -20vh; /* <-- Подтягиваем весь блок с окнами наверх */
    padding-bottom: 40vh;
    perspective: 2500px; 
    perspective-origin: 50% 50%;
}

.glass-shard {
    width: 90%;
    max-width: 900px;
    position: relative;
    
    background: var(--panel-bg);
    backdrop-filter: blur(45px) saturate(160%); 
    -webkit-backdrop-filter: blur(45px) saturate(160%);
    
    border-radius: 24px;
    border: none;
    
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.3),            
        inset 3px 3px 6px rgba(255, 0, 50, 0.15),  
        inset -3px -3px 6px rgba(0, 150, 255, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.15);  
        
    padding: 35px;
    display: flex;
    flex-direction: column;
    
    transform-style: preserve-3d; 
    
    opacity: 0;
    transform: rotateX(75deg) translateZ(-800px);
    
    /* УДАЛЕН TRANSITION, ТЕПЕРЬ ВСЕ РАБОТАЕТ БЕЗ ЛАГОВ ЧЕРЕЗ JS */
    will-change: transform, opacity; 
}

/* Индивидуальные цвета для каждой карточки */
.glass-shard:nth-child(1) { border: 6px dashed #13c7dc; }
.glass-shard:nth-child(2) { border: 6px dashed #e3c814; }
.glass-shard:nth-child(3) { border: 6px dashed #df1111; }
.glass-shard:nth-child(4) { border: 6px dashed #7e00e0; }
.glass-shard:nth-child(5) { border: 6px dashed #0f0f0f; }
.glass-shard:nth-child(6) { border: 6px dashed #24bb10; }
.glass-shard:nth-child(7) { border: 6px dashed #0010e0; }

/* Так как в твоем HTML всего 9 стекол (включая последнее с кнопкой Wishlist Steam), 
   я повторил первые два цвета для 8 и 9 карточки, чтобы они не остались "голыми" */
.glass-shard:nth-child(8) { border: 6px dashed #13c7dc; }
.glass-shard:nth-child(9) { border: 6px dashed #e3c814; }

/* Имитация отражения света на поверхности стекла */
.glass-shard::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 40%);
    transform: translateZ(1px); /* Лежит прямо на стекле */
    pointer-events: none;
}



.glass-shard img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transform: translateZ(40px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* УДАЛЕН TRANSITION */
    will-change: transform;
}

/* --- Чередование стекол (шахматный порядок) --- */
/* Нечетные (1, 3, 5, 7) прижимаем влево */
.glass-shard:nth-child(odd) {
    align-self: flex-start;
}

/* Четные (2, 4, 6) прижимаем вправо */
.glass-shard:nth-child(even) {
    align-self: flex-end;
}

.shard-info {
    margin-top: 35px;
    transform: translateZ(60px); 
    color: #000000;
    /* УДАЛЕН TRANSITION */
    will-change: transform;
}

.shard-info h3 {
    font-family: 'Mouzambik', sans-serif;
    font-size: 58px;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-shadow: 0 4px 15px rgba(255, 255, 255, 0.8);
    text-align: center;
}

.shard-info p {
    font-family: 'Toroka', sans-serif;
    font-size: 18px;
    color: #262626;
    line-height: 1.6;
    font-weight: 500;
    opacity: 0.85;
}

#typing-text {
    opacity: 1; /* Текст видим, пока печатается */
}

/* --- СТИЛИ ДЛЯ ОГРОМНОЙ КНОПКИ WISH ON STEAM --- */
.btn-wishlist-huge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #323232;
    color: #FDFDFD;
    text-decoration: none;
    font-family: 'Toroka', sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
    padding: 10px 15px;
    border-radius: 12px;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Внутри .btn-wishlist-huge заменить строчку: */
            transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease-in-out;
}

.btn-wishlist-huge:hover {
    transform: translateY(-4px);
    background-color: #DA6F3A;
    color: #FDFDFD;
}

/* --- СТИЛИ ДЛЯ ОГРОМНОЙ КНОПКИ WISH ON STEAM --- */
.btn-wishlist-huge2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #323232;
    color: #FDFDFD;
    text-decoration: none;
    font-family: 'Toroka', sans-serif;
    font-size: 40px;
    letter-spacing: 3px;
    padding: 40px 55px;
    border-radius: 12px;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Внутри .btn-wishlist-huge2 заменить строчку: */
            transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease-in-out;
}

.btn-wishlist-huge2:hover {
    transform: translateY(-4px);
    background-color: #DA6F3A;
    color: #FDFDFD;
}


.btn-wishlist-huge2 img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.btn-wishlist-huge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* --- БЛОКИ НОВОСТЕЙ С КАРТИНКОЙ И ТЕКСТОМ --- */
.news-card {
    background-color: rgba(15, 15, 15, 0.6); 
   backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 16px; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

/* Эффект всплывания и подсветки рамки при наведении */
.news-card:hover {
    transform: translateY(-10px); 
    border-color: #DA6F3A; 
    box-shadow: 0 10px 30px rgba(218, 111, 58, 0.1);
}

/* Настройки для картинки */
.news-card img {
    width: 100%;
    aspect-ratio: 16/9; 
    object-fit: cover; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    display: block;
    
    /* --- ЭФФЕКТ ЗАТЕМНЕНИЯ --- */
    filter: brightness(0.35) grayscale(30%); /* Сильно затемняем и чуть обесцвечиваем */
    transition: filter 0.4s ease; /* Делаем переход плавным */
}

/* При наведении картинка становится яркой и сочной */
.news-card:hover img {
    filter: brightness(1) grayscale(0%);
}

/* Настройки для текста */
.news-card p {
    padding: 20px 25px;
    margin: 0;
    font-family: 'Toroka', sans-serif;
    font-size: 25px; 
    
    /* --- ТЕКСТ ТОЖЕ ПРИГЛУШЕН ПО УМОЛЧАНИЮ --- */
    color: #666; 
    transition: color 0.4s ease; /* Плавное высветление текста */
    
    line-height: 1.6;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; 
}

/* При наведении текст "загорается" белым */
.news-card:hover p {
    color: #DA6F3A;
}


.bg-video-layer {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;  /* На всю ширину экрана */
    height: 100vh !important; /* На всю высоту экрана */
    object-fit: cover !important; /* Заполняет экран без искажения пропорций */
    z-index: -2 !important;     /* Лежит на заднем плане под сайтом */
    pointer-events: none !important;
}

/* 1. Создаем саму анимацию поднятия и опускания */
@keyframes float-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); } /* Поднимается чуть-чуть наверх */
    100% { transform: translateY(0); }
}

/* 2. Применяем настройки только к нужной кнопке */
.steam-pulse-btn {
    background-color: #DA6F3A !important; /* Делает кнопку постоянно оранжевой */
    animation: float-pulse 1.3s ease-in-out infinite; /* Бесконечно крутит анимацию */
}

/* Опционально: если хочешь, чтобы при наведении курсора кнопка замирала */
.steam-pulse-btn:hover {
    animation-play-state: paused;
}

/* 1. Создаем саму анимацию поднятия и опускания */
@keyframes float-pulse {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); } /* Поднимается чуть-чуть наверх */
    100% { transform: translateY(0); }
}

/* 2. Применяем настройки только к нужной кнопке */
.steam-pulse-btn2 {
    background-color: #DA6F3A !important; /* Делает кнопку постоянно оранжевой */
    animation: float-pulse 1.3s ease-in-out infinite; /* Бесконечно крутит анимацию */
}

/* Опционально: если хочешь, чтобы при наведении курсора кнопка замирала */
.steam-pulse-btn:hover {
    animation-play-state: paused;
}

/* --- СТАТИЧНЫЙ ФОН С ПРИГЛУШЕННЫМИ ОРАНЖЕВЫМИ ТОЧКАМИ --- */
#interactive-bg {
    position: fixed !important;
    top: 0 !important; 
    left: 0 !important; 
    width: 100% !important; 
    height: 100% !important;
    z-index: -2 !important; /* Самый высокий слой, выше текста и картинок */
    pointer-events: none !important; /* Пропускаем клики сквозь точки */
}

/* Слой с точками */
#interactive-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Приглушенные оранжевые точки (1.5px, прозрачность 0.3) */
    background-image: radial-gradient(rgba(218, 111, 58, 0.3) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0;
}

/* Анимируем цвет на самом контейнере */
body.page-ambience-active #interactive-bg {
    background-color: transparent !important; 
    animation: dotColorFlow 14s linear infinite; 
}

body.page-ambience-active #interactive-bg::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.5px) !important;
    background-size: 30px 30px !important;
    opacity: 0.9 !important; /* Хорошая видимость на белом */
    
    /* Очистка от прошлых экспериментов */
    -webkit-mask: none !important;
    mask: none !important;
}

/* 6. Анимация цветов */
@keyframes dotColorFlow {
    0%   { color: #13c7dc; }
    14%  { color: #e3c814; }
    28%  { color: #df1111; }
    43%  { color: #7e00e0; }
    57%  { color: #0f0f0f; }
    71%  { color: #24bb10; }
    85%  { color: #0010e0; }
    100% { color: #13c7dc; }
}
/* --- ГЛОБАЛЬНОЕ БОКОВОЕ МЕНЮ (ДЛЯ ПК И МОБИЛЬНЫХ) --- */



/* --- КНОПКА ГАМБУРГЕРА --- */
.mobile-menu-btn {
    display: none; /* Скрываем по умолчанию для ПК и ноутбуков */
    position: fixed; 
    top: 40px; 
    left: 40px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 36px;
    z-index: 1000;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: #DA6F3A;
}

/* Кнопка закрытия (крестик) внутри панели */
.mobile-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #FDFDFD;
    font-size: 40px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.mobile-close-btn:hover {
    opacity: 1;
    color: #DA6F3A;
}

/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА НОВОСТЕЙ --- */
.news-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.news-modal-overlay.active {
    opacity: 1;
}

.news-modal-content {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* ДОБАВЛЯЕМ СТРОКУ НИЖЕ, чтобы крестик не прилипал к скругленным краям на мобильных */
    margin: 0 20px; 
}

.news-modal-overlay.active .news-modal-content {
    transform: translateY(0) scale(1);
}

.news-modal-close {
    position: absolute;
    /* Выносим крестик наверх за пределы окна со знаком минус */
    top: -50px; 
    right: 0;   /* Прижимаем по правому краю контейнера */
    background: none;
    border: none;
    color: #FDFDFD;
    font-size: 45px; /* Сделаем его чуть крупнее для удобства */
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
}

.news-modal-close:hover {
    color: #DA6F3A;
    transform: scale(1.1);
}
.news-modal-image-wrapper img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.news-modal-text-container {
    padding: 40px;
}

#news-modal-title {
    font-family: 'Toroka', sans-serif;
    font-size: 30px;
    color: #DA6F3A;
    margin: 0 0 20px 0;
    letter-spacing: 2px;
}

#news-modal-body {
    font-family: 'Toroka', sans-serif; /* Можно поменять на sans-serif, если нужен обычный читаемый шрифт */
    font-size: 18px;
    color: #ccc;
    line-height: 1.6;
}

/* --- СТИЛИ ДЛЯ ИКОНОК ФЛАГОВ --- */
.lang-flag {
    width: 24px;           /* Аккуратная ширина для флага */
    height: auto;          /* Сохраняем пропорции SVG */
    margin-right: 12px;    /* Отступ между флагом и текстом языка */
    border-radius: 3px;    /* Слегка скругляем края для эстетики */
    object-fit: cover;     /* Гарантирует, что флаг не сплющится */
    display: inline-block;
}

/* --- ПЛАВНАЯ СМЕНА ЯЗЫКА --- */
[data-i18n]:not(.nav-link):not(.btn):not(.btn-wishlist-huge):not(.btn-wishlist-huge2) {
    transition: opacity 0.3s ease-in-out;
}

/* Класс, который будет временно скрывать текст */
body.lang-changing [data-i18n] {
    opacity: 0;
}

/* =========================================================================
   СТРУКТУРНЫЕ И КОМПОНЕНТНЫЕ КЛАССЫ (Извлеченные из инлайн-стилей HTML)
   ========================================================================= */

/* --- HEADER & NAVIGATION --- */
.site-header { position: relative; width: 100%; z-index: 999; padding-top: 25px; }
.steam-top-link { position: absolute; left: 30px; top: 25px; transition: transform 0.3s ease; }
.steam-top-link:hover { transform: scale(1.1); }
.steam-top-icon { width: 40px; height: auto; }
.lang-selector { position: absolute; right: 30px; top: 25px; }
.lang-btn { background: transparent; border: none; cursor: pointer; transition: transform 0.3s ease; }
.lang-btn:hover { transform: scale(1.1); }
.lang-icon { width: 60px; height: 60px; fill: #fff; }

/* --- COMMON LAYOUT & UTILS --- */
.layout-center { flex-direction: column; align-items: center; justify-content: center; flex-grow: 1; }
.layout-gap { gap: 25px; }
.mb-15 { margin-bottom: 15px; }
.mb-50 { margin-bottom: 50px; }
.br-8 { border-radius: 8px; }
.br-16 { border-radius: 16px; }
.fs-20 { font-size: 20px; }
.fs-26 { font-size: 26px; }
.fs-34 { font-size: 34px; }
.fs-35 { font-size: 35px; }
.fs-36 { font-size: 36px; }
.fs-38 { font-size: 38px; }
.fs-40 { font-size: 40px; }

/* --- NEWS & HERO --- */
.news-subtext { font-family: 'Toroka', sans-serif; color: #7f7f7f; font-size: 20px; text-align: center; max-width: 1000px; margin-top: 40px; line-height: 1.6; }
.news-card { cursor: pointer; }
.news-detail-text { display: none; }
.pdf-link { display: block; max-width: 250px; width: 100%; }
.pdf-link img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15); }
.game-title-large { font-family: 'Mouzambik', sans-serif; font-size: 80px; letter-spacing: 3px; color: #FDFDFD; text-transform: uppercase; margin-top: 10px; }

/* --- ABOUT SECTION --- */
.page-title-about { font-family: 'Toroka', sans-serif; font-size: 50px; color: #FDFDFD; text-align: center; margin: 0 0 25px 0; letter-spacing: 2px; }
.about-row { display: flex; gap: 5px; width: 100%; max-width: 1100px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.about-row-mb { margin-bottom: 15px; }
.panel-img-main { flex: 1; min-width: 280px; padding: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.panel-text-main { flex: 1; min-width: 280px; padding: 40px; display: flex; flex-direction: column; justify-content: flex-start; gap: 25px; }
.panel-grid { flex: 1; min-width: 280px; padding: 20px; display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.zoom-img { max-width: 100%; border-radius: 12px; transition: transform 0.3s ease; }
.zoom-img-full { width: 100%; height: auto; display: block; border-radius: 12px; transition: transform 0.3s ease; }
.zoom-img:hover, .zoom-img-full:hover { transform: scale(1.03); }
.panel-title { font-family: 'Toroka', sans-serif; font-size: 20px; color: #FDFDFD; margin: 0; letter-spacing: 2px; }
.panel-text-wrapper { font-family: 'Toroka', sans-serif; color: #ccc; }
.panel-text { font-size: 15px; line-height: 1.6; color: #aaa; margin: 0; }
.img-wrapper-full { width: 100%; overflow: hidden; border-radius: 12px; cursor: pointer; }
.img-row { display: flex; gap: 15px; width: 100%; }
.img-wrapper-half { flex: 1; overflow: hidden; border-radius: 12px; cursor: pointer; }

/* --- IMAGE MODAL --- */
#image-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.9); z-index: 99999; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; cursor: pointer; }
.modal-close-btn { position: absolute; top: 30px; right: 40px; color: #FDFDFD; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; }
.modal-close-btn:hover { color: #DA6F3A; }
#modal-img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.8); cursor: default; }

/* --- SUPPORT & DONATE --- */
.support-panel { width: 100%; max-width: 600px; padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.support-amount-wrapper { text-align: center; }
.support-label { color: #aaa; font-size: 14px; margin-bottom: 8px; font-family: 'Toroka', sans-serif; letter-spacing: 2px; }
.support-amount { color: #FDFDFD; font-size: 45px; margin: 0; font-family: 'Toroka', sans-serif; font-weight: normal; }
.btn-donate { width: 100%; max-width: 280px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; font-family: sans-serif; font-size: 20px; box-sizing: border-box; }
.btn-donate-text { font-family: 'Toroka', sans-serif; }
.donate-panel { width: 100%; max-width: 600px; padding: 40px; display: flex; flex-direction: column; gap: 30px; position: relative; }
.donate-buttons-wrapper { display: flex; justify-content: center; align-items: center; gap: 30px; flex-wrap: wrap; }
.boosty-link { display: flex; width: 100%; max-width: 120px; opacity: 0.8; transition: opacity 0.2s, transform 0.2s; }
.boosty-link:hover { opacity: 1; transform: scale(1.05); }
.boosty-img { width: 100%; height: auto; object-fit: contain; }
.donate-close-btn { position: absolute; top: 20px; right: 20px; color: #aaa; text-decoration: none; font-size: 24px; transition: color 0.2s; }
.donate-close-btn:hover { color: #fff; }

/* --- PRESS SECTION --- */
.press-panel { display: flex; gap: 40px; width: 100%; max-width: 700px; padding: 40px; }
.press-panel-left { flex: 1; display: flex; align-items: center; justify-content: center; }
.press-img { width: 100%; height: auto; box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5); }
.press-panel-right { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; }
.press-title-lg { font-family: 'Toroka', sans-serif; font-size: 45px; color: #FDFDFD; letter-spacing: 3px; margin: 0; font-weight: normal; text-align: left; }
.press-title-sm { font-family: 'Toroka', sans-serif; font-size: 32px; color: #FDFDFD; letter-spacing: 2px; margin: 0; font-weight: normal; text-align: left; }
.btn-download { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 20px; width: 100%; box-sizing: border-box; }

/* --- CONTACTS (EMAILS & SOCIALS) --- */
.contacts-emails-wrapper { display: flex; flex-direction: column; align-items: center; gap: 30px; margin-bottom: 70px; padding-top: 20px; }
.email-block { text-align: center; }
.email-label { color: #666; font-size: 14px; margin-bottom: 5px; }
.email-link { color: #fff; text-decoration: none; font-size: 20px; border-bottom: 1px solid #DA6F3A; }
.contacts-socials-wrapper { display: flex; gap: 24px; align-items: center; justify-content: center; margin-bottom: 20px; }

/* Универсальный стиль для соц. кнопок */
.social-link { text-decoration: none; transition: all 0.3s; display: flex; align-items: center; justify-content: center; color: #FDFDFD; }
.social-link:hover { opacity: 1 !important; color: #ff6600 !important; }
.social-link-contacts { font-size: 35px; opacity: 0.6; }
.social-link-contacts.hover-06:hover { opacity: 0.6 !important; }
.social-link-med { opacity: 0.8; }
.social-link-large { font-size: 40px; opacity: 1; }
.tiktok-rel { position: relative; }

/* --- TEAM SECTION (NODEGAMES) --- */
.team-row { display: flex; gap: 30px; width: 100%; max-width: 1200px; justify-content: center; flex-wrap: wrap; padding-bottom: 40px; }
.team-card { flex: 1; min-width: 260px; max-width: 320px; padding: 35px 25px; display: flex; flex-direction: column; align-items: center; gap: 15px; transition: transform 0.3s ease, border-color 0.3s ease; }
.team-card:hover { transform: translateY(-8px); border-color: #DA6F3A; }
.team-avatar { width: 130px; height: 130px; border-radius: 50%; background: var(--panel-bg); display: flex; justify-content: center; align-items: center; overflow: hidden; border: 2px solid #DA6F3A; box-shadow: 0 10px 25px rgba(232, 96, 36, 0.2); }
.team-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.team-avatar-icon { font-size: 60px; color: rgba(255, 255, 255, 0.3); }
.team-name { font-family: 'Toroka', sans-serif; font-size: 26px; color: #FDFDFD; margin: 10px 0 0 0; text-align: center; }
.team-role { font-family: 'Toroka', sans-serif; color: #DA6F3A; margin: 0; text-transform: uppercase; letter-spacing: 2px; text-align: center; }

/* --- AMBIENCE SECTION INTRO --- */
#created-by-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Mouzambik', sans-serif; font-size: 86px; color: #000000; opacity: 0; transition: opacity 1s ease; pointer-events: none; margin: 0; white-space: nowrap; z-index: 10; }
#ambience-reveal-group { display: flex; flex-direction: column; align-items: center; opacity: 0; transition: opacity 1.5s ease; }
#ambience-logo-reveal { opacity: 1; max-width: 600px; height: auto; margin-bottom: 20px; }
.ambience-dev-status { font-family: 'Toroka', sans-serif; font-size: 52px; letter-spacing: 15px; color: #323232; margin-top: 10px; margin-bottom: 10px; }
.ambience-buttons-wrapper { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; width: 100%; }

/* --- SOCIAL MEDIA & CONTACTS (PAGE) --- */
.social-media-panel { width: 100%; max-width: 900px; padding: 40px; display: flex; flex-direction: column; gap: 30px; }
.social-media-title { font-family: 'Toroka', sans-serif; font-size: 28px; color: #FDFDFD; text-align: center; margin: 0; letter-spacing: 2px; }
.social-media-row { display: flex; gap: 20px; width: 100%; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.social-box { flex: 1; min-width: 280px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; display: flex; flex-direction: column; justify-content: center; }
.social-box-left { align-items: center; gap: 35px; padding: 45px 30px; }
.social-box-right { gap: 25px; padding: 35px; }
.social-box-label { font-family: 'Toroka', sans-serif; font-size: 16px; color: #aaa; margin: 0; text-align: center; letter-spacing: 1px; }
.social-icons-grid { display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; padding-bottom: 10px; }
.email-block-small { text-align: center; }
.email-label-small { font-family: 'Toroka', sans-serif; color: #777; font-size: 12px; margin: 0 0 5px 0; text-transform: uppercase; }
.email-link-small { font-family: 'Toroka', sans-serif; color: #FDFDFD; font-size: 18px; text-decoration: none; transition: color 0.3s; }
.email-link-small:hover { color: #DA6F3A; }

/* --- FOOTER --- */
.site-footer { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px 40px 20px; width: 100%; box-sizing: border-box; opacity: 0.6;}
.footer-socials { display: flex; gap: 24px; align-items: center; justify-content: center; margin: 30px 0 15px 0; padding-bottom: 5px; }

/* 1. Возвращаем визуальный стиль для всех стеклянных панелей (Team, About, Press) */
.glass-panel {
    background: var(--panel-bg);
   backdrop-filter: var(--panel-blur);
    -webkit-backdrop-filter: var(--panel-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

/* 2. Чиним видео, которое "выдавило" контент Ambience вправо */
#bg-ambience-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -5 !important;
    display: none;
}

/* 3. Гарантируем, что секция Ambience не сжимается контейнером и стоит по центру */
#page-ambience {
    max-width: 100% !important;
}

/* 4. Чиним белый фон при переходе на страницу Ambience */
body.page-ambience-active::before {
    background-color: #FFFFFF !important;
    transition: background-color 0.8s ease, filter 0.1s ease-out;
}

/* --- ВЫЕЗЖАЮЩЕЕ БОКОВОЕ МЕНЮ (ПО УМОЛЧАНИЮ СКРЫТО) --- */
.mobile-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--panel-bg); z-index: 10000; backdrop-filter: blur(5px);
    opacity: 0; transition: opacity 0.4s ease;
}
.mobile-overlay.active { display: block; opacity: 1; }

.mobile-sidebar {
    display: flex; flex-direction: column; position: fixed; top: 0; left: -320px;
    width: 280px; height: 100vh; background: var(--panel-bg);
    z-index: 10001; transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 80px 30px 40px 30px; border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-sidebar.active { left: 0; }
.mobile-close-btn { position: absolute; top: 20px; right: 25px; background: none; border: none; color: #FDFDFD; font-size: 45px; cursor: pointer; opacity: 0.7; transition: 0.2s; }
.mobile-close-btn:hover { color: #DA6F3A; opacity: 1; }
.mobile-nav { display: flex; flex-direction: column; gap: 30px; margin-bottom: auto; }
.mobile-nav-link {
    color: #FDFDFD !important; /* Принудительно делаем белым */
    text-decoration: none !important; /* Принудительно убираем подчеркивание */
    font-size: 22px;
    font-family: 'Toroka', sans-serif;
    letter-spacing: 2px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}
.mobile-lang-container { margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 25px; }
.mobile-lang-header { display: flex; align-items: center; gap: 15px; color: #FDFDFD; font-size: 18px; font-family: 'Toroka', sans-serif; cursor: pointer; }
/* Оранжевый цвет для активной страницы (остается как мы делали) */
.mobile-nav-link.active {
    color: #DA6F3A !important; 
    padding-left: 10px;        
}
.globe-icon-mobile { width: 36px; height: 36px; fill: currentColor; }
.mobile-lang-list { display: none; flex-direction: column; gap: 5px; margin-top: 20px; max-height: 250px; overflow-y: auto; }
.mobile-lang-list.show { display: flex; }

/* Кнопка Гамбургера по умолчанию скрыта на ПК */
.mobile-menu-btn { display: none; background: none; border: none; color: #DA6F3A; cursor: pointer; transition: 0.2s; }

/* --- ЦВЕТ ВЫДЕЛЕНИЯ ТЕКСТА --- */
::selection {
    background-color: #DA6F3A; /* Твой фирменный оранжевый цвет */
    color: #FDFDFD; /* Белый цвет текста для контраста */
}

/* Для поддержки старых версий браузера Firefox */
::-moz-selection {
    background-color: #DA6F3A;
    color: #FDFDFD;
}

/* --- Кнопка "View the map" в меню языков --- */
.map-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 20px;
    margin-top: 5px;
    background: var(--panel-bg);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #DA6F3A;
    font-family: 'Toroka', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.map-option:hover {
    background: var(--panel-bg);
    color: #FDFDFD;
}

/* --- Секция Карты (#page-map) --- */
#page-map {
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 330px; /* Сохраняем отступ до футера как на остальных страницах */
    width: 100%;
}

/* Выравнивание по центру */
.map-container {
    width: 100%;
    max-width: 1400px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Обертка (ограничивает размер до 70%) */
.map-wrapper {
    position: relative;
    width: 70%; 
    display: block; 
}

/* Базовая карта */
.center-map-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Слои с флагами */
.map-flag-overlay {
    position: absolute;
    /* Убрали 100%, задаем компактный оригинальный размер */
    width: 65px; /* Можешь поменять на нужный размер */
    height: auto;
    border-radius: 6px; /* Легкое скругление углов */
    box-shadow: 0 8px 25px rgba(0,0,0,0.8); /* Красивая тень, чтобы флаг выделялся */
    
    opacity: 0;
    pointer-events: none; /* Чтобы клик проходил сквозь флаг */
    z-index: 20; /* Поверх всех зон */
    
    /* Анимация: флаг плавно появляется и слегка увеличивается из центра */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translate(-50%, -50%) scale(0.5);
}

.map-flag-overlay.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Флаг встает точно по центру клика */
}

.click-zone {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%; /* Овальные зоны */

    border: none;
    background-color: transparent;

}

/* --- ССЫЛКИ В САМОМ НИЗУ ФУТЕРА --- */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: nowrap; /* Принудительно в один ряд */
    margin-top: 40px; /* Отступ от копирайта */
    padding-top: 25px; /* Отступ текста от линии разделения */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая линия разделения */
    width: 100%;
    max-width: 1250px;
}

/* Цвет линии-разделителя для страницы Ambience */
body.page-ambience-active .footer-links {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-text-link {
    font-family: 'Toroka', sans-serif;
    color: var(--text-color);
    font-size: 16px;
    letter-spacing: 2px;
    text-decoration: none;
    opacity: 0.6;
}

.footer-text-link:hover {
    color: #DA6F3A;
    opacity: 0.6;
}
/* --- СЕКЦИЯ CAREERS (Строго по 2 в ряд) --- */
.careers-row { 
    display: grid !important; 
    grid-template-columns: repeat(2, 1fr) !important; /* Ровно 2 колонки */
    gap: 20px; 
    width: 100%; 
    max-width: 650px; /* Сужаем контейнер, чтобы карточки были аккуратными и по центру */
    margin: 0 auto;
    padding-bottom: 40px; 
}

.career-card { 
    width: 100%; 
    max-width: none; 
    padding: 25px 15px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer; /* Возвращаем курсор-палец */
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease; 
}

.career-card:hover { 
    transform: translateY(-8px); 
    border-color: #DA6F3A; 
    background: var(--panel-bg);
}

.career-avatar { 
    width: 80px;  /* Аватарка меньше */
    height: 80px; 
    border-radius: 50%; 
    background: var(--panel-bg); 
    display: flex; justify-content: center; align-items: center; 
    overflow: hidden; 
    border: 2px solid #DA6F3A; 
}

.career-avatar-icon { font-size: 35px; color: rgba(255, 255, 255, 0.3); }

.career-name { 
    font-family: 'Toroka', sans-serif; 
    font-size: 20px; /* Текст названия меньше */
    color: #FDFDFD; 
    margin: 5px 0 0 0; 
    text-align: center; 
}

.career-role { 
    font-family: 'Toroka', sans-serif; 
    color: #DA6F3A; 
    margin: 0; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-align: center; 
    font-size: 16px; 
}

/* --- МОДАЛЬНОЕ ОКНО ВАКАНСИИ --- */
.career-modal-content {
    background: var(--panel-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 1000px; /* Широкое окно */
    width: 100%;
    max-height: 85vh;
    display: flex; /* Слева картинка, справа текст */
    flex-direction: row;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    margin: 0 20px;
}

.news-modal-overlay.active .career-modal-content {
    transform: translateY(0) scale(1);
}

.career-modal-left {
    flex: 1;
    max-width: 45%; /* Картинка занимает 45% ширины */
    background: #000;
}

.career-modal-left img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Картинка заполняет левую часть */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.career-modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#career-modal-title {
    font-family: 'Toroka', sans-serif;
    font-size: 35px;
    color: #DA6F3A;
    margin: 0 0 25px 0;
    letter-spacing: 2px;
}

.career-modal-reqs {
    font-family: sans-serif; 
    font-size: 16px;
    color: #ccc;
    line-height: 1.6;
    flex-grow: 1; /* Выталкивает кнопку вниз */
    margin-bottom: 30px;
}

.career-modal-reqs h4 {
    color: #FDFDFD;
    margin-bottom: 10px;
    font-weight: 600;
}

.career-modal-reqs ul {
    padding-left: 20px;
}

.career-modal-reqs li {
    margin-bottom: 8px;
}

.btn-apply {
    align-self: flex-start; /* Кнопка прижата влево (справа от картинки, но снизу) */
    background-color: #DA6F3A;
    color: #FDFDFD;
    font-family: 'Toroka', sans-serif;
    letter-spacing: 2px;
    border: none;
}

.btn-apply:hover {
    background-color: #FDFDFD;
    color: #000;
}
/* =======================================================
   ИДЕАЛЬНАЯ СИММЕТРИЯ ИКОНОК (STEAM И ГЛОБУС)
   ======================================================= */

/* 1. Иконка Steam (Левая сторона) */
.steam-top-link {
    position: absolute !important;
    top: 35px !important;  /* Высота (можно менять, если нужно выше/ниже) */
    left: 40px !important; /* Отступ от левого края */
    z-index: 9999 !important;
    padding: 0 !important;
}

.steam-top-icon {
    width: 36px !important; /* Фиксируем размер */
    height: auto !important;
}

/* 2. Контейнер Глобуса (Правая сторона) */
.lang-selector {
    position: absolute !important;
    top: 35px !important;   /* Высота ТОЧНО ТАКАЯ ЖЕ, как у Steam */
    right: 40px !important; /* Отступ от правого края ТОЧНО ТАКОЙ ЖЕ */
    z-index: 9999 !important;
}

/* 3. Кнопка глобуса */
.lang-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important; /* Убираем скрытые отступы, чтобы центровка не сбивалась */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Увеличение глобуса при наведении (как у Steam) */
.lang-btn:hover {
    transform: scale(1.1) !important;
}

/* 4. Сам значок глобуса (SVG) */
.lang-icon {
    width: 46px !important;  /* Размер ТОЧНО ТАКОЙ ЖЕ, как у Steam */
    height: 46px !important;
    fill: #DA6F3A !important; /* Оранжевый цвет по умолчанию */
    transition: fill 0.3s ease !important;
}

/* 5. Эффект при наведении (Глобус становится белым) */
.lang-btn:hover .lang-icon, 
.lang-btn.active .lang-icon {
    fill: #FDFDFD !important;
}
/* Общий контейнер, чтобы зафиксировать позицию */
.career-contact-wrapper {
  position: relative;
  /* Можно задать минимальную высоту, чтобы контент ниже не дергался при переключении */
  min-height: 50px; 
}

/* Стили кнопки для анимации */
.career-contact-btn {
  opacity: 1;
  transition: opacity 0.3s ease-out;
  display: inline-block; /* Или block, в зависимости от твоей верстки */
}

/* Скрытый блок контактов */
.career-contact-info {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

/* Классы, которые будет добавлять JS */
.fade-out {
  opacity: 0 !important;
}

.fade-in {
  opacity: 1 !important;
}

/* Опционально: стилизуем ссылки внутри нового блока */
.career-contact-info p {
  margin: 5px 0;
}
.career-contact-info a {
  color: inherit;
  text-decoration: underline;
}

/* --- АНИМАЦИЯ КОНТАКТОВ В ВАКАНСИЯХ --- */
.career-contact-wrapper {
    position: relative;
    min-height: 50px; 
    margin-top: 10px;
}

/* Настройки для кнопки */
button#careerBtn {
    cursor: pointer;
    opacity: 1;
    /* Мы добавили transform в этот список, чтобы кнопка поднималась плавно */
    transition: opacity 0.3s ease-out, background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Настройки для появившегося текста */
.career-contact-info {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    font-family: 'Toroka', sans-serif;
    font-size: 18px;
    color: #FDFDFD;
    line-height: 1.6;
}

/* Оранжевые ссылки контактов с эффектом при наведении */
.contact-highlight {
    color: #DA6F3A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-highlight:hover {
    color: #FFFFFF;
}

/* Служебные классы для JS-анимации */
.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

.fade-in {
    opacity: 1 !important;
}

/* --- КАСТОМНЫЙ СКРОЛЛБАР --- */
::-webkit-scrollbar {
    width: 12px; /* Ширина вертикального скроллбара */
    height: 12px; /* Высота горизонтального скроллбара, если он появится */
}

/* Темно-серый фон (трек) вместо белого дефолтного */
::-webkit-scrollbar-track {
    background-color: #1a1a1a; 
}

/* Оранжевый ползунок */
::-webkit-scrollbar-thumb {
    background-color: #DA6F3A; /* Фирменный акцентный цвет */
    border-radius: 6px; /* Слегка закругляем края для эстетики */
    border: 3px solid #1a1a1a; /* Добавляем "рамку" цвета фона трека, чтобы ползунок казался тоньше и изящнее */
}

/* Эффект при наведении на ползунок */
::-webkit-scrollbar-thumb:hover {
    background-color: #f27f47; /* Делаем цвет чуть светлее при ховере */
}


/* --- КАСТОМНЫЙ ОРАНЖЕВЫЙ КУРСОР С ТЕМНОЙ ОБВОДКОЙ --- */

/* 1. Обычный курсор-стрелочка для всего сайта */
body, html {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 28 28'%3E%3Cpath d='M4 2L20 15H13L10 23L4 2Z' fill='%23DA6F3A' stroke='%23323232' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto;
}

/* =========================================
   ФИКС ОБРЕЗАНИЯ И ПУСТОТЫ НА СТРАНИЦАХ
   ========================================= */

/* 1. Заставляем главный контейнер расти вниз, а не стягивать весь сайт в центр */
.main-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

/* 2. Отключаем центрирование внутри самих страниц, чтобы их контент (например, Вакансии) начинался сразу под шапкой */
.page-section,
.page-section.games-content,
.page-section.hero-content,
.page-section.layout-center {
    position: relative !important;
    z-index: 10 !important;
}

/* 3. Сбрасываем старые костыли со страницы Ambience, чтобы заставка вернулась на экран */
#page-ambience {
    align-self: auto !important;
    justify-content: flex-start !important;
    margin-top: 0 !important;
}

/* --- ЦВЕТА ТЕКСТА ФУТЕРА ДЛЯ СВЕТЛОЙ ТЕМЫ AMBIENCE --- */

/* Делаем текст копирайта черным */
body.page-ambience-active .footer-legal-disclaimer {
    color: #000000 !important;
}

/* Делаем нижние ссылки черными */
body.page-ambience-active .footer-text-link {
    color: #000000 !important;
}

/* =========================================
   ДВУХКОЛОНОЧНОЕ МЕНЮ ЯЗЫКОВ (ДЛЯ ПК)
   ========================================= */
.lang-dropdown.show {
    display: grid !important; 
    grid-template-columns: 1fr 1fr; /* Создаем две одинаковые колонки */
    min-width: 340px; /* Делаем черное окошко шире, чтобы оба ряда комфортно влезли */
    padding: 10px 0;
}

/* Кнопка "View the map" должна занимать всю ширину в самом низу */
.map-option {
    grid-column: span 2; /* Растягиваем на обе колонки */
    margin-top: 10px;
}

/* Слегка уменьшаем отступы у самих языков, чтобы они смотрелись компактнее в сетке */
.lang-option {
    padding: 10px 15px; 
}

/* --- СТИЛЬ ДЛЯ ЗНАЧКА NEW У ЯЗЫКА --- */
.lang-option {
    position: relative !important; /* Применяем ко ВСЕМ языкам, чтобы значки не улетали */
}

.new-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    background-color: #DA6F3A; 
    color: #323232;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(218, 111, 58, 0.4);
}

/* --- СТИЛИ ДЛЯ NODE VOICE --- */
.voice-lock-icon {
    font-size: 40px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.voice-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px 20px;
    color: #FDFDFD;
    font-family: 'Toroka', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.voice-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(218, 111, 58, 0.2);
}

.voice-error {
    color: #ff4d4d;
    font-family: sans-serif;
    font-size: 14px;
    margin-top: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Картинка-кнопка Smiling Friends */
.sf-magic-btn {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s, box-shadow 0.4s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.sf-magic-btn:hover {
    transform: scale(1.05);
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(218, 111, 58, 0.3);
}

/* Видеоплеер */
.sf-player {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background-color: #000; /* Черный фон, пока видео недоступно */
}

/* --- ОТСТУПЫ ДЛЯ СЕКЦИИ ПАРОЛЯ И ПЛЕЕРА --- */
#page-node-voice, 
#page-smiling-friends-player {
    justify-content: center !important;  /* Принудительно центрируем по вертикали */
    align-items: center;                 /* Центрируем по горизонтали */
    margin-top: 30px;                    /* Отступ сверху от шапки */
    margin-bottom: 330px;                /* Большой отступ снизу, чтобы отодвинуть футер */
    min-height: 60vh;                    /* Растягиваем блок минимум на 60% высоты экрана */
}

/* Контейнер для позиционирования элементов внутри */
.voice-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Добавляем отступ справа, чтобы текст пароля не залезал под иконку */
.voice-input {
    padding-right: 50px !important; 
}

/* Кнопка с глазом */
.voice-show-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #888888;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 5px;
    outline: none;
}

.voice-show-btn:hover {
    color: var(--color-accent);
    transform: scale(1.15);
}

/* Всплывающее сообщение "NOWAY)" */
.voice-noway-msg {
    position: absolute;
    right: -100px; /* Выносим вправо за пределы инпута */
    background-color: var(--color-accent);
    color: #111111;
    font-family: 'Toroka', sans-serif;
    font-weight: bold;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
    /* Плавный отскок при появлении */
    transform: translateX(-15px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 5px 15px rgba(218, 111, 58, 0.4);
}

/* Маленький треугольник (хвостик) слева от сообщения */
.voice-noway-msg::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 6px 6px 0;
    border-style: solid;
    border-color: transparent var(--color-accent) transparent transparent;
}

/* Класс, который JS добавит при клике */
.voice-noway-msg.show-noway {
    opacity: 1;
    transform: translateX(0);
}


/* --- СТИЛИ КАСТОМНОГО ВИДЕОПЛЕЕРА --- */
.custom-video-wrapper {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Общий стиль для кнопок плеера */
.vp-btn {
    background: none;
    border: none;
    color: #FDFDFD;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    width: 25px; /* Фиксируем ширину, чтобы кнопки не прыгали */
}

.vp-btn:hover {
    color: var(--color-accent); /* #DA6F3A */
    transform: scale(1.15);
}

/* Таймлайн (полоса прокрутки) */
.vp-progress-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.vp-progress-container:hover {
    background: rgba(255, 255, 255, 0.25);
}

.vp-progress-bar {
    height: 100%;
    background-color: var(--color-accent);
    width: 0%;
    border-radius: 4px;
    pointer-events: none; /* Чтобы клик срабатывал на контейнере */
    
    /* --- ДОБАВЛЕНА ЭТА СТРОКА ДЛЯ ПЛАВНОСТИ --- */
    transition: width 0.25s linear; 
}

/* Текст времени (Твой шрифт Toroka) */
.vp-time-display {
    font-family: 'Toroka', sans-serif;
    font-size: 15px;
    color: #FDFDFD;
    letter-spacing: 1px;
    min-width: 90px;
    text-align: center;
    pointer-events: none;
}

/* Ползунок громкости */
.vp-volume-slider {
    width: 70px;
    cursor: pointer;
    accent-color: var(--color-accent); /* Красит ползунок в оранжевый */
}


/* --- ЗАГЛУШКА ДЛЯ ВИДЕО (COMING SOON) --- */
.sf-video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9; /* Идеальные пропорции видеоэкрана */
    background-color: #050505; /* Глубокий черный цвет */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.sf-video-placeholder p {
    font-family: 'Toroka', sans-serif;
    font-size: 28px;
    color: #FDFDFD;
    letter-spacing: 4px;
    margin: 0;
    animation: pulseText 2s infinite ease-in-out; /* Плавное затухание текста */
}

/* Оранжевый разделитель */
.placeholder-divider {
    color: var(--color-accent); 
    margin: 0 12px;
}

/* --- СЕТКА СТРАНИЦЫ ПЛЕЕРА --- */
.player-page-layout {
    display: flex;
    gap: 15px; /* Уменьшили отступ, чтобы кнопки "прижались" к плееру */
    width: 100%;
    max-width: 1150px;
    align-items: flex-start;
    justify-content: center; /* Центрирует весь блок (меню + плеер) по центру экрана */
}

/* Боковая панель выбора сезонов */
.seasons-sidebar {
    width: 260px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
}

/* Кнопка SEASON 1 */
.season-dropdown-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    color: #FDFDFD;
    font-family: 'Toroka', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s, border-color 0.3s;
}

.season-dropdown-btn:hover {
    background: rgba(218, 111, 58, 0.15);
    border-color: var(--color-accent);
}

.season-arrow {
    transition: transform 0.3s ease;
}

/* Класс поворота стрелочки при открытии */
.season-dropdown-btn.active .season-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список серий */
.episodes-dropdown-list {
    display: none; /* Скрыт по умолчанию */
    flex-direction: column;
    gap: 8px;
    animation: fadeInDropdown 0.3s ease forwards;
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Кнопка эпизода */
.episode-item-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 15px;
    color: #aaa;
    font-family: 'Toroka', sans-serif;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.episode-item-btn:hover {
    background: var(--color-accent);
    color: #FDFDFD;
    padding-left: 20px; /* Красивый сдвиг текста вправо при наведении */
}

/* Адаптив для мобильных экранов (переносим меню под плеер) */
@media (max-width: 900px) {
    .player-page-layout {
        flex-direction: column;
        align-items: center;
    }
    .seasons-sidebar {
        width: 100%;
        max-width: 800px;
    }
}

/* 1. Задаем контейнеру относительное позиционирование */
#voice-secret-content {
    position: relative; 
}

/* 2. Обновляем стили логотипа */
.voice-main-logo {
    position: absolute; /* Вырываем из потока (нижняя картинка больше не будет двигаться) */
    
    /* Управление позицией по вертикали */
    bottom: 100%; /* Отталкиваемся от верхней границы контейнера с картинкой */
    margin-bottom: 50px; /* Насколько высоко поднять логотип (увеличь, если нужно выше) */
    
    /* Идеальное центрирование по горизонтали */
    left: 50%;
    transform: translateX(-50%);
    
    max-width: 200px;
    pointer-events: none;
    filter: drop-shadow(0px 4px 15px rgba(255, 255, 255, 0.1));
}

/* --- МЕНЮ НАСТРОЕК (Шестеренка) --- */
.vp-settings-menu {
    display: none;
    position: absolute;
    bottom: 45px;
    right: -20px;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    width: 180px;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.vp-settings-menu.active {
    display: flex;
}

.vp-menu-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Toroka', sans-serif;
    font-size: 15px;
    color: #FDFDFD;
    letter-spacing: 1px;
}

.vp-select {
    background: #323232;
    color: #FDFDFD;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 4px;
    font-family: sans-serif;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
}

.vp-select:focus, .vp-select:hover {
    border-color: #DA6F3A;
}

/* --- ТЕАТРАЛЬНЫЙ РЕЖИМ (Увеличение по центру) --- */
.custom-video-wrapper.theater-mode {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw !important;
    max-width: 1400px !important;
    height: auto !important;
    z-index: 100000;
    box-shadow: 0 0 80px rgba(0,0,0,1);
    transition: all 0.3s ease;
}

/* Черный фон вокруг плеера */
body.theater-active::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
}

/* --- АДАПТИВНЫЙ IFRAME ДЛЯ ITCH.IO DEMO --- */
.itch-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Идеальная пропорция 16:9 (720 / 1280 = 0.5625) */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.itch-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}