/* ============================================
   DARK FANTASY STYLES - WoW OneLove
   ============================================ */

/* === КАСТОМНЫЙ КУРСОР === */
* {
    cursor: none !important;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #00d2ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    box-shadow: 0 0 20px #00d2ff, 0 0 40px #0093ff;
}

.cursor-follower {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #00d2ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    box-shadow: 0 0 10px #00d2ff;
}

.cursor-hover {
    width: 50px;
    height: 50px;
    background: rgba(0, 210, 255, 0.1);
    border-color: #ff00ff;
    box-shadow: 0 0 30px #ff00ff, 0 0 60px #0093ff;
}

.cursor-follower-hover {
    width: 0;
    height: 0;
}

/* === ЧАСТИЦЫ === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: radial-gradient(circle, #00d2ff 0%, transparent 70%);
    border-radius: 50%;
    animation: float linear infinite;
    box-shadow: 0 0 10px #00d2ff;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

/* === OVERLAY ДЛЯ ВИДЕО === */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 6, 29, 0.4) 0%, rgba(10, 6, 29, 0.6) 100%);
    z-index: 2;
}

/* === ГРАДИЕНТНЫЙ ТЕКСТ === */
.gradient-text {
    background: linear-gradient(135deg, #00d2ff 0%, #0093ff 50%, #ff00ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    background-size: 200% 200%;
    filter: drop-shadow(0 0 10px rgba(0, 210, 255, 0.5));
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* === DARK FANTASY ЗАГОЛОВОК === */
.hero__title h2 {
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: bold !important;
    letter-spacing: 5px !important;
    text-transform: uppercase !important;
    font-size: calc(40px + 20 * ((100vw - 320px) / 1600)) !important;
    color: #ffffff !important;
    text-shadow: 
        0 0 20px rgba(0, 210, 255, 0.9),
        0 0 40px rgba(0, 147, 255, 0.8),
        0 0 60px rgba(0, 147, 255, 0.6),
        0 0 80px rgba(0, 210, 255, 0.4),
        2px 2px 8px rgba(0, 0, 0, 0.8),
        4px 4px 16px rgba(0, 0, 0, 0.6) !important;
    position: relative !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: title-glow-animation 2s ease-in-out infinite !important;
}

@keyframes title-glow-animation {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(0, 210, 255, 0.9),
            0 0 40px rgba(0, 147, 255, 0.8),
            0 0 60px rgba(0, 147, 255, 0.6),
            0 0 80px rgba(0, 210, 255, 0.4),
            2px 2px 8px rgba(0, 210, 255, 0.5),
            4px 4px 16px rgba(0, 147, 255, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(0, 210, 255, 1),
            0 0 60px rgba(0, 147, 255, 1),
            0 0 90px rgba(0, 147, 255, 0.8),
            0 0 120px rgba(0, 210, 255, 0.6),
            2px 2px 12px rgba(0, 210, 255, 0.7),
            4px 4px 24px rgba(0, 147, 255, 0.5);
        transform: scale(1.02);
    }
}

@media (max-width: 1921px) {
    .hero__title h2 {
        font-size: 60px !important;
    }
}

@media (max-width: 768px) {
    .hero__title h2 {
        font-size: calc(32px + 12 * ((100vw - 320px) / 1600)) !important;
        letter-spacing: 4px !important;
    }
}

/* === СВЕЧЕНИЕ ЗАГОЛОВКА === */
.title-glow {
    font-family: 'Arial Black', Impact, sans-serif !important;
    font-weight: 900 !important;
    color: #0a061d !important;
    text-shadow: 
        0 0 10px #00d2ff,
        0 0 20px #0093ff,
        0 0 30px #0093ff,
        0 0 40px #0093ff,
        2px 2px 8px rgba(0, 210, 255, 0.5),
        4px 4px 16px rgba(0, 147, 255, 0.3) !important;
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 
            0 0 10px #00d2ff,
            0 0 20px #0093ff,
            0 0 30px #0093ff,
            0 0 40px #0093ff;
    }
    50% {
        text-shadow: 
            0 0 20px #00d2ff,
            0 0 30px #0093ff,
            0 0 40px #0093ff,
            0 0 50px #ff00ff;
    }
}

/* === МАГИЧЕСКИЙ ПОДЗАГОЛОВОК === */
.subtitle-magic {
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 18px !important;
    color: #00d2ff;
}

.subtitle-magic::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #00d2ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00d2ff;
    animation: sparkle 1.5s ease-in-out infinite;
}

