/* ГЛОБАЛЬНЫЕ НАСТРОЙКИ ПАЛИТРЫ */
:root {
    --bg-color: #FFD700; 
    --bg-alt: #FFC107; 
    --accent-blue: #0033A0; 
    --accent-orange: #FF6D00; 
    --accent-dark: #1F1F1F; 
    --accent-white: #FFFFFF;
    
    --card-bg: #FFF9C4; 
    --text-color: #1F1F1F; 
    --text-light: #FFFFFF;
    
    --pixel-font: 'VT323', monospace;
    --modern-font: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, html {
    margin: 0; padding: 0; min-height: 100vh;
    background-color: var(--bg-color); color: var(--text-color);
    font-family: var(--modern-font); -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll { overflow: hidden !important; touch-action: none; height: 100vh; }

.mt-5 { margin-top: 5px; } .mt-10 { margin-top: 10px; } .mt-15 { margin-top: 15px; } .mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-40 { margin-top: 40px; }
.px-15 { padding-left: 15px; padding-right: 15px; } .pb-10 { padding-bottom: 10px; } .pb-40 { padding-bottom: 40px; }
.p-15 { padding: 15px; }
.text-center { text-align: center; } .text-sm { font-size: 14px; line-height: 1.5; } .text-xl { font-size: 22px; }

.text-dark { color: var(--accent-dark); }
.text-white { color: var(--accent-white); }
.text-blue { color: var(--accent-blue); }
.text-yellow { color: var(--bg-color); }
.bg-blue { background-color: var(--accent-blue); }
.bg-orange { background-color: var(--accent-orange); }
.bg-dark { background-color: var(--accent-dark); }
.bg-white { background-color: var(--accent-white); }

.w-100 { width: 100%; } .block { display: block; } 
.pixel-font { font-family: var(--pixel-font); }

.border-dark { border: 2px solid var(--accent-dark); border-radius: 12px; }
.border-blue { border: 2px solid var(--accent-blue); border-radius: 12px; }
.border-orange { border: 2px solid var(--accent-orange); border-radius: 12px; }

.section-padded { padding-top: 40px; padding-bottom: 40px; margin: 0; position: relative; z-index: 1; }

/* === ОПТИМИЗИРОВАННЫЙ АППАРАТНЫЙ ШУМ (БЕЗ ЛАГОВ) === */
#noise-overlay {
    position: fixed; top: -50%; left: -50%; width: 200vw; height: 200vh;
    pointer-events: none; z-index: 9999; 
    opacity: 0.08; 
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: noiseJitter 0.2s infinite steps(3);
    will-change: transform;
}
@keyframes noiseJitter {
    0% { transform: translate3d(0, 0, 0); }
    33% { transform: translate3d(5%, 5%, 0); }
    66% { transform: translate3d(-5%, -5%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

/* --- ПРОДВИНУТЫЙ ФОН С БАНАНАМИ --- */
#main-content { display: block; position: relative; width: 100%; overflow-x: hidden; z-index: 2; }
.bg-animated-main { background-color: var(--bg-alt); }

.banana-bg-container { 
    position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
    z-index: 0; pointer-events: none; overflow: hidden; 
}

.floating-banana {
    position: absolute;
    background-image: url('banana.png');
    background-size: contain; background-repeat: no-repeat; background-position: center;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.15));
    will-change: transform; 
}

/* Крупные бананы */
@keyframes proDriftA { 0% { transform: translate(0,0) rotate(0deg) scale(1); } 33% { transform: translate(35px,-50px) rotate(25deg) scale(1.1); } 66% { transform: translate(-20px,-80px) rotate(-15deg) scale(0.9); } 100% { transform: translate(0,0) rotate(0deg) scale(1); } }
@keyframes proDriftB { 0% { transform: translate(0,0) rotate(0deg) scale(1); } 50% { transform: translate(-45px,60px) rotate(-35deg) scale(1.05); } 100% { transform: translate(0,0) rotate(0deg) scale(1); } }
@keyframes proDriftC { 0% { transform: translate(0,0) rotate(15deg); } 50% { transform: translate(25px,70px) rotate(45deg) scale(1.15); } 100% { transform: translate(0,0) rotate(15deg); } }
@keyframes proDriftD { 0% { transform: translate(0,0) rotate(-10deg); } 50% { transform: translate(50px,-40px) rotate(-40deg) scale(0.95); } 100% { transform: translate(0,0) rotate(-10deg); } }

/* 24 банана, распределенные от 2% до 98% высоты страницы */
.b-1  { top: 2%;   left: -2%; width: 100px; height: 100px; opacity: 0.6; animation: proDriftA 12s ease-in-out infinite; }
.b-2  { top: 6%;   left: 85%; width: 140px; height: 140px; opacity: 0.4; animation: proDriftB 14s ease-in-out infinite 1s; filter: blur(2px); }
.b-3  { top: 11%;  left: 10%; width: 80px;  height: 80px;  opacity: 0.7; animation: proDriftC 10s ease-in-out infinite 2s; }
.b-4  { top: 15%;  left: 80%; width: 110px; height: 110px; opacity: 0.5; animation: proDriftD 13s ease-in-out infinite 0.5s; }
.b-5  { top: 20%;  left: 5%;  width: 95px;  height: 95px;  opacity: 0.6; animation: proDriftB 15s ease-in-out infinite 1.5s; }
.b-6  { top: 24%;  left: 88%; width: 125px; height: 125px; opacity: 0.3; animation: proDriftC 11s ease-in-out infinite 0.8s; filter: blur(3px); }
.b-7  { top: 29%;  left: 12%; width: 75px;  height: 75px;  opacity: 0.8; animation: proDriftA 9s ease-in-out infinite 2.5s; }
.b-8  { top: 33%;  left: 75%; width: 105px; height: 105px; opacity: 0.5; animation: proDriftD 14s ease-in-out infinite 1.2s; filter: blur(1px); }
.b-9  { top: 38%;  left: 50%; width: 60px;  height: 60px;  opacity: 0.4; animation: proDriftC 8s ease-in-out infinite 0.3s; }
.b-10 { top: 42%;  left: 35%; width: 150px; height: 150px; opacity: 0.2; animation: proDriftA 18s ease-in-out infinite 3s; filter: blur(4px); }
.b-11 { top: 47%;  left: 55%; width: 70px;  height: 70px;  opacity: 0.7; animation: proDriftB 10s ease-in-out infinite 1.8s; }
.b-12 { top: 51%;  left: 35%; width: 115px; height: 115px; opacity: 0.4; animation: proDriftD 12s ease-in-out infinite 0.9s; filter: blur(2px); }
.b-13 { top: 56%;  left: 30%; width: 50px;  height: 50px;  opacity: 0.5; animation: proDriftA 7s ease-in-out infinite 2.1s; }
.b-14 { top: 60%;  left: 70%; width: 90px;  height: 90px;  opacity: 0.6; animation: proDriftB 11s ease-in-out infinite 0.7s; }
.b-15 { top: 65%;  left: 15%; width: 130px; height: 130px; opacity: 0.3; animation: proDriftC 16s ease-in-out infinite 1.1s; filter: blur(3px); }
.b-16 { top: 69%;  left: 50%; width: 85px;  height: 85px;  opacity: 0.8; animation: proDriftD 9s ease-in-out infinite 0.4s; }
.b-17 { top: 74%;  left: 80%; width: 100px; height: 100px; opacity: 0.5; animation: proDriftA 13s ease-in-out infinite 2.8s; }
.b-18 { top: 78%;  left: -5%; width: 140px; height: 140px; opacity: 0.2; animation: proDriftC 17s ease-in-out infinite 1.6s; filter: blur(5px); }
.b-19 { top: 83%;  left: 20%; width: 95px;  height: 95px;  opacity: 0.6; animation: proDriftB 14s ease-in-out infinite 2.1s; }
.b-20 { top: 87%;  left: 75%; width: 115px; height: 115px; opacity: 0.5; animation: proDriftD 11s ease-in-out infinite 1.1s; filter: blur(1px); }
.b-21 { top: 92%;  left: 40%; width: 130px; height: 130px; opacity: 0.3; animation: proDriftC 15s ease-in-out infinite 0.6s; filter: blur(2px); }
.b-22 { top: 96%;  left: 10%; width: 75px;  height: 75px;  opacity: 0.7; animation: proDriftA 9s ease-in-out infinite 2.3s; }
.b-23 { top: 98%;  left: 85%; width: 125px; height: 125px; opacity: 0.4; animation: proDriftB 13s ease-in-out infinite 0.2s; }
.b-24 { top: 45%;  left: -2%; width: 65px;  height: 65px;  opacity: 0.8; animation: proDriftD 8s ease-in-out infinite 1.5s; }

/* Мелкие, очень быстрые бананы */
.fast-b { filter: blur(1px) drop-shadow(0 5px 5px rgba(0,0,0,0.1)); }
@keyframes dartFast1 { 0% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(60px,-100px) rotate(180deg) scale(0.8); } 100% { transform: translate(0,0) rotate(360deg); } }
@keyframes dartFast2 { 0% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-80px,-50px) rotate(-180deg) scale(1.1); } 100% { transform: translate(0,0) rotate(-360deg); } }

