/* ── Общий контейнер страницы ── */
.lv-page {
    background: #0d1027;
    padding: 24px;
    clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 25px, 100% 100%, 25px 100%, 0 calc(100% - 25px));
    margin-bottom: 24px;
    color: #c8d4f0;
}

/* ── Заголовок страницы ── */
.lv-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.lv-heading-icon {
    font-size: 28px;
    line-height: 1;
}

.lv-heading h1 {
    font-family: 'Furore', 'Orbitron', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    margin: 0;
    background: linear-gradient(90deg, #3887fd, #7b5ef8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Блок прогресса ── */
.lv-progress-block {
    background: #101737;
    padding: 16px 20px;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    margin-bottom: 28px;
}

.lv-progress-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lv-current-level {
    font-family: 'Furore', 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.lv-current-level span {
    font-size: 14px;
    color: #a0aed4;
    font-family: inherit;
    font-weight: 400;
    margin-left: 6px;
}

.lv-xp-info {
    font-size: 13px;
    color: #a0aed4;
    text-align: right;
}

.lv-xp-info strong {
    color: #c8d4f0;
}

.lv-progress-track {
    height: 8px;
    background: #1a1f4e;
    border-radius: 4px;
    overflow: hidden;
}

.lv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3887fd, #7b5ef8);
    border-radius: 4px;
    transition: width 0.6s ease;
    min-width: 2px;
}

.lv-progress-percent {
    margin-top: 6px;
    font-size: 12px;
    color: #6a7aaa;
    text-align: right;
}

/* ── Дерево уровней ── */
.lv-tree {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Узел уровня ── */
.lv-node {
    display: flex;
    gap: 16px;
    padding: 0 0 24px 0;
    position: relative;
}

/* ── Левая часть: бейдж уровня + вертикальная линия ── */
.lv-node-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 52px;
}

.lv-level-badge {
    font-family: 'Furore', 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 700;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101737;
    border: 2px solid #1e2456;
    border-radius: 4px;
    color: #a0aed4;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lv-node.unlocked .lv-level-badge {
    border-color: #3887fd;
    color: #c8d4f0;
}

.lv-node.active .lv-level-badge {
    background: linear-gradient(135deg, #3887fd 0%, #7b5ef8 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(56, 135, 253, 0.5);
}

.lv-node.locked .lv-level-badge {
    opacity: 0.4;
}

.lv-connector {
    flex: 1;
    width: 2px;
    background: #1e2456;
    margin-top: 6px;
    min-height: 16px;
}

.lv-node:last-child .lv-connector {
    display: none;
}

.lv-node.unlocked .lv-connector,
.lv-node.active .lv-connector {
    background: linear-gradient(180deg, #3887fd, #1e2456);
}

/* ── Правая часть: контент уровня ── */
.lv-node-right {
    flex: 1;
    padding-top: 4px;
}

.lv-xp-needed {
    font-size: 12px;
    color: #6a7aaa;
    margin-bottom: 10px;
    font-style: italic;
}

.lv-node.active .lv-xp-needed {
    color: #3887fd;
    font-style: normal;
    font-weight: 600;
}

/* ── Ряд карточек наград ── */
.lv-rewards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Карточка награды ── */
.lv-reward-card {
    background: #101737;
    border: 1px solid #1e2456;
    border-radius: 6px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 160px;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.lv-node.active .lv-reward-card {
    border-color: #3887fd;
}

.lv-node.locked .lv-reward-card {
    opacity: 0.45;
    filter: grayscale(0.6);
}

.lv-reward-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

.lv-reward-img-placeholder {
    width: 64px;
    height: 64px;
    background: #1a1f4e;
    border-radius: 4px;
}

.lv-reward-info {
    flex: 1;
    width: 100%;
}

.lv-reward-label {
    font-size: 13px;
    font-weight: 600;
    color: #c8d4f0;
    margin-bottom: 4px;
    word-break: break-word;
}

.lv-reward-desc {
    font-size: 11px;
    color: #6a7aaa;
    line-height: 1.4;
    word-break: break-word;
}

/* ── Кнопка получения ── */
.lv-claim-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: linear-gradient(90deg, #3887fd, #7b5ef8);
    color: #ffffff;
    transition: opacity 0.2s;
    width: 100%;
}

.lv-claim-btn:hover {
    opacity: 0.85;
}

.lv-claim-btn.lv-claim-locked {
    background: #1a1f4e;
    color: #4a5578;
    cursor: not-allowed;
}

/* ── Уже получено ── */
.lv-claimed {
    display: inline-block;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    background: #0d2a1a;
    color: #2ecc71;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ── Пустое состояние ── */
.lv-empty {
    color: #6a7aaa;
    font-size: 14px;
    padding: 20px 0;
    text-align: center;
}

/* ── Анимации ── */
@keyframes lvFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lv-page {
    animation: lvFadeIn 0.3s ease both;
}

/* ── Адаптив ── */
@media (max-width: 600px) {
    .lv-reward-card {
        width: calc(50% - 6px);
    }

    .lv-heading h1 {
        font-size: 17px;
    }

    .lv-current-level {
        font-size: 24px;
    }
}
