/* main.css - Глобальные стили и переиспользуемые компоненты */
:root {
    --neon-cyan: #00fff2;
    --neon-pink: #ff00ff;
    --neon-purple: #9d00ff;
    --glass-bg: rgba(20, 20, 30, 0.95); /* Чуть темнее для читаемости */
    --gold: #ffd700;
    --font-main: 'Orbitron', sans-serif;
}

body {
    background-color: #050505;
    margin: 0;
    height: 100vh;
    overflow: hidden; /* Блокируем скролл всей страницы */
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-main);
    color: white;
    user-select: none; /* Запрет выделения текста */
    -webkit-tap-highlight-color: transparent; /* Убирает синий квадрат при клике на мобилках */
}

/* main.css - NEON SPOTLIGHT BACKGROUND */

.bg-ambient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: #050505; /* Черная база */
}

    /* Слой градиента, который мы будем двигать */
    .bg-ambient::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        /* ДВА СЛОЯ:
       1. Радиальный градиент (пятно света), координаты берутся из переменных --x, --y
       2. Линейный градиент (общий темный фон)
    */
        background: radial-gradient( 800px circle at var(--x, 50%) var(--y, 50%), rgba(0, 255, 242, 0.15), /* Неоновый центр (Cyan) */
        rgba(157, 0, 255, 0.05) 40%, /* Фиолетовая аура */
        transparent 80% ), linear-gradient(135deg, #120520 0%, #000000 100%); /* Глубокий фон */

        transition: background 0.1s ease-out; /* Плавность движения */
    }

/* --- ОБЩИЕ КОМПОНЕНТЫ ИНТЕРФЕЙСА --- */

/* Стеклянная панель (используется и в меню, и в играх) */
.glass-panel {
    background: var(--glass-bg);
    border: 3px solid var(--neon-cyan);
    border-radius: 30px;
    box-shadow: 
        0 0 25px var(--neon-cyan),
        0 30px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 40px rgba(0, 255, 242, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
}

/* Логотип */
.logo-text {
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 15px rgba(255,255,255,0.5);
    margin-bottom: 20px;
    cursor: pointer; /* Указываем, что можно кликнуть (для пасхалки) */
}
.logo-accent {
    color: var(--neon-pink);
    text-shadow: 0 0 15px var(--neon-pink);
}

/* Универсальная Неоновая Кнопка */
.btn-neon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    border: none;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
    width: 100%; /* По умолчанию на всю ширину родителя */
    box-sizing: border-box;
}

/* Стиль Primary (Фиолетовый) */
.btn-primary {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 5px 0 #550055, 0 0 20px var(--neon-pink);
}
.btn-primary:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #550055, 0 0 30px var(--neon-pink);
}

/* Стиль Secondary (Серый/Темный) */
.btn-secondary {
    background: linear-gradient(135deg, #333, #555);
    box-shadow: 0 5px 0 #111, 0 0 10px rgba(255,255,255,0.1);
    border: 1px solid #777;
}
.btn-secondary:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* Состояние Disabled */
.btn-neon:disabled {
    filter: grayscale(1) brightness(0.5);
    cursor: not-allowed;
    transform: translateY(5px);
    box-shadow: none;
}

/* --- ГЛАВНОЕ МЕНЮ (index.html) --- */
.menu-wrapper {
    width: 90%;
    max-width: 400px;
}
.menu-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}