Perhaps just swap background-color for a background with a linear-gradient blending top and bottom out to transparent.
Here is (left to right) the original, short blend to alpha top and bottom, larger blend:
You might need to click the image to zoom to really see what it will look like.
