Envoyer par SMS: Density-functional fluctuation theory of crowds