Pick a backdrop none of the pages share
The backdrop (--mcu-backdrop) is what shows round the card. A page in the same colour has no edge once it shrinks, and the card disappears.
Give every page a solid background
The old page stays under the new one until the cut ends. A page without a background lets it show through.
Keep the nav outside the card
The nav bar is a sibling of the card, so it doesn't shrink. Put anything else that should hold still (a logo, a header) next to it, with a z-index above 1.