/**
 * Стили для Древа Навыков (Skill Tree)
 * Версия 10.0 — Interactive 3D
 */

/* ===== Основной контейнер древа навыков ===== */
.skill-tree-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    flex: 1;
    background:
        /* Крупная сетка */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(255, 255, 255, 0.025) 59px,
            rgba(255, 255, 255, 0.025) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(255, 255, 255, 0.025) 59px,
            rgba(255, 255, 255, 0.025) 60px
        ),
        /* Мелкая сетка */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 29px,
            rgba(255, 255, 255, 0.012) 29px,
            rgba(255, 255, 255, 0.012) 30px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 29px,
            rgba(255, 255, 255, 0.012) 29px,
            rgba(255, 255, 255, 0.012) 30px
        ),
        /* Основной градиент */
        linear-gradient(160deg, #1a1d2e 0%, #232738 30%, #1e2233 60%, #181b2a 100%);
    overflow: hidden;
    cursor: grab;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    overscroll-behavior: contain;
    touch-action: none;
}

.skill-tree-container:active {
    cursor: grabbing;
}

/* Внутренний трансформируемый слой для панорамирования и зума */
.skill-tree-transform-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Фоновые линии связей */
.skill-tree-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transform: translateZ(0px);
}

.connection-line {
    stroke: rgba(102, 126, 234, 0.3);
    stroke-width: 3;
    fill: none;
    filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5));
}

.connection-line.unlocked {
    stroke: rgba(76, 175, 80, 0.6);
    filter: drop-shadow(0 0 8px rgba(76, 175, 80, 0.8));
}

/* ===== Узлы навыков ===== */
.skill-node {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    transform-style: preserve-3d;
}

.skill-node:hover {
    transform: scale(1.15) translateZ(40px);
    z-index: 10;
    filter: brightness(1.2);
}

.skill-node-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    transform: translateZ(20px);
}

/* Иконка внутри круга — крупнее и жирнее */
.skill-node-circle img {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain;
    border-radius: 8px;
    image-rendering: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Статусы навыков */
.skill-node.locked .skill-node-circle {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 3px solid #555;
    opacity: 0.6;
    transform: translateZ(5px);
}

.skill-node.available .skill-node-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    animation: pulse-glow 2s infinite;
    transform: translateZ(30px);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4), 0 8px 32px rgba(0, 0, 0, 0.5);
}

.skill-node.unlocked .skill-node-circle {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.6), 0 8px 32px rgba(0, 0, 0, 0.5);
    transform: translateZ(40px);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
    }
    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 1);
    }
}

/* Название навыка под кругом */
.skill-node-label {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%) translateZ(10px);
    white-space: normal;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.75);
    padding: 4px 10px;
    border-radius: 8px;
    width: max-content;
    max-width: 160px;
    line-height: 1.3;
    backdrop-filter: blur(4px);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Индикатор стоимости */
.skill-node-cost {
    position: absolute;
    top: -14px;
    right: -14px;
    background: rgba(30, 35, 55, 0.92);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateZ(25px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ===== Модальное окно навыка ===== */
.skill-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Крупная сетка */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 59px,
            rgba(255, 255, 255, 0.025) 59px,
            rgba(255, 255, 255, 0.025) 60px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 59px,
            rgba(255, 255, 255, 0.025) 59px,
            rgba(255, 255, 255, 0.025) 60px
        ),
        /* Мелкая сетка */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 29px,
            rgba(255, 255, 255, 0.012) 29px,
            rgba(255, 255, 255, 0.012) 30px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 29px,
            rgba(255, 255, 255, 0.012) 29px,
            rgba(255, 255, 255, 0.012) 30px
        ),
        /* Основной градиент */
        linear-gradient(160deg, #1a1d2e 0%, #232738 30%, #1e2233 60%, #181b2a 100%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.skill-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.skill-modal {
    background: linear-gradient(160deg, #1a1d2e 0%, #232738 30%, #1e2233 60%, #181b2a 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(102, 126, 234, 0.15);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.skill-modal-overlay.active .skill-modal {
    transform: translateY(0);
}

/* Кастомный скроллбар для модальных окон в стиле "Древо знаний" */
.skill-modal::-webkit-scrollbar {
    width: 8px;
}

.skill-modal::-webkit-scrollbar-track {
    background: rgba(26, 29, 46, 0.6);
    border-radius: 0 0 18px 0;
}

.skill-modal::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%);
    border-radius: 4px;
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: background 0.3s ease;
}

