This was a triumph.
I'm making a note here:
My God this baked my brain. If you can spot a flaw:
a) shut up
b) have a cookie and then shut up
My poor brain wasn't made to cope with things like this. Many thanks to Flipsy for helping with the portal design.