Completely different approach

That one also works, i guess. And looks better, and uses fewer hacks.