.fb-1 { top: 8%;  left: 15%; width: 35px; height: 35px; opacity: 0.6; animation: dartFast1 5s linear infinite 0.2s; }
.fb-2 { top: 22%; left: 90%; width: 25px; height: 25px; opacity: 0.5; animation: dartFast2 4s linear infinite 0.5s; }
.fb-3 { top: 38%; left: 5%;  width: 30px; height: 30px; opacity: 0.7; animation: dartFast1 6s linear infinite 1.2s; }
.fb-4 { top: 52%; left: 65%; width: 40px; height: 40px; opacity: 0.4; animation: dartFast2 5.5s linear infinite 0.8s; }
.fb-5 { top: 68%; left: 25%; width: 28px; height: 28px; opacity: 0.6; animation: dartFast1 4.5s linear infinite 1.5s; }
.fb-6 { top: 85%; left: 95%; width: 32px; height: 32px; opacity: 0.5; animation: dartFast2 5s linear infinite 0.3s; }
.fb-7 { top: 15%; left: 45%; width: 22px; height: 22px; opacity: 0.7; animation: dartFast1 3.5s linear infinite 2s; }
.fb-8 { top: 45%; left: 85%; width: 38px; height: 38px; opacity: 0.5; animation: dartFast2 6.5s linear infinite 0.9s; }
.fb-9 { top: 75%; left: 55%; width: 26px; height: 26px; opacity: 0.6; animation: dartFast1 4s linear infinite 1.1s; }
.fb-10{ top: 95%; left: 35%; width: 34px; height: 34px; opacity: 0.4; animation: dartFast2 5.8s linear infinite 0.4s; }
.fb-11{ top: -2%; left: 75%; width: 29px; height: 29px; opacity: 0.7; animation: dartFast1 4.8s linear infinite 1.8s; }
.fb-12{ top: 102%;left: 10%; width: 36px; height: 36px; opacity: 0.5; animation: dartFast2 5.2s linear infinite 0.6s; }

/* === НОВЫЕ БЛОКИ ПОВЕРХ ВИДЕО === */
.video-overlay-info {
    position: absolute; top: 15px; left: 15px; z-index: 5;
    background: var(--bg-color); border: 3px solid var(--accent-dark);
    border-radius: 12px; padding: 6px 12px;
    box-shadow: 4px 4px 0 var(--accent-dark);
    transform: rotate(-3deg);
    display: flex; align-items: center; gap: 8px;
}
.date-main {
    font-family: var(--modern-font); font-size: 34px; font-weight: 900; 
    color: var(--accent-dark); line-height: 1; letter-spacing: -1px;
}
.date-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.date-text .month {
    font-family: var(--modern-font); font-size: 14px; font-weight: 900; 
    color: var(--accent-dark); line-height: 1; letter-spacing: 0.5px;
}
.date-text .time {
    font-family: var(--modern-font); font-size: 11px; font-weight: 900; 
    color: var(--accent-white); background: var(--accent-blue);
    padding: 2px 5px; border-radius: 4px; margin-top: 3px; line-height: 1;
}

/* Строгая зона для лого внизу видео */
.video-overlay-bottom {
    position: absolute; bottom: 20px; left: 0; right: 0;
    z-index: 5; display: flex; justify-content: center; align-items: center;
}
.video-overlay-bottom img { 
    width: 80%; max-width: 220px; height: 60px; object-fit: contain;
}

/* Очень медленная и плавная анимация для картинки (плывёт, а не качается) */
.slow-bob-img { animation: superSlowBob 6s ease-in-out infinite alternate; }
@keyframes superSlowBob { from { transform: translateY(0); } to { transform: translateY(-8px); } }

/* --- ИНТЕРАКТИВЫ — НАСТОЯЩИЕ ТОНКИЕ БАНАНЫ --- */
.interactive-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px 15px; padding-top: 30px; position: relative; z-index: 2;
}

