Every switch is a set of railway points. Steer the current from the coin cell down the copper and wake up whichever gadget it lands on. Each junction is powered when the one above it is powered and points its way: one multiplication in calc() per branch, so the whole tree is a demultiplexer made of inherited custom properties.