Interested in CS since spent a lot of time in front of a PC as well. You would consider me "average" at UNI. Studied CS at the top UNI of México (not an IVY league), but good enough to catch attention of FAANG's. Never stellar in comparison to my other classmates who had been programming since they were 12. Spent a lot of time with videogames since HS and UNI, and fooled around classes a lot. Felt like a bum when graduated (compared to what my classmates were achieving at those times).
Two tips:
1. Ditch videogames, porn, binge-watching series/movies/random videos, gambling, drinking, etc. Anything that is taking 3-4 hours of chunk of your time per day. You need this time for tip number 2.
2. Show up everyday. Start picking books, tutorials, courses, articles on Web Programming, Python, Algorithms, Security, Business, etc. On a daily basis, 2 hours per day. After 2 or 3 years it will be drilled in your head, you will feel competent and grow confidence. It is extremely important that you do this everyday, even on weekends, double it down on weekends.
I feel so much better right now after 4-5 years. My employers consider me a top performer and handle me responsibilities (and compensation) way beyond someone my age.
Vamos hombre!