Devil's staircase in three-dimensional coherent waves localized on Lissajous parametric surfaces.