Judges don't get elected in the US (except for some state and local judges) and yet the US is a superpower. I don't think judicial selection plays a major factor in determining superpower status.
Can you name any country that has ever been a superpower where judges (of the national judiciary if it has separate judiciaries for constituent parts from the national one) were predominantly democratically elected?
I do think this is a great counterexample, but it is largely a bug in the law specific to patents that was closed in 2017. Even then, IIUC on appeal your case would still be randomized.
https://www.npr.org/2024/10/21/g-s1-28919/supreme-court-judg...
https://www.brennancenter.org/our-work/research-reports/judg...
https://news.northeastern.edu/2025/03/27/judge-shopping-expl...