:root {
    --primary-bg: linear-gradient(135deg, #0a0a0f 0%, #1a0a1f 25%, #0f1a2a 50%, #1a0f2a 75%, #0a0a1f 100%);
    --secondary-bg: #0f1419;
    --sidebar-bg: #0f1419;
    --card-bg: rgba(20, 25, 35, 0.8);
    --card-bg-hover: rgba(25, 35, 50, 0.9);
    --accent-primary: #00d4ff;
    --accent-secondary: #ff6b35;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-green: #22c55e;
    --accent-gold: #fbbf24;
    --accent-red: #ef4444;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --border-color: rgba(45, 55, 75, 0.6);
    --border-accent: rgba(0, 212, 255, 0.3);
    --glow-primary: 0 0 20px rgba(0, 212, 255, 0.4);
    --glow-secondary: 0 0 15px rgba(255, 107, 53, 0.3);
    --shadow-primary: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --sidebar-width: 280px;
    --glass-bg: rgba(15, 20, 25, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: var(--primary-bg);
    -webkit-background-size: cover;
    background-size: cover;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    z-index: -1;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 212, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    animation: cosmicPulse 8s ease-in-out infinite alternate;
}
@keyframes cosmicPulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.3s ease;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(0, 212, 255, 0.05) 0%, 
        rgba(255, 107, 53, 0.02) 50%, 
        rgba(168, 85, 247, 0.05) 100%);
    z-index: -1;
}
.header-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    width: 100%;
    position: relative;
}
.logo {
    min-width: 240px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    z-index: 10;
}
.logo span {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.search-container {
    position: absolute;
    left: calc(var(--sidebar-width) + 2rem);
    right: calc(var(--sidebar-width) + 2rem);
    top: 50%;
    transform: translateY(-50%);
}
.search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}
.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}
.content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-right: var(--sidebar-width);
    padding: 3rem 2rem 2rem 2rem;
}
.game-container-release {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 2.5rem;
}
.screenshots-left, .screenshots-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 120px;
    max-width: 280px;
    gap: 1rem;
}
.game-icon-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.game-icon {
    border-radius: 25px;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.play-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    color: white;
    padding: 1.1rem 3rem;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    border: none;
    cursor: pointer;
    margin-top: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,212,255,0.15);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}
.screenshots-left, .screenshots-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}
.description {
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    margin-top: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}
.screenshots-container {
    display: none;
}
@media (max-width: 768px) {
    .game-container-release {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    .game-icon {
        width: 200px !important;
        height: 200px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.3), 0 0 15px rgba(0,212,255,0.2) !important;
    }
    .game-icon:hover {
        box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 20px rgba(0,212,255,0.3) !important;
    }
    .icon-container {
        margin-top: 20px !important;
    }
    .screenshots-container {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.5rem 0;
        scrollbar-width: none;
        margin: 1rem 0 !important;
        order: 3 !important;
    }
    .screenshots-container::-webkit-scrollbar {
        display: none;
    }
    .screenshot-carousel {
        display: inline-block;
        margin-right: 1rem;
    }
    .screenshot {
        height: auto;
        width: auto;
        max-width: 48%;
        max-height: 180px;
        margin: 0 auto 1rem !important;
        object-fit: cover;
        border-radius: 12px;
        border: 2px solid rgba(255,255,255,0.2);
        background: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        cursor: pointer;
    }
    .screenshots-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
        padding: 0.5rem 0 !important;
        max-width: 100% !important;
        overflow: visible !important;
    }
    .screenshot-carousel {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .screenshots-left, .screenshots-right {
        display: none !important;
    }
    .play-button {
        margin-bottom: 1.5rem !important;
    }
    .content {
        padding: 1.5rem 1rem !important;
        margin: 1.5rem auto !important;
    }
}
    /* Мобильная адаптация header и header-container */
    @media (max-width: 768px) {
        .header-container {
            flex-direction: column;
            gap: 1rem;
            padding: 0 1rem;
            position: relative;
        }
        .header-container .logo {
            order: 1;
        }
        .header-container .search-container {
            order: 3;
            position: static;
            left: auto;
            right: auto;
            top: auto;
            transform: none;
            width: 100%;
            }
                .search-container form {
                    position: relative;
        }
        .game-title-release {
            position: static;
            margin: 0 0 0 20vw;
            align-self: center;
            display: block;
            text-align: center;
            width: 100%;
            right: auto;
            top: auto;
            transform: none;
            order: 2;
        }
            .search-btn {
                    position: absolute;
                    right: 0.5rem;
                    top: 50%;
                    transform: translateY(-50%);
                    margin-left: 0;
                    margin-top: 0;
                    display: block;
            }
    }
@media (min-width: 769px) {
    .game-icon {
        width: 320px !important;
        height: 320px !important;
    }
    .screenshot {
        max-width: 250px;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        border: 2px solid rgba(255,255,255,0.2);
        background: #222;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
        margin-bottom: 1.2rem;
    }
}
.game-title-release {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    z-index: 10;
}

@media (max-width: 768px) {
    .game-title-release {
        position: static;
    margin: 0 0 0 20vw;
        align-self: center;
        display: block;
        text-align: center;
        width: 100%;
        right: auto;
        top: auto;
        transform: none;
        order: 2;
    }

    .header-container .logo {
        order: 1;
    }
    .header-container .search-container {
        order: 3;
    }
}