/* =========================================
   VANILLASIDE V11.0 - 3-COLUMN WIKI
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: 'MyServerFont'; 
    src: url('fonts/4197-font.ttf') format('truetype'); 
    font-weight: normal; font-style: normal;
}

:root {
    --bg-body: #09090b;       
    --bg-card: #121214;       
    --bg-card-hover: #1c1c1f; 
    --accent: #5bc268;        
    --accent-hover: #46a050;
    --accent-glow: rgba(91, 194, 104, 0.15);
    --text-main: #ffffff;     
    --text-muted: #a1a1aa;    
    --border: rgba(255, 255, 255, 0.08); 
    --radius: 20px;           
    --container-width: 1450px; /* Чуть шире для 3 колонок */
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'MyServerFont', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: none; 
}

p, li, .bento-text, .hero-desc, .news-body p, .rule-item {
    font-family: 'Inter', sans-serif !important;
    font-weight: 400; letter-spacing: 0; line-height: 1.6;
}

.bg-fixed {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url('img/terralith.jpg') center/cover no-repeat;
    opacity: 0.15; z-index: -1; pointer-events: none;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; border-radius: var(--radius); }
.container { width: 92%; max-width: var(--container-width); margin: 0 auto; }

/* --- ХЕДЕР --- */
.header { position: fixed; top: 20px; left: 0; width: 100%; z-index: 1000; display: flex; justify-content: center; }
.header-inner {
    background: rgba(24, 24, 27, 0.8); backdrop-filter: blur(12px);
    padding: 10px 30px; border-radius: 100px; display: flex; align-items: center; gap: 40px;
    border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.header-telegram {
    color: #aaa;
    font-size: 1.2rem;
    transition: 0.3s;
}
.header-telegram:hover {
    color: #26A5E4; /* Цвет ТГ при наведении */
    transform: scale(1.1);
}

.header-discord {
    color: #aaa;
    font-size: 1.2rem;
    transition: 0.3s;
}
.header-discord:hover {
    color: #5865F2; /* Цвет ТГ при наведении */
    transform: scale(1.1);
}
.logo img { height: 32px; }
.nav { display: flex; gap: 25px; }
.nav a { font-size: 0.9rem; font-weight: normal; color: var(--text-muted); }
.nav a:hover, .nav a.active { color: var(--text-main); }


/* --- ПЛАВАЮЩАЯ КНОПКА TELEGRAM --- */
.floating-tg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #26A5E4; /* Цвет Телеграма */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    z-index: 2000; /* Поверх всего */
    box-shadow: 0 10px 30px rgba(38, 165, 228, 0.4);
    transition: 0.3s;
    animation: tg-pulse 2s infinite;
}

.floating-tg:hover {
    transform: translateY(-5px) scale(1.1);
    background: #1e88e5;
}

/* Анимация пульсации, чтобы заметили */
@keyframes tg-pulse {
    0% { box-shadow: 0 0 0 0 rgba(38, 165, 228, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(38, 165, 228, 0); }
    100% { box-shadow: 0 0 0 0 rgba(38, 165, 228, 0); }
}

/* Подсказка при наведении */
.tg-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
    white-space: nowrap;
}

.floating-tg:hover .tg-tooltip {
    opacity: 1;
    transform: translateX(-5px);
}

/* На мобилке делаем чуть меньше */


/* =======================================================
   WIKI FIXED LAYOUT (3 КОЛОНКИ)
   ======================================================= */

body.fixed-scroll { overflow: hidden; height: 100vh; }

.wiki-section {
    padding-top: 110px; padding-bottom: 30px;
    height: 100vh; box-sizing: border-box; overflow: hidden; 
}

/* --- КАРТОЧКА КОПИРОВАНИЯ IP (WIKI) --- */
.ip-copy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ip-copy-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent); /* Зеленая рамка при наведении */
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ip-copy-card .ip-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.ip-copy-card .ip-value {
    font-family: 'MyServerFont', sans-serif; /* Пиксельный шрифт */
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.ip-copy-card .ip-icon {
    font-size: 1.2rem;
    color: var(--accent);
    opacity: 0.7;
    transition: 0.3s;
}

.ip-copy-card:hover .ip-icon {
    opacity: 1;
    transform: scale(1.1);
}

.ip-copy-card .ip-version {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    font-family: 'Inter', sans-serif;
}



.wiki-grid {
    display: grid;
    /* ЛЕВО (Меню) | ЦЕНТР (Текст) | ПРАВО (Оглавление) */
    grid-template-columns: 260px 1fr 240px; 
    gap: 20px;
    height: 100%;
}

/* ОБЩИЙ СТИЛЬ КОЛОНОК */
.wiki-sidebar, .wiki-content, .wiki-toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    height: 100%; overflow-y: auto;
}

