/* --- ВАЖНО: Скрываем мобильное меню на ПК --- */
.mobile-picker-overlay {
    display: none !important;
}

/* --- МОДАЛКА "ДРЕВНИЙ ЩИТ" (Fixed Layout) --- */
.values-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2000;
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(10px);
    opacity: 0; animation: fadeInModal 0.5s forwards;
}
@keyframes fadeInModal { to { opacity: 1; } }

.shield-content {
    width: 95%; max-width: 1200px; height: 700px;
    background-color: #0f0a05;
    background-image: url('../img/backgrounds/bg_forest.jpg');
    
    /* !!! ЗУМ ФОНА */
    /* Было cover. Ставим 110%, чтобы картинка была чуть больше окна 
       и гарантированно не показывала свои края */
    background-size: 110%; 
    background-position: center;
    
    border: 1px solid rgba(212, 140, 40, 0.2);
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(0,0,0, 0.9);
    position: relative; overflow: hidden;
    transition: background-image 1.2s ease-in-out;
}


.shield-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1; pointer-events: none;
}
.shield-body {
    position: relative; z-index: 2;
    display: flex; height: 100%; width: 100%; padding: 0;
}
.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    color: rgba(255,255,255,0.3); font-size: 30px;
    cursor: pointer; z-index: 30; transition: color 0.3s;
}
.close-modal:hover { color: #d48c28; }

/* ЛЕВАЯ КОЛОНКА (Лимбы) - СТРОГО 35% */
.shield-left {
    flex: 0 0 35%; /* Жесткий размер */
    max-width: 35%;
    display: flex; justify-content: center; gap: 40px;
    align-items: center; position: relative;
    border-right: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}
.limb-column {
    display: flex; flex-direction: column; align-items: center;
    height: 100%; justify-content: center;
}
.limb-column h3 {
    margin-bottom: 25px; 
    color: #ffd700; /* Чистое золото */
    font-family: 'Cormorant Garamond', serif; /* Красивый шрифт */
    font-size: 24px; /* Крупнее (было 14px) */
    font-weight: bold;
    text-transform: uppercase; 
    letter-spacing: 4px; 
    opacity: 1; /* Полная видимость */
    text-shadow: 0 0 10px rgba(212, 140, 40, 0.6); /* Свечение текста */
}
.limb-container {
    width: 160px; height: 480px; position: relative; overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    border-radius: 10px;
}
.limb-track { will-change: transform; }
.limb-item {
    height: 160px; display: flex; align-items: center; justify-content: center;
}


.limb-item img {
    width: 140px; height: 140px; object-fit: contain;
    opacity: 0.4; transition: opacity 0.4s, transform 0.4s;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.8));
    
    /* !!! СРЕЗАЕМ КАЕМКУ */
    /* Обрезаем картинку кругом радиусом 46% (вместо 50%). 
       Это съест грязные края PNG */
    clip-path: circle(46% at 50% 50%);
    
    /* !!! ЦЕНТРОВКА */
    /* Если кажется, что иконки не по центру, можно подвинуть их транслейтом.
       Сейчас стоит 0. Если нужно выше/ниже - меняй вторую цифру (Y) */
    transform: translate(0, -15px); 
}


/* Активная иконка */
.limb-item.active img {
    opacity: 1; 
    /* При увеличении scale тоже увеличиваем, чтобы срез не казался маленьким */
    transform: scale(1.15) translate(0, -9px);
    filter: drop-shadow(0 0 25px rgba(255, 180, 50, 0.4));
}
.limb-highlight {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 150px; height: 150px; border-radius: 50%;
    
    /* ЧИСТАЯ ЛИНИЯ */
    border: 2px solid rgba(255, 215, 0, 0.6); 
    
    /* ТОЛЬКО ВНЕШНЕЕ СВЕЧЕНИЕ (без inset) */
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.25);
    
    pointer-events: none; z-index: 5; /* Поверх иконок */
}