.subtitle-magic::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #ff00ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff00ff;
    animation: sparkle 1.5s ease-in-out infinite 0.75s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-50%) scale(0.5);
    }
}

/* === КНОПКИ СОЦСЕТЕЙ === */
.social-buttons {
    display: flex;
    gap: 12px;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

@media (max-width: 768px) {
    .social-buttons {
        top: 15px;
        left: 15px;
        gap: 10px;
    }
}

/* === КНОПКА VK === */
.btn-vk {
    position: relative;
    overflow: hidden !important;
    border: 2px solid #003d7a !important;
    background: linear-gradient(135deg, #004080, #002244) !important;
    box-shadow: 
        0 4px 15px rgba(0, 61, 122, 0.6),
        0 0 30px rgba(0, 61, 122, 0.4),
        inset 0 1px 0 rgba(0, 119, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.btn-vk::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-vk:hover::before {
    width: 300px;
    height: 300px;
}

.btn-vk:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #0066cc !important;
    box-shadow: 
        0 8px 25px rgba(0, 61, 122, 0.8),
        0 0 50px rgba(0, 102, 204, 0.6),
        inset 0 1px 0 rgba(0, 119, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.btn-vk:active {
    transform: translateY(-2px) scale(1.02);
}

/* === КНОПКА TELEGRAM === */
.btn-telegram {
    position: relative;
    overflow: hidden !important;
    border: 2px solid #004466 !important;
    background: linear-gradient(135deg, #005577, #003344) !important;
    box-shadow: 
        0 4px 15px rgba(0, 68, 102, 0.6),
        0 0 30px rgba(0, 68, 102, 0.4),
        inset 0 1px 0 rgba(0, 136, 204, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.btn-telegram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-telegram:hover::before {
    width: 300px;
    height: 300px;
}

.btn-telegram:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #0088aa !important;
    box-shadow: 
        0 8px 25px rgba(0, 68, 102, 0.8),
        0 0 50px rgba(0, 136, 170, 0.6),
        inset 0 1px 0 rgba(0, 136, 204, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.7);
}

.btn-telegram:active {
    transform: translateY(-2px) scale(1.02);
}

/* === ЭФФЕКТ СВЕТОВОЙ ВСПЫШКИ === */
@keyframes button-flash {
    0% {
        box-shadow: 
            0 4px 15px rgba(0, 61, 122, 0.6),
            0 0 30px rgba(0, 61, 122, 0.4);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(0, 61, 122, 0.9),
            0 0 50px rgba(0, 102, 204, 0.7),
            0 0 80px rgba(0, 136, 204, 0.5);
    }
    100% {
        box-shadow: 
            0 4px 15px rgba(0, 61, 122, 0.6),
            0 0 30px rgba(0, 61, 122, 0.4);
    }
}

.btn-vk,
.btn-telegram {
    animation: button-flash 3s ease-in-out infinite;
}

.btn-vk {
    animation-delay: 0s;
}

.btn-telegram {
    animation-delay: 1.5s;
}

@keyframes border-glow {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* === УЛУЧШЕННЫЕ КАРТОЧКИ СЕРВЕРОВ === */
.hero__games-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    opacity: 0.6;
    will-change: transform, box-shadow;
}

.hero__games-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 100, 100, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.hero__games-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 0, 0.6), transparent);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.hero__games-item:hover {
    opacity: 1;
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(255, 0, 0, 0.6),
        0 0 60px rgba(255, 100, 100, 0.4),
        0 0 90px rgba(255, 150, 150, 0.3);
}

.hero__games-item:hover::before {
    opacity: 1;
}

.hero__games-item:hover::after {
    opacity: 1;
    animation: barrier 2s linear infinite;
}

.hero__games-item img,
.hero__games-item video {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: brightness(0.8) contrast(1.1);
    /* Оптимизация производительности */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero__games-item:hover img,
.hero__games-item:hover video {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) contrast(1.2);
}

/* === ВИДЕО В КАРТОЧКАХ === */
.card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Оптимизация производительности */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* === УЛУЧШЕННЫЙ ЗАГОЛОВОК КАРТОЧКИ === */
.hero__games-title {
    display: none !important;
}

/* === СЕРЕБРЯНЫЙ ПЕРЕЛИВ НА КАРТОЧКАХ === */
.hero__games-item {
    position: relative;
    overflow: hidden;
}

.hero__games-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-25deg);
    animation: silverShine 3s infinite;
    z-index: 5;
}

@keyframes silverShine {
    0% {
        left: -100%;
    }
    50% {
        left: 150%;
    }
    100% {
        left: -100%;
    }
}

.hero__games-item:hover::before {
    animation-duration: 1.5s;
}

.hero__games-item:hover {
    box-shadow: 
        0 0 30px rgba(192, 192, 192, 0.8),
        0 0 50px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* === ВЕРСИЯ ВНИЗУ КАРТОЧКИ === */
.hero__games-version {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.hero__games-version span {
    color: #ffffff !important;
    font-family: 'Arial Black', Impact, sans-serif !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.3),
        0 0 20px rgba(255, 255, 255, 0.1) !important;
}

.hero__games-item:hover .hero__games-version {
    background: rgba(0, 0, 0, 1) !important;
    box-shadow: 0 -5px 30px rgba(255, 255, 255, 0.2);
}

.hero__games-item:hover .hero__games-version span {
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(255, 255, 255, 0.2) !important;
}

/* === УЛУЧШЕННОЕ ОПИСАНИЕ КАРТОЧКИ === */
.hero__games-description {
    background: linear-gradient(135deg, rgba(11, 13, 27, 0.95), rgba(255, 0, 0, 0.85)) !important;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 0, 0, 0.3);
    box-shadow: 
        inset 0 0 30px rgba(255, 0, 0, 0.2),
        0 0 40px rgba(255, 0, 0, 0.5);
    position: relative;
    z-index: 15;
}

.hero__games-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.hero__games-description:hover::before {
    transform: translateX(100%);
}

.hero__games-description h4 {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* === АНИМАЦИЯ СТРЕЛКИ === */
.hero__games-description > p img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.5));
}

.hero__games-description:hover > p img {
    transform: translateX(10px);
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.8)) drop-shadow(0 0 20px rgba(255, 100, 100, 0.6));
}

