:root {
    /* Dark Red Neon Cyberpunk Stalker Theme */
    --primary: #CC0000; /* Bright red */
    --primary-dark: #800000; /* Dark red */
    --primary-light: #FF3333; /* Light red */
    --accent-1: #FF0040; /* Neon pink-red */
    --accent-2: #990000; /* Deep red */
    --secondary: #330000; /* Very dark red */
    --neon-red: #FF0000; /* Pure neon red */
    --neon-glow: #FF6666; /* Red glow */
    
    /* Base colors */
    --dark: #0A0A0A; /* Almost black */
    --darker: #050505; /* Darker black */
    --light: #E0E0E0; /* Off-white */
    --gray: #1A0000; /* Dark red-tinted gray */
    --light-gray: #666666;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent-1) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-2) 0%, var(--secondary) 100%);
    --card-shadow: 0 10px 20px rgba(204, 0, 0, 0.3);
    --hover-transform: translateY(-5px);
    
    /* Background */
    --bg: #000000; /* Pure black */
    --bg-pattern: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23CC0000' opacity='0.15' x='0' y='0'/%3E%3Crect width='1' height='1' fill='%23FF0040' opacity='0.1' x='4' y='4'/%3E%3Crect width='1' height='1' fill='%23990000' opacity='0.12' x='8' y='8'/%3E%3Crect width='1' height='1' fill='%23800000' opacity='0.08' x='12' y='12'/%3E%3Crect width='1' height='1' fill='%23CC0000' opacity='0.1' x='2' y='6'/%3E%3Crect width='1' height='1' fill='%23FF0040' opacity='0.08' x='6' y='10'/%3E%3Crect width='1' height='1' fill='%23990000' opacity='0.1' x='10' y='14'/%3E%3Crect width='1' height='1' fill='%23800000' opacity='0.12' x='14' y='2'/%3E%3Crect width='1' height='1' fill='%23CC0000' opacity='0.08' x='1' y='3'/%3E%3Crect width='1' height='1' fill='%23FF0040' opacity='0.1' x='5' y='7'/%3E%3Crect width='1' height='1' fill='%23990000' opacity='0.08' x='9' y='11'/%3E%3Crect width='1' height='1' fill='%23800000' opacity='0.1' x='13' y='15'/%3E%3Crect width='1' height='1' fill='%23CC0000' opacity='0.1' x='3' y='1'/%3E%3Crect width='1' height='1' fill='%23FF0040' opacity='0.08' x='7' y='5'/%3E%3Crect width='1' height='1' fill='%23990000' opacity='0.1' x='11' y='9'/%3E%3Crect width='1' height='1' fill='%23800000' opacity='0.08' x='15' y='13'/%3E%3C/svg%3E");
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg);
    color: var(--light);
    overflow-x: hidden;
    /* Local image positioned to the right */
    background-image: 
        url('../image/Frame 148.png'),
        var(--bg-pattern);
    background-size: 
        cover, 
        16px 16px;
    background-position: 
        right center, 
        top left;
    background-repeat: 
        no-repeat, 
        repeat;
    background-attachment: 
        fixed, 
        scroll;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay to maintain readability and blend images */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 1;
}

/* Additional grid overlay with reduced opacity */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(204, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(204, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.2;
}

/* More pixel decorations */
.pixel-decoration {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
    animation: pixelFloat 4s ease-in-out infinite;
    z-index: 3;
}

.pixel-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.pixel-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.pixel-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.pixel-4 {
    bottom: 15%;
    right: 25%;
    animation-delay: 3s;
}

.pixel-5 {
    top: 40%;
    left: 5%;
    animation-delay: 0.5s;
}

.pixel-6 {
    top: 70%;
    right: 10%;
    animation-delay: 1.5s;
}

.pixel-7 {
    top: 15%;
    left: 50%;
    animation-delay: 2.5s;
}

.pixel-8 {
    bottom: 40%;
    right: 40%;
    animation-delay: 3.5s;
}

.pixel-9 {
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.pixel-10 {
    top: 5%;
    right: 50%;
    animation-delay: 4.5s;
}

@keyframes pixelFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.8;
    }
}

/* Stalker pixel decorations */
.stalker-pixel {
    position: fixed;
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary));
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    box-shadow: 0 0 10px var(--neon-red);
    animation: stalkerGlow 3s ease-in-out infinite alternate;
    z-index: 3;
}

.stalker-1 {
    top: 25%;
    left: 5%;
}

.stalker-2 {
    top: 60%;
    right: 8%;
}

.stalker-3 {
    bottom: 20%;
    left: 15%;
}

.stalker-4 {
    top: 45%;
    right: 30%;
}

