If I understood it right (!), I’d just place 3 elements in a vertical box:
And if any of them falls below 0, just hide it:
This is pretty crude and can be done much better.