Underdamped diffusion in the egg-carton potential