The flicker animation runs 12 times (12 * 0.12s = 1.44s), then stops, but maybe after fade out, you set opacity manually to 0, then to 1 in JS right after, which could cause flicker.
You do not remove event handlers or disable clicks/keys after dismissing, so extra events might trigger multiple times
Event not bound to window/key listeners but only to the introSplash element, which might not be focused/accessed
Quick steps to fix the problems
1. Make sure the intro splash gets keyboard focus so keydown works
Add at the end of showIntroSplash:
js
introSplash.focus();
This ensures key events go to the splash div.
2. Remove the flicker animation after dismiss or disable it once dismissed
4. Alternatively, move the keydown event to window or document to catch keys globally
Since sometimes the introSplash might not receive focus reliably, add a keydown listener to the whole window just during intro, and remove after dismiss:
Because your splash has multiple animations going on (slideIn, flicker, scalePulse). When you fade it out by setting opacity=0 in JS but persistent CSS animations keep running, it looks like flickering.
By adding .dismissed class with animation:none, you stop the animation after dismiss.
Bonus: disable pointer events on the splash once dismissed to avoid accidental clicks during fadeout
Add .dismissed CSS class to stop flicker, move keydown handler to window, and remove event listeners upon dismiss. That will make the intro splash dismiss properly on timeout, click, or key press — and stop flickering.
If you want, I can prepare a minimal snippet for testing this behavior — just ask!