@font-face {
    font-family: 'MullerBold';
    src: url('fonts/mullerbold.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(180deg, rgba(6, 7, 10, 0.4) 0%, rgba(6, 7, 10, 0.85) 50%, #06070a 100%), 
                url('images/main.png') no-repeat center top / cover fixed;
    color: #fff;
    font-family: 'MullerBold', sans-serif;
    text-transform: uppercase;
    overflow-x: hidden;
}

/* ШАПКА */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(6, 7, 10, 0.4);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.header-logo {
    display: flex;
    z-index: 1100; /* Чтобы логотип всегда был поверх выезжающего меню */
}
.header-logo a { display: inline-block; }

.header-buttons {
    display: flex;
    align-items: center;
    z-index: 1100;
}

/* МОБИЛЬНЫЙ БУРГЕР */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    width: 30px;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* Анимация превращения бургера в красный крестик */
.hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: #ff0000; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: #ff0000; }

/* МОБИЛЬНОЕ ВЫЕЗЖАЮЩЕЕ МЕНЮ */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Изначально спрятано справа за экраном */
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: rgba(6, 7, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 2px solid #ff0000;
    box-shadow: -10px 0 30px rgba(255, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: right 0.4s cubic-bezier(0.85, 0, 0.15, 1);
    z-index: 1000;
}

/* Класс активации меню */
.mobile-nav.active {
    right: 0;
}

/* Плавное появление содержимого меню */
.mobile-nav .btn-blue {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition-delay: 0.2s; /* Небольшая задержка для ебейшего эффекта */
}

.mobile-nav.active .btn-blue {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* КНОПКА ТЕЛЕГРАМ */
.btn-blue {
    background: #179cde;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
    letter-spacing: 1px;
    transition: box-shadow 0.2s ease-in-out;
}
.btn-blue:hover { box-shadow: 0 0 15px #179cde; }

/* ОПТИМИЗИРОВАННАЯ НЕОНОВАЯ КНОПКА НАЧАТЬ ИГРАТЬ */
.btn-neon-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
}
.btn-neon {
    display: block;
    padding: 18px 50px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    background: #000;
    border: 2px solid #ff0000;
    cursor: pointer;
    letter-spacing: 1px;
}
.btn-neon-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: transparent;
    border-radius: 8px;
    box-shadow: 0 0 20px #ff0033;
    z-index: -1;
    will-change: opacity;
    animation: fast-glow 1.5s infinite ease-in-out alternate;
}
@keyframes fast-glow {
    0% { opacity: 0.5; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1.02); box-shadow: 0 0 35px #ff0000; }
}

/* HERO ГЛАВНЫЙ БЛОК */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.hero h1 {
    font-size: 55px;
    letter-spacing: 2px;
    margin-bottom: 35px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

/* МОДАЛЬНОЕ ОКНО (ПЛАШКА) */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    will-change: opacity, visibility;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: rgba(15, 18, 26, 0.9);
    border: 2px solid #ff0000;
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.3);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    max-width: 650px;
    width: 90%;
    transform: scale(0.7) translateY(-50px);
    will-change: transform;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-close {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: #ff0000; transform: scale(1.1); }

.modal-text {
    font-size: 32px;
    letter-spacing: 2px;
    line-height: 1.4;
    background: linear-gradient(90deg, #ff0000, #ff5500, #ff0055, #ff0000);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3s linear infinite;
}

@keyframes text-shine {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* ВЫБЕРИ СВОЙ ПУТЬ */
.paths-section { padding: 80px 5%; text-align: center; }
.paths-section h2 { font-size: 36px; margin-bottom: 60px; letter-spacing: 2px; }
.paths-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.path-img { max-width: 45%; height: auto; object-fit: contain; border-radius: 10px; transition: transform 0.3s; }
.path-img:hover { transform: scale(1.03); }

/* БЛОКИ «КАК СКАЧАТЬ ИГРУ» */
.download-section { padding: 100px 5%; text-align: center; }
.download-section h2 { font-size: 36px; margin-bottom: 60px; letter-spacing: 2px; }
.steps-container { display: flex; justify-content: center; gap: 40px; margin-bottom: 60px; flex-wrap: wrap; }
.step-item {
    background: rgba(15, 18, 26, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 12px;
    width: 320px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s, transform 0.3s;
    text-align: left;
}
.step-item:hover { border-color: rgba(255, 0, 0, 0.6); transform: translateY(-5px); }
.step-num { font-size: 48px; color: #ff0000; display: block; margin-bottom: 15px; text-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
.step-item p { font-size: 15px; line-height: 1.5; color: #e0e0e0; }
.dev-status { font-size: 20px; color: #aaaaaa; margin-bottom: 25px; letter-spacing: 1px; }

/* ФУТЕР */
.silver-line { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, #c0c0c0, transparent); margin-top: 80px; }
.footer { padding: 40px 5% 60px; }
.footer-container { display: flex; justify-content: space-between; align-items: center; }
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-left span { font-size: 14px; color: #555; }
.footer-right { display: flex; align-items: center; }

/* --- ЕБЕЙШИЙ АДАПТИВ ПОД ТЕЛЕФОНЫ --- */
@media (max-width: 992px) {
    .hamburger { display: flex; } /* Показываем бургер на мобилках */
    
    .header-buttons { display: none; } /* Скрываем кнопку из обычной шапки */

    .hero h1 { font-size: 32px; }
    .paths-container { flex-direction: column; gap: 40px; }
    .path-img { max-width: 90%; }
    .footer-container { flex-direction: column; gap: 20px; text-align: center; }

    /* Оптимизация плашки под мобилки */
    .modal-content { padding: 50px 20px; width: 95%; }
    .modal-text { font-size: 22px; letter-spacing: 1px; }
    .modal-close { top: 15px; right: 20px; font-size: 36px; }
}