@keyframes stalkerGlow {
    0% {
        box-shadow: 0 0 10px var(--neon-red), 0 0 15px var(--primary);
        filter: brightness(1);
    }
    100% {
        box-shadow: 0 0 15px var(--neon-red), 0 0 20px var(--primary), 0 0 25px var(--accent-1);
        filter: brightness(1.2);
    }
}

/* Надпись ТОЛЬКО для компьютера */
.desktop-subtitle {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 20;
    font-size: 35px;
    color: var(--accent-1);
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.8;
    /* Добавляем такое же свечение как у WELCOME */
    background: linear-gradient(45deg, var(--neon-red), var(--accent-1), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(204, 0, 0, 0.2);
    margin-top: 120px; /* Сдвигаем контейнер ниже ТОЛЬКО для десктопа */
}

/* В мобильной версии скрываем десктопную надпись и возвращаем обычный отступ */
@media (max-width: 768px) {
    .desktop-subtitle {
        display: none; /* Скрываем десктопную надпись в мобильной версии */
    }
    
    .container {
        margin-top: 60px; /* Возвращаем обычный отступ для мобильной версии */
    }
    
    /* Остальные мобильные стили остаются БЕЗ ИЗМЕНЕНИЙ */
}

/* Main title with reduced glow */
.main-title {
    font-size: 48px;
    margin-bottom: 60px;
    background: linear-gradient(45deg, var(--neon-red), var(--accent-1), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 4px;
    line-height: 1.1;  /* Расстояние между строками внутри элемента */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;  /* Основное расстояние между строками WELCOME TO и YAP CLUB */
    /* Добавляем свечение */
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8), 0 0 30px rgba(255, 0, 0, 0.4);
}

.title-line-1,
.title-line-2 {
    display: block;
    background: linear-gradient(45deg, var(--neon-red), var(--accent-1), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Connect button with reduced glow */
.connect-btn {
    font-family: 'Press Start 2P', cursive;
    background: linear-gradient(45deg, var(--primary), var(--accent-1));
    border: 2px solid var(--neon-red);
    color: #fe7c01; /* Обновлен цвет на новый оранжевый */
    padding: 20px 40px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 0;
    box-shadow: 
        0 0 6px var(--neon-red),
        0 0 12px var(--primary),
        inset 0 0 8px rgba(204, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    min-width: 200px;
}

.connect-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 10px var(--neon-red), /* Уменьшено с 15px до 10px */
        0 0 18px var(--primary), /* Уменьшено с 25px до 18px */
        0 0 25px var(--accent-1), /* Уменьшено с 35px до 25px */
        inset 0 0 12px rgba(204, 0, 0, 0.2); /* Уменьшено с 15px до 12px */
    background: linear-gradient(45deg, var(--accent-1), var(--neon-red));
    border-color: var(--primary-light);
}

.connect-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 0 5px var(--neon-red), /* Уменьшено с 8px до 5px */
        0 0 10px var(--primary), /* Уменьшено с 15px до 10px */
        inset 0 0 8px rgba(204, 0, 0, 0.3); /* Уменьшено с 10px до 8px */
}

/* Мобильная надпись - скрыта по умолчанию */
.mobile-subtitle {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        /* Сдвинута картинка чуть правее для лучшей видимости YAP CLUB */
        background-image: 
            url('../image/mobile.png'),
            var(--bg-pattern);
        background-position: 
            35% center, 
            top left;
    }
    
    /* Показываем мобильную надпись в самом верху экрана - ПРОСТОЙ ТЕКСТ */
    .mobile-subtitle {
        display: block;
        position: fixed;
        top: 20px;
        left: 0;
        right: 0;
        z-index: 20;
        font-size: 14px;
        color: var(--accent-1);
        text-align: center;
        letter-spacing: 3px;
        text-transform: uppercase;
        font-weight: bold;
        /* Убрали все фоны, рамки и эффекты */
    }
    
    .main-title {
        font-size: 32px;
        letter-spacing: 2px;
        gap: 15px;
    }
    
    .connect-btn {
        font-size: 14px;
        padding: 15px 30px;
        letter-spacing: 1px;
    }
    
    .container {
        padding: 20px 15px;
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    body {
        background-image: 
            url('../image/mobile.png'),
            var(--bg-pattern);
        background-position: 
            85% center,
            top left;
    }
    
    /* Простой текст для маленьких экранов */
    .mobile-subtitle {
        font-size: 25px;
        letter-spacing: 2px;
        top: 40px;
        font-weight: bold;
        line-height: 1.8; /* Увеличиваем расстояние между строчками */
        /* Никаких контейнеров, фонов или рамок */
    }
    
    .main-title {
        font-size: 24px;
        letter-spacing: 1px;
        gap: 10px;
    }
    
    .connect-btn {
        font-size: 12px;
        padding: 12px 25px;
    }
    
    .container {
        margin-top: 50px;
    }
}