Planets in cosmic chaos