Stratifying on-shell cluster varieties: the geometry of non-planar on-shell diagrams