.skill-modal::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.6) 0%, rgba(118, 75, 162, 0.6) 100%);
}

.skill-modal::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

/* Firefox */
.skill-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.4) rgba(26, 29, 46, 0.6);
}

/* Шапка модального окна */
.skill-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 18px 18px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.skill-modal-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.skill-modal-title-section {
    flex: 1;
}

.skill-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-modal-level {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
}

.skill-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Тело модального окна */
.skill-modal-body {
    padding: 30px;
}

/* Секции информации */
.skill-info-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.skill-info-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-content {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Стоимость */
.skill-cost-display {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cost-item {
    flex: 1;
    min-width: 150px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.cost-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 8px;
}

.cost-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f093fb;
}

.cost-value.runes {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Требования */
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    padding: 10px;
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-item.met {
    border-left: 3px solid #4caf50;
}

.requirement-item.not-met {
    border-left: 3px solid #f44336;
    opacity: 0.7;
}

.requirement-icon {
    font-size: 1.2rem;
}

.requirement-text {
    flex: 1;
    color: #e0e0e0;
}

/* Бизнес-обоснование (Лор) */
.business-justification {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    padding: 15px;
    border-radius: 8px;
    font-style: italic;
    color: #d0d0d0;
    line-height: 1.7;
}

/* Игровая механика */
.mechanic-effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.effect-item {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 12px;
    border-radius: 8px;
}

.effect-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.effect-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4caf50;
}

/* Кнопка изучения */
.skill-action-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-action-button.learn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.skill-action-button.learn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

.skill-action-button.learn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.skill-action-button.unlocked {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: #fff;
    cursor: default;
}

/* Адаптивность */
@media (max-width: 768px) {
    .skill-tree-container {
        min-height: 400px;
    }
    
    .skill-node {
        width: 80px;
        height: 80px;
    }
    
    .skill-node-circle {
        font-size: 1.6rem;
    }
    
    .skill-node-circle img {
        width: 38px !important;
        height: 38px !important;
    }
    
    .skill-node-label {
        font-size: 0.7rem;
        bottom: -30px;
        padding: 3px 8px;
        max-width: 130px;
        line-height: 1.2;
    }
    
    .skill-node-cost {
        font-size: 0.85rem;
        padding: 4px 10px;
        top: -10px;
        right: -10px;
    }
    
    .skill-modal {
        width: 95%;
    }
    
    .skill-modal-header {
        padding: 20px;
    }
    
    .skill-modal-title {
        font-size: 1.4rem;
    }
    
    .skill-modal-icon {
        font-size: 3rem;
    }
    
    .skill-modal-body {
        padding: 20px;
    }
    
    .skill-tree-legend {
        top: 60px;
        right: 10px;
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    .skill-node {
        width: 60px;
        height: 60px;
    }
    
    .skill-node-circle {
        font-size: 1.2rem;
    }
    
    .skill-node-circle img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .skill-node-label {
        font-size: 0.6rem;
        bottom: -26px;
        padding: 2px 6px;
        max-width: 90px;
        line-height: 1.2;
    }
    
    .skill-node-cost {
        font-size: 0.7rem;
        padding: 3px 8px;
        top: -8px;
        right: -8px;
    }
}

/* ===== Легенда древа ===== */
.skill-tree-legend {
    position: absolute;
    top: 70px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    z-index: 5;
    backdrop-filter: blur(8px);
}

.legend-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #e0e0e0;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.legend-icon.locked {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border: 2px solid #555;
}

.legend-icon.available {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #fff;
}

.legend-icon.unlocked {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    border: 2px solid #ffd700;
}

/* Разделитель в легенде */
.legend-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
    margin: 8px 0;
}

