/* ============================================
   ROOT ПЕРЕМЕННЫЕ
   ============================================ */
:root {
    --bg: #050508;
    --bg-card: #0a0a0f;
    --fg: #ffffff;
    --muted: #888888;
    --accent-orange: #ff6b2c;
    --accent-violet: #9333ea;
    --accent-fuchsia: #d946ef;
    --accent-pink: #ec4899;
    --accent-gold: #fbbf24;
    --border: rgba(255,255,255,0.1);
    --glass: rgba(10,10,15,0.8);
}

/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    cursor: none !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
}

.font-display {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.03em;
}

/* ============================================
   КАСТОМНЫЙ КУРСОР
   ============================================ */
.cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-fuchsia);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(2);
    border-color: var(--accent-orange);
    background: rgba(255, 107, 44, 0.2);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-orange);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* ============================================
   ЭФФЕКТ СТЕКЛА
   ============================================ */
.glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

/* ============================================
   ГРАДИЕНТНЫЙ ТЕКСТ
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-fuchsia) 50%, var(--accent-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ПУЛЬСИРУЮЩАЯ КНОПКА
   ============================================ */
.cta-pulse {
    animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.4), 0 0 60px rgba(217, 70, 239, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(147, 51, 234, 0.6), 0 0 100px rgba(255, 107, 44, 0.3);
        transform: scale(1.02);
    }
}

/* ============================================
   КАРТОЧКИ С ЭФФЕКТОМ ПРИ НАВЕДЕНИИ
   ============================================ */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}

.card-hover:hover { 
    transform: translateY(-8px); 
}

/* ============================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ГАЛЕРЕЯ
   ============================================ */
.gallery-item img {
    filter: grayscale(100%) sepia(15%) hue-rotate(290deg) saturate(1.2);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.gallery-item:hover img {
    filter: none;
    transform: scale(1.05);
}

/* ============================================
   ВКЛАДКИ ИГР
   ============================================ */
.game-tab { 
    transition: all 0.3s ease; 
}

.game-tab.active {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-violet));
    border-color: transparent;
}

/* ============================================
   СТИЛИ СКРОЛЛБАРА
   ============================================ */
::-webkit-scrollbar { 
    width: 6px; 
}

::-webkit-scrollbar-track { 
    background: var(--bg); 
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-orange), var(--accent-violet));
    border-radius: 3px;
}

/* ============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================ */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.mobile-menu.open { 
    transform: translateX(0); 
}

/* ============================================
   ГЛАВНЫЙ ЭКРАН (HERO)
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, #08080d 0%, #050508 100%);
}

/* Анимированная сетка */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(147, 51, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Плавающие сферы */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 20s ease-in-out infinite;
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 44, 0.4) 0%, transparent 70%);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.35) 0%, transparent 70%);
    top: 20%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(217, 70, 239, 0.3) 0%, transparent 70%);
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

/* Частицы */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.spark {
    position: absolute;
    border-radius: 50%;
    animation: sparkRise linear infinite;
}

@keyframes sparkRise {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(var(--drift, 0px)) scale(0.3);
        opacity: 0;
    }
}

/* Сцена */
.stage {
    position: relative;
    margin-top: auto;
    height: 420px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.stage-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(147, 51, 234, 0.05) 20%,
        rgba(10, 10, 15, 0.8) 60%,
        #050508 100%
    );
}

.stage-line {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-orange), 
        var(--accent-fuchsia), 
        var(--accent-violet),
        var(--accent-fuchsia),
        var(--accent-orange), 
        transparent
    );
    opacity: 0.6;
    filter: blur(1px);
    animation: stageLinePulse 3s ease-in-out infinite;
}

@keyframes stageLinePulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scaleX(0.95); }
    50% { opacity: 0.8; transform: translateX(-50%) scaleX(1); }
}

/* Прожекторы */
.spotlight-beam {
    position: absolute;
    bottom: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%,
        rgba(255, 107, 44, 0.03) 50%,
        rgba(255, 107, 44, 0.08) 100%
    );
    clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
    animation: beamSweep 8s ease-in-out infinite;
}

.spotlight-beam.left { 
    left: 5%; 
    animation-delay: 0s; 
}

.spotlight-beam.center { 
    left: 50%; 
    transform: translateX(-50%); 
    animation-delay: -2s; 
    background: linear-gradient(180deg, transparent 0%, rgba(147, 51, 234, 0.03) 50%, rgba(147, 51, 234, 0.1) 100%);
}

.spotlight-beam.right { 
    right: 5%; 
    animation-delay: -4s; 
    background: linear-gradient(180deg, transparent 0%, rgba(217, 70, 239, 0.03) 50%, rgba(217, 70, 239, 0.08) 100%);
}

