/* =================================== */
/* ===== 1. ИМПОРТЫ И НАСТРОЙКИ ===== */
/* =================================== */

@font-face {
    font-family: 'Snakehead Graffiti';
    src: url('../media/snakehead-graffiti.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Dark Graffiti';
    src: url('../media/Dark Graffiti OTF Personal.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Notress Graffiti';
    src: url('../media/Notress Graffiti.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TheGraffitiFon';
    src: url('../media/THEGRAFFITIFON.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Wombat';
    src: url('../media/WOMBAT.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* ======================================= */
/* ===== 2. ЦВЕТОВЫЕ СХЕМЫ И ПЕРЕМЕННЫЕ ===== */
/* ======================================= */

.theme-aqua {
    --primary: #06ffa5;
    --secondary: #1100ff;
    --accent: #ff00ff;
    --music: #ffbb00;
    --glass: rgba(255, 255, 255, 0.2);
    --glow: rgba(6, 255, 165, 0.5);
    --shadow: 2px 3px 2px rgba(0, 0, 0, 0.4);
}

.theme-lime {
    --primary: #ffef0b;
    --secondary: #00ff88;
    --accent: #00ff0d;
    --music: #06ffa5;
    --glass: rgba(255, 255, 255, 0.2);
    --glow: rgba(255, 190, 11, 0.5);
    --shadow: 2px 3px 2px rgba(0, 0, 0, 0.4);
}

.theme-orange {
    --primary: #ff7300;
    --secondary: #fffb00;
    --accent: #ffee00;
    --music: #ffbb00;
    --glass: rgba(255, 255, 255, 0.2);
    --glow: rgba(255, 0, 110, 0.5);
    --shadow: 2px 3px 2px rgba(0, 0, 0, 0.4);
}

.theme-purple {
    --primary: #ff0080;
    --secondary: #1900ff;
    --accent: #00eeff;
    --music: #ff006e;
    --glass: rgba(255, 255, 255, 0.2);
    --glow: rgba(225, 103, 255, 0.534);
    --shadow: 2px 3px 2px rgba(0, 0, 0, 0.4);
}

/* =================================== */
/* ===== 3. ГЛОБАЛЬНЫЕ СТИЛИ ===== */
/* =================================== */

html {
    box-sizing: border-box;
    transition: opacity 0.3s ease-in-out;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Lucida Grande', sans-serif;
    background: #2a2a2a url('../media/brick01.jpg');
    background-size: 660px 495px;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* =================================== */
/* ===== 4. СТИЛИ РАЗМЕТКИ (LAYOUT) ===== */
/* =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 20px;
    position: relative;
    z-index: 1;
    /* Чтобы был над пузырями */
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.footer {
    text-align: center;
    padding: 30px;
    color: var(--accent);
    font-weight: 300;
}

/* =================================== */
/* ===== 5. СТИЛИ КОМПОНЕНТОВ ===== */
/* =================================== */

/* Логотип и слоган */
.logo {
    font-family: 'Snakehead Graffiti', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 8.5rem;
    font-weight: normal;
    color: var(--primary);
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 0 0 30px var(--glow);
    filter: drop-shadow(var(--shadow));
    animation: float 9s ease-in-out infinite;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 300;
}

/* Переключатель тем */
.theme-switcher {
    display: flex;
    justify-content: center;
    gap: 15px;
    /* Увеличил расстояние */
    margin-bottom: 40px;
}

.theme-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.theme-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.theme-btn.aqua {
    background: linear-gradient(135deg, #06ffa5, #3a86ff, #8338ec);
}

.theme-btn.lime {
    background: linear-gradient(135deg, #ffbe0b, #06ffa5, #3a86ff);
}

.theme-btn.orange {
    background: linear-gradient(135deg, #ff006e, #ffbe0b, #8338ec);
}

.theme-btn.purple {
    background: linear-gradient(135deg, #8338ec, #ff006e, #3a86ff);
}

/* Карточки */
.card {
    position: relative;
    padding: 25px;
    background: radial-gradient(circle at 100% 0%, var(--primary), transparent 70%),
        radial-gradient(circle at 0% 100%, var(--secondary), transparent 70%),
        rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 
                0 0 80px rgba(255, 255, 255, 0.2),
                0 0 120px rgba(255, 255, 255, 0.1),
                var(--shadow);
}

.card::before {
    content: '';
    position: absolute;
    top: -1px;
    /* Компенсируем border карточки */
    left: -1px;
    /* Компенсируем border карточки */
    right: -1px;
    /* Компенсируем border карточки */
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 0;
    z-index: 1;
    /* Поверх границы карточки */
}

.card-title {
    color: var(--secondary);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 400;
    text-shadow: 0 0 20px var(--glow);
}

.card-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Кнопки */
.y2k-btn {
    /* Previous Frutiger Aero Style - commented for new experiment */
    /* background: linear-gradient(135deg, */
    /*     rgba(255, 255, 255, 0.25) 0%, */
    /*     rgba(255, 255, 255, 0.15) 40%, */
    /*     rgba(0, 0, 0, 0.1) 60%, */
    /*     rgba(0, 0, 0, 0.2) 100%); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* color: var(--primary); */
    /* padding: 12px 25px; */
    /* margin: 8px 5px; */
    /* border-radius: 25px; */
    /* cursor: pointer; */
    /* font-size: 0.95rem; */
    /* font-weight: 500; */
    /* transition: all 0.4s ease; */
    /* text-decoration: none; */
    /* display: inline-block; */
    /* position: relative; */
    /* overflow: hidden; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 255, 255, 0.1); */
    /* text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 8px var(--primary); */
    /* backdrop-filter: blur(5px); */

    /* Previous Frutiger Aero Style - commented for glassmorphism experiment */
    /* background: linear-gradient(135deg, */
    /*     rgba(255, 255, 255, 0.25) 0%, */
    /*     rgba(255, 255, 255, 0.15) 40%, */
    /*     rgba(0, 0, 0, 0.1) 60%, */
    /*     rgba(0, 0, 0, 0.2) 100%); */
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    /* color: var(--primary); */
    /* padding: 12px 25px; */
    /* margin: 8px 5px; */
    /* border-radius: 25px; */
    /* cursor: pointer; */
    /* font-size: 0.95rem; */
    /* font-weight: 500; */
    /* transition: all 0.4s ease; */
    /* text-decoration: none; */
    /* display: inline-block; */
    /* position: relative; */
    /* overflow: hidden; */
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -1px 2px rgba(0, 0, 0, 0.15), 0 0 15px rgba(255, 255, 255, 0.1); */
    /* text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3), 0 0 8px var(--primary); */
    /* backdrop-filter: blur(5px); */

    /* New Frutiger Aero inspired style - refined glassmorphism */
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary);
    padding: 14px 28px;
    box-shadow: var(--shadow);
    margin: 8px 5px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    will-change: transform, box-shadow;
}

.y2k-btn:hover {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(0, 0, 0, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.2),
        0 16px 60px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(0, 255, 165, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.y2k-btn:hover::before {
    left: 100%;
}

.y2k-btn:active {
    transform: translateY(-1px) scale(1.01);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(0, 0, 0, 0.07) 100%);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 255, 165, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.y2k-btn::before,
.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
    /* Добавил z-index для гарантии видимости */
}

.y2k-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.y2k-btn.btn-3d {
    background: linear-gradient(135deg, #ff006e, #8338ec, #3a86ff);
    margin-left: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 110, 0.4);
}

/* Experimental glassmorphism style for y2k buttons */
.y2k-btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: none;
}

/* Плеер Bandcamp */
.bandcamp-card {
    padding: 0;
    width: 350px;
    height: 1110px;
    margin: 0 auto;
    background: transparent;
    border: none;
}

.bandcamp-card iframe {
    border: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Музыкальная страница */
.music-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 800px;
    margin: 0 auto;
}

/* Coming Soon страница */
.coming-soon-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-message {
    margin-bottom: 40px;
}

.very-soon-text {
    font-family: 'TheGraffitiFon', 'Impact', 'Arial Black', sans-serif;
    font-size: 6vw;
    font-weight: normal;
    color: var(--secondary);
    -webkit-text-stroke: 1.5px var(--primary);
    text-shadow: 0 0 20px var(--glow);
    filter: url(#playful-distortion);
    animation: float 6s ease-in-out infinite, glitch-pulse 4s ease-in-out infinite, color-shift 8s ease-in-out infinite;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.social-links h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px var(--glow);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.social-buttons .y2k-btn {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-buttons .y2k-btn i {
    font-size: 1.2rem;
}

.bandcamp-card h2 {
    padding: 15px;
    margin: 0 0 10px 0;
    text-align: center;
}

/* =================================== */
/* ===== 6. СТИЛИ ЭФФЕКТОВ (FX) ===== */
/* =================================== */

.graffiti-overlay {
    position: fixed;
    font-weight: normal;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0.8;
    z-index: 0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3),
        0px 0px 2px rgba(0, 0, 0, 0.2);
    filter: drop-shadow(var(--shadow));
    transition: all 0.3s ease;
}

/* Невидимые кликабельные области */
.music-click-area {
    position: fixed;
    top: 10vh;
    left: 3vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

.spirit-click-area {
    position: fixed;
    top: 15vh;
    right: 25vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

.music_new-click-area {
    position: fixed;
    bottom: 25vh;
    left: 8vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

/* Одноколоночная сетка для отдельных страниц */
.single-column-grid {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.single-column-grid .card {
    max-width: 600px;
    width: 100%;
}

/* Кнопка назад */
.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}



/* Интерактивное граффити - убираем старые стили */
.graffiti-overlay.clickable {
    pointer-events: auto;
    cursor: pointer;
}

.graffiti-overlay.clickable:hover {
    opacity: 1;
    transform: scale(1.05);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4),
        0px 0px 4px var(--glow);
    /* Останавливаем анимации при hover */
    animation-play-state: paused;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕХ ГРАФФИТИ ===== */
/* Стили .graffiti-overlay определены выше в разделе "СТИЛИ ЭФФЕКТОВ" */

/* ===== СПЕЦИФИЧНЫЕ СТИЛИ ГРАФФИТИ ===== */

/* Soulcuts граффити - градиентный эффект с анимацией */
.text-soulcuts {
    font-family: 'TheGraffitiFon', 'Impact', 'Arial Black', sans-serif;
    font-size: 4.4vw;
    font-weight: normal;
    letter-spacing: 1px;
    padding: 0 0.5em;
    margin: 0 -0.5em;
    background: linear-gradient(90deg,
            var(--primary) -50%,
            var(--secondary) -30%,
            var(--accent) -10%,
            var(--primary) 0%,
            var(--secondary) 15%,
            var(--accent) 30%,
            var(--primary) 45%,
            var(--secondary) 60%,
            var(--accent) 75%,
            var(--primary) 90%,
            var(--secondary) 110%,
            var(--accent) 130%,
            var(--primary) 150%);
    background-size: 800% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1.5px var(--primary);
    filter: brightness(1.8) saturate(1.5) contrast(1.3) url(#soulcuts-distortion) drop-shadow(var(--shadow));
    animation: soulcuts-glitch 8s ease-in-out infinite, gradient-shift 9s ease-in-out infinite;
    will-change: background-position;
}

/* 3D граффити - объемный стиль с вращением */
.text-3d {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--primary);
    font-size: 6.2vw;
    font-weight: 900;
    letter-spacing: 3px;
    /* Многослойная 3D тень для объема */
    text-shadow: 
        /* Основной объем - слои глубины */
        1px 1px 0 var(--secondary),
        2px 2px 0 var(--secondary),
        3px 3px 0 var(--accent),
        4px 4px 0 var(--accent),
        5px 5px 0 rgba(0, 0, 0, 0.3),
        6px 6px 0 rgba(0, 0, 0, 0.2),
        7px 7px 0 rgba(0, 0, 0, 0.1),
        /* Свечение */
        0 0 20px var(--glow),
        0 0 30px var(--primary),
        0 0 40px var(--accent);
    /* 3D трансформация с перспективой */
    transform-style: preserve-3d;
    perspective: 1200px;
    animation: threed-rotate-3d 8s ease-in-out infinite;
    opacity: 0.95;
    will-change: transform;
    filter: drop-shadow(var(--shadow));
}

/* Spirit граффити - простой стиль */
.text-spirit {
    font-family: 'Dark Graffiti', 'Stencil', 'Arial Black', sans-serif;
    font-size: 4.5vw;
    font-weight: normal;
    letter-spacing: 2px;
    opacity: 0.8;
    background: linear-gradient(135deg,
            var(--primary) 0%,
            var(--secondary) 50%,
            var(--primary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px var(--accent);
    text-shadow: 0 0 10px var(--glow),
                 1px 1px 0 var(--accent),
                 -1px -1px 0 var(--accent);
    filter: drop-shadow(var(--shadow));
    animation: spirit-glow 6s ease-in-out infinite;
}

/* Music Page граффити - градиентный стиль */
.text-music-page {
    font-family: 'Snakehead Graffiti', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 6vw;
    font-weight: normal;
    letter-spacing: 1px;
    opacity: 0.8;
    background: linear-gradient(135deg,
            var(--secondary) 0%,
            var(--accent) 50%,
            var(--secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-text-stroke: 1px var(--primary);
    text-shadow: 0 0 10px var(--glow),
                 1px 1px 0 var(--primary),
                 -1px -1px 0 var(--primary);
    filter: drop-shadow(var(--shadow));
    animation: music-glow 7s ease-in-out infinite;
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 16px;
    color: var(--primary);
    text-shadow: 0 0 10px var(--glow);
    animation: iconWaterfall 3s ease-out forwards;
    user-select: none;
    font-family: 'Helvetica Neue', 'Arial', monospace;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.rising-bubble {
    position: absolute;
    bottom: -150px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: rise 25s infinite linear;
}

.rising-bubble::before {
    content: "";
    position: absolute;
    top: 20%;
    right: 20%;
    width: 15%;
    height: 15%;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.rising-bubble:nth-child(1) {
    width: 96px;
    height: 96px;
    left: 10%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.rising-bubble:nth-child(2) {
    width: 48px;
    height: 48px;
    left: 20%;
    animation-duration: 25s;
    animation-delay: 3s;
    animation-name: rise-2;
}

.rising-bubble:nth-child(3) {
    width: 72px;
    height: 72px;
    left: 35%;
    animation-duration: 30s;
    animation-delay: 7s;
}

.rising-bubble:nth-child(4) {
    width: 36px;
    height: 36px;
    left: 70%;
    animation-duration: 40s;
    animation-delay: 2s;
    animation-name: rise-2;
}

.rising-bubble:nth-child(5) {
    width: 120px;
    height: 120px;
    left: 85%;
    animation-duration: 18s;
    animation-delay: 5s;
}


/* ===================================================== */
/* ===== 7. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ (UTILITIES) ===== */
/* ===================================================== */

.card-content .button-container {
    margin-top: 20px;
}

/* Режим низкой производительности */
.low-performance .cursor-trail,
.low-performance .rising-bubble {
    display: none !important;
}

.low-performance .logo {
    animation: none !important;
}

.low-performance iframe {
    transform: translateZ(0);
    will-change: auto;
}

/* Мобильная навигация с кнопками граффити */
.mobile-graffiti-nav {
    display: none;
    /* Скрыта по умолчанию */
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
    padding: 0 20px;
}

.mobile-graffiti-btn {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
    height: 60px;
    /* Фиксированная высота */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Не сжимается */
}

.mobile-graffiti-btn:hover,
.mobile-graffiti-btn:active {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--glow);
    border-color: var(--accent);
}

.mobile-graffiti-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--glow);
}

.graffiti-text {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    /* Контролируем высоту строки */
    margin: 0;
    /* Убираем отступы */
    padding: 0;
    /* Убираем внутренние отступы */
}

.mobile-spirit-style {
    font-family: 'Dark Graffiti', 'Stencil', 'Arial Black', sans-serif;
    color: var(--accent);
}

.mobile-music-style {
    font-family: 'TheGraffitiFon', 'Impact', 'Arial Black', sans-serif;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    /* Базовое искажение - постоянное */
    transform: skew(-1.2deg) scaleY(1.08) scaleX(0.96);
    letter-spacing: 3px;
    font-weight: 900;
    text-shadow:
        2px 0 0 var(--primary),
        -1px 0 0 var(--secondary),
        0 0 6px var(--glow);
    /* Единая анимация для мобильных */
    animation: mobile-glitch 4s ease-in-out infinite, soulcuts-pulse 6s ease-in-out infinite;
}

.mobile-threed-style {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--primary);
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 
        1px 1px 0 var(--secondary),
        2px 2px 0 var(--accent),
        3px 3px 0 rgba(0, 0, 0, 0.3),
        0 0 15px var(--glow),
        0 0 25px var(--primary);
    animation: mobile-3d-rotate 8s ease-in-out infinite;
}

.mobile-music_new-style {
    font-family: 'Snakehead Graffiti', 'Brush Script MT', 'Lucida Handwriting', cursive;
    color: var(--accent);
}

/* =================================== */
/* ===== 8. АДАПТИВНОСТЬ ===== */
/* =================================== */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    /* Скрываем большой логотип и tagline на мобильных */
    .logo {
        display: none !important;
    }

    .tagline {
        display: none !important;
    }

    /* Скрываем позиционированные граффити на мобильных */
    .graffiti-overlay {
        display: none !important;
    }

    /* Скрываем кликабельные области на мобильных */
    .music-click-area,
    .threed-click-area,
    .spirit-click-area,
    .music_new-click-area {
        display: none !important;
    }

    /* Показываем мобильную навигацию */
    .mobile-graffiti-nav {
        display: flex !important;
    }

    /* Увеличиваем отступы хедера для разделения элементов */
    .header {
        margin-bottom: 20px;
        padding-top: 10px;
    }

    /* Поднимаем переключатели тем выше */
    .theme-switcher {
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        padding: 25px;
    }

    .theme-switcher {
        flex-wrap: wrap;
        gap: 8px;
    }

    .theme-btn {
        width: 42px;
        /* Уменьшено на 15% (50 * 0.85 = 42.5) */
        height: 30px;
        /* Уменьшено на 15% (35 * 0.85 = 29.75) */
    }

    /* Адаптация граффити для мобильных */
    .graffiti-overlay {
        font-size: 7vw !important;
        opacity: 0.9;
        /* Принудительное позиционирование в верхней части */
        top: auto !important;
        bottom: auto !important;
        /* Убираем кирпичную текстуру на мобильных */
        background: none !important;
    }

    .text-soulcuts {
        font-size: 8.8vw !important;
        /* Увеличено на 10% (8vw * 1.1) */
    }

    .text-3d {
        font-size: 7.2vw !important;
        /* Уменьшено на 10% (8vw * 0.9) */
    }

    .text-spirit {
        font-size: 7vw !important;
    }

    .text-music-page {
        font-size: 8vw !important;
    }

    .text-music_new {
        font-size: 8vw !important;
    }

    /* Larger Very Soon on mobile for coming soon page */
    .very-soon-text {
        font-size: 12vw !important;
    }

    /* Larger music graffiti text on mobile */
    .mobile-music-style {
        font-size: 2.5rem !important;
    }
}

/* =================================== */
/* ===== 9. АНИМАЦИИ (KEYFRAMES) ===== */
/* =================================== */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-55px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

@keyframes iconWaterfall {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.7;
        transform: translateY(30px) scale(0.8) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: translateY(80px) scale(0.3) rotate(360deg);
    }
}

@keyframes rise {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) translateX(40px);
        opacity: 0;
    }
}

@keyframes rise-2 {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-120vh) translateX(-40px);
        opacity: 0;
    }
}

/* Анимация glitch эффекта для soulcuts */
@keyframes soulcuts-glitch {

    0%,
    85%,
    100% {
        filter: brightness(1.8) saturate(1.5) contrast(1.3) url(#soulcuts-distortion);
        transform: rotate(var(--base-rotation, 0deg)) translateX(0) scale(1);
    }

    87%,
    89% {
        filter: brightness(2.0) saturate(2) contrast(1.4) url(#ripple-effect);
        transform: rotate(var(--base-rotation, 0deg)) translateX(1px) scale(1.02);
    }

    88% {
        filter: brightness(1.6) saturate(1.8) contrast(1.2) url(#glitch-effect);
        transform: rotate(var(--base-rotation, 0deg)) translateX(-1px) scale(0.98);
    }

    91%,
    93% {
        filter: brightness(2.2) saturate(1.7) contrast(1.5) url(#wave-distortion);
        transform: rotate(var(--base-rotation, 0deg)) translateX(0) scale(1.01);
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes spirit-glow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1);
    }
    
    50% {
        background-position: 100% 50%;
        filter: brightness(1.3) saturate(1.2);
    }
}

@keyframes music-glow {
    0%, 100% {
        background-position: 0% 50%;
        filter: brightness(1) saturate(1);
    }
    
    50% {
        background-position: 100% 50%;
        filter: brightness(1.2) saturate(1.15);
    }
}


/* ===== РЕ
ЖИМ НИЗКОЙ ПРОИЗВОДИТЕЛЬНОСТИ ===== */
/* Отключаем тяжелые эффекты для слабых устройств */
.low-performance .text-music {
    /* Отключаем SVG фильтры */
    filter: none !important;
    animation: none !important;
    /* Простой градиент без анимации */
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    background-size: 100% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Упрощенная обводка */
    -webkit-text-stroke: 1px var(--primary);
    /* Простая тень */
    text-shadow: 0 0 10px var(--glow);
}

.low-performance .cursor-trail,
.low-performance .rising-bubble {
    display: none !important;
}

.low-performance .logo {
    animation: none !important;
}

.low-performance iframe {
    transform: translateZ(0);
    will-change: auto;
}

.low-performance .graffiti-overlay {
    /* Отключаем сложные эффекты для всех граффити */
    filter: none !important;
    animation: none !important;
    transform: none !important;
}

/* Упрощенный 3D для слабых устройств */
.low-performance .text-3d {
    text-shadow: 
        1px 1px 0 var(--secondary),
        2px 2px 0 var(--accent),
        3px 3px 0 rgba(0, 0, 0, 0.3),
        0 0 10px var(--glow) !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

.low-performance .theme-btn {
    /* Упрощаем кнопки тем */
    transition: none !important;
}

.low-performance .y2k-btn {
    /* Упрощаем кнопки */
    transition: none !important;
    animation: none !important;
}

.low-performance .y2k-btn::before {
    display: none !important;
}

/* Desktop optimizations */
@media (min-width: 769px) {
    body {
        background: #2a2a2a url('../media/brick01.jpg') !important;
        background-size: 660px 495px !important;
        background-repeat: repeat !important;
        background-attachment: fixed !important;
    }

    .mobile-graffiti-nav {
        display: none !important;
    }
}

/*
Легкий эффект искажения для soulcuts на мобильных */
@media (max-width: 768px) {
    .mobile-music-style {
        animation: mobile-glitch 4s ease-in-out infinite;
        text-shadow:
            1px 0 0 var(--primary),
            -1px 0 0 var(--secondary);
        transform-origin: center;
    }
}

/* Усиленная анимация искажения */
@keyframes mobile-glitch {

    0%,
    88%,
    100% {
        transform: skew(0deg) scale(1) translateX(0);
        text-shadow:
            1px 0 0 var(--primary),
            -1px 0 0 var(--secondary);
    }

    90% {
        transform: skew(2deg) scale(1.03) translateX(2px);
        text-shadow:
            3px 0 0 var(--primary),
            -3px 0 0 var(--secondary),
            0 0 5px var(--accent);
    }

    92% {
        transform: skew(-1.5deg) scale(0.97) translateX(-1px);
        text-shadow:
            -2px 0 0 var(--accent),
            2px 0 0 var(--primary),
            0 0 8px var(--glow);
    }

    94% {
        transform: skew(1deg) scale(1.02) translateX(1px);
        text-shadow:
            2px 0 0 var(--secondary),
            -2px 0 0 var(--accent),
            0 0 3px var(--primary);
    }

    96% {
        transform: skew(-0.5deg) scale(1.01) translateX(-0.5px);
        text-shadow:
            1px 0 0 var(--accent),
            -1px 0 0 var(--primary),
            0 0 6px var(--glow);
    }
}

/*
 Медленная 3D пульсация для soulcuts */
@keyframes soulcuts-pulse {

    0%,
    100% {
        transform: skew(-1.2deg) scaleY(1.08) scaleX(0.96) perspective(100px) rotateX(0deg);
        text-shadow:
            2px 0 0 var(--primary),
            -1px 0 0 var(--secondary),
            0 0 6px var(--glow),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: skew(-1.2deg) scaleY(1.12) scaleX(0.94) perspective(100px) rotateX(2deg);
        text-shadow:
            3px 0 0 var(--primary),
            -2px 0 0 var(--secondary),
            0 0 10px var(--glow),
            0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* 3D вращение с объемом для десктопного граффити */
@keyframes threed-rotate-3d {
    0% {
        transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) scale(1);
    }
    
    50% {
        transform: perspective(1200px) rotateY(8deg) rotateX(-3deg) scale(1.05);
    }
    
    100% {
        transform: perspective(1200px) rotateY(-8deg) rotateX(3deg) scale(1);
    }
}

/* Мобильная 3D анимация (упрощенная) */
@keyframes mobile-3d-rotate {
    0%, 100% {
        transform: perspective(500px) rotateY(0deg) scale(1);
        text-shadow: 
            1px 1px 0 var(--secondary),
            2px 2px 0 var(--accent),
            3px 3px 0 rgba(0, 0, 0, 0.3),
            0 0 15px var(--glow),
            0 0 25px var(--primary);
    }
    
    25% {
        transform: perspective(500px) rotateY(5deg) scale(1.03);
        text-shadow: 
            2px 1px 0 var(--secondary),
            3px 2px 0 var(--accent),
            4px 3px 0 rgba(0, 0, 0, 0.3),
            0 0 20px var(--glow),
            0 0 30px var(--primary);
    }
    
    50% {
        transform: perspective(500px) rotateY(0deg) scale(1.05);
        text-shadow: 
            1px 2px 0 var(--secondary),
            2px 3px 0 var(--accent),
            3px 4px 0 rgba(0, 0, 0, 0.3),
            0 0 25px var(--glow),
            0 0 35px var(--primary);
    }
    
    75% {
        transform: perspective(500px) rotateY(-5deg) scale(1.03);
        text-shadow: 
            -1px 1px 0 var(--secondary),
            -2px 2px 0 var(--accent),
            -3px 3px 0 rgba(0, 0, 0, 0.3),
            0 0 20px var(--glow),
            0 0 30px var(--primary);
    }
}

/* Медленная пульсация для 3D кнопки */
@keyframes threed-pulse {

    0%,
    100% {
        transform: scale(1);
        text-shadow:
            0 0 8px var(--glow),
            0 0 4px var(--primary);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        text-shadow:
            0 0 15px var(--glow),
            0 0 8px var(--primary),
            0 0 20px var(--accent);
        opacity: 1;
    }
}

/* N64 стиль - легкое покачивание объема */
@keyframes n64-3d-wobble {
    0%, 100% {
        transform: perspective(800px) rotateX(0deg) rotateY(0deg);
        text-shadow: 
            1px 1px 0 var(--secondary),
            2px 2px 0 var(--secondary),
            3px 3px 0 var(--secondary),
            4px 4px 0 var(--accent),
            5px 5px 0 var(--accent),
            6px 6px 0 var(--accent),
            7px 7px 0 #0088cc,
            8px 8px 0 #0088cc,
            9px 9px 0 #0066aa,
            10px 10px 0 #0066aa,
            11px 11px 0 #004488,
            12px 12px 0 #004488,
            13px 13px 0 #003366,
            14px 14px 0 #003366,
            15px 15px 0 #002244,
            16px 16px 0 #002244,
            17px 17px 0 #001122,
            18px 18px 0 #001122,
            19px 19px 0 #000000,
            20px 20px 0 #000000,
            22px 22px 8px rgba(0, 0, 0, 0.6),
            0 0 20px var(--glow);
    }
    
    25% {
        transform: perspective(800px) rotateX(2deg) rotateY(-3deg);
        text-shadow: 
            0px 1px 0 var(--secondary),
            1px 2px 0 var(--secondary),
            2px 3px 0 var(--secondary),
            3px 4px 0 var(--accent),
            4px 5px 0 var(--accent),
            5px 6px 0 var(--accent),
            6px 7px 0 #0088cc,
            7px 8px 0 #0088cc,
            8px 9px 0 #0066aa,
            9px 10px 0 #0066aa,
            10px 11px 0 #004488,
            11px 12px 0 #004488,
            12px 13px 0 #003366,
            13px 14px 0 #003366,
            14px 15px 0 #002244,
            15px 16px 0 #002244,
            16px 17px 0 #001122,
            17px 18px 0 #001122,
            18px 19px 0 #000000,
            19px 20px 0 #000000,
            21px 22px 8px rgba(0, 0, 0, 0.6),
            0 0 22px var(--glow);
    }
    
    50% {
        transform: perspective(800px) rotateX(-2deg) rotateY(3deg);
        text-shadow: 
            2px 1px 0 var(--secondary),
            3px 2px 0 var(--secondary),
            4px 3px 0 var(--secondary),
            5px 4px 0 var(--accent),
            6px 5px 0 var(--accent),
            7px 6px 0 var(--accent),
            8px 7px 0 #0088cc,
            9px 8px 0 #0088cc,
            10px 9px 0 #0066aa,
            11px 10px 0 #0066aa,
            12px 11px 0 #004488,
            13px 12px 0 #004488,
            14px 13px 0 #003366,
            15px 14px 0 #003366,
            16px 15px 0 #002244,
            17px 16px 0 #002244,
            18px 17px 0 #001122,
            19px 18px 0 #001122,
            20px 19px 0 #000000,
            21px 20px 0 #000000,
            23px 22px 8px rgba(0, 0, 0, 0.6),
            0 0 25px var(--glow);
    }
    
    75% {
        transform: perspective(800px) rotateX(1deg) rotateY(-2deg);
        text-shadow: 
            1px 2px 0 var(--secondary),
            2px 3px 0 var(--secondary),
            3px 4px 0 var(--secondary),
            4px 5px 0 var(--accent),
            5px 6px 0 var(--accent),
            6px 7px 0 var(--accent),
            7px 8px 0 #0088cc,
            8px 9px 0 #0088cc,
            9px 10px 0 #0066aa,
            10px 11px 0 #0066aa,
            11px 12px 0 #004488,
            12px 13px 0 #004488,
            13px 14px 0 #003366,
            14px 15px 0 #003366,
            15px 16px 0 #002244,
            16px 17px 0 #002244,
            17px 18px 0 #001122,
            18px 19px 0 #001122,
            19px 20px 0 #000000,
            20px 21px 0 #000000,
            22px 23px 8px rgba(0, 0, 0, 0.6),
            0 0 22px var(--glow);
    }
}

/* Стили для кликабельной области crew (music) */
.crew-click-area {
    position: fixed;
    bottom: 25vh;
    left: 8vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

.crew-click-area:hover {
    background: transparent;
}

/* ===== ОБНОВЛЕННЫЕ КЛИКАБЕЛЬНЫЕ ОБЛАСТИ (ЛОГИЧНЫЕ НАЗВАНИЯ) ===== */
.soulcuts-click-area {
    position: fixed;
    top: 10vh;
    left: 3vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

.soulcuts-click-area:hover {
    background: transparent;
}

.music-page-click-area {
    position: fixed;
    bottom: 25vh;
    left: 8vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

.music-page-click-area:hover {
    background: transparent;
}

.threed-click-area {
    position: fixed;
    top: 60vh;
    right: 20vw;
    width: 200px;
    height: 100px;
    cursor: pointer;
    z-index: 10;
    background: transparent;
}

.threed-click-area:hover {
    background: transparent;
}

/* ===== МОБИЛЬНЫЕ СТИЛИ ДЛЯ ГРАФФИТИ (ОБНОВЛЕННЫЕ НАЗВАНИЯ) ===== */
.mobile-soulcuts-style {
    font-family: 'TheGraffitiFon', 'Impact', 'Arial Black', sans-serif;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    transform: skew(-1.2deg) scaleY(1.08) scaleX(0.96);
    letter-spacing: 3px;
    font-weight: 900;
    text-shadow:
        2px 0 0 var(--primary),
        -1px 0 0 var(--secondary),
        0 0 6px var(--glow);
    animation: mobile-glitch 4s ease-in-out infinite,
        soulcuts-pulse 6s ease-in-out infinite;
}

.mobile-3d-style {
    font-family: 'Arial', 'Helvetica', sans-serif;
    color: var(--primary);
    animation: threed-pulse 3s ease-in-out infinite;
    text-shadow: 0 0 8px var(--glow);
}

.mobile-music-page-style {
    font-family: 'Snakehead Graffiti', 'Brush Script MT', 'Lucida Handwriting', cursive;
    color: var(--accent);
}

/* Color shift для very soon */
@keyframes color-shift {
    0%, 100% {
        color: var(--secondary);
    }
    25% {
        color: var(--primary);
    }
    50% {
        color: var(--accent);
    }
    75% {
        color: var(--music);
    }
}

/* ===== НОВОГОДНИЙ СНЕГ (Y2K NOSTALGIA) ===== */
.winter-snowflake {
    position: fixed;
    top: -50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                 0 0 20px rgba(200, 230, 255, 0.3);
    animation: winter-snowfall linear infinite;
    user-select: none;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', monospace;
}

@keyframes winter-snowfall {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    
    10% {
        opacity: 1;
    }
    
    90% {
        opacity: 1;
    }
    
    100% {
        transform: translateY(calc(100vh + 50px)) translateX(30px) rotate(360deg);
        opacity: 0;
    }
}

/* Вариации размеров снежинок */
.winter-snowflake:nth-child(3n) {
    font-size: 14px;
    animation-duration: 40s;
}

.winter-snowflake:nth-child(3n+1) {
    font-size: 22px;
    animation-duration: 30s;
}

.winter-snowflake:nth-child(5n) {
    font-size: 16px;
    animation-duration: 45s;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
                 0 0 25px rgba(180, 220, 255, 0.4);
}

/* Отключение пузырей - ЗИМНИЙ РЕЖИМ */
.rising-bubble,
.bubbles-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    animation: none !important;
}

/* Включение пузырей только если явно разрешено */
body.bubbles-enabled .rising-bubble,
body.bubbles-enabled .bubbles-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: rise 25s infinite linear !important;
}