/* 1. ЛЕВОЕ МЕНЮ */
.wiki-sidebar { padding: 25px; }

/* 2. ЦЕНТРАЛЬНЫЙ КОНТЕНТ */
.wiki-content { padding: 40px; background: rgba(18, 18, 20, 0.6); }

.wiki-content strong {
    color: var(--accent);
}

/* 3. ПРАВОЕ МЕНЮ (НОВОЕ) */
.wiki-toc { padding: 25px; }
.toc-title {
    font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 15px; display: block; font-weight: bold;
}
.toc-list { display: flex; flex-direction: column; gap: 10px; border-left: 2px solid rgba(255,255,255,0.05); }
.toc-link {
    padding-left: 15px; color: var(--text-muted); font-size: 0.85rem; font-family: 'Inter', sans-serif;
    transition: 0.2s; cursor: pointer; position: relative;
    border-left: 2px solid transparent; margin-left: -2px; /* Чтобы перекрыть линию */
}
.toc-link:hover, .toc-link.active { color: #fff; border-left-color: var(--accent); }


/* СКРОЛЛБАРЫ */
.wiki-sidebar::-webkit-scrollbar, .wiki-content::-webkit-scrollbar, .wiki-toc::-webkit-scrollbar { width: 6px; }
.wiki-sidebar::-webkit-scrollbar-thumb, .wiki-content::-webkit-scrollbar-thumb, .wiki-toc::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.wiki-sidebar::-webkit-scrollbar-thumb:hover, .wiki-content::-webkit-scrollbar-thumb:hover, .wiki-toc::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Элементы меню слева */
.wiki-nav ul {
    display: flex;
    flex-direction:column; gap: 5px; 
    list-style: none; 
    padding-left: 0;
}
.wiki-nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 15px; border-radius: 8px;
    color: var(--text-muted); font-size: 0.9rem; transition: all 0.3s ease; border-left: 3px solid transparent;
}

.wiki-nav .fa-solid {
    color: var(--accent);
}

.wiki-nav a:hover, .wiki-nav a.active {
    background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--accent); padding-left: 20px;
}

/* --- ВЫПАДАЮЩЕЕ МЕНЮ (HOVER VERSION) --- */

.dropdown-item {
    position: relative;
    margin-bottom: 5px; /* Отступ как у li */
}

/* Стиль кнопки - КОПИЯ стиля обычных ссылок (.wiki-nav a) */
.dropdown-trigger {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 15px; 
    border-radius: 8px;
    color: var(--text-muted); 
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent; /* Чтобы текст был на одной линии с другими */
    cursor: pointer;
    /* text-transform: uppercase; <--- Если у вас другие пункты капсом, раскомментируйте это */
}

/* Иконка внутри триггера (чтобы была такого же цвета и размера) */
.dropdown-trigger i:first-child {
    width: 20px; 
    text-align: center; 
    color: var(--accent);
}

.dropdown-trigger .arrow {
    font-size: 0.7rem; 
    transition: transform 0.3s;
    color: #666;
    width: auto; /* Сброс ширины для стрелки */
}

/* ЛОГИКА НАВЕДЕНИЯ (HOVER) */

/* 1. Когда наводим на блок li (.dropdown-item), меняем стиль триггера */
.dropdown-item:hover .dropdown-trigger {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--accent); /* Зеленая полоска */
    padding-left: 20px; /* Сдвиг вправо как у ссылок */
}

/* 2. Поворачиваем стрелку */
.dropdown-item:hover .arrow {
    transform: rotate(180deg);
    color: #fff;
}

/* 3. Плавно раскрываем меню */
.dropdown-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease; /* Плавность */
    margin-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.05);
}

/* Раскрытие при наведении */
.dropdown-item:hover .dropdown-menu {
    max-height: 500px; /* Достаточно большое число, чтобы влезло всё */
    opacity: 1;
    margin-top: 5px;
}
/* ИСПРАВЛЕННЫЙ БЛОК ПОИСКА */
.search-box {
    position: relative; /* Обязательно для позиционирования иконки внутри */
    margin-bottom: 20px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 40px; /* Отступ слева 40px под иконку */
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #fff;
    outline: none;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box; /* Чтобы padding не ломал ширину */
}