/* Баланс рун в легенде */
.legend-item.rune-balance {
    cursor: default;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.12);
    margin-bottom: 6px;
}

.legend-item.rune-balance .rune-icon {
    font-size: 1rem;
    line-height: 1;
}

.legend-item.rune-balance .rune-label {
    font-size: 0.75rem;
    color: #aaa;
    flex: 1;
}

.legend-item.rune-balance .rune-count {
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    min-width: 24px;
    text-align: right;
}

/* Кнопка покупки рун в легенде */
.legend-item.rune-shop-trigger {
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.legend-item.rune-shop-trigger:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateX(2px);
}

.legend-item.rune-shop-trigger .shop-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.legend-item.rune-shop-trigger .shop-text {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c8d0ff;
    transition: color 0.25s ease;
}

.legend-item.rune-shop-trigger:hover .shop-text {
    color: #fff;
}

/* ===== Магазин Рун — стиль "Древо знаний" ===== */
.rune-shop-modal {
    border-color: rgba(255, 215, 0, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.1) !important;
}

.rune-shop-header {
    background: linear-gradient(135deg, #1a1d2e 0%, #232738 50%, #1a1d2e 100%) !important;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
}

.rune-shop-header-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 215, 0, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.rune-shop-header .skill-modal-icon {
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

.rune-shop-header .skill-modal-title {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.rune-shop-header .skill-modal-level {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
}

/* Карточка курса обмена */
.rune-shop-rate-card {
    position: relative;
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(26, 29, 46, 0.9) 0%, rgba(35, 39, 56, 0.9) 100%);
    border-radius: 14px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    margin-bottom: 20px;
    overflow: hidden;
}

.rune-shop-rate-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.rune-shop-rate-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.rune-shop-rate-value {
    font-size: 2rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.rune-shop-rate-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 8px;
}

/* Секция ввода */
.rune-shop-input-section {
    background: rgba(26, 29, 46, 0.6) !important;
    border-color: rgba(102, 126, 234, 0.2) !important;
}

.rune-shop-input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.rune-shop-input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.rune-shop-input:focus {
    border-color: rgba(255, 215, 0, 0.5);
}

.rune-shop-input-focus-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 14px;
    pointer-events: none;
    transition: box-shadow 0.3s ease;
}

.rune-shop-input:focus ~ .rune-shop-input-focus-ring {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
}

/* Сводка */
.rune-shop-summary {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.15);
}

.rune-shop-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rune-shop-summary-label {
    font-size: 0.9rem;
    color: #999;
}

.rune-shop-summary-value {
    font-size: 1.3rem;
    font-weight: 700;
}

.rune-shop-summary-value.receive {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.rune-shop-summary-value.cost {
    color: #fff;
}

.rune-shop-summary-divider {
    height: 1px;
    background: rgba(102, 126, 234, 0.15);
    margin: 10px 0;
}

/* Кнопка покупки */
.rune-shop-buy-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #1a1d2e 0%, #232738 100%);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 215, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rune-shop-buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.rune-shop-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.5);
}

.rune-shop-buy-btn:active {
    transform: translateY(0);
}

.rune-shop-buy-btn-text {
    position: relative;
    z-index: 1;
}

.rune-shop-buy-btn-icon {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

/* ===== Элементы управления зумом ===== */
.skill-tree-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: row;
    gap: 4px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.25);
    backdrop-filter: blur(8px);
    align-items: center;
}

.skill-tree-zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.skill-tree-zoom-btn:hover {
    background: rgba(102, 126, 234, 0.5);
    transform: scale(1.1);
}

.skill-tree-zoom-level {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 6px;
    font-weight: 600;
    min-width: 36px;
    font-family: 'Courier New', monospace;
}

/* ===== Частицы фона ===== */
.skill-tree-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.skill-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100%) translateX(0) translateZ(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) translateZ(0);
        opacity: 0;
    }
}
