/* ===== БАЗОВЫЕ СТИЛИ ===== */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-window: #1a1a1a;
    --border: #333;
    --text: #e0e0e0;
    --text-dim: #888;
    --accent: #fff;
    --purple: #9b59b6;
    --pink: #e91e8c;
    --blue: #3498db;
    --green: #2ecc71;
    --red: #e74c3c;
    --orange: #f39c12;
    --title-bg: linear-gradient(90deg, #2a2a2a, #3a3a3a, #2a2a2a);
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a1a 50%, #0a0a0a 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: 'VT323', monospace;
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    cursor: crosshair;
    overflow-x: hidden;
    position: relative;
}

/* ===== ЗВЁЗДЫ С БОЛЬШЕЙ ГЛУБИНОЙ ===== */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow:
        100px 50px 0 rgba(255,255,255,0.3),
        300px 150px 0 rgba(255,255,255,0.5),
        500px 80px 0 rgba(255,255,255,0.2),
        700px 200px 0 rgba(255,255,255,0.4),
        200px 300px 0 rgba(255,255,255,0.3),
        400px 400px 0 rgba(255,255,255,0.5),
        600px 350px 0 rgba(255,255,255,0.2),
        800px 100px 0 rgba(255,255,255,0.4),
        150px 500px 0 rgba(255,255,255,0.3),
        350px 550px 0 rgba(255,255,255,0.5),
        550px 480px 0 rgba(255,255,255,0.2),
        750px 420px 0 rgba(255,255,255,0.4),
        50px 650px 0 rgba(255,255,255,0.3),
        250px 700px 0 rgba(255,255,255,0.5),
        450px 630px 0 rgba(255,255,255,0.2),
        650px 580px 0 rgba(255,255,255,0.4),
        900px 300px 0 rgba(255,255,255,0.3),
        1000px 150px 0 rgba(255,255,255,0.5),
        1100px 400px 0 rgba(255,255,255,0.2),
        1200px 250px 0 rgba(255,255,255,0.4);
    animation: twinkle 4s ease-in-out infinite alternate;
}

.stars::after {
    animation-delay: 2s;
    box-shadow:
        120px 70px 0 rgba(255,255,255,0.4),
        320px 170px 0 rgba(255,255,255,0.2),
        520px 100px 0 rgba(255,255,255,0.5),
        720px 220px 0 rgba(255,255,255,0.3),
        220px 320px 0 rgba(255,255,255,0.4),
        420px 420px 0 rgba(255,255,255,0.2),
        620px 370px 0 rgba(255,255,255,0.5),
        820px 120px 0 rgba(255,255,255,0.3),
        170px 520px 0 rgba(255,255,255,0.4),
        370px 570px 0 rgba(255,255,255,0.2),
        570px 500px 0 rgba(255,255,255,0.5),
        770px 440px 0 rgba(255,255,255,0.3),
        70px 670px 0 rgba(255,255,255,0.4),
        270px 720px 0 rgba(255,255,255,0.2),
        470px 650px 0 rgba(255,255,255,0.5),
        670px 600px 0 rgba(255,255,255,0.3),
        920px 320px 0 rgba(255,255,255,0.4),
        1020px 170px 0 rgba(255,255,255,0.2),
        1120px 420px 0 rgba(255,255,255,0.5),
        1220px 270px 0 rgba(255,255,255,0.3);
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ===== ОБЛАКА С БОЛЬШЕЙ ДИНАМИКОЙ ===== */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cloud {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
    font-family: 'VT323', monospace;
    font-size: 28px;
    white-space: nowrap;
    animation: float-cloud linear infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.cloud:nth-child(1) { top: 10%; animation-duration: 45s; animation-delay: 0s; }
.cloud:nth-child(2) { top: 25%; animation-duration: 50s; animation-delay: -10s; }
.cloud:nth-child(3) { top: 40%; animation-duration: 55s; animation-delay: -20s; }
.cloud:nth-child(4) { top: 55%; animation-duration: 60s; animation-delay: -30s; }
.cloud:nth-child(5) { top: 70%; animation-duration: 50s; animation-delay: -15s; }
.cloud:nth-child(6) { top: 85%; animation-duration: 45s; animation-delay: -25s; }
.cloud:nth-child(7) { top: 15%; animation-duration: 65s; animation-delay: -35s; }
.cloud:nth-child(8) { top: 45%; animation-duration: 70s; animation-delay: -40s; }
.cloud:nth-child(9) { top: 65%; animation-duration: 55s; animation-delay: -45s; }
.cloud:nth-child(10) { top: 80%; animation-duration: 60s; animation-delay: -50s; }

@keyframes float-cloud {
    0% { transform: translateX(-300px) rotate(0deg); }
    50% { transform: translateX(calc(50vw + 150px)) rotate(2deg); }
    100% { transform: translateX(calc(100vw + 300px)) rotate(0deg); }
}

/* ===== КОНТЕЙНЕР С ТЕНЬЮ ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===== БАННЕР С УЛУЧШЕННЫМ СВЕЧЕНИЕМ ===== */
.banner {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(26,26,26,0.95), rgba(42,26,42,0.95));
    border: 2px solid var(--purple);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(155, 89, 182, 0.3),
        inset 0 0 30px rgba(155, 89, 182, 0.1);
    transition: all 0.3s ease;
}

.banner:hover {
    box-shadow: 
        0 0 50px rgba(155, 89, 182, 0.5),
        inset 0 0 40px rgba(155, 89, 182, 0.2);
    border-color: var(--pink);
}

.banner h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--accent);
    text-shadow: 
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px rgba(155, 89, 182, 0.8),
        0 0 30px rgba(233, 30, 140, 0.6);
    margin-bottom: 10px;
    letter-spacing: 2px;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from {
        text-shadow: 
            0 0 10px rgba(255,255,255,0.8),
            0 0 20px rgba(155, 89, 182, 0.8),
            0 0 30px rgba(233, 30, 140, 0.6);
    }
    to {
        text-shadow: 
            0 0 20px rgba(255,255,255,1),
            0 0 30px rgba(155, 89, 182, 1),
            0 0 40px rgba(233, 30, 140, 0.9),
            0 0 50px rgba(155, 89, 182, 0.7);
    }
}