.banana-card-wrapper {
    position: relative; display: flex; justify-content: center; align-items: center; width: 100%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.banana-card-wrapper:hover, .banana-card-wrapper:active { transform: translateY(-3px) scale(1.02); }

/* Карточка банана - Очень худая, без точек, жёлтый градиент мякоти */
.banana-shape-body {
    position: relative; width: 100%; min-height: 75px;
    background: linear-gradient(135deg, #FFF9C4 0%, #FFD600 100%); /* Светло-жёлтый мякоти банана */
    border: 3px solid var(--accent-dark); 
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    padding: 22px 6px 10px 6px; 
    text-align: center;
    box-shadow: 3px 4px 0px rgba(0,0,0,0.15), inset 4px 4px 10px rgba(255,255,255,0.7), inset -4px -4px 10px rgba(200, 100, 0, 0.2); 
    z-index: 2;
}

/* Формы бананов */
.curve-left { border-radius: 40px 10px 40px 10px; }
.curve-right { border-radius: 10px 40px 10px 40px; }

/* Текстура - Чёрточки */
.banana-dash {
    position: absolute;
    width: 14px; height: 4px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.4); 
    border-radius: 50%;
    pointer-events: none;
}
.d-1 { top: 35%; left: 15%; transform: rotate(20deg); width: 18px; }
.d-2 { bottom: 25%; right: 18%; transform: rotate(-15deg); width: 12px; }
.d-3 { top: 65%; left: 80%; transform: rotate(45deg); width: 8px; }

/* РЕАЛИСТИЧНЫЕ КОНЧИКИ ПО БОКАМ */
.cap-top, .cap-bottom { position: absolute; z-index: -1; }
/* Ствол (хвостик) - Тонкий и вытянутый */
.cap-top { width: 10px; height: 18px; background: #5D4037; border: 2px solid var(--accent-dark); }
/* Попка - Плоская и широкая, тёмная */
.cap-bottom { width: 16px; height: 8px; background: #3E2723; border: 2px solid var(--accent-dark); }

/* Расстановка по бокам */
.curve-left .cap-top { top: -8px; right: 25px; border-radius: 4px 4px 0 0; transform: rotate(15deg); border-bottom: none; }
.curve-left .cap-bottom { bottom: -5px; left: 25px; border-radius: 0 0 4px 4px; transform: rotate(15deg); border-top: none; }
.curve-right .cap-top { top: -8px; left: 25px; border-radius: 4px 4px 0 0; transform: rotate(-15deg); border-bottom: none; }
.curve-right .cap-bottom { bottom: -5px; right: 25px; border-radius: 0 0 4px 4px; transform: rotate(-15deg); border-top: none; }

/* Иконка в круглом белом медальоне */
.int-visual {
    position: absolute; top: -24px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; background: var(--accent-white); border-radius: 50%;
    border: 3px solid var(--accent-dark); display: flex; justify-content: center; align-items: center;
    box-shadow: 2px 2px 0px var(--accent-dark); z-index: 5;
}
.int-visual svg { width: 22px; height: 22px; stroke: var(--accent-dark); fill: none; stroke-width: 2.4; }

.int-content { position: relative; z-index: 3; }
.int-title-neo { font-family: var(--modern-font); font-weight: 900; font-size: 12px; color: var(--accent-dark); margin: 0; text-transform: uppercase; line-height: 1.25; }

/* --- КОНФЕТТИ: АСИНХРОННЫЙ ХАОС --- */
.confetti-wrapper { position: absolute; top: 50%; left: 50%; width: 0; height: 0; z-index: 6; pointer-events: none; }
.card-confetti {
    position: absolute; opacity: 0; 
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-iteration-count: infinite;
    will-change: transform, opacity;
}

/* 7 Частиц разных цветов и форм */
.c-1 { background: #FF007F; width: 6px; height: 12px; animation: wildBurst1 2.3s infinite calc(var(--card-delay) + 0s); }
.c-2 { background: #00E5FF; width: 8px; height: 8px; border-radius: 50%; animation: wildBurst2 2.6s infinite calc(var(--card-delay) + 0.2s); }
.c-3 { background: #39FF14; width: 10px; height: 6px; animation: wildBurst3 2.1s infinite calc(var(--card-delay) + 0.5s); }
.c-4 { background: #FF6D00; width: 6px; height: 6px; border-radius: 50%; animation: wildBurst4 2.8s infinite calc(var(--card-delay) + 0.1s); }
.c-5 { background: #A020F0; width: 8px; height: 10px; animation: wildBurst5 2.4s infinite calc(var(--card-delay) + 0.4s); }
.c-6 { background: #FFFF00; width: 5px; height: 14px; animation: wildBurst6 2.9s infinite calc(var(--card-delay) + 0.7s); }
.c-7 { background: #FFFFFF; border: 2px solid #1F1F1F; width: 7px; height: 7px; border-radius: 50%; animation: wildBurst7 2.5s infinite calc(var(--card-delay) + 0.3s); }

@keyframes wildBurst1 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(-50px,-70px) scale(1.5) rotate(180deg); opacity: 0; } }
@keyframes wildBurst2 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(50px,-60px) scale(1.3) rotate(360deg); opacity: 0; } }
@keyframes wildBurst3 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(-30px,-90px) scale(1.7) rotate(-180deg); opacity: 0; } }
@keyframes wildBurst4 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(40px,-100px) scale(1.4) rotate(90deg); opacity: 0; } }
@keyframes wildBurst5 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(15px,-110px) scale(1.5) rotate(270deg); opacity: 0; } }
@keyframes wildBurst6 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(-60px,-40px) scale(1.2) rotate(135deg); opacity: 0; } }
@keyframes wildBurst7 { 0% { transform: translate(-50%,-50%) scale(0) rotate(0deg); opacity: 1; } 100% { transform: translate(60px,-30px) scale(1.6) rotate(-225deg); opacity: 0; } }

/* ВОДЯНОЙ ЗНАК GIRL BANDA */
.ghost-watermark {
    position: fixed; top: 55%; left: 50%; transform: translate(-50%, -50%) scale(0.85); width: 130vw; max-width: 600px;
    z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s ease, transform 1.2s ease;
}
.ghost-watermark.visible { opacity: 0.04; transform: translate(-50%, -50%) scale(1); }

/* --- ДЕСКТОП --- */
#desktop-block { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 10%, var(--bg-color) 0%, var(--bg-alt) 50%, var(--accent-orange) 100%); z-index: 9999; flex-direction: column; justify-content: center; align-items: center; }
.desktop-content { display: flex; flex-direction: column; align-items: center; gap: 15px; width: 90%; max-width: 650px; padding: 20px; z-index: 2; }
.floating-logo { animation: floatLogo 4s ease-in-out infinite;}
@keyframes floatLogo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.info-card, .action-card { background: rgba(255, 255, 255, 0.9); border: 3px solid var(--accent-dark); border-radius: 20px; width: 100%; box-sizing: border-box; backdrop-filter: blur(12px); box-shadow: 6px 6px 0px rgba(0,0,0,0.2); }
.info-card { display: flex; justify-content: space-between; align-items: center; padding: 25px 40px; }
.info-text { font-size: 20px; font-weight: 700; line-height: 1.4; text-align: left; }
.info-text strong { display: inline-block; margin-top: 12px; font-size: 22px; color: var(--accent-blue); }
.qr-code { width: 120px; height: 120px; background: #fff; border-radius: 12px; padding: 6px; border: 2px solid var(--accent-dark); } .qr-code img { width: 100%; height: 100%; border-radius: 6px; }
.action-card { display: flex; justify-content: space-between; padding: 20px 25px; gap: 20px; }
.btn-action { flex: 1; background: var(--accent-blue); color: white; text-align: center; padding: 18px 10px; border-radius: 12px; text-decoration: none; font-weight: 900; transition: 0.3s; border: 2px solid var(--accent-dark); box-shadow: 4px 4px 0 var(--accent-dark);}
.btn-action:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--accent-dark); }
.desktop-footer { margin-top: 20px; color: var(--accent-dark); font-weight: 900; }

/* === СПЛЕШ СКРИН (ПОЛНАЯ ШИРИНА И АНИМАЦИЯ ПОЯВЛЕНИЯ ОЧКОВ) === */
#splash-screen { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--bg-color); z-index: 10000; 
    display: flex; justify-content: center; align-items: center; 
    transition: opacity 0.4s ease-out; 
}
#splash-screen.fade-out { opacity: 0; pointer-events: none; }

