.qb-button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    padding: 0px;
}

.open-modal-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.open-modal-btn:hover {
    background-color: #45a049;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Заголовок модалки */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #efefef;
    color: #555;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    position: fixed;
    /* top: calc(5% + 20px); */
    /* left: calc(25% + 20px); */
    z-index: 1001;
    display: none;
    color: #000;
    background-color: transparent;
    box-shadow: none;
    cursor: pointer;
    font-size: 20px;
    border-style: none;
}

.modal.active .close-modal {
    display: block; /* показываем при активной модалке */
}

.close-modal:hover {
    color: #555;
}

/* Контейнер для табов */
.tabs-container {
    background-color: #efefef;
    overflow-x: auto;
    min-height: 45px;
}

.tabs {
    display: flex;
    min-width: min-content;
    padding: 0 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: #555;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    /*border-bottom: 3px solid transparent;*/
    transition: all 0.3s;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    /*border-bottom-color: #3498db;*/
    /*background-color: rgba(52, 152, 219, 0.1);*/
}

/* Контент табов */
.tab-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    height: 100%; /* Добавьте это */
    box-sizing: border-box; /* Важно! */
}

.tab-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* стили для контента */
.achievements-tab-content {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* Стили для скролла */
.achievements-tab-content::-webkit-scrollbar {
    height: 6px;
}

.achievements-tab-content::-webkit-scrollbar-track {
    background: #efefef;
}

.achievements-tab-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}


/* Контейнер слайдера должен иметь фиксированную высоту */
.achievements-slider-container {
    position: relative;
    width: 100%;
    /*height: 380px; */
    overflow: hidden;
    margin: 20px 0;
}

.achievements-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%; /* Занимает всю высоту контейнера */
    width: 100%!important;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки по умолчанию для мобильных */
    grid-template-rows: repeat(2, 1fr); /* 2 строки */
    gap: 5px;
    justify-items: center;
    align-items: start;
    width: 100%;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
    min-height: 350px; /* Минимальная высота для 2 строк */
    height: 100%; /* Занимает всю высоту контейнера */
}

/* Адаптивность - ОБНОВЛЕННЫЕ значения 
@media (min-width: 768px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: repeat(2, 1fr); 
        min-height: 350px;
    }
}*/

@media (min-width: 1200px) {
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr); 
        grid-template-rows: repeat(2, 1fr);
        min-height: 350px;
    }
}

/* Стили для стрелок навигации */
/* Обновим стили для индикатора слайдера */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

.slider-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bdc3c7;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.slider-dot.active {
    background-color: #3498db;
    transform: scale(1.3);
}

.slider-dot:hover:not(.active) {
    background-color: #7f8c8d;
    transform: scale(1.1);
}

/* Добавим плавную анимацию для изменения размера точек */
.slider-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Добавим анимацию пульсации для активной точки */
@keyframes pulseDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(52, 152, 219, 0);
    }
}

.slider-dot.active {
    animation: pulseDot 2s infinite;
}

/* Увеличим область клика для точек на мобильных */
@media (max-width: 768px) {
    .slider-dot {
        width: 12px;
        height: 12px;
    }
    
    .slider-dots {
        gap: 10px;
    }
}

