I'd probably hate my job too if I worked in gambling. I might not morally object enough to quit, and in-person gambling is kind of an interesting novelty... but it doesn't seem too exciting to make games that people don't play unless they think they'll get rich....
Do those younger devs truly get stuff easily, or are they just vaguely familiar with more npm libraries than you, because they were studying that instead of focusing on deep fundamentals? Maybe you're every bit as good as them and they're just lazy and cheating, or happen to be specialists in specific things you're not?
Or perhaps they're just well rested because they don't have a life. I've been that!
I've solved years old bugs before, some might think I'm one of those devs you're talking about, but I have no clue what actually happened with some of them.
Performance doesn't matter on this algorithm that only executes once at startup? Rip it out and use a brute force thing. I'm not even gonna pretend to know enough math to fix it.
Hand soldered thing on proto board with logic gates got messed up? I kind of feel bad, but I'm going to put it in the junk drawer, replace it with an Arduino, and be done with it.
No matter how smart you are, I can still not do something faster than you can do it.
The most capable people always seem to make things harder for themselves, by taking "Pride in your work" a bit too far, well past what actually helps the product, especially with mental stuff, where there's curiosity, pride, desire to develop new skills, and all kinds of things leading one to make stuff harder.
Worse, there's even inertia, where someone might spend 3 hours debugging with print statements rather than exploring a different IDE with a debugger, or write something themselves without any research on how others did it.
Perhaps that is how they got to be the most capable people, by never turning down a challenge, but if they're gonna keep doing that, maybe they should go where their efforts are appreciated, maybe doing something novel that can't be done by the rest of us boot camp copypaste masters..