.splash-glasses {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100vw; height: 100vh;
    background-image: url('minglass.png'); background-size: 100vw auto;
    background-position: center; background-repeat: no-repeat;
    /* Анимация проявления из 0% и цикличной пульсации прозрачности */
    animation: glassesFadePulse 2s ease-in-out infinite; 
    will-change: transform, opacity;
}

@keyframes glassesFadePulse {
    0% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.96); }
    15% { opacity: 0.70; transform: translate3d(-50%, -50%, 0) scale(1); }
    50% { opacity: 0.35; transform: translate3d(-50%, -50%, 0) scale(1.03); }
    85% { opacity: 0.70; transform: translate3d(-50%, -50%, 0) scale(1); }
    100% { opacity: 0.35; transform: translate3d(-50%, -50%, 0) scale(0.98); }
}

.pulse-logo {
    width: 140px; height: auto; position: relative; z-index: 10;
    animation: pulseHeart 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}
@keyframes pulseHeart { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* МЕНЮ (ОВЕРЛЕЙ) */
.mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(31, 31, 31, 0.95); backdrop-filter: blur(10px); z-index: 9998; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.mobile-menu-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.menu-content { display: flex; flex-direction: column; text-align: center; width: 100%;}
.menu-link { font-family: var(--pixel-font); font-size: 42px; color: var(--accent-white); text-decoration: none; margin: 15px 0; text-transform: uppercase; text-shadow: 3px 3px 0px var(--accent-blue); transition: 0.2s; }
.menu-link:active { color: var(--bg-color); text-shadow: 3px 3px 0px var(--accent-dark); transform: scale(0.95); }
.close-menu-btn { margin-top: 40px; padding: 15px 30px; font-family: var(--modern-font); font-weight: 900; font-size: 16px; background: transparent; border: 2px solid var(--bg-color); color: var(--bg-color); border-radius: 30px; cursor: pointer; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }

/* АНИМАЦИИ ПОЯВЛЕНИЯ */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; } 
.reveal-up { opacity: 0; transform: translateY(100px); transition: all 0.5s ease-out; }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.float-anim { animation: floatSoft 3s ease-in-out infinite alternate; }
@keyframes floatSoft { from { transform: translateY(0px) rotate(-5deg); } to { transform: translateY(-10px) rotate(5deg); } }

/* ВАУ-ЭФФЕКТЫ */
.hover-lift { transition: transform 0.3s ease, filter 0.3s ease; }
.hover-lift:active { transform: translateY(-3px) scale(0.98); filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.floating-shadow { box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.1); }

/* Шапка и Бургер */
.mobile-header { display: flex; justify-content: flex-start; align-items: center; padding: 15px 20px; position: relative; z-index: 10; }
.header-title { font-family: var(--modern-font); font-weight: 900; font-style: italic; font-size: 22px; color: var(--accent-dark); margin: 0; letter-spacing: 0.5px; text-transform: uppercase;}

.burger-btn { position: fixed; top: 15px; right: 20px; width: 45px; height: 45px; background: var(--bg-alt); border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border: 2px solid var(--accent-dark); box-shadow: 2px 2px 0px var(--accent-dark); cursor: pointer; transition: 0.3s; z-index: 9999; }
.burger-btn:active { transform: scale(0.9); }
.burger-btn span { display: block; width: 20px; height: 3px; background: var(--accent-dark); border-radius: 2px; transition: 0.3s; }
.burger-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.open span:nth-child(2) { opacity: 0; }
.burger-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* === ОБНОВЛЕННАЯ КИРИЛЛИЧЕСКАЯ БЕГУЩАЯ СТРОКА (ПЛАВНАЯ И КОМПАКТНАЯ) === */
.tilted-marquee { transform: rotate(-2deg) scale(1.05); margin-top: 5px; margin-bottom: 10px; }
.marquee-container { width: 100%; background: var(--accent-blue); border-top: 3px solid var(--accent-dark); border-bottom: 3px solid var(--accent-dark); padding: 6px 0; overflow: hidden; z-index: 5; position: relative; }
.shadow-soft { box-shadow: 0 4px 15px rgba(0, 51, 160, 0.2); }
.marquee-track { display: flex; width: max-content; animation: marquee-infinite 35s linear infinite; will-change: transform; }
.marquee-content { display: flex; flex-shrink: 0; }
.marquee-content span { 
    padding-right: 50px; 
    font-family: var(--modern-font); /* Принудительно Montserrat для поддержки кириллицы */
    font-weight: 900; 
    font-style: italic; 
    font-size: 13px; /* Уменьшенный размер букв */
    color: var(--accent-white); 
    letter-spacing: 1px; 
    text-transform: uppercase; 
}
@keyframes marquee-infinite { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-50%, 0, 0); } /* Идеальный бесшовный сдвиг на половину ширины трека */
}

/* Видео блок (Плавный переход) */
#about.section-padded { padding-top: 10px; padding-bottom: 5px; } 
.promo-section { margin-top: 20px; position: relative; z-index: 10; } /* Увеличили отступ между видео и ОПЕН ЭЙР */

.video-section { padding-left: 15px; padding-right: 15px; }
.video-wrapper { position: relative; width: 100%; height: 60vh; border-radius: 20px; border: 4px solid var(--accent-dark); overflow: hidden; box-shadow: 6px 6px 0px rgba(0,0,0,0.1); background-color: #000; } 
.bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity 0.8s ease;}
.bg-video.loaded { opacity: 1; }

/* Типографика и Блоки */
.neon-title { font-weight: 900; font-size: 32px; margin: 0 0 15px 0; text-transform: uppercase; line-height: 1.1; }
.pixel-title { font-family: var(--pixel-font); font-size: 46px; margin: 0 0 10px 0; }
.street-card { background: var(--card-bg); border: 3px solid var(--accent-dark); border-radius: 20px; padding: 35px 25px; box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1); position: relative; z-index: 2;}
.street-card p { font-weight: 500; font-size: 16px; line-height: 1.5; margin-bottom: 15px; color: var(--accent-dark); }
.bordered-title-box { border: 3px solid var(--accent-dark); border-radius: 15px; padding: 25px 20px; background: var(--card-bg); }
.bordered-title-box h3 { font-size: 28px; font-weight: 900; text-transform: uppercase; margin: 0; line-height: 1.2; color: var(--accent-dark);}

/* БЛОК СЦЕН */
.carousel-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding: 0 15px 15px 15px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.carousel-container::-webkit-scrollbar { display: none; }
.slide-card { scroll-snap-align: center; flex: 0 0 88%; background: var(--card-bg); border-radius: 20px; border: 3px solid var(--accent-dark); position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 6px 6px 0 rgba(0,0,0,0.1);}

.stage-badge-top { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 16px; padding: 8px 25px; border-radius: 30px; background: var(--card-bg); color: var(--accent-blue); border: 3px solid var(--accent-blue); z-index: 2; text-transform: uppercase; white-space: nowrap; box-shadow: 3px 3px 0 rgba(0,51,160,0.2);}
.stage-image-placeholder { height: 280px; background-size: cover; background-position: center top; position: relative; }
.overlay-gradient-heavy { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--card-bg) 10%, transparent 80%); }

