
/* ПОДКЛЮЧЕНИЕ ШРИФТА */

@font-face {

    font-family: 'Make Things';

    src: url('MakeThings.ttf');

}



/* ПЛАВНОЕ ЛИСТАНИЕ */

html {

    scroll-behavior: smooth;

}



/* Переменные темы */

:root {

    --bg-color: #111;

    --text-main: #ffffff;

    --text-sub: #aaaaaa;

    --nav-bg: rgba(18, 18, 18, 0.95);

    --card-bg: rgba(255, 255, 255, 0.03);

    --card-border: rgba(255, 255, 255, 0.1);

    --modal-bg: rgba(25, 27, 31, 0.98); 

    --btn-bg: linear-gradient(90deg, #444, #eee, #444);

    --bg-opacity: 0.15;

    --code-bg: rgba(0, 0, 0, 0.3);

    --accent-color: #5865F2;

    --danger-color: #ff4d4d;

}



body.light-theme {

    --bg-color: #f5f5f5;

    --text-main: #111111;

    --text-sub: #444444;

    --nav-bg: rgba(255, 255, 255, 0.9);

    --card-bg: #ffffff;

    --card-border: rgba(0, 0, 0, 0.1);

    --modal-bg: #ffffff; 

    --btn-bg: linear-gradient(90deg, #ddd, #222, #ddd);

    --bg-opacity: 0.05;

    --code-bg: rgba(0, 0, 0, 0.07);

}



/* Базовые стили */

body {

    margin: 0; padding: 0;

    font-family: 'Make Things', 'Montserrat', sans-serif;

    background-color: var(--bg-color);

    color: var(--text-main);

    display: flex; flex-direction: column; 

    align-items: center; min-height: 100vh; 

    position: relative; overflow-x: hidden;

    transition: background-color 0.4s ease, color 0.4s ease;

}



body::before {

    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;

    background-image: url('https://i.ibb.co/Mqyw29G/Gemini-Generated-Image-z96nrgz96nrgz96n-1-1.png');

    background-size: cover; background-position: center; 

    opacity: var(--bg-opacity); z-index: -1;

    transition: opacity 0.4s ease;

}



.main-wrapper { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; width: 100%; }



/* Навигация */

.navbar {

    margin-top: 15px; width: auto; min-width: 1000px; max-width: 95%;

    background-color: var(--nav-bg); padding: 10px 25px; border-radius: 40px; 

    display: flex; align-items: center; justify-content: space-between;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);

    transition: background-color 0.4s ease;

}



.logo-container { display: flex; align-items: center; gap: 12px; }

.logo-img { height: 35px; }



.nav-rules-btn {

    background: rgba(128, 128, 128, 0.1);

    border: 1px solid var(--card-border);

    color: var(--text-main);

    padding: 6px 16px; border-radius: 20px;

    cursor: pointer; font-family: 'Make Things', sans-serif;

    font-weight: 700; font-size: 0.85rem; transition: 0.3s;

    margin: 0 5px;

}

.nav-rules-btn:hover { background: rgba(128, 128, 128, 0.2); transform: scale(1.05); }



.theme-toggle {

    background: rgba(128, 128, 128, 0.1);

    border: 1px solid var(--card-border);

    color: var(--text-main);

    width: 32px; height: 32px; border-radius: 50%;

    cursor: pointer; display: flex; align-items: center; justify-content: center;

    transition: 0.3s; margin-left: 5px;

}

.theme-toggle:hover { transform: scale(1.1); background: rgba(128, 128, 128, 0.2); }



/* Анимация сияния текста */

.shiny-text {

    background: linear-gradient(90deg, #666, #fff, #666);

    background-size: 200% auto; color: transparent;

    -webkit-background-clip: text; background-clip: text;

    animation: shine 4s linear infinite;

}

body.light-theme .shiny-text {

    background: linear-gradient(90deg, #111, #666, #111);

    -webkit-background-clip: text; background-clip: text;

}

@keyframes shine { to { background-position: 200% center; } }



.brand-name { font-size: 1.3rem; font-weight: 700; }



.discord-circle-btn {

    display: flex; align-items: center; justify-content: center;

    background-color: #5865F2; width: 40px; height: 40px; border-radius: 50%;

    transition: 0.2s; cursor: pointer; border: none;

}

.discord-circle-btn:hover { transform: scale(1.1); }

.discord-svg { width: 22px; height: 22px; fill: white; }



/* Контент */

.content { margin-top: 60px; text-align: center; }

.hero-title { font-size: 3.5rem; font-weight: 800; margin: 0; letter-spacing: 4px; }

.hero-subtitle { font-size: 1.5rem; font-weight: 700; margin-top: 5px; }

.hero-description { font-size: 1rem; font-weight: 500; margin-top: 15px; max-width: 600px; }



.shiny-btn {

    background: var(--btn-bg); background-size: 200% auto;

    color: var(--bg-color) !important; border: none;

    padding: 12px 40px; font-size: 1.1rem; font-weight: 800;

    border-radius: 50px; cursor: pointer; transition: 0.3s;

    animation: shine 4s linear infinite;

}

.start-btn { margin-top: 30px; }



/* Статус сервера */

.status-container { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; }

.status-indicator { position: relative; width: 12px; height: 12px; display: flex; align-items: center; justify-content: center; }

.dot { width: 10px; height: 10px; border-radius: 50%; background: #2ecc71; z-index: 2; }

.pulse { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: #2ecc71; animation: p 2s infinite; z-index: 1; }

@keyframes p { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.5); opacity: 0; } }



/* Сетка карточек */

.features-grid {

    display: grid; grid-template-columns: repeat(3, 1fr);

    gap: 20px; width: 100%; max-width: 1000px; margin: 60px auto 40px; padding: 0 20px;

}

.feature-card {

    background: var(--card-bg); border: 1px solid var(--card-border);

    border-radius: 20px; padding: 25px; transition: 0.3s;

    box-shadow: 0 4px 15px rgba(0,0,0,0.05);

}

.feature-card:hover { transform: translateY(-5px); border-color: var(--accent-color); }

.feature-icon {

    font-size: 26px; color: var(--text-main); margin-bottom: 15px;

    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;

    background: rgba(128, 128, 128, 0.1); border-radius: 12px;

}

.feature-title { font-size: 1.1rem; font-weight: 700; margin: 0 0 10px 0; color: var(--text-main); }

.feature-text { font-size: 0.85rem; color: var(--text-sub); line-height: 1.5; }



/* Футер */

.footer { flex-shrink: 0; width: 100%; padding: 10px 0 15px 0; text-align: center; }

.footer-text { font-size: 0.85rem; font-weight: 600; opacity: 0.7; }



/* МОДАЛЬНЫЕ ОКНА (ОБЩЕЕ) */

.modal-overlay {

    position: fixed; top: 0; left: 0; width: 100%; height: 100%;

    background: rgba(0, 0, 0, 0.75); z-index: 1000;

    display: flex; align-items: center; justify-content: center;

    opacity: 0; visibility: hidden; backdrop-filter: blur(0px);

    transition: all 0.4s ease;

}

.modal-overlay.active { opacity: 1; visibility: visible; backdrop-filter: blur(10px); }



.modal-content {

    background: var(--modal-bg);

    width: 440px; padding: 40px; border-radius: 35px; position: relative; 

    box-shadow: 0 30px 60px rgba(0,0,0,0.3);

    border: 1px solid var(--card-border);

    transform: translateY(20px) scale(0.95); 

    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease;

    color: var(--text-main);

}

.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }



.modal-close-x {

    position: absolute; top: 20px; right: 20px;

    background: rgba(128, 128, 128, 0.1); border: 1px solid var(--card-border); 

    color: var(--text-main); width: 34px; height: 34px; border-radius: 50%;

    font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center;

}



/* Стили для инструкции (Как играть) */

.step-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; text-align: left; }

.step-badge {

    background: var(--card-border); color: var(--text-main); width: 42px; height: 42px;

    border-radius: 14px; border: 1px solid var(--card-border); 

    display: flex; align-items: center; justify-content: center; font-weight: 900;

}

.step-title { margin: 0; font-weight: 700; color: var(--text-main); }

.step-desc { margin: 2px 0 0; font-size: 0.9rem; color: var(--text-sub); }

.code-box { background: var(--code-bg); padding: 3px 8px; border-radius: 6px; font-family: monospace; color: var(--text-main); }



/* --- ПРАВИЛА И ПЕРСОНАЛ (ОБЩЕЕ) --- */

.rules-modal {

    max-width: 750px; width: 90%; max-height: 85vh;

    display: flex; flex-direction: column;

}



.rules-scroll-area {

    overflow-y: auto; padding-right: 10px; margin: 20px 0; text-align: left;

}



.rules-scroll-area::-webkit-scrollbar { width: 6px; }

.rules-scroll-area::-webkit-scrollbar-thumb { background: var(--card-border); border-radius: 10px; }



.rules-category {

    background: rgba(128, 128, 128, 0.05);

    border: 1px solid var(--card-border);

    border-radius: 20px; padding: 20px; margin-bottom: 20px;

}



.rules-cat-header {

    font-size: 1.2rem; font-weight: 800; color: var(--text-main);

    margin-bottom: 15px; display: flex; align-items: center; gap: 10px;

}

.rules-cat-header i { color: var(--accent-color); }



.rule-row {

    display: flex; justify-content: space-between; align-items: center;

    padding: 10px 0; border-bottom: 1px solid var(--card-border);

}

.rule-row:last-child { border-bottom: none; }



.rule-txt { font-size: 0.9rem; color: var(--text-sub); max-width: 75%; }



.rule-punish {

    font-size: 0.72rem; font-weight: 900;

    background: rgba(255, 77, 77, 0.15);

    color: var(--danger-color);

    padding: 4px 10px; border-radius: 8px; white-space: nowrap;

}



/* --- СТИЛИ ДЛЯ ПЕРСОНАЛА (ПЛАШКИ) --- */

.staff-role-card {

    padding: 12px 18px;

    border-radius: 12px;

    margin-bottom: 10px;

    font-size: 0.85rem;

    color: #fff;

    line-height: 1.4;

    border: 1px solid rgba(255, 255, 255, 0.05);

}



.staff-role-card strong {

    font-weight: 800;

    text-transform: uppercase;

    margin-right: 5px;

}



/* Цвета плашек ролей */

.role-tech { background: #000000; border-color: rgba(255, 255, 255, 0.1); }

.role-admin { background: #ff4d4d; }

.role-tester { background: #ffef96; color: #111; }

.role-sponsor { background: linear-gradient(135deg, #a855f7, #ec4899); }

.role-player { background: #4b5563; }



/* Оформление ников персонала */

.staff-name {

    font-weight: 800;

    color: var(--text-main);

    background: rgba(128, 128, 128, 0.15);

    padding: 4px 12px;

    border-radius: 8px;

    font-family: monospace;

    font-size: 0.9rem;

}



/* Разное */

.skins-highlight {

    border: 1px solid rgba(0, 160, 255, 0.3);

    box-shadow: inset 0 0 20px rgba(0, 160, 255, 0.05);

}



.info-category { background: rgba(88, 101, 242, 0.05); border-color: rgba(88, 101, 242, 0.2); }

.info-item { font-size: 0.85rem; color: var(--text-sub); margin: 8px 0; font-style: italic; }



/* Медиа-запросы */

@media (max-width: 1050px) { .navbar { min-width: 90%; } }

@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 600px) { 

    .features-grid { grid-template-columns: 1fr; } 

    .modal-content { width: 90%; padding: 20px; }

    .hero-title { font-size: 2.5rem; }

    .rule-row { flex-direction: column; align-items: flex-start; gap: 8px; }

    .navbar { min-width: 95%; padding: 10px 15px; }

}