.search-box input:focus {
    border-color: var(--accent);
}

.search-box i {
    position: absolute;
    left: 12px; /* Прижимаем влево */
    top: 50%;
    transform: translateY(-50%); /* Центрируем по вертикали */
    color: #666;
    pointer-events: none; /* Чтобы клик проходил сквозь иконку в поле */
}

/* --- СТИЛИ ДЛЯ ВИЗУАЛЬНЫХ КАРТОЧЕК В ВИКИ --- */
.visual-card {
    background: rgba(0, 0, 0, 0.3); /* Темная подложка */
    border: 1px solid var(--border); /* Твоя фирменная рамка */
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0 30px 0; /* Отступы сверху и снизу */
}

.visual-card .card-header h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
    font-family: 'MyServerFont', sans-serif; /* Пиксельный заголовок карточки */
}

.video-container video, 
.video-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hint {
    margin-top: 10px;
    margin-bottom: 0 !important; /* Убираем лишний отступ */
    font-size: 0.85rem;
    color: #888; /* Серый цвет подсказки */
    text-align: center;
    font-style: italic;
}

/* --- СТИЛЬНАЯ КНОПКА СКАЧИВАНИЯ --- */
.download-pack-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03); /* Прозрачная подложка */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 20px 0;
    max-width: 300px;
}

/* Иконка слева */
.download-pack-btn .btn-icon {
    width: 45px;
    height: 45px;
    background: rgba(91, 194, 104, 0.1); /* Темно-зеленый фон иконки */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent); /* Ваш зеленый */
    transition: 0.3s;
    border: 1px solid rgba(91, 194, 104, 0.2);
}

/* Текстовая часть */
.download-pack-btn .btn-content {
    display: flex;
    flex-direction: column;
}

.download-pack-btn .btn-title {
    font-family: 'MyServerFont', sans-serif; /* Ваш пиксельный шрифт */
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.download-pack-btn .btn-subtitle {
    font-family: 'Inter', sans-serif; /* Читабельный шрифт */
    font-size: 0.8rem;
    color: #888;
    transition: 0.3s;
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ (HOVER) --- */

.download-pack-btn:hover {
    background: rgba(91, 194, 104, 0.05); /* Легкая зеленая заливка */
    border-color: var(--accent); /* Яркая рамка */
    transform: translateY(-5px); /* Всплытие */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(91, 194, 104, 0.2); /* Неоновое свечение */
}

/* Анимация иконки (Опускается вниз как скачивание) */
.download-pack-btn:hover .btn-icon {
    background: var(--accent);
    color: #000; /* Черная стрелка на зеленом */
    border-color: var(--accent);
}

.download-pack-btn:hover .btn-icon i {
    animation: downloadBounce 0.6s infinite alternate;
}

/* Анимация текста */
.download-pack-btn:hover .btn-subtitle {
    color: #ccc;
}

@keyframes downloadBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(3px); }
}


/* --- СТИЛЬНАЯ КНОПКА DISCORD --- */
.discord-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 20px 0;
    min-width: 250px; /* Чтобы была широкой, как кнопка скачивания */
}