/* === УЛУЧШЕННЫЙ БЛУ ТЕКСТ === */
.blue__text {
    color: #00d2ff !important;
    text-shadow: 0 0 10px #00d2ff, 0 0 20px #0093ff;
    animation: text-shimmer 2s ease-in-out infinite;
}

@keyframes text-shimmer {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.3);
    }
}

/* === АНИМАЦИЯ ПОЯВЛЕНИЯ === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ === */
.hero__title h1,
.hero__title h2 {
    animation-fill-mode: forwards;
}

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    /* === ПОЛНАЯ ОПТИМИЗАЦИЯ МОБИЛЬНОЙ ВЕРСИИ === */
    
    /* Убираем курсор */
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    * {
        cursor: auto !important;
    }
    
    /* Убираем все частицы */
    .particles,
    .particle {
        display: none !important;
    }
    
    /* Убираем фоновое видео */
    .hero__bg {
        display: none !important;
    }
    
    /* Простой темный фон */
    .hero {
        background: #000000 !important;
    }
    
    /* Убираем overlay */
    .hero__overlay {
        display: none !important;
    }
    
    /* Убираем анимации кнопок */
    .btn-vk,
    .btn-telegram {
        animation: none !important;
    }
    
    /* === ПРОСТЫЕ ЧЕРНЫЕ КАРТОЧКИ С ОПИСАНИЕМ === */
    
    /* Скрываем все изображения и видео */
    .hero__games-item img,
    .hero__games-item video {
        display: none !important;
    }
    
    /* Делаем карточки черными прямоугольниками */
    .hero__games-item {
        background: #000000 !important;
        min-height: auto !important;
        border: 2px solid rgba(255, 200, 50, 0.6) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        opacity: 1 !important;
        padding: 15px !important;
        display: block !important;
        position: relative !important;
        transition: none !important;
        transform: none !important;
    }
    
    /* Делаем всю карточку кликабельной */
    .hero__games-item > a {
        display: block !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    /* Убираем все псевдоэлементы */
    .hero__games-item::before,
    .hero__games-item::after {
        display: none !important;
    }
    
    /* Описание всегда видимо */
    .hero__games-description {
        display: block !important;
        position: relative !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 10px 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .hero__games-description::before {
        display: none !important;
    }
    
    /* Стили для заголовка описания */
    .hero__games-description h4 {
        color: #ffffff !important;
        font-size: 18px !important;
        font-weight: bold !important;
        margin: 0 0 10px 0 !important;
        text-shadow: none !important;
        animation: none !important;
    }
    
    /* Стили для текста описания */
    .hero__games-description p {
        color: #cccccc !important;
        font-size: 14px !important;
        margin: 0 !important;
        line-height: 1.5 !important;
    }
    
    .hero__games-description p::after {
        display: none !important;
    }
    
    /* Скрываем стрелку */
    .hero__games-description p img {
        display: none !important;
    }
    
    /* Версия карточки - скрываем на мобильных */
    .hero__games-version {
        display: none !important;
    }
    
    /* Убираем все эффекты при наведении */
    .hero__games-item:hover {
        transform: none !important;
        box-shadow: none !important;
        border-color: rgba(255, 200, 50, 0.9) !important;
        opacity: 1 !important;
    }
    
    .hero__games-item:hover .hero__games-description {
        background: transparent !important;
    }
    
    .hero__games-item:hover .hero__games-description h4 {
        color: #ffffff !important;
    }
    
    /* Убираем все анимации */
    .hero__games-item {
        animation: none !important;
    }
    
    /* Упрощаем заголовок */
    .title-glow {
        text-shadow: none !important;
        color: #ffffff !important;
    }
    
    .hero__title h2 {
        text-shadow: none !important;
        animation: none !important;
    }
}

/* === ОПТИМИЗАЦИЯ ДЛЯ ПЛАНШЕТОВ === */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Уменьшаем количество частиц на планшетах */
    .particle:nth-child(n+36) {
        display: none;
    }
    
    /* Упрощаем некоторые эффекты */
    .hero__games-item:hover img,
    .hero__games-item:hover video {
        transform: scale(1.1) !important;
    }
}

/* === ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ === */
.hero__games-description p {
    position: relative;
}

.hero__games-description p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d2ff, #ff00ff);
    transition: width 0.4s ease;
}

.hero__games-description:hover p::after {
    width: 100%;
}

/* === ЭФФЕКТ МАГИЧЕСКИХ РУН === */
.hero__games-item::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.hero__games-item:hover::after {
    opacity: 1;
    transform: scale(2);
    animation: rune-pulse 1.5s ease-in-out infinite;
}

@keyframes rune-pulse {
    0%, 100% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    50% {
        transform: scale(2.5);
        opacity: 1;
    }
}

/* === МАГИЧЕСКИЕ ИСКРЫ === */
@keyframes spark {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
        opacity: 0;
    }
}

.hero__games-item:hover .hero__games-description::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(255, 100, 100, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(255, 150, 150, 0.3) 2px, transparent 2px);
    background-size: 100% 100%;
    background-position: 0 0, 0 0, 0 0;
    animation: spark 2s ease-in-out infinite;
    pointer-events: none;
}

/* === ЭФФЕКТ МАГИЧЕСКОГО СВЕЧЕНИЯ === */
@keyframes magic-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 210, 255, 0.5),
            0 0 40px rgba(9, 73, 236, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 210, 255, 0.8),
            0 0 60px rgba(9, 73, 236, 0.5),
            0 0 80px rgba(255, 0, 255, 0.3);
    }
}

.hero__games-item:hover {
    animation: magic-pulse 2s ease-in-out infinite;
}

/* === УЛУЧШЕННЫЙ ВИДЕО ФОН === */
.hero__bg {
    filter: brightness(0.7) contrast(1.2) saturate(1.3);
    /* Оптимизация производительности */
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* === СКРОЛЛ БАР === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a061d;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d2ff, #0093ff);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff00ff, #0093ff);
}

/* === ДОПОЛНИТЕЛЬНЫЕ МАГИЧЕСКИЕ ЭФФЕКТЫ === */

/* Эффект свечения при загрузке */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero__title {
    animation: pageLoad 1s ease-out;
}

/* Эффект магического сияния на карточках */
.hero__games-item:hover .hero__games-title {
    animation: titleGlow 1.5s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 0, 0, 0.6), 0 0 60px rgba(255, 100, 100, 0.4);
    }
}

/* Эффект волн на кнопке */
@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Эффект магического тумана */
@keyframes fog {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50px);
    }
    50% {
        opacity: 0.6;
        transform: translateX(50px);
    }
}

.hero__overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.1), transparent 70%);
    animation: fog 10s ease-in-out infinite;
    pointer-events: none;
}

/* Эффект мерцания текста */
@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.hero__games-description h4 {
    animation: twinkle 3s ease-in-out infinite;
}

/* Эффект пульсации для частиц */
@keyframes particlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.particle:nth-child(3n) {
    animation: particlePulse 2s ease-in-out infinite, float linear infinite;
}

/* Эффект магического барьера */
.hero__games-item {
    position: relative;
}

.hero__games-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(0, 210, 255, 0.5), transparent);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.hero__games-item:hover::before {
    opacity: 1;
    animation: barrier 2s linear infinite;
}

@keyframes barrier {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