/* Анимация перехода слайдов */
.slider-transition {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Адаптивность для мобильных устройств 
@media (max-width: 1200px) {
    .achievements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}*/

@media (max-width: 768px) {
    /*.achievements-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }*/
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /*.achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement {
        width: 90px;
    }
    
    .achievement-image {
        width: 80px;
        height: 80px;
    }*/
    
    .slider-nav {
        gap: 10px;
    }
    
    .slider-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Стили для описаний достижений */
.achievement-description-toggle {
    margin: 8px 0 5px 0;
    width: 100%;
}

.achievement-description-btn {
    color: #555;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 24px;
    text-transform: uppercase;
    border: 1px solid #2980b9;
}

.achievement-description-btn:hover {
     background-color: #2980b9;
     color: white;
}

.achievement-toggle-icon {
    font-size: 9px;
    transition: transform 0.3s ease;
}

.achievement[data-is-expanded="true"] .achievement-toggle-icon {
    transform: rotate(180deg);
}

/* Описание достижения */
.achievement-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    width: 100%;
    margin-bottom: 5px;
}

.achievement-description.expanded {
    max-height: 200px; /* Можно увеличить если нужно */
    opacity: 1;
    overflow-y: auto;
}

.achievement-description-content {
    font-size: 10px;
    line-height: 1.3;
    color: #555;
    text-align: left;
    padding: 6px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    max-height: 150px;
    overflow-y: auto;
}

.achievement-description-content * {
    max-width: 100%;
    margin: 0.2em 0;
    font-size: 10px;
    line-height: 1.3;
}

.achievement-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.achievement-description-content ul,
.achievement-description-content ol {
    padding-left: 15px;
    margin: 5px 0;
}

.achievement-description-content code {
    background: #eef1f3;
    padding: 1px 3px;
    border-radius: 2px;
    font-family: monospace;
    font-size: 9px;
}

/* Адаптивность для описаний 
@media (max-width: 768px) {
    .achievement-description-btn {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .achievement-description-content {
        font-size: 9px;
        padding: 5px;
    }
    
    .achievement-description.expanded {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .achievement-description-toggle {
        margin: 5px 0 3px 0;
    }
    
    .achievement-description-btn {
        padding: 2px 5px;
        font-size: 8px;
        min-height: 22px;
    }
    
    .achievement-description-content {
        font-size: 8px;
        padding: 4px;
    }
}*/


/* Стили для отдельной ачивки (уже есть, но убедитесь в наличии) */
.achievement {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 220px;
    text-align: center;
    padding: 10px 8px; /* Уменьшить padding сверху/снизу */
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 180px; /* Увеличить минимальную высоту */
}

.achievement:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.achievement-image {
    width: 80px; /* Уменьшить немного */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

/* ПО УМОЛЧАНИЮ ВСЕ АЧИВКИ ЧЕРНО-БЕЛЫЕ */
.achievement-image {
    filter: grayscale(100%) !important;
    opacity: 0.7 !important;
}

/* АЧИВКИ, КОТОРЫЕ ПОЛУЧИЛ ПОЛЬЗОВАТЕЛЬ - ЦВЕТНЫЕ */
.achievement-image.colored {
    filter: none !important;
    opacity: 1 !important;
    border-color: #4CAF50 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.achievement-title {
    margin-top: 5px; /* Уменьшить отступ */
    font-size: 11px; /* Уменьшить шрифт */
    line-height: 1.2;
    color: #666;
    min-height: 26px; /* Уменьшить высоту */
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.achievement.colored .achievement-title {
    color: #333;
}

/* Индикатор получения */
.achievement-status {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Адаптивность для сетки достижений 
@media (max-width: 768px) {
    .achievement {
        max-width: 100px;
        padding: 8px 6px;
        min-height: 160px;
    }
    
    .achievement-image {
        width: 80px;
        height: 80px;
    }
    
    .achievement-title {
        font-size: 10px;
        min-height: 24px;
    }
}

@media (max-width: 480px) {
    .achievement {
        max-width: 90px;
        padding: 6px 4px;
        min-height: 150px;
    }
    
    .achievement-image {
        width: 55px;
        height: 55px;
    }
    
    .achievement-title {
        font-size: 9px;
        min-height: 22px;
    }
}*/

/* Стили для индикатора загрузки пользовательских данных */
.user-data-loading {
    text-align: center;
    padding: 8px 12px;
    font-size: 14px;
    color: #3498db;
    background-color: #ebf5fb;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 4px solid #3498db;
    transition: opacity 0.5s ease;
}

.user-data-loading.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Стили для заданий */

/* Добавьте эти стили для отладки */

.task-title {
    /* Убедитесь, что курсор меняется при наведении */
    cursor: pointer !important;
}

/* Убедитесь, что completed класс работает */
.task-item.completed {
    background-color: #f8f9fa !important;
    border-color: #e0e0e0 !important;
}

.task-item.completed .task-content {
    color: #7f8c8d !important;
}

.task-item.completed .task-title {
    color: #95a5a6 !important;
    text-decoration: line-through !important;
}

.task-item.completed .prize-title {
    color: #bdc3c7 !important;
}

/* Убедитесь, что expanded класс работает */
.task-item.expanded .task-description {
    /*max-height: 200px !important;*/
    opacity: 1 !important;
}

.task-item.expanded .prize-description {
    max-height: 100px !important;
    opacity: 1 !important;
}

/* Индикатор выполнения должен быть виден */
.task-completed-indicator {
    display: flex !important;
}


/* Стили для заданий с новой структурой */
.tasks-tab-content {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* Стили для скролла */
.tasks-tab-content::-webkit-scrollbar {
    height: 6px;
}

.tasks-tab-content::-webkit-scrollbar-track {
    background: #efefef;
}

.tasks-tab-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}



.tasks-container {
    padding: 10px;
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.tasks-list {
    list-style-type: none;
    padding: 0;
}

.task-item {
    display: flex;
    align-items: stretch;
    min-height: 30px;
    padding: 5px;
    margin-top: 5px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.task-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Стили для выполненных заданий */
.task-item.completed {
    background-color: #f8f9fa;
    border-color: #e0e0e0;
}

.task-item.completed .task-content {
    color: #7f8c8d;
}

.task-item.completed .task-content .task-title {
    color: #95a5a6;
}

.task-item.completed .prize-container .prize-title {
    color: #bdc3c7;
}

/* Блок с текстом задания (теперь занимает всю ширину между номером и призом) */
.task-content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 15px;
    min-width: 0; /* Важно для правильного переноса текста */
}

.task-content {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
}

.task-title {
    font-size: 12px;
    color: #2c3e50;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.task-title:hover {
    color: #3498db;
}

.task-item.completed .task-content {
    color: #7f8c8d;
}

.task-item.completed .task-title {
    color: #95a5a6;
    text-decoration: line-through;
}

/* Номер задания справа от блока с текстом */
.task-number-right {
    flex-shrink: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #eee;
}

.task-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 8px;
    color: white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Цвета для task marker */
.task-number.EPIC_TASK {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.task-number.LEGENDARY_TASK {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.task-number.RARE_TASK {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.task-number.UNUSUAL_TASK {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.task-number.GENERAL_TASK {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

/* Контейнер для приза */
.prize-container {
    flex-shrink: 0;
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    padding: 5px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    min-height: 30px;
}

.prize-image-container {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.prize-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prize-title {
    font-size: 10px;
    text-align: center;
    color: #34495e;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    max-height: 22px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Описание задания (показывается по клику на заголовок) */
.task-description {
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    /*max-height: 0;*/
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.task-item.expanded .task-description {
    /*max-height: 200px;*/
    opacity: 1;
}

/* Описание приза (показывается вместе с описанием задания) */
.prize-description {
    max-height: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.4;
    color: #555;
    text-align: center;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    width: 100%;
    opacity: 0;
}

.task-item.expanded .prize-description {
    max-height: 100px;
    opacity: 1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

/* Индикатор выполнения */
.task-completed-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2ecc71, #3498db);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 1;
}

/* Индикатор развернутого состояния */
.task-expand-indicator {
    display: inline-block;
    margin-left: 8px;
    font-size: 12px;
    color: #3498db;
    transition: transform 0.3s ease;
}

.task-item.expanded .task-expand-indicator {
    transform: rotate(180deg);
}

/* Пустое состояние */
.no-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #95a5a6;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

/* Адаптивность 
@media (max-width: 768px) {
    .task-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .task-number-right {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
        justify-content: flex-start;
    }
    
    .task-content-container {
        padding: 0;
        min-width: auto;
    }
    
    .prize-container {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        min-height: auto;
    }
}*/

/* Загрузка и ошибки */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 18px;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background-color: #ffeaea;
    border-radius: 5px;
    margin: 20px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
    font-style: italic;
}

.tab-content h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Стили для скролла */
.tabs-container::-webkit-scrollbar {
    height: 3px;
}

.tabs-container::-webkit-scrollbar-track {
    background: #efefef;
}

.tabs-container::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tab-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

/* Индикатор загрузки пользовательских данных */
.user-data-loading {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #7f8c8d;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Контейнер для шкалы прогресса */
.progress-container {
    margin: 15px 0 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.progress-percentage {
    font-size: 14px;
    font-weight: bold;
    color: #3498db;
    background-color: white;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #3498db;
}

/* Сама шкала прогресса */
.progress-bar {
    width: 100%;
    height: 20px;
    background-color: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 10px;
    width: 0%;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Анимация заполнения */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* Индикаторы на шкале */
.progress-milestones {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    position: relative;
}

.progress-milestone {
    font-size: 11px;
    color: #7f8c8d;
    text-align: center;
    position: relative;
    width: 25px;
}

.progress-milestone::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background-color: #bdc3c7;
}

/* Текст под шкалой */
.progress-text {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 8px;
    padding: 5px;
    background-color: #f1f2f6;
    border-radius: 4px;
}

/* Анимация достижения 100% */
@keyframes pulseComplete {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
}

.progress-fill.completed {
    animation: pulseComplete 2s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .progress-container {
        padding: 12px;
        margin: 10px 0 15px 0;
    }
    
    .progress-bar {
        height: 16px;
    }
    
    .progress-title {
        font-size: 13px;
    }
    
    .progress-percentage {
        font-size: 13px;
    }
}

/* Стили для таба персонажа */
.character-tab-content {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* Стили для скролла */
.character-tab-content::-webkit-scrollbar {
    height: 6px;
}

.character-tab-content::-webkit-scrollbar-track {
    background: #efefef;
}

.character-tab-content::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 3px;
}

/* Блок информации о персонаже */
.character-info-section {
    background: linear-gradient(135deg, #3498db 0%, #94c2e0 100%);;
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.character-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.character-text {
    flex: 1;
    padding-right: 20px;
}

.character-name {
    margin: 0 0 10px 0;
    font-size: 22px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.character-motto {
    font-size: 10px;
    opacity: 0.9;
    line-height: 1.4;
    text-transform: uppercase;
}

.character-motto * {
    color: white !important;
    margin: 0;
    padding: 0;
}

.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Уровень и прогресс */
.character-level-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.level-title {
    font-size: 12px;
    text-transform: uppercase;
}

.level-exp {
    font-size: 12px;
    opacity: 0.9;
}

.level-progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4cd964, #5ac8fa);
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.level-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.3) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

/* Характеристики */
.character-stats-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.stats-title {
    margin: 0 0 15px 0;
    font-size: 10px;
    color: #2c3e50;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 24px;
    margin-right: 12px;
}

.stat-content {
    flex: 1;
}

.stat-name {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 2px;
    text-align: center;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

/* История применений умений */
.skills-history-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.skills-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skills-title {
    margin: 0;
    font-size: 10px;
    color: #2c3e50;
}

.spoiler-toggle {
    background: none;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.spoiler-toggle:hover {
    background: #3498db;
    color: white;
}

.spoiler-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.skills-history-content {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.history-content {
    font-size: 10px;
    line-height: 1.5;
    color: #2c3e50;
}

.history-content * {
    max-width: 100%;
    margin: 0.5em 0;
}

.history-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.history-content ul,
.history-content ol {
    padding-left: 20px;
}

.history-content code {
    background: #eef1f3;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .character-header {
        flex-direction: column;
        text-align: center;
    }
    
    .character-text {
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .character-avatar {
        align-self: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .character-name {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Стили для блока камней */
.character-stones-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stones-title {
    margin: 0 0 15px 0;
    font-size: 10px;
    color: #2c3e50;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.stones-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stones-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* Адаптивность для камней */
@media (max-width: 1200px) {
    .stones-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stones-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stones-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
}

.stone-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stone-item.has-stone {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    /*border-color: #3498db;*/
}

.stone-image-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 2px solid #ddd;
    padding: 5px;
}

.stone-item.has-stone .stone-image-container {
    /*border-color: #3498db;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);*/
}

.stone-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.stone-item.has-stone .stone-image {
    filter: none;
    opacity: 1;
}

.stone-name {
    font-size: 10px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 4px;
    font-weight: 500;
    line-height: 1;
    min-height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.stone-item.has-stone .stone-name {
    color: #2c3e50;
}

.stone-count {
    font-size: 12px;
    font-weight: 700;
    color: #95a5a6;
    text-align: center;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 30px;
}

.stone-item.has-stone .stone-count {
    color: #3498db;
}

/* Анимация для полученных камней */
@keyframes stoneGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0);
    }
}

.stone-item.has-stone {
    /*animation: stoneGlow 2s infinite;*/
}

.stones-login-message {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    color: #95a5a6;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px dashed #bdc3c7;
}

/* Стили для блока инвентаря */
.inventory-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.inventory-title {
    margin: 0 0 15px 0;
    font-size: 10px;
    color: #2c3e50;
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Контейнер слайдера инвентаря */
.inventory-slider-container {
    position: relative;
    width: 100%;
    /*height: 350px;*/
    overflow: hidden;
    margin: 20px 0;
}

.inventory-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
    width: 100%!important;
}

.inventory-slider-transition {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Сетка предметов на слайде */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    gap: 15px;
    justify-items: center;
    align-items: start;
    width: 100%;
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
    min-height: 220px;
    height: 100%;
}

/* Адаптивность сетки 
@media (max-width: 1200px) {
    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        min-height: 500px;
    }
    
    .inventory-slider-container {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .inventory-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        min-height: 700px;
    }
    
    .inventory-slider-container {
        height: 650px;
    }
}*/

/* Стили для отдельного предмета */
.inventory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 120px;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 220px;
    height: 93%;
}

.inventory-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inventory-item.has-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.inventory-image-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 2px solid #ddd;
    padding: 5px;
}

.inventory-item.has-item .inventory-image-container {
    /*border-color: #3498db;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);*/
}

.inventory-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.inventory-item.has-item .inventory-image {
    filter: none;
    opacity: 1;
}

.inventory-name {
    font-size: 9px;
    /* font-weight: 600; */
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.inventory-item.has-item .inventory-name {
    /*color: #3498db;*/
}

/* Кнопка описания */
.inventory-description-toggle {
    margin-bottom: 10px;
    width: 100%;
}

.description-toggle-btn {
    border: 1px solid #3498db!important;
    color: #2c3e50;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.description-toggle-btn:hover {
    background: #2980b9;
    color: white;
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.inventory-item[data-is-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Описание предмета */
.inventory-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    width: 100%;
    margin-bottom: 10px;
}

.description-content {
    font-size: 11px;
    line-height: 1.4;
    color: #555;
    text-align: left;
    padding: 8px;
    background: #f1f2f6;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.description-content * {
    max-width: 100%;
    margin: 0.3em 0;
}

.description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
}

.description-content ul,
.description-content ol {
    padding-left: 15px;
}

/* Разделитель */
.inventory-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 8px 0;
}

/* Количество */
.inventory-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5px;
}

.quantity-label {
    font-size: 9px;
    color: #7f8c8d;
    text-transform: uppercase;
}

.quantity-value {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 30px;
    text-align: center;
}

.inventory-item.has-item .quantity-value {
    color: #2c3e50;
    /*background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);*/
}

/* Навигация слайдера */
.inventory-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 10px;
}

.inventory-slider-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.slider-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.inventory-slider-arrow:hover:not(:disabled) {
    background: #2980b9;
    transform: scale(1.1);
}

.slider-arrow:hover:not(:disabled){
    background: #2980b9;
    transform: scale(1.1);
}

.inventory-slider-arrow:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.5;
}

.slider-arrow:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.5;
}

.inventory-slider-dots {
    display: flex;
    gap: 8px;
}

.inventory-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #bdc3c7;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.inventory-slider-dot.active {
    background-color: #3498db;
    transform: scale(1.3);
}

.inventory-slider-dot:hover:not(.active) {
    background-color: #7f8c8d;
    transform: scale(1.1);
}

/* Статистика инвентаря */
.inventory-stats {
    text-align: center;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 15px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Placeholder для выравнивания */
.inventory-item-placeholder {
    width: 100%;
    max-width: 180px;
    visibility: hidden;
}

/* Стили для описания таба с заданиями */
.tab-description-container {
    border-radius: 12px;
    padding: 10px;
    color: #555;
    margin-bottom: 0px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}


.tab-description-content {
    position: relative;
    z-index: 1;
    font-size: 10px;
    line-height: 1.5;
    text-align: justify;
}

.tab-description-content * {
    color: #555 !important;
    margin: 0.5em 0;
    max-width: 100%;
}

.tab-description-content p {
    margin: 0.5em 0;
}

.tab-description-content strong {
    font-weight: 700;
}

.tab-description-content em {
    font-style: italic;
}

.tab-description-content u {
    text-decoration: underline;
}

.tab-description-content a {
    color: #a3e4ff !important;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.tab-description-content a:hover {
    color: #ffffff !important;
}

.tab-description-content ul,
.tab-description-content ol {
    text-align: left;
    padding-left: 20px;
    margin: 10px 0;
}

.tab-description-content li {
    margin: 5px 0;
}

.tab-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin: 10px auto;
    display: block;
}

.tab-description-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    color: #f8f9fa;
}

.tab-description-content blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 15px;
    margin: 15px 0;
    font-style: italic;
    opacity: 0.9;
}


/* Анимация появления описания */
/*@keyframes fadeInDescription {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-description-container {
    animation: fadeInDescription 0.5s ease-out;
}*/

/* Стили для типа предмета инвентаря */
.inventory-type {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 3px 0 3px 0;
    width: 100%;
    font-size: 9px;
    line-height: 1.2;
}


.type-value {
    color: #7f8c8d;
    text-align: center;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