.banner .subtitle {
    font-size: 20px;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.banner .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.banner-with-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.banner-text {
    text-align: left;
}

/* ===== БЕГУЩАЯ СТРОКА С УЛУЧШЕНИЯМИ ===== */
.marquee {
    background: linear-gradient(90deg, rgba(26,26,26,0.95), rgba(42,26,42,0.95));
    border: 2px solid var(--purple);
    padding: 10px 0;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
    font-size: 18px;
    color: var(--purple);
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== ОКНА С УЛУЧШЕННЫМИ ЭФФЕКТАМИ ===== */
.window {
    background: linear-gradient(135deg, rgba(26,26,26,0.95), rgba(30,26,30,0.95));
    border: 2px solid var(--border);
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 
        4px 4px 0 rgba(0,0,0,0.5),
        0 0 20px rgba(155, 89, 182, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.window:hover {
    box-shadow: 
        6px 6px 0 rgba(0,0,0,0.6),
        0 0 30px rgba(155, 89, 182, 0.3);
    border-color: var(--purple);
}

.window-title {
    background: var(--title-bg);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--text);
    letter-spacing: 1px;
}

.window-buttons {
    display: flex;
    gap: 5px;
}

.window-buttons span {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 14px;
    text-align: center;
    background: #333;
    border: 1px solid #555;
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.window-buttons span:hover {
    background: #666;
    transform: scale(1.1);
}

.window-buttons span:first-child:hover {
    background: #f39c12 !important;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.6);
}

.window-buttons span:last-child:hover {
    background: #e74c3c !important;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}

.window-content {
    padding: 20px;
}

/* ===== ИНТЕРАКТИВНЫЕ КНОПКИ ОКОН ===== */
.window-title span,
.window-buttons span {
    cursor: pointer;
    user-select: none;
}

.window.minimized .window-content {
    max-height: 0 !important;
    padding: 0 20px !important;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.window.minimized {
    margin-bottom: 10px;
}

.window.minimized .window-title {
    background: linear-gradient(90deg, #1a1a1a, #2a2a2a) !important;
    border-bottom-color: var(--purple);
}

.window:not(.minimized) .window-content {
    max-height: 10000px;
    padding: 20px;
    opacity: 1;
    transition: all 0.4s ease;
}

.window.closing {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.window.closed {
    display: none !important;
}

/* ===== КРАСИВАЯ НАВИГАЦИЯ С ГРАДИЕНТАМИ ===== */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(233, 30, 140, 0.1));
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.3), transparent);
    transition: left 0.5s ease;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25), rgba(233, 30, 140, 0.25));
    border-color: var(--purple);
    color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 
        0 5px 15px rgba(155, 89, 182, 0.4),
        0 0 20px rgba(233, 30, 140, 0.3);
}

.main-nav a.active {
    border-color: var(--pink);
    box-shadow: 
        0 5px 20px rgba(155, 89, 182, 0.5),
        0 0 30px rgba(233, 30, 140, 0.4);
}

.main-nav a i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.main-nav a:hover i {
    transform: scale(1.2) rotate(5deg);
}

.main-nav a:hover .fa-home { color: #e74c3c; }
.main-nav a:hover .fa-user { color: #3498db; }
.main-nav a:hover .fa-palette { color: #f39c12; }
.main-nav a:hover .fa-twitch { color: #9146ff; }
.main-nav a:hover .fa-telegram { color: #0088cc; }
.main-nav a:hover .fa-discord { color: #5865f2; }

/* ===== СТАТУС С УЛУЧШЕННЫМ СВЕЧЕНИЕМ ===== */
.status-box {
    text-align: center;
    padding: 20px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: 2px solid var(--border);
    background: rgba(0,0,0,0.3);
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.status-indicator:hover {
    transform: scale(1.05);
}

.status-indicator.online {
    border-color: var(--green);
    background: rgba(46, 204, 113, 0.15);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.4);
}

.status-indicator.offline {
    border-color: var(--red);
    background: rgba(231, 76, 60, 0.15);
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.4);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.online .status-dot {
    background: var(--green);
    box-shadow: 0 0 15px var(--green);
}

.offline .status-dot {
    background: var(--red);
    box-shadow: 0 0 15px var(--red);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.status-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    letter-spacing: 2px;
}

.online .status-text {
    color: var(--green);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.offline .status-text {
    color: var(--red);
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.8);
}

.status-note {
    color: var(--text-dim);
    font-size: 16px;
}

/* ===== ССЫЛКИ С УЛУЧШЕННЫМИ ЭФФЕКТАМИ ===== */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(233, 30, 140, 0.1));
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    border-radius: 5px;
}

.link-btn:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25), rgba(233, 30, 140, 0.2));
    border-color: var(--purple);
    transform: translateX(5px);
    box-shadow: 
        -3px 0 0 var(--purple),
        0 0 20px rgba(155, 89, 182, 0.3);
}

.link-btn .icon {
    font-size: 22px;
}

/* ===== ДОНАТ С УСИЛЕННЫМ ЭФФЕКТОМ ===== */
.donate-box {
    text-align: center;
    padding: 20px;
}

.donate-box p {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text);
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: white;
    text-decoration: none;
    border: 2px solid var(--purple);
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(155, 89, 182, 0.4);
}

.donate-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 30px rgba(155, 89, 182, 0.6),
        0 0 40px rgba(233, 30, 140, 0.5);
}

.donate-icon {
    font-size: 24px;
}

/* ===== ASCII-АРТ ===== */
.ascii-art {
    text-align: center;
    color: var(--purple);
    font-size: 16px;
    line-height: 1.4;
    overflow-x: auto;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

/* ===== ГАЛЕРЕЯ - ИСПРАВЛЕНО НА 3 КОЛОНКИ ===== */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    background: rgba(255,255,255,0.03);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    line-height: 0;
    vertical-align: top;
    border-radius: 5px;
}

.gallery-item.manual {
    border-left: 4px solid var(--blue);
}

.gallery-item.ai {
    border-left: 4px solid var(--pink);
}

.gallery-item.concept {
    border-left: 4px solid var(--orange);
}

.gallery-item:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 30px rgba(155, 89, 182, 0.5),
        0 0 20px rgba(233, 30, 140, 0.3);
}