@keyframes beamSweep {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) rotate(-5deg); }
    50% { opacity: 0.6; transform: translateX(-50%) rotate(5deg); }
}

/* Силуэты людей */
.crowd {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    pointer-events: none;
}

.crowd-group {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.silhouette {
    position: relative;
    animation: crowdBob 2s ease-in-out infinite;
}

.silhouette-body {
    background: linear-gradient(180deg, #1a1a25 0%, #0a0a12 100%);
    border-radius: 30% 30% 0 0;
    position: relative;
}

.silhouette-head {
    width: 60%;
    aspect-ratio: 1;
    background: linear-gradient(180deg, #1a1a25 0%, #0a0a12 100%);
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    top: 2px;
}

.silhouette.female .silhouette-body {
    clip-path: polygon(15% 0%, 85% 0%, 100% 100%, 0% 100%);
}

@keyframes crowdBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Ведущий */
.host-figure {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.host-body {
    width: 50px;
    height: 90px;
    background: linear-gradient(180deg, #0f0f18 0%, #080810 100%);
    border-radius: 25% 25% 0 0;
    position: relative;
}

.host-head {
    width: 32px;
    height: 38px;
    background: linear-gradient(180deg, #e8c4a0 0%, #d4a574 100%);
    border-radius: 50%;
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
}

.host-hair {
    position: absolute;
    top: -4px;
    left: -2px;
    right: -2px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 50% 50% 0 0;
}

.host-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(255, 107, 44, 0.3) 0%, transparent 70%);
    filter: blur(20px);
}

.host-arms {
    position: absolute;
    top: 15px;
    width: 100%;
}

.host-arm {
    position: absolute;
    width: 14px;
    height: 45px;
    background: linear-gradient(180deg, #0f0f18 0%, #080810 100%);
    border-radius: 8px;
    transform-origin: top center;
}

.host-arm.left { 
    left: -8px; 
    animation: hostWaveLeft 3s ease-in-out infinite; 
}

.host-arm.right { 
    right: -8px; 
    animation: hostWaveRight 3s ease-in-out infinite; 
}

@keyframes hostWaveLeft {
    0%, 100% { transform: rotate(-25deg); }
    50% { transform: rotate(-50deg); }
}

@keyframes hostWaveRight {
    0%, 100% { transform: rotate(25deg); }
    50% { transform: rotate(50deg); }
}

/* Микрофон */
.mic {
    position: absolute;
    bottom: 100px;
    left: 52%;
    width: 5px;
    height: 30px;
    background: linear-gradient(180deg, #444 0%, #222 100%);
    border-radius: 3px;
}

.mic::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 14px;
    background: linear-gradient(180deg, #555 0%, #333 100%);
    border-radius: 50%;
}

/* Заголовок */
.title-section {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 15vh;
    padding-bottom: 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Декоративные элементы */
.deco-line {
    position: absolute;
    width: 1px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--accent-fuchsia), transparent);
    opacity: 0.3;
}

.deco-line.left { left: 10%; top: 20%; }
.deco-line.right { right: 10%; top: 30%; }

.deco-circle {
    position: absolute;
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.deco-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -100px;
    animation: circleRotate 30s linear infinite;
}

.deco-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    left: -50px;
    animation: circleRotate 25s linear infinite reverse;
}

@keyframes circleRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Карусель отзывов */
.reviews-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    -webkit-overflow-scrolling: touch;
}

.reviews-container::-webkit-scrollbar { 
    height: 4px; 
}

.reviews-container::-webkit-scrollbar-track { 
    background: rgba(255,255,255,0.03); 
    border-radius: 2px;
}

.reviews-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-violet));
    border-radius: 2px;
}

.review-card {
    flex: 0 0 calc(33.333% - 1rem);
    scroll-snap-align: start;
    min-width: 300px;
}

@media (max-width: 1024px) { 
    .review-card { flex: 0 0 calc(50% - 0.75rem); } 
}

@media (max-width: 640px) { 
    .review-card { flex: 0 0 100%; } 
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ
   ============================================ */
@media (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
    * { cursor: auto !important; }
    .stage { height: 300px; }
    .title-section { padding-top: 20vh; }
    .crowd { display: none; }
    .host-figure { bottom: 50px; }
    .host-body { width: 40px; height: 70px; }
    .host-head { width: 26px; height: 30px; top: -26px; }
    .orb-1 { width: 300px; height: 300px; }
    .orb-2 { width: 250px; height: 250px; }
    .orb-3, .orb-4 { display: none; }
}

/* ============================================
   УВАЖЕНИЕ К НАСТРОЙКАМ ПОЛЬЗОВАТЕЛЯ
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}