/* ПРАВАЯ КОЛОНКА (Текст) - СТРОГО 65% */
.shield-right {
    flex: 0 0 65%; /* Жесткий размер */
    max-width: 65%;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    position: relative;
    background: rgba(0, 0, 0, 0.4); /* Подложка чтобы текст не прыгал на фоне */
    backdrop-filter: blur(5px);
}
.text-container {
    width: 70%; /* Ширина текста внутри колонки */
    min-height: 250px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start; /* Выравнивание по левому краю */
    text-align: left;
}
.magical-fade-in { animation: fogReveal 1.5s ease-out forwards; }
@keyframes fogReveal {
    0% { opacity: 0; transform: translateY(15px); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.text-container h4 {
    color: #ffd700; font-size: 32px; margin-bottom: 25px;
    width: 100%; padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 140, 40, 0.4);
}
.text-container p {
    font-size: 18px; line-height: 1.8; color: #e0d8c3;
    width: 100%; margin: 0;
}
.text-nav {
    display: flex; gap: 20px; margin-top: 50px;
    opacity: 0; transition: opacity 0.8s;
}
.text-nav.visible { opacity: 1; }
.nav-arrow {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(212, 140, 40, 0.3);
    color: #d48c28; width: 60px; height: 60px; border-radius: 50%;
    cursor: pointer; font-size: 24px;
    display: flex; align-items: center; justify-content: center; transition: all 0.3s;
}
.nav-arrow:hover {
    border-color: #ffd700; color: #ffd700; transform: scale(1.1);
}

/* --- МОБИЛЬНЫЙ ВЫБОР (ВМЕСТО БАРАБАНОВ) --- */
@media (max-width: 900px) {
    
    /* --- 1. ЛОГИКА ОТОБРАЖЕНИЯ МЕНЮ ВЫБОРА (ТОЛЬКО ДЛЯ МОБИЛЫ) --- */
    .mobile-picker-overlay.active {
        display: flex !important; /* Показываем только когда добавлен класс active */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(10, 5, 0, 0.95);
        z-index: 200;
        backdrop-filter: blur(10px);
        animation: fadeIn 0.3s;
    }

    /* Стили внутри пикера */
    .picker-title { color: #d48c28; font-size: 24px; margin-bottom: 20px; font-family: 'Cormorant Garamond', serif; }
    .picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; width: 100%; max-height: 60vh; overflow-y: auto; padding: 10px; }
    .picker-item { background: rgba(255, 255, 255, 0.05); border: 1px solid #d48c28; border-radius: 10px; padding: 10px; text-align: center; }
    .picker-item img { width: 40px; height: 40px; object-fit: contain; margin-bottom: 5px; }
    .picker-item span { display: block; color: #e0d8c3; font-size: 11px; }
    .close-picker { margin-top: 20px; background: transparent; border: 1px solid #555; color: #888; padding: 8px 25px; border-radius: 20px; }


    /* --- 2. ВЕРТИКАЛЬНАЯ ВЕРСТКА (ИКОНКИ СВЕРХУ, ТЕКСТ СНИЗУ) --- */
    
    .shield-body {
        flex-direction: column; /* Вертикальный стек */
    }

    /* Верхняя часть (Кольца) */
    .shield-left {
        flex: 0 0 auto; /* Не растягивать, занимать сколько нужно */
        width: 100%;
        max-width: 100%;
        height: auto;
        
        border-right: none;
        border-bottom: 1px solid rgba(212, 140, 40, 0.2); /* Разделитель снизу */
        
        padding: 20px 0; /* Отступы сверху/снизу */
        gap: 20px; /* Расстояние между кольцами */
        background: rgba(0,0,0,0.3);
    }

    /* Нижняя часть (Текст) */
    .shield-right {
        flex: 1; /* Занимает всё оставшееся место */
        width: 100%;
        max-width: 100%;
        background: transparent; /* Фон уже есть у щита */
        padding-top: 20px;
    }

    /* Настройки колец (Кнопок) */
    .limb-column h3 { font-size: 12px; margin-bottom: 10px; color: #d48c28; }
    
    .limb-container {
        width: 100px !important;  /* Уменьшили кольца, чтобы влезали два рядом */
        height: 100px !important;
        background: rgba(0,0,0,0.4);
        border-radius: 50%;
    }
    
    .limb-track { display: none !important; } /* Прячем старый трек */

    /* Золотая рамка кольца */
    .limb-highlight {
        width: 98% !important; height: 98% !important;
        top: 10 !important; border: 4px solid #d48c28;
    }

    /* Выбранная иконка внутри */
    .mobile-selected-icon {
        width: 100%; height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 0 10px #ffd700);
    }

    /* Текст описания */
    .text-container {
        width: 90%;
        min-height: auto; /* Высота по факту */
        justify-content: flex-start;
    }
    
    .text-container h4 {
        font-size: 22px; margin-bottom: 10px;
        text-align: center;
    }
    
    .text-container p {
        font-size: 15px; line-height: 1.5;
        text-align: center;
    }

    /* Стрелки навигации по тексту */
    .text-nav { margin-top: 20px; }
    .nav-arrow { width: 45px; height: 45px; font-size: 18px; }
}


/* --- МАГИЯ ВНУТРИ ЩИТА --- */

/* Контейнер для магии (чтобы не вылезала за пределы щита) */
.magic-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 10; overflow: hidden;
}

/* Светлячок / Пыльца */
.magic-particle {
    position: absolute;
    /* ВАЖНО: Ставим их в самый низ контейнера */
    top: 100%; 
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    opacity: 0;
    /* Увеличил время полета, чтобы было плавнее */
    animation: floatUp 10s infinite linear;
}

/* Анимация полета вверх */
@keyframes floatUp {
    /* Старт: чуть ниже края */
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    /* Появление */
    10% { opacity: 0.8; }
    /* Исчезновение вверху */
    90% { opacity: 0.8; }
    /* Финиш: летим вверх на 700px (высота щита) */
    100% { transform: translateY(-700px) scale(1.2); opacity: 0; }
}

/* Фоновое свечение за лимбами (чтобы выделить их) */
.shield-left::before {
    content: ''; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 60%;
    background: radial-gradient(ellipse at center, rgba(212, 140, 40, 0.15) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}


/* ========================================= */
/* --- МОДАЛКА КВЕСТА (Start Journey) --- */
/* ========================================= */

.quest-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 2001; /* Поверх всего */
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0; animation: fadeInModal 0.5s forwards;
}

.quest-content {
    width: 90%; max-width: 800px; min-height: 500px;
    background-color: #1a1008;
    background-image: url('../img/backgrounds/bg_forest.jpg');
    background-size: cover; background-position: center;
    border: 2px solid #d48c28;
    border-radius: 20px;
    box-shadow: 0 0 80px rgba(0,0,0, 0.8);
    position: relative;
    padding: 60px 40px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
}

/* Затемнение фона внутри квеста для читаемости */
.quest-content::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); border-radius: 18px; z-index: 0;
}

.quest-step {
    position: relative; z-index: 1;
    display: none; /* Скрыты по умолчанию */
    width: 100%;
    animation: slideIn 0.5s ease-out;
}
.quest-step.active { display: block; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quest-step h2 {
    font-size: 36px; color: #ffd700; margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.quest-step p {
    font-size: 18px; line-height: 1.6; color: #e0d8c3; margin-bottom: 20px;
}

/* Разметка для шага с картинкой */
.step-layout {
    display: flex; align-items: center; gap: 30px; margin-bottom: 30px; text-align: left;
}
.step-text { flex: 1; }
.step-image { flex: 1; text-align: center; }
.step-image img {
    max-width: 100%; border-radius: 10px;
    box-shadow: 0 0 20px rgba(212, 140, 40, 0.3);
    border: 1px solid #d48c28;
}

/* Кнопки */
.quest-actions {
    margin-top: 40px; display: flex; justify-content: center; gap: 20px;
}

.btn-next, .btn-prev, .btn-finish {
    padding: 12px 30px; border: 1px solid #d48c28; background: transparent;
    color: #d48c28; font-family: 'Montserrat', sans-serif; cursor: pointer;
    font-size: 16px; border-radius: 30px; transition: all 0.3s;
}

.btn-next:hover, .btn-finish:hover {
    background: #d48c28; color: #fff;
}
.btn-prev:hover {
    border-color: #fff; color: #fff;
}

.close-quest {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: rgba(255,255,255,0.5);
    font-size: 24px; cursor: pointer; z-index: 10;
}
.close-quest:hover { color: #d48c28; }

/* Адаптив квеста */
@media (max-width: 768px) {
    .step-layout { flex-direction: column; }
    .step-text { text-align: center; }
}

/* ========================================= */
/* --- ПУТЬ ЛИСА (QUEST MODAL V2) --- */
/* ========================================= */

.quest-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 5, 0, 0.95); z-index: 3000;
    
    /* ИСПРАВЛЕНИЕ 1: Скрываем по умолчанию */
    display: none; 
    
    justify-content: center; align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0; transition: opacity 0.5s;
}

/* Класс, который делает её видимой (добавляет JS) */
.quest-modal.open { 
    opacity: 1; 
}

.quest-window {
    width: 95%; max-width: 900px; height: 650px;
    background-color: #120c08;
    
    /* 1. СТАВИМ РУБАШКУ НА ФОН */
    background-image: url('../img/ui/card_back.jpg'); 
    background-size: cover; /* Или repeat, если текстура мелкая */
    background-position: center;
    
    border: 2px solid #d48c28;
    border-radius: 20px;
    box-shadow: 0 0 100px rgba(212, 140, 40, 0.2);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}

/* Затемнение фона делаем чуть сильнее, так как рубашка может быть пестрой */
.quest-window::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(15, 10, 5, 0.9); /* 90% затемнения */
    z-index: 1; /* Фон и затемнение на уровне 1 */
}

/* --- СВЕТЛЯЧКИ (Добавь это в конец файла) --- */
.quest-fireflies {
    position: absolute; inset: 0; 
    z-index: 2; /* Между фоном и текстом */
    pointer-events: none; overflow: hidden;
}

.q-firefly {
    position: absolute;
    border-radius: 50%;
    background-color: #ffd700;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffaa00;
    opacity: 0;
    animation: questFly 8s infinite ease-in-out;
}

/* Разные размеры и позиции для светлячков */
.q-ff-1 { width: 4px; height: 4px; top: 80%; left: 10%; animation-delay: 0s; animation-duration: 7s; }
.q-ff-2 { width: 3px; height: 3px; top: 70%; left: 80%; animation-delay: 2s; animation-duration: 10s; }
.q-ff-3 { width: 5px; height: 5px; top: 90%; left: 40%; animation-delay: 1s; animation-duration: 12s; }
.q-ff-4 { width: 2px; height: 2px; top: 60%; left: 60%; animation-delay: 4s; animation-duration: 9s; }
.q-ff-5 { width: 4px; height: 4px; top: 85%; left: 90%; animation-delay: 3s; animation-duration: 8s; }

/* Анимация полета снизу вверх с покачиванием */
@keyframes questFly {
    0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
    20% { opacity: 0.8; }
    50% { transform: translate(20px, -50px) scale(1); opacity: 0.6; }
    80% { opacity: 0.8; }
    100% { transform: translate(-20px, -150px) scale(0.5); opacity: 0; }
}

/* Поднимаем контент выше светлячков */
.quest-slide, .close-quest-btn, .quest-nav-panel {
    z-index: 10; 
}

.quest-slide {
    position: absolute; inset: 0; z-index: 1;
    padding: 40px 60px;
    display: flex; align-items: center; justify-content: center; gap: 40px;
    opacity: 0; transform: translateX(50px); pointer-events: none;
    transition: all 0.6s ease-out;
}

.quest-slide.active {
    opacity: 1; transform: translateX(0); pointer-events: all;
}

/* Левая часть (Текст) */
.q-text-col { flex: 1; text-align: left; }
.q-text-col h2 {
    font-family: 'Cormorant Garamond', serif; font-size: 36px; color: #ffd700;
    margin-bottom: 20px; text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}
.q-text-col p {
    font-family: 'Montserrat', sans-serif; font-size: 17px; line-height: 1.6; color: #e0d8c3;
    margin-bottom: 15px;
}
.q-highlight { color: #d48c28; font-weight: bold; }

/* Правая часть (Визуал) */
.q-visual-col { flex: 1; display: flex; justify-content: center; position: relative; }
.q-img-frame {
    width: 300px; height: 420px;
    border: 2px solid rgba(212, 140, 40, 0.5);
    border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative;
    transition: transform 0.5s;
}
.q-img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* --- ИНТЕРАКТИВЫ ПО СЛАЙДАМ --- */

/* Слайд 2: Мини-карты */
.mini-cards-row { display: flex; gap: 15px; margin-top: 20px; justify-content: flex-start; }
.mini-card {
    width: 80px; height: 110px; background: #2a1a10; border: 1px solid #d48c28;
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    cursor: help; position: relative; transition: transform 0.3s;
}
.mini-card:hover { transform: translateY(-10px); background: #d48c28; color: #000; }
.mini-card::after { /* Подсказка */
    content: attr(data-hint);
    position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    width: 120px; background: rgba(0,0,0,0.9); border: 1px solid #d48c28;
    color: #fff; padding: 5px; font-size: 12px; border-radius: 5px;
    opacity: 0; pointer-events: none; transition: opacity 0.3s; text-align: center; z-index: 10;
}
.mini-card:hover::after { opacity: 1; }

/* Слайд 3: Дыхание */
.breathing-img { animation: deepBreath 4s infinite ease-in-out; }
@keyframes deepBreath { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.05); filter: brightness(1.2); } }

/* Слайд 4: Хотспоты (Интерактивные зоны) */
.hotspot {
    position: absolute; 
    /* 1. УВЕЛИЧИВАЕМ РАЗМЕР (Было 60px -> Стало 80px) */
    width: 80px; height: 80px;
    
    border: 3px solid #ffd700; /* Чуть жирнее рамка */
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.15);
    cursor: pointer; 
    animation: pulseRing 2s infinite;
    
    display: flex; align-items: center; justify-content: center;
    
    /* Убираем лишнее, оставляем место под галочку */
    font-size: 0; 
    transition: all 0.3s;
}

