You should have multiple background declarations, and if the browser doesn’t support var(--red-color) it will still have a background color of red (which should be set before)
For eg. go to this Gradient Generator and you’ll see in the CSS they have multiple declarations. The first one is the fallback.