.slide-content { padding: 25px; flex-grow: 1; position: relative; z-index: 2; margin-top: -20px;}
.stage-desc-main { font-size: 20px; font-weight: 900; color: var(--accent-dark); margin-bottom: 10px; line-height: 1.3;}
.stage-desc-sub { font-size: 14px; font-weight: 500; color: #333; line-height: 1.4;}

/* Нюдовые теги в стиле сцен */
.city-tags { display: flex; gap: 10px; justify-content: center; }
.city-pill { padding: 6px 15px; font-size: 12px; font-weight: 900; border-radius: 20px; border: 1px solid; }
.pill-nude-blue { background: #E3F2FD; color: #1565C0; border-color: #90CAF9; }
.pill-nude-orange { background: #FFE0B2; color: #E65100; border-color: #FFB74D; }
.pill-nude-yellow { background: #FFF9C4; color: #F57F17; border-color: #FBC02D; }
.pill-nude-green { background: #E8F5E9; color: #2E7D32; border-color: #A5D6A7; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { width: 12px; height: 12px; border: 2px solid var(--accent-dark); background: transparent; border-radius: 50%; transition: 0.3s; }
.dot.active { background: var(--accent-blue); border-color: var(--accent-blue); transform: scale(1.2); }

/* --- ЛАЙН-АП --- */
.lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.animated-border { position: relative; }
.animated-border::after { content:''; position: absolute; top:-3px; left:-3px; right:-3px; bottom:-3px; background: linear-gradient(45deg, var(--bg-color), var(--accent-blue), var(--accent-orange)); z-index: -1; background-size: 400%; animation: gradientBG 3s linear infinite; border-radius: 15px;}
.artist-card { background: var(--accent-blue); border-radius: 12px; height: 120px; display: flex; align-items: flex-end; padding: 10px; border: 2px solid var(--accent-dark); position: relative; overflow: hidden; box-shadow: inset 0 0 20px rgba(0,0,0,0.3);}
.artist-card.main-artist { grid-column: 1 / -1; height: 180px; background: var(--accent-orange); border: 2px solid var(--accent-dark); }
.artist-card::before { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); z-index: 1; }
.artist-name { font-family: var(--pixel-font); font-size: 24px; background: transparent; padding: 4px 8px; width: 100%; text-align: center; text-shadow: 2px 2px 0 #000; position: relative; z-index: 2; color: #fff; }
.glitch-text { position: relative; color: white; }
.glitch-text::before, .glitch-text::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; }
.glitch-text::before { left: 2px; text-shadow: -1px 0 var(--bg-color); clip: rect(24px, 550px, 90px, 0); animation: glitch-anim 2.5s infinite linear alternate-reverse; }
.glitch-text::after { left: -2px; text-shadow: -1px 0 var(--accent-blue); clip: rect(85px, 550px, 140px, 0); animation: glitch-anim 3s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip: rect(10px, 9999px, 44px, 0); } 20% { clip: rect(50px, 9999px, 80px, 0); } 40% { clip: rect(30px, 9999px, 90px, 0); } 60% { clip: rect(70px, 9999px, 20px, 0); } 80% { clip: rect(10px, 9999px, 60px, 0); } 100% { clip: rect(90px, 9999px, 40px, 0); } }

/* Кнопки */
.btn-outline-dark { border: 3px solid var(--accent-dark); color: var(--accent-dark); padding: 16px; border-radius: 12px; font-weight: 900; text-decoration: none; text-transform: uppercase; transition: 0.3s; background: rgba(0,0,0,0.05);}
.btn-outline-yellow { border: 3px solid var(--bg-color); color: var(--bg-color); padding: 16px; border-radius: 12px; font-weight: 900; text-decoration: none; text-transform: uppercase; transition: 0.3s; background: rgba(255, 215, 0, 0.1);}

.smooth-btn {
    flex-grow: 1; margin-right: 15px; display: flex; justify-content: center; align-items: center; gap: 10px;
    padding: 18px 20px; font-family: var(--modern-font); font-weight: 900; font-size: 18px;
    text-transform: uppercase; text-decoration: none; text-align: center; color: var(--accent-white);
    background: var(--accent-blue); border: 3px solid var(--accent-dark); box-shadow: 4px 4px 0px var(--accent-dark);
    border-radius: 12px; position: relative; overflow: hidden;
}
.smooth-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0px var(--accent-dark); }

/* Билеты */
.vertical-cards-container { display: flex; flex-direction: column; gap: 25px; padding: 0 15px; }
.ticket-card-vertical { border-radius: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 6px 6px 0 rgba(0,0,0,0.1); border: 3px solid var(--accent-dark); }
.ticket-card-vertical.bg-ticket-light { background: var(--card-bg); }
.ticket-card-vertical.bg-ticket-dark { background: var(--accent-dark); border-color: var(--bg-color); }
.ticket-header-flex { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.ticket-header-text { flex: 1; padding-right: 10px; }
.ticket-badge-static { font-family: var(--modern-font); font-weight: 900; font-size: 14px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; flex-shrink: 0; border: 2px solid var(--accent-dark);}

.ticket-perks-emoji { list-style: none; padding: 0; margin: 0; }
.ticket-perks-emoji li { display: flex; align-items: flex-start; margin-bottom: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ticket-perks-emoji li span { margin-right: 12px; font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.ticket-price { font-family: var(--modern-font); font-weight: 900; font-size: 36px; border-top: 2px dashed rgba(0,0,0,0.2); padding-top: 15px; text-align: center; }
.bg-ticket-dark .ticket-price { border-top-color: rgba(255,255,255,0.2); }

/* FAQ */
.accordion-item { margin-bottom: 20px; border-radius: 12px; overflow: hidden; background: var(--card-bg); border: 3px solid var(--accent-dark); box-shadow: 4px 4px 0 rgba(0,0,0,0.1); transition: 0.2s; }
.accordion-header { width: 100%; background: transparent; border: none; padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; cursor: pointer; border-radius: 12px; }
.accordion-title { font-family: var(--modern-font); font-weight: 900; color: var(--accent-dark); font-size: 16px; text-align: left; padding-right: 15px; line-height: 1.3; }
.accordion-icon { width: 36px; height: 36px; background: var(--accent-blue); border-radius: 50%; color: var(--accent-white); display: flex; justify-content: center; align-items: center; font-size: 24px; font-weight: 400; transition: transform 0.3s ease; flex-shrink: 0; border: 2px solid var(--accent-dark); }
.accordion-header.active .accordion-icon { transform: rotate(45deg); background: var(--accent-orange); }
.accordion-content { background: transparent; border: none; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; padding: 0 20px; }
.accordion-content p { margin: 0 0 20px 0; font-size: 14px; line-height: 1.6; color: var(--accent-dark); font-weight: 500;}

/* ПОДВАЛ */
.main-footer { text-align: center; padding: 0 20px; display: flex; flex-direction: column; align-items: center;}
.footer-links { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.footer-links a { color: var(--accent-dark); text-decoration: none; font-weight: 900; font-size: 16px; border-bottom: 2px dashed rgba(31,31,31,0.5); padding-bottom: 2px; transition: 0.3s;}
.footer-links a:active { color: var(--accent-blue); border-color: var(--accent-blue); }
.footer-copy { font-size: 13px; color: var(--accent-dark); opacity: 0.7; line-height: 1.6; font-weight: 700; text-transform: uppercase;}

/* --- ПЛАВАЮЩАЯ ПАНЕЛЬ (ИДЕАЛЬНОЕ ВЫРАВНИВАНИЕ КНОПОК) --- */
.bottom-spacer { height: 120px; }
.sticky-bottom-bar { 
    position: fixed; bottom: 0; left: 0; width: 100%; padding: 20px; box-sizing: border-box; 
    display: flex; justify-content: space-between; 
    align-items: flex-end; /* Выравнивает элементы строго по их нижней границе с учетом тени */
    background: linear-gradient(to top, var(--bg-color) 70%, transparent); z-index: 100; 
}

.glare-btn::after {
    content: ''; position: absolute; top: 0; left: -150%; width: 150%; height: 100%;
    /* Мягкий и широкий градиент блика */
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.1) 30%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.1) 70%, transparent 100%);
    transform: skewX(-20deg); 
    animation: slowGlare 6s ease-in-out infinite; 
    z-index: 1; pointer-events: none;
}
@keyframes slowGlare {
    0%, 20% { left: -150%; }
    80%, 100% { left: 150%; }
}
.glare-btn span, .glare-btn svg { position: relative; z-index: 2; }

/* ТГ Подсказка (Долгая видимость: появляется и висит 6 сек) */
.tg-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
.tg-tooltip {
    position: absolute; top: -45px; right: 0;
    background: var(--accent-dark); color: var(--accent-white);
    font-family: var(--modern-font); font-weight: 700; font-size: 12px;
    padding: 8px 12px; border-radius: 12px; white-space: nowrap;
    box-shadow: 2px 2px 0 var(--accent-blue);
    pointer-events: none; opacity: 0; transform: translateY(10px);
    animation: popTooltip 15s ease-in-out infinite;
}
.tg-tooltip::after {
    content: ''; position: absolute; bottom: -4px; right: 22px;
    width: 10px; height: 10px; background: var(--accent-dark);
    transform: rotate(45deg);
}

@keyframes popTooltip {
    0%, 50%, 100% { opacity: 0; transform: translateY(10px); }
    55%, 95% { opacity: 1; transform: translateY(0); }
}

.chat-bubble-btn { 
    width: 60px; height: 60px; 
    background: var(--accent-white); 
    border-radius: 50%; 
    border: 3px solid var(--accent-dark);
    display: flex; justify-content: center; align-items: center; 
    flex-shrink: 0; transition: transform 0.2s ease, box-shadow 0.2s ease; 
    box-shadow: 4px 4px 0px var(--accent-dark);
    text-decoration: none;
}
.chat-bubble-btn:active { 
    transform: translate(4px, 4px); 
    box-shadow: 0px 0px 0px var(--accent-dark); 
}

/* МЕДИА ЗАПРОСЫ (ДЛЯ ДЕСКТОПА) */
@media screen and (min-width: 769px) { 
    #desktop-block { display: flex; } 
    #splash-screen, #main-content, #burger-btn, #ghost-watermark, .sticky-bottom-bar, #ticket-modal { display: none !important; } 
}
@media screen and (max-width: 768px) { 
    #main-content { display: block !important; } 
}
/* --- РАНДОМНЫЕ МИНЬОНЫ (ПРИВЯЗКА К БЛОКАМ) --- */
.random-minion-inline {
    position: absolute !important;
    width: 85px !important;
    height: auto !important;
    cursor: pointer !important;
    /* Увеличиваем z-index, чтобы он гарантированно был выше всего содержимого блока */
    z-index: 9999 !important; 
    pointer-events: auto !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) !important;
    will-change: transform, opacity;
}

/* Эффект тапа */
.random-minion-inline:active {
    transform: scale(0.8) !important;
    transition: transform 0.05s !important;
}

/* Классы для разных краев блока (увеличено до 15 секунд) */
.peek-top {
    top: 0; 
    animation: peekTopAnim 15s ease-in-out forwards;
}
.peek-bottom {
    bottom: 0;
    animation: peekBottomAnim 15s ease-in-out forwards;
}
.peek-left {
    left: 0;
    animation: peekLeftAnim 15s ease-in-out forwards;
}
.peek-right {
    right: 0;
    animation: peekRightAnim 15s ease-in-out forwards;
}

/* АНИМАЦИИ: Долгая жизнь (15с), стоят на ногах, дышат */

/* Выглядывает сверху: стоит на ногах прямо, слегка качается */
@keyframes peekTopAnim {
    0%, 100% { transform: translateY(10px) scale(0.5); opacity: 0; }
    5%, 95% { transform: translateY(-65px) scale(1) rotate(4deg); opacity: 1; }
    30% { transform: translateY(-70px) scale(1) rotate(-3deg); opacity: 1; }
    60% { transform: translateY(-65px) scale(1) rotate(5deg); opacity: 1; }
    80% { transform: translateY(-70px) scale(1) rotate(-2deg); opacity: 1; }
}

/* Выглядывает снизу: единственный случай, когда он кверху ногами (висит) */
@keyframes peekBottomAnim {
    0%, 100% { transform: translateY(-10px) scale(0.5) rotate(180deg); opacity: 0; }
    5%, 95% { transform: translateY(70px) scale(1) rotate(175deg); opacity: 1; }
    40% { transform: translateY(75px) scale(1) rotate(185deg); opacity: 1; }
    70% { transform: translateY(68px) scale(1) rotate(172deg); opacity: 1; }
}

/* Выглядывает слева: стоит на ногах, просто наклоняет корпус из-за угла */
@keyframes peekLeftAnim {
    0%, 100% { transform: translateX(10px) scale(0.5) rotate(0deg); opacity: 0; }
    5%, 95% { transform: translateX(-60px) scale(1) rotate(-15deg); opacity: 1; }
    25% { transform: translateX(-65px) scale(1) rotate(-22deg); opacity: 1; }
    50% { transform: translateX(-58px) scale(1) rotate(-12deg); opacity: 1; }
    75% { transform: translateX(-68px) scale(1) rotate(-20deg); opacity: 1; }
}

/* Выглядывает справа: стоит на ногах, наклоняет корпус влево из-за угла */
@keyframes peekRightAnim {
    0%, 100% { transform: translateX(-10px) scale(0.5) rotate(0deg); opacity: 0; }
    5%, 95% { transform: translateX(60px) scale(1) rotate(15deg); opacity: 1; }
    35% { transform: translateX(65px) scale(1) rotate(22deg); opacity: 1; }
    65% { transform: translateX(58px) scale(1) rotate(12deg); opacity: 1; }
    85% { transform: translateX(68px) scale(1) rotate(20deg); opacity: 1; }
}
/* --- ФИКС ПРЫЖКА СТРАНИЦЫ ПРИ ЗАКРЫТИИ ОКНА --- */
body.no-scroll {
    overflow: hidden !important;
    height: 100% !important; /* Заменяем 100vh на 100%, чтобы страница не обрезалась */
    touch-action: auto !important;
}

/* --- ШПИОН: ИДЕАЛЬНЫЙ БАЛАНС (НЕ ПЕРЕКРЫВАЕТ ТЕКСТ) --- */
.shpion-peeking {
    position: absolute;
    bottom: -10px; 
    right: -10px;
    width: 110px; /* Идеальный размер, чтобы не лезть на текст */
    cursor: pointer;
    z-index: 10;
    will-change: transform;
    animation: cornerPeekaboo 11s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    transform-origin: bottom right;
}

.shpion-peeking img {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* ПРОФЕССИОНАЛЬНЫЙ ЭФФЕКТ ТАПА */
.shpion-peeking:active {
    animation-play-state: paused;
    transform: scale(0.88) translate(0px, -5px) rotate(-10deg) !important;
    transition: transform 0.06s ease-out;
}

/* АНИМАЦИЯ: Выглядывает ровно до воротника, не закрывая текст */
@keyframes cornerPeekaboo {
    0%, 20% {
        /* Полностью спрятан (~2.2 сек) */
        transform: translate(90px, 90px) rotate(-35deg);
    }
    26% {
        /* Плавно выныривает */
        transform: translate(5px, -12px) rotate(-8deg);
    }
    30% {
        /* Основная точка фиксации (видны кепка, глаза, улыбка, верх плаща) */
        transform: translate(8px, -8px) rotate(-6deg);
    }
    45% {
        /* Микро-наклон влево */
        transform: translate(4px, -11px) rotate(-11deg);
    }
    65% {
        /* Микро-наклон вправо */
        transform: translate(10px, -6px) rotate(-4deg);
    }
    85% {
        /* Замирает перед уходом */
        transform: translate(8px, -8px) rotate(-6deg);
    }
    93%, 100% {
        /* Мягко прячется обратно в угол */
        transform: translate(90px, 90px) rotate(-35deg);
    }
}

/* --- МОДАЛЬНЫЕ ОКНА (UI/UX Дизайн) --- */
.minion-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(31, 31, 31, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    /* Плавное проявление фона */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.minion-modal-overlay.active {
    opacity: 1; visibility: visible;
}

.minion-modal-content {
    width: 90%;
    max-width: 420px;
    background-color: var(--card-bg);
    border: 4px solid var(--accent-dark);
    border-radius: 20px;
    padding: 40px 25px 25px;
    text-align: center;
    position: relative;
    /* Нео-брутализм: жесткая тень */
    box-shadow: 8px 8px 0px var(--accent-dark);
    /* Начальное состояние для окна: чуть ниже и сжатое */
    transform: translateY(40px) scale(0.9);
    opacity: 0;
    /* Кинематографичная плавность появления окна */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.minion-modal-overlay.active .minion-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Декоративная плашка-наклейка сверху модалки */
.minion-modal-content::before {
    content: 'SECRET';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    background: var(--accent-orange);
    color: var(--accent-white);
    font-family: var(--pixel-font);
    font-size: 24px;
    padding: 2px 20px;
    border: 3px solid var(--accent-dark);
    box-shadow: 4px 4px 0 var(--accent-dark);
    z-index: 2;
}

.secret-code-box {
    background: var(--accent-white);
    border: 3px dashed var(--accent-blue);
    padding: 15px;
    font-size: 28px;
    font-family: var(--modern-font);
    font-weight: 900;
    letter-spacing: 6px;
    border-radius: 12px;
    margin-bottom: 15px;
    color: var(--accent-dark);
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.05);
}

/* ПОДВАЛ */
.main-footer { 
    text-align: center; 
    padding: 0 20px; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
}

.footer-links { 
    display: flex; 
    align-items: center; 
}

/* Крупные основные ссылки */
.main-links { 
    flex-direction: column; 
    gap: 15px; 
}
.main-links a { 
    color: var(--accent-dark); 
    text-decoration: none; 
    font-weight: 900; 
    font-size: 16px; 
    border-bottom: 2px dashed rgba(31,31,31,0.5); 
    padding-bottom: 2px; 
    transition: 0.3s;
}
.main-links a:active { 
    color: var(--accent-blue); 
    border-color: var(--accent-blue); 
}

/* Мелкие юридические ссылки */
.legal-links { 
    flex-direction: row; 
    gap: 15px; 
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0.8;
}
.legal-links a {
    color: var(--accent-dark); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 11px; 
    text-transform: uppercase;
    border-bottom: 1px dashed rgba(31,31,31,0.3);
    padding-bottom: 1px;
}

/* Копирайт и куки */
.footer-copy { 
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px; 
    color: var(--accent-dark); 
    opacity: 0.8; 
    line-height: 1.2; 
    font-weight: 700; 
}
.cookie-text {
    font-size: 9px;
    font-weight: 600;
    opacity: 0.6;
    text-transform: none;
}

/* Микро-дисклеймер от юристов */
.legal-disclaimer {
    max-width: 90%;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.legal-disclaimer:active {
    opacity: 0.8;
}
.legal-disclaimer p {
    font-family: var(--modern-font);
    font-size: 9px;
    line-height: 1.3;
    color: var(--accent-dark);
    margin: 0;
    text-align: center;
    font-weight: 500;
}
.legal-inline-link {
    color: var(--accent-dark);
    text-decoration: underline;
    opacity: 0.85;
}
.legal-inline-link:active {
    color: var(--accent-blue);
}
/* --- UI/UX ПЛАШКИ ССЫЛКИ СО СКИДКОЙ --- */
.discount-link-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-white);
    border: 3px dashed var(--accent-blue);
    padding: 12px 15px;
    font-family: var(--modern-font);
    font-weight: 800;
    font-size: 15px;
    border-radius: 12px;
    color: var(--accent-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0px 0px 10px rgba(0,0,0,0.05);
    margin-bottom: 5px;
}

.discount-link-box:active {
    transform: scale(0.96);
    background: #f5f5f5;
}

.discount-link-box.copied {
    background: var(--accent-orange);
    border-color: var(--accent-dark);
    color: var(--accent-white);
}

.discount-link-box svg {
    flex-shrink: 0;
    margin-left: 10px;
    stroke: currentColor; /* Иконка будет менять цвет вместе с текстом */
}
/* Пульсация кнопки Telegram */
.tg-pulse-btn {
    animation: tgPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes tgPulse {
    0% { transform: scale(1); box-shadow: 4px 4px 0px var(--accent-dark), 0 0 0 0 rgba(255, 215, 0, 0.7); }
    50% { transform: scale(1.02); box-shadow: 6px 6px 0px var(--accent-dark), 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 4px 4px 0px var(--accent-dark), 0 0 0 0 rgba(255, 215, 0, 0); }
}
/* --- TELEGRAM БЛОК --- */

/* Полупрозрачный синий оверлей поверх фото */
.tg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Фирменный глубокий синий цвет с прозрачностью 85% */
    background: rgba(0, 51, 160, 0.85); 
    z-index: 1;
}

/* Строгий современный шрифт а-ля Telegram Logo */
.tg-logo-font {
    font-family: var(--modern-font); /* Используем Montserrat */
    font-weight: 900;
    font-size: 28px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Компактный блок с подарком */
.gift-promo-box {
    display: flex;
    align-items: center; /* Центрируем иконку и текст по вертикали */
    justify-content: flex-start;
    gap: 12px;
    background: rgba(0, 0, 0, 0.35); /* Более темный фон для читаемости */
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.gift-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.5));
    flex-shrink: 0; /* Чтобы иконка не сжималась */
}

.gift-text {
    color: var(--accent-white);
    font-size: 11px !important; /* Делаем текст мельче */
    font-weight: 600;
    line-height: 1.3 !important; /* Уплотняем межстрочный интервал */
    margin: 0 !important;
    text-align: left;
}

/* Анимация пульсации кнопки Telegram */
.tg-pulse-btn {
    animation: tgPulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes tgPulse {
    0% { transform: scale(1); box-shadow: 4px 4px 0px var(--accent-dark), 0 0 0 0 rgba(255, 215, 0, 0.7); }
    50% { transform: scale(1.02); box-shadow: 6px 6px 0px var(--accent-dark), 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { transform: scale(1); box-shadow: 4px 4px 0px var(--accent-dark), 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* --- TELEGRAM БЛОК --- */
.tg-promo-card {
    background-image: url('photos/10.jpg');
    background-size: cover;
    background-position: center;
    border: 4px solid var(--accent-dark);
    box-shadow: 8px 8px 0 var(--accent-dark);
    position: relative;
    overflow: hidden;
    padding: 30px 25px;
}

/* Жёлтый полупрозрачный оверлей (фото видно, черный текст читается) */
.tg-overlay-yellow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 215, 0, 0.78); /* Фирменный желтый с прозрачностью */
    z-index: 1;
}

.tg-logo-font {
    font-family: var(--modern-font); 
    font-weight: 900;
    font-size: 28px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.gift-promo-box {
    display: flex;
    align-items: center; 
    justify-content: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.6); /* Светлая подложка для черного текста */
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px dashed var(--accent-dark);
    backdrop-filter: blur(4px);
}

.gift-icon {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.2));
    flex-shrink: 0; 
}

.gift-text {
    font-size: 11px !important; 
    font-weight: 700;
    line-height: 1.3 !important; 
    margin: 0 !important;
    text-align: left;
}

/* --- СОВРЕМЕННАЯ ФОТОГАЛЕРЕЯ --- */
.modern-photo-card {
    flex: 0 0 82%; /* Карточка занимает 82% экрана, край следующей интригует и виден сбоку */
    background: var(--accent-dark);
    border: 3px solid var(--accent-dark);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* Современный тег-бейдж в углу кадра */
.photo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bg-color);
    color: var(--accent-dark);
    font-family: var(--modern-font);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
    border: 2px solid var(--accent-dark);
    box-shadow: 2px 2px 0px var(--accent-dark);
    z-index: 3;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Картинка: адаптивная, без сплющивания и искажений */
.modern-photo-card img {
    width: 100%;
    height: 320px; /* Удобная высота под экраны смартфонов */
    object-fit: cover; /* Сохраняет оригинальные пропорции фото без искажения лиц */
    object-position: center;
    display: block;
    border-radius: 13px;
    transition: transform 0.4s ease;
}

.modern-photo-card:active img {
    transform: scale(1.03);
}
/* --- БАНАНОВАЯ КОРЗИНА С ЛУТОМ (NEO-BRUTALISM) --- */
.loot-basket-wrapper {
    position: relative;
    width: 100%;
    margin-top: 50px;
    padding-top: 30px; /* Место для вылетающих подарков */
    z-index: 5;
}

.loot-basket {
    background: var(--accent-blue);
    border: 4px solid var(--accent-dark);
    border-radius: 12px 12px 24px 24px;
    padding: 30px 20px 20px;
    position: relative;
    box-shadow: 
        8px 8px 0px var(--accent-dark), 
        inset 0px -20px 0px rgba(0,0,0,0.2); /* Объемное дно */
    overflow: hidden;
}

/* Сигнальная лента (Caution tape) сверху корзины */
.basket-tape {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 12px;
    background: repeating-linear-gradient(
        45deg,
        var(--bg-color),
        var(--bg-color) 15px,
        var(--accent-dark) 15px,
        var(--accent-dark) 30px
    );
    border-bottom: 3px solid var(--accent-dark);
    z-index: 3;
}

/* Сетка (Wireframe texture) поверх синего фона */
.basket-grid-texture {
    position: absolute;
    top: 12px; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 20px 20px;
    z-index: 1;
    pointer-events: none;
}

.basket-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Вылетающие подарки из корзины */
.floating-loot {
    position: absolute;
    font-size: 32px;
    z-index: 0;
    filter: drop-shadow(2px 2px 0px var(--accent-dark));
    will-change: transform;
}

.loot-1 {
    top: -5px; left: 15%;
    animation: lootFloat 3s ease-in-out infinite alternate;
}
.loot-2 {
    top: -15px; left: 45%;
    animation: lootFloat 3.5s ease-in-out infinite alternate-reverse;
    font-size: 40px;
}
.loot-3 {
    top: 0px; right: 20%;
    animation: lootFloat 2.8s ease-in-out infinite alternate 0.5s;
}

@keyframes lootFloat {
    0% { transform: translateY(0) rotate(-10deg); }
    100% { transform: translateY(-15px) rotate(15deg); }
}
/* --- ОПТИМИЗАЦИЯ ОТСТУПОВ В СЕТКЕ --- */
.compact-grid {
    gap: 32px 10px !important; /* Сузили дыры между рядами, но оставили место для иконок */
    padding-top: 15px !important; /* Прижали сетку ближе к заголовку */
}

/* --- ЖИВЫЕ БАНАНЫ (АНИМАЦИЯ ДЫХАНИЯ) --- */
/* Четные и нечетные бананы двигаются в рассинхроне для естественности */
.banana-card-wrapper:nth-child(odd) .banana-shape-body {
    animation: bananaBreathe 3.5s ease-in-out infinite alternate;
}
.banana-card-wrapper:nth-child(even) .banana-shape-body {
    animation: bananaBreathe 4.5s ease-in-out infinite alternate-reverse;
}

@keyframes bananaBreathe {
    0% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-4px) rotate(2deg); }
}

/* --- ПРИЖАТАЯ КОРЗИНА И ВЫСОКО ЛЕТАЮЩИЙ ЛУТ --- */
.compact-basket {
    margin-top: 10px !important; /* Минимальный зазор после сетки бананов */
    padding-top: 15px !important;
    position: relative;
}

.compact-basket .loot-basket {
    padding: 14px 15px 12px;
    border-width: 3px;
    border-radius: 8px 8px 16px 16px;
    box-shadow: 4px 4px 0px var(--accent-dark), inset 0px -10px 0px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.compact-basket .basket-tape {
    height: 8px;
}

/* Эмодзи парят над верхней кромкой корзины */
.compact-basket .floating-loot {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(2px 2px 0px var(--accent-dark));
}

.compact-basket .loot-1 {
    font-size: 22px;
    top: -4px;
    left: 18%;
}

.compact-basket .loot-2 {
    font-size: 28px;
    top: -16px; /* Вылетает выше всех */
    left: 48%;
    transform: translateX(-50%);
}

.compact-basket .loot-3 {
    font-size: 22px;
    top: -2px;
    right: 18%;
}