/* Иконка (Фиолетовая подложка) */
.discord-btn .btn-icon {
    width: 45px;
    height: 45px;
    background: rgba(88, 101, 242, 0.1); /* Цвет Discord прозрачный */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #5865F2; /* Цвет Discord */
    transition: 0.3s;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

/* Текст */
.discord-btn .btn-content {
    display: flex;
    flex-direction: column;
}

.discord-btn .btn-title {
    font-family: 'MyServerFont', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.discord-btn .btn-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #888;
    transition: 0.3s;
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ --- */

.discord-btn:hover {
    background: rgba(88, 101, 242, 0.08); /* Фиолетовая заливка */
    border-color: #5865F2;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 
                0 0 20px rgba(88, 101, 242, 0.3); /* Неоновое свечение */
}

.discord-btn:hover .btn-icon {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}

/* Анимация иконки (Покачивание) */
.discord-btn:hover .btn-icon i {
    animation: discordWave 0.5s ease-in-out infinite alternate;
}

.discord-btn:hover .btn-subtitle {
    color: #ccc;
}

/* Анимация махания */
@keyframes discordWave {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

/* --- КАРТОЧКА МОДА --- */
.mod-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.mod-card:hover {
    border-color: var(--accent); /* Зеленая рамка при наведении */
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(5px); /* Легкий сдвиг вправо */
}

/* Левая часть (Текст) */
.mod-info {
    flex: 1; /* Занимает все свободное место */
    padding-right: 30px; /* Отступ от кнопки */
}

.mod-title {
    font-family: 'MyServerFont', sans-serif; /* Пиксельный заголовок */
    font-size: 1.3rem;
    color: var(--accent); /* Зеленый цвет названия */
    margin: 0 0 10px 0;
}

.mod-desc {
    font-family: 'Inter', sans-serif; /* Читабельный текст */
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

/* Адаптив для мобилок (чтобы кнопка уходила вниз) */
@media (max-width: 768px) {
    .mod-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .mod-info {
        padding-right: 0;
        margin-bottom: 20px;
    }
    .download-pack-btn {
        width: 100%;
        max-width: none;
    }
}

/* --- ПОДСВЕТКА ПРИ ПОИСКЕ --- */
.highlight {
    background-color: var(--accent); /* Зеленый фон */
    color: #000; /* Черный текст для контраста */
    border-radius: 4px;
    padding: 0 4px;
    font-weight: bold;
    box-shadow: 0 0 15px var(--accent-glow);
    animation: highlightPop 0.3s ease;
}

@keyframes highlightPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}





























/* =========================================
   LINK-IN-BIO PAGE (TIKTOK LANDING)
   ========================================= */

/* Контейнер мобильного лендинга */
.bio-container {
    max-width: 480px; /* Узкий, как телефон */
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Аватарка/Лого */
.bio-avatar {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(91, 194, 104, 0.2);
    animation: bioFloat 6s infinite ease-in-out;
}
.bio-avatar img { width: 70%; height: auto; image-rendering: pixelated; }

@keyframes bioFloat { 0%,100% {transform:translateY(0);} 50% {transform:translateY(-10px);} }

.bio-title {
    font-family: 'MyServerFont', sans-serif;
    font-size: 2rem; color: #fff; margin: 0 0 10px 0;
    text-shadow: 0 0 20px rgba(91, 194, 104, 0.5);
}

.bio-desc {
    font-family: 'Inter', sans-serif;
    color: var(--text-muted); text-align: center; font-size: 0.95rem; margin-bottom: 30px;
}

/* Сетка кнопок */
.bio-links { width: 100%; display: flex; flex-direction: column; gap: 15px; }

.bio-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 25px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}

.bio-btn:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
}

.bio-btn-left { display: flex; align-items: center; gap: 15px; }
.bio-icon { font-size: 1.5rem; width: 30px; text-align: center; }
.bio-text { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: #fff; }
.bio-arrow { color: var(--text-muted); font-size: 0.9rem; transition: 0.3s; }
.bio-btn:hover .bio-arrow { color: var(--accent); transform: translateX(5px); }

/* Цвета для соцсетей */
.btn-site { border-color: var(--accent); background: rgba(91, 194, 104, 0.05); }
.btn-site .bio-icon { color: var(--accent); }

.btn-tg:hover { border-color: #26A5E4; background: rgba(38, 165, 228, 0.1); }
.btn-tg .bio-icon { color: #26A5E4; }

.btn-ds:hover { border-color: #5865F2; background: rgba(88, 101, 242, 0.1); }
.btn-ds .bio-icon { color: #5865F2; }

.btn-inst:hover { border-color: #E1306C; background: rgba(225, 48, 108, 0.1); }
.btn-inst .bio-icon { color: #E1306C; }

.btn-mono { border: 1px solid #ea5656; } /* Примерный цвет */
.btn-mono:hover { background: rgba(234, 86, 86, 0.1); box-shadow: 0 0 20px rgba(234, 86, 86, 0.2); }
.btn-mono .bio-icon { color: #ea5656; }

/* Статус бар (Упрощенный) */
.bio-status {
    background: rgba(0,0,0,0.3); padding: 8px 20px; border-radius: 50px;
    border: 1px solid var(--border); margin-bottom: 30px;
    font-family: 'MyServerFont', sans-serif; font-size: 0.9rem; color: #fff;
    display: flex; align-items: center; gap: 10px; cursor: pointer;
}






















/* =========================================
   SHOP STYLES (JAM EDITION)
   ========================================= */

/* Секция ввода ника (Липкая сверху) */
.shop-controls {
    position: sticky;
    top: 100px; /* Чуть ниже хедера */
    z-index: 90;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nick-input-group {
    position: relative;
    flex-grow: 1;
}

.nick-input-group i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #666; transition: 0.3s;
}

.nick-input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-family: 'MyServerFont', sans-serif; /* Пиксельный для ника */
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.nick-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}
.nick-input:focus + i { color: var(--accent); }

/* Анимация ошибки (если ник не введен) */
.input-error {
    animation: shake 0.4s ease-in-out;
    border-color: #f04747 !important;
    box-shadow: 0 0 15px rgba(240, 71, 71, 0.3) !important;
}
@keyframes shake { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-5px);} 75% {transform: translateX(5px);} }


/* --- СЕТКА ТОВАРОВ --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: 0.3s;
    display: flex; flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Картинка товара */
.product-image {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

/* Контент */
.product-body {
    padding: 25px;
    display: flex; flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-family: 'MyServerFont', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 10px 0;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1; /* Прижимает цену вниз */
}

.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.btn-buy {
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    font-family: 'MyServerFont', sans-serif;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
}
.btn-buy:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Мобилка */
@media (max-width: 768px) {
    .shop-controls { flex-direction: column; align-items: stretch; top: 80px; }
}























/* Контент внутри */
.wiki-content h2 { margin-top: 0; font-size: 2rem; color: #fff; border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 30px; }
.wiki-content h3  { color: var(--accent); margin-top: 40px; margin-bottom: 15px; font-size: 1.4rem; scroll-margin-top: 20px; } /* scroll-margin чтобы не прилипало к верху */
.rule-item { background: rgba(255,255,255,0.03); border-left: 3px solid var(--border); padding: 15px; margin-bottom: 15px; border-radius: 0 8px 8px 0; }
.rule-item:hover { border-left-color: var(--accent); background: rgba(255,255,255,0.05); }
.rule-item strong { color: #fff; font-weight: 700; }
.visual-card { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 20px 0; }
.video-container video, .image-container img { width: 100%; border-radius: 8px; margin-top: 10px; }
code {  background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 4px; color: var(--accent);  font-family: 'MyServerFont'; 
    src: url('fonts/4197-font.ttf') format('truetype'); 
    font-weight: normal; font-style: normal; font-size: 15px; border: 1px solid #333; }

/* МОБИЛКА */
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: #fff; }
@media (max-width: 1100px) {
    .wiki-grid { grid-template-columns: 260px 1fr; } /* Прячем правое меню на планшете */
    .wiki-toc { display: none; }
}
@media (max-width: 900px) {
    body.fixed-scroll { overflow: auto; height: auto; }
    .wiki-section { height: auto; padding-top: 100px; padding-bottom: 50px; overflow: visible; }
    .wiki-grid { grid-template-columns: 1fr; height: auto; display: block; }
    .wiki-sidebar { height: auto; margin-bottom: 30px; }
    .wiki-content { height: auto; overflow: visible; }
}
/* Стили INDEX.HTML (Hero, Bento...) остаются те же, они внизу файла */
.hero-section { height: 100vh; min-height: 700px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; text-align: center; padding-top: 60px; }
/* ... (остальные стили главной страницы скопируйте из v10.0, они не менялись) ... */
.hero-logo-main { width: 100%; max-width: 550px; margin: 0 auto 30px auto; image-rendering: pixelated; filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px auto; }
.status-pill { display: inline-flex; align-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 50px; padding: 5px; margin-bottom: 40px; }
.sp-online { display: flex; align-items: center; gap: 8px; padding: 8px 15px; border-right: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; color: #fff; }
.dot { width: 8px; height: 8px; background: #43b581; border-radius: 50%; box-shadow: 0 0 8px #43b581; }
.sp-ip { padding: 8px 20px; color: var(--accent); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.sp-ip:hover { color: var(--accent-hover); }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }
.btn { padding: 14px 35px; border-radius: 50px; font-size: 1rem; transition: 0.3s; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; }
.btn-primary { background: var(--accent); color: #000; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 0 25px var(--accent-glow); transform: translateY(-3px); }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.scroll-down { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: var(--text-muted); font-size: 1.5rem; animation: bounce 2s infinite; cursor: pointer; opacity: 0.6; transition: 0.3s; }
.scroll-down:hover { color: #fff; opacity: 1; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }
.bento-section { padding: 100px 0; }
.bento-container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 80px; }
.bento-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: 0.3s ease; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.bento-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.15); transform: translateY(-5px); }
.span-2 { grid-column: span 2; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }
.bento-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--accent); margin-bottom: 20px; }
.bento-title { font-size: 1.4rem; margin: 0 0 10px 0; color: #fff; text-transform: uppercase; }
.bento-link { margin-top: 20px; font-size: 0.9rem; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; }
.bento-img { width: 100%; height: 250px; object-fit: cover; border-radius: 12px; margin-top: 20px; transition: 0.5s; opacity: 0.8; }
.bento-card:hover .bento-img { transform: scale(1.03); opacity: 1; }
.news-header { display: flex; justify-content: space-between; align-items:  center;  margin-bottom: 30px; }
.news-header h2 { font-size: 2rem; margin: 0; color: #fff; text-transform: uppercase; padding-left: 5px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: 0.3s; }
.news-item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); background: var(--bg-card-hover); }
.news-thumb { height: 180px; overflow: hidden; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; opacity: 0.9; }
.news-item:hover .news-thumb img { transform: scale(1.05); opacity: 1; }
.news-body { padding: 25px; }
.news-date { font-size: 0.75rem; color: var(--accent); font-weight: 700; text-transform: uppercase; }
.news-body h3 { font-size: 1.2rem; font-weight: 700; margin: 5px 0 10px 0; color: #fff; text-transform: uppercase; }
footer { margin-top: 100px; padding: 50px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.9rem; background: #050506; font-family: 'Inter', sans-serif; }
.footer-logo img { height: 30px; margin: 0 auto 20px auto; opacity: 0.7; }
/* =========================================
   MOBILE OPTIMIZATION (ADD TO END)
   ========================================= */

/* Скрываем плавающую кнопку ТГ на ПК */
.mobile-tg-floating { display: none; }
@media (max-width: 768px) {
    .floating-tg { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
    .tg-tooltip { display: none; } /* На телефоне тултип не нужен */
}
@media (max-width: 900px) {
    /* 1. Настройка главного экрана */
    .hero-section {
        height: auto !important; /* Убираем фиксацию */
        min-height: 100vh;
        padding-top: 140px; /* Больше отступа сверху */
        padding-bottom: 80px;
    }


    
    .hero-logo-main {
        max-width: 85%; /* Логотип по ширине экрана */
    }
    
    .hero-desc {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .hero-buttons {
        flex-direction: column; /* Кнопки друг под друга */
        width: 100%;
        padding: 0 30px;
    }
    
    .hero-buttons .btn {
        width: 100%; /* Кнопки на всю ширину */
        justify-content: center;
    }

    /* 2. Сетки в одну колонку */
    .bento-container, .news-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
    
    /* Сброс размеров "двойных" блоков */
    .span-2, .span-4, .row-2 {
        grid-column: auto !important;
        grid-row: auto !important;
    }
    
    /* Фикс высоты картинок */
    .bento-img, .news-thumb img {
        height: 200px;
    }
    
    /* 3. Хедер */
    .header-inner {
        width: 95%;
        padding: 15px;
        justify-content: space-between;
    }
    
/* --- МОБИЛЬНОЕ МЕНЮ (СТИЛИ) --- */
@media (max-width: 900px) {
    
    /* Скрываем меню по умолчанию */
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Появляется сразу под хедером */
        left: 0;
        width: 100%;
        background: rgba(18, 18, 20, 0.95); /* Темный фон */
        backdrop-filter: blur(15px);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        animation: slideDown 0.3s ease;
    }

    /* Когда добавлен класс .active (через JS) - показываем */
    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 15px 30px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    /* Анимация появления */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

    .nav { display: none; } /* Скрываем меню */
    
    /* Скрываем иконки соцсетей в хедере на мобилке (будет плавающая) */
    .header-socials { display: none; }
    .mobile-toggle { display: block; font-size: 1.5rem; color: #fff; background: none; border: none;}

    /* 4. ПЛАВАЮЩАЯ КНОПКА TELEGRAM (ТОЛЬКО МОБИЛКА) */
    .mobile-tg-floating {
        display: flex !important;
        position: fixed;
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        background: #26A5E4; /* Цвет Телеграма */
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        box-shadow: 0 10px 30px rgba(38, 165, 228, 0.5);
        color: #fff;
        font-size: 30px;
        animation: pulse-tg 2s infinite;
        border: 2px solid rgba(255,255,255,0.2);
    }
    
    @keyframes pulse-tg {
        0% { box-shadow: 0 0 0 0 rgba(38, 165, 228, 0.7); transform: scale(1); }
        70% { box-shadow: 0 0 0 15px rgba(38, 165, 228, 0); transform: scale(1.05); }
        100% { box-shadow: 0 0 0 0 rgba(38, 165, 228, 0); transform: scale(1); }
    }
}