.level-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 16, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1100;
    align-items: center;
    justify-content: center;
}

.level-modal.active {
    display: flex;
}

.level-modal .filter-modal-content {
    max-width: 320px;
    width: 90%;
    transform: translateY(0);
    border-radius: 26px;
    overflow: hidden;
}

.level-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    border-top-left-radius: 26px;
    border-top-right-radius: 26px;
    position: relative;
}

.level-header h3 {
    font-size: 1.4em;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.level-header p {
    font-size: 0.9em;
    color: rgba(255,255,255,0.9);
}

.level-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255,255,255,0.5);
}

.level-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.level-body {
    padding: 24px 20px;
    background: var(--surface-dark);
}

.level-stats {
    background: var(--surface);
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--border);
}

.level-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.level-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.level-stat-row:first-child {
    padding-top: 0;
}

.level-stat-label {
    color: var(--text-secondary);
    font-size: 0.95em;
    font-weight: 500;
}

.level-stat-value {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: 700;
}

.level-stat-value.stars {
    color: #FFD700;
}

.level-progress-container {
    margin-top: 20px;
    padding: 0 20px;
}

.level-progress-label {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85em;
    margin-bottom: 8px;
}

.level-progress-bar {
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-next-info {
    margin-top: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9em;
    background: var(--surface);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.level-next-info span {
    color: #FFD700;
    font-weight: 700;
}

.level-footer {
    padding: 16px 20px;
    background: var(--surface-dark);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.level-close-btn {
    padding: 14px 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.level-close-btn:active {
    background: var(--primary-dark);
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .level-header {
        padding: 20px 15px;
    }
    
    .level-icon-container {
        width: 70px;
        height: 70px;
    }
    
    .level-icon {
        width: 50px;
        height: 50px;
    }
    
    .level-stats {
        padding: 16px;
    }
    
    .level-stat-value {
        font-size: 1.1em;
    }
}