Opportunity is a set of unique circumstances, which has high probability of being favourable to your interests. It is the context which can help you win. The permutations and combinations which would show you as lucky, capable or even successful. It’s mathematical in nature, though your innate talent can immensely contribute. What you must focus is to hunt such unique contexts which can help you thrive.
I have had many failures and it comes quite natural for me to talk about luck as a big factor. But I’d prefer to call it context, which can be a more neutral term. So if context changes, things change. It’s like a complex mathematical equation. Each variable has the potential to change the outcome, and controlling each variable is not possible, in real life. I’ve observed successful people who hunt for opportunities is also aware of the unique set of circumstances and how change in each variable can change the potential outcome. It’s their ability to see that makes them what they are. They focus their mind on that present moment, being aware of the slightest movement, sometimes even lack of it, to figure out what is best for them.