Best way to manage visually an input_select linked to scene in lovelace?

This custom button card can change colour depending on the state of another entity:

Quite a lot of options to get your head around but once you get the hang of it, a very powerful card.