.hotspot:hover { 
    background: rgba(255, 215, 0, 0.4); 
    transform: scale(1.1); 
}

/* Когда нажали (Галочка) */
.hotspot.checked { 
    background: rgba(76, 175, 80, 0.6); /* Полупрозрачный зеленый */
    border-color: #4caf50; 
    animation: none; 
    
    /* Показываем галочку */
    font-size: 40px; 
    color: #fff;
    text-shadow: 0 0 10px black;
}

/* 2. СДВИГАЕМ БЛИЖЕ ДРУГ К ДРУГУ */
/* Увеличиваем отступы от краев (top/left/right), чтобы они съехались к центру */

.hs-top { 
    top: 11px;  /* Было 20 */
    left: 60px; /* Было 20 */
}

.hs-right { 
    top: 11px;   /* Было 20 */
    right: 63px; /* Было 20 */
}

@keyframes pulseRing { 
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); } 
    70% { box-shadow: 0 0 0 20px rgba(255, 215, 0, 0); } /* Увеличил радиус волны */
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); } 
}

/* --- НАВИГАЦИЯ --- */
.quest-nav-panel {
    position: absolute; bottom: 0; left: 0; width: 100%;
    height: 80px; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    
    /* Важно: border-box, чтобы padding не расширял блок */
    box-sizing: border-box; 
    padding: 0 40px; /* Чуть уменьшил отступы */
    
    background: linear-gradient(to top, rgba(0,0,0,1), transparent);
}