.gallery-item.concept:hover {
    border-color: var(--orange);
    box-shadow: 
        0 10px 30px rgba(243, 156, 18, 0.5),
        0 0 20px rgba(243, 156, 18, 0.3);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox с улучшениями */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid var(--purple);
    box-shadow: 
        0 0 50px rgba(155, 89, 182, 0.8),
        0 0 100px rgba(233, 30, 140, 0.5);
    border-radius: 10px;
    animation: lightbox-zoom 0.3s ease;
}

@keyframes lightbox-zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.8);
}

.lightbox .close:hover {
    transform: scale(1.2) rotate(90deg);
    color: var(--pink);
}

/* ===== СТРАНИЦА "ОБО МНЕ" ===== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.game-card {
    text-align: center;
    padding: 20px 10px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(233, 30, 140, 0.1));
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.game-card:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(233, 30, 140, 0.2));
    border-color: var(--purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
}

.game-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.game-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--accent);
    margin-bottom: 5px;
}

.game-desc {
    font-size: 14px;
    color: var(--text-dim);
}

.dream-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(233, 30, 140, 0.15));
    border: 2px dashed var(--purple);
    font-size: 20px;
    color: var(--purple);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.social-card {
    display: block;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(233, 30, 140, 0.1));
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.social-card:hover {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25), rgba(233, 30, 140, 0.2));
    border-color: var(--purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(155, 89, 182, 0.3);
}

.social-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.social-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--accent);
    margin-bottom: 8px;
}

.social-link {
    font-size: 14px;
    color: var(--text-dim);
}

/* ===== КЛАДБИЩЕ ===== */
.graveyard {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

.grass {
    color: rgba(255,255,255,0.15);
    font-size: 20px;
    letter-spacing: 5px;
    animation: sway 2s ease-in-out infinite alternate;
    text-shadow: 0 0 10px rgba(255,255,255,0.1);
}

@keyframes sway {
    0% { transform: rotate(-2deg); }
    100% { transform: rotate(2deg); }
}

/* ===== ОБЩИЕ ССЫЛКИ ===== */
a {
    color: var(--purple);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

strong {
    color: var(--accent);
}

p {
    margin-bottom: 10px;
}

/* ===== ИКОНКИ ===== */
nav a i,
.game-icon i,
.social-icon i,
.link-btn i {
    margin-right: 5px;
    font-size: 1.1em;
}

.game-icon i,
.social-icon i {
    font-size: 2.5em;
    margin-right: 0;
    margin-bottom: 10px;
    display: block;
}

.game-icon i,
.social-icon i {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== БЛЁСТКИ КУРСОРА ===== */
.cursor-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    animation: sparkleAnim 1s ease-out forwards;
}

@keyframes sparkleAnim {
    0% { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: scale(0) translateY(-30px) rotate(180deg); }
}

/* ===== ПАСХАЛКА ===== */
.easter-egg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(5px);
}

.easter-egg-content {
    text-align: center;
    color: var(--purple);
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    animation: pulse 1s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(155, 89, 182, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    from { transform: scale(1); text-shadow: 0 0 10px var(--purple); }
    to { transform: scale(1.1); text-shadow: 0 0 40px var(--purple), 0 0 60px var(--pink); }
}

/* ===== РАДУЖНЫЕ ЗАГОЛОВКИ ===== */
@keyframes rainbow {
    0% { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
    14% { color: #ff7f00; text-shadow: 0 0 10px rgba(255, 127, 0, 0.6); }
    28% { color: #ffff00; text-shadow: 0 0 10px rgba(255, 255, 0, 0.6); }
    42% { color: #00ff00; text-shadow: 0 0 10px rgba(0, 255, 0, 0.6); }
    57% { color: #0000ff; text-shadow: 0 0 10px rgba(0, 0, 255, 0.6); }
    71% { color: #4b0082; text-shadow: 0 0 10px rgba(75, 0, 130, 0.6); }
    85% { color: #9400d3; text-shadow: 0 0 10px rgba(148, 0, 211, 0.6); }
    100% { color: #ff0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.6); }
}

.window-title.rainbow span {
    animation: rainbow 8s linear infinite;
    display: inline-block;
}

/* ===== КНОПКА "ПОКАЗАТЬ ВСЁ" С УЛУЧШЕНИЯМИ ===== */
.restore-all-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: none;
    font-size: 36px;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s ease;
    opacity: 0.4;
    filter: grayscale(100%);
    border-radius: 50%;
}

.restore-all-btn:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.3) rotate(15deg);
    text-shadow: 
        0 0 20px rgba(155, 89, 182, 1),
        0 0 40px rgba(233, 30, 140, 0.8),
        0 0 60px rgba(155, 89, 182, 0.6);
}

.restore-all-btn.has-closed {
    opacity: 1;
    filter: grayscale(0%);
    animation: pulse-glow-bright 1.5s ease-in-out infinite;
}

@keyframes pulse-glow-bright {
    0%, 100% {
        text-shadow: 
            0 0 15px rgba(155, 89, 182, 1),
            0 0 30px rgba(233, 30, 140, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 25px rgba(155, 89, 182, 1),
            0 0 50px rgba(233, 30, 140, 1),
            0 0 75px rgba(155, 89, 182, 0.9),
            0 0 100px rgba(233, 30, 140, 0.7);
        transform: scale(1.15);
    }
}

/* ===== АВАТАРКА С RGB GLITCH ===== */
.avatar-glitch {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--purple);
    box-shadow: 
        0 0 20px rgba(155, 89, 182, 0.5),
        inset 0 0 20px rgba(155, 89, 182, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.avatar-glitch:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(155, 89, 182, 0.8),
        0 0 60px rgba(233, 30, 140, 0.6),
        inset 0 0 30px rgba(155, 89, 182, 0.4);
}

.avatar-glitch img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-base {
    z-index: 1;
    opacity: 0.7;
}

.avatar-r,
.avatar-g,
.avatar-b {
    z-index: 2;
    mix-blend-mode: screen;
    opacity: 0.8;
}

.avatar-r {
    filter: url(#red-filter);
    animation: rgb-r-constant 3s ease-in-out infinite;
}

.avatar-g {
    filter: url(#green-filter);
    animation: rgb-g-constant 3s ease-in-out infinite;
}

.avatar-b {
    filter: url(#blue-filter);
    animation: rgb-b-constant 3s ease-in-out infinite;
}

@keyframes rgb-r-constant {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    25% { transform: translate(-3px, 2px); opacity: 0.9; }
    50% { transform: translate(2px, -1px); opacity: 0.7; }
    75% { transform: translate(-2px, 1px); opacity: 0.85; }
}

@keyframes rgb-g-constant {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    25% { transform: translate(2px, -2px); opacity: 0.85; }
    50% { transform: translate(-3px, 1px); opacity: 0.9; }
    75% { transform: translate(1px, -1px); opacity: 0.75; }
}

@keyframes rgb-b-constant {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    25% { transform: translate(3px, 2px); opacity: 0.9; }
    50% { transform: translate(-2px, -2px); opacity: 0.85; }
    75% { transform: translate(2px, 1px); opacity: 0.75; }
}

.avatar-glitch:hover .avatar-r { animation: rgb-r-hover 0.3s infinite; }
.avatar-glitch:hover .avatar-g { animation: rgb-g-hover 0.3s infinite; }
.avatar-glitch:hover .avatar-b { animation: rgb-b-hover 0.3s infinite; }

@keyframes rgb-r-hover {
    0% { transform: translate(-3px, 1px); opacity: 0.9; }
    25% { transform: translate(3px, -2px); opacity: 0.7; }
    50% { transform: translate(-2px, 3px); opacity: 0.8; }
    75% { transform: translate(4px, 1px); opacity: 0.9; }
    100% { transform: translate(-3px, 1px); opacity: 0.9; }
}

@keyframes rgb-g-hover {
    0% { transform: translate(2px, -2px); opacity: 0.8; }
    25% { transform: translate(-3px, 3px); opacity: 0.9; }
    50% { transform: translate(4px, -1px); opacity: 0.7; }
    75% { transform: translate(-2px, 2px); opacity: 0.8; }
    100% { transform: translate(2px, -2px); opacity: 0.8; }
}

@keyframes rgb-b-hover {
    0% { transform: translate(-4px, 2px); opacity: 0.9; }
    25% { transform: translate(2px, -3px); opacity: 0.8; }
    50% { transform: translate(-3px, 1px); opacity: 0.7; }
    75% { transform: translate(3px, -2px); opacity: 0.9; }
    100% { transform: translate(-4px, 2px); opacity: 0.9; }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}
    
    .banner-with-avatar {
        flex-direction: column;
    }
    
    .banner-text {
        text-align: center;
    }
    
    .avatar-glitch {
        width: 120px;
        height: 120px;
    }
    
    nav a {
        font-size: 16px;
        padding: 6px 12px;
    }
    
    .main-nav a {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-cards {
        grid-template-columns: 1fr;
    }
    
    .restore-all-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}