Rupee gains as risk assets find relief in dollar pullback