/* Лисьи следы (Прогресс) */
.fox-tracks { display: flex; gap: 15px; }
.track-dot {
    width: 12px; height: 12px; background: rgba(255,255,255,0.2);
    border-radius: 50%; transition: all 0.4s;
}
.track-dot.active {
    background: #d48c28; transform: scale(1.4);
    box-shadow: 0 0 10px #d48c28;
}

/* Кнопка Далее */
.btn-quest-next {
    padding: 12px 30px; border: 1px solid #d48c28; background: rgba(212, 140, 40, 0.1);
    color: #d48c28; font-family: 'Montserrat', sans-serif; font-weight: bold;
    cursor: pointer; border-radius: 30px; transition: all 0.3s;
    font-size: 16px;
}
.btn-quest-next:hover { background: #d48c28; color: #000; }
.btn-quest-next:disabled {
    opacity: 0.3; cursor: not-allowed; border-color: #555; background: transparent; color: #555;
}

.close-quest-btn {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: rgba(255,255,255,0.3);
    font-size: 24px; cursor: pointer; z-index: 20;
}
.close-quest-btn:hover { color: #d48c28; }

/* Адаптив для модалки */
@media (max-width: 900px) {
    .quest-slide { flex-direction: column-reverse; text-align: center; padding: 20px; overflow-y: auto; }
    .q-text-col { text-align: center; }
    .q-img-frame { width: 200px; height: 280px; margin-bottom: 20px; }
    .quest-nav-panel { padding: 0 20px; }
    .mini-cards-row { justify-content: center; }
}





/* Увеличенное окно для инфо-модалок */
.big-window {
    max-width: 1100px; /* Шире, чем квест */
    height: 700px;
}

/* Цена в магазине */
.shop-price {
    font-size: 2em;
    color: #ffd700;
    font-family: 'Cormorant Garamond', serif;
    margin: 20px 0;
}

.btn-buy-link {
    display: inline-block;
    background: #4caf50; /* Зеленая кнопка покупки */
    color: #fff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    transition: transform 0.3s;
}
.btn-buy-link:hover {
    transform: scale(1.05);
    background: #43a047;
}

/* Чтобы слайдеры работали корректно внутри */
.slides-container {
    width: 100%; height: 100%; position: relative;
}

/* --- АДАПТИВ МОДАЛОК (ОБУЧЕНИЕ / ИГРЫ / МАГАЗИН) --- */
@media (max-width: 900px) {
    
    /* 1. ОКНО НА ВЕСЬ ЭКРАН */
    .quest-window, .big-window {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important; /* Убираем углы */
        border: none !important;
        display: flex;
        flex-direction: column;
    }

    /* 2. СЛАЙД (КОНТЕНТ) */
    .quest-slide {
        /* Выстраиваем в колонку */
        flex-direction: column; 
        justify-content: flex-start; /* Начинаем сверху */
        align-items: center;
        
        /* Важно: отступ снизу 100px, чтобы текст не залез под кнопки навигации */
        padding: 60px 20px 100px 20px !important; 
        
        /* Включаем прокрутку, если контента много */
        overflow-y: auto; 
        height: 100%; 
    }

    /* 3. КАРТИНКА (ВИЗУАЛ) */
    .q-visual-col {
        flex: none; /* Не растягивать */
        order: 1;   /* Картинка ПЕРВАЯ (сверху) */
        margin-bottom: 20px;
    }

    .q-img-frame {
        width: 180px; /* Уменьшаем размер картинки */
        height: 240px;
    }

    /* 4. ТЕКСТ */
    .q-text-col {
        flex: none;
        order: 2;   /* Текст ВТОРОЙ (снизу) */
        text-align: center;
        width: 100%;
    }

    .q-text-col h2 {
        font-size: 24px; /* Уменьшаем заголовок */
        margin-bottom: 15px;
    }

    .q-text-col p {
        font-size: 15px; /* Уменьшаем текст */
    }

    /* 5. НАВИГАЦИЯ (НИЗ) */
    .quest-nav-panel {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80px;
        
        /* Плотный темный фон, чтобы текст под ним не мешал */
        background: rgba(10, 5, 0, 0.95);
        border-top: 1px solid #d48c28;
        
        padding: 0 15px; /* Отступы по бокам */
        z-index: 50; /* Поверх всего */
    }

    /* Уменьшаем кнопку "Далее" */
    .btn-quest-next {
        padding: 10px 20px;
        font-size: 14px;
        white-space: nowrap; /* Текст не переносится */
    }

    /* Уменьшаем точки (следы) */
    .track-dot {
        width: 8px; height: 8px;
        margin: 0 3px; /* Ближе друг к другу */
    }
    
    .fox-tracks {
        gap: 5px; /* Уменьшаем расстояние между точками */
        flex-wrap: wrap; /* Если точек много - перенос */
        justify-content: center;
    }

    /* КРЕСТИК ЗАКРЫТИЯ */
    .close-quest-btn {
        top: 10px; right: 10px;
        z-index: 60; /* Поверх навигации и всего */
        background: rgba(0,0,0,0.5); /* Подложка, чтобы было видно на картинке */
        border-radius: 50%;
        width: 40px; height: 40px;
    }
    
    /* ХОТ-СПОТЫ (КРУГИ НА КАРТЕ) */
    .hotspot {
        width: 40px; height: 40px; /* Поменьше */
    }
    .hs-top { top: 9px; left: 40px; }
    .hs-right { top: 9px; right: 40px; }
}