html.desktop-visual-mode #app:has(> #mainMenu:not(.hidden))::before,
html.desktop-visual-mode #app:has(> #leaderboardScreen:not(.hidden))::before {
  content: "";
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;

  width: max(1920px, 100vw);
  height: max(1080px, 100dvh);
  transform: translate(-50%, -50%);

  pointer-events: none;
  background-color: #080a0e;
  background-image: url("../assets/ui/backgrounds/main_menu.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (min-width: 761px) {
  html.desktop-visual-mode #app:has(> #mainMenu:not(.hidden))::before,
  html.desktop-visual-mode #app:has(> #leaderboardScreen:not(.hidden))::before {
    display: block;
  }
}

html.desktop-visual-mode.win-pwa #app:has(> #mainMenu:not(.hidden))::before,
html.desktop-visual-mode.win-pwa #app:has(> #leaderboardScreen:not(.hidden))::before {
  display: block;
}

html.desktop-visual-mode #app:has(> #mainMenu:not(.hidden) #authTabStatistics.active)::before {
  background-image: url("../assets/ui/backgrounds/player_statistics.jpg");
}

html.desktop-visual-mode #app:has(> #mainMenu:not(.hidden) #authTabPlayerValues.active)::before {
  background-image: url("../assets/ui/backgrounds/player_values.jpg");
}

html.desktop-visual-mode #app:has(> #mainMenu:not(.hidden) #authTabHirntotStudio.active)::before {
  background-image: url("../assets/ui/backgrounds/hirntot_studio.jpg");
}

html.desktop-visual-mode #app:has(> #leaderboardScreen:not(.hidden))::before {
  background-image: url("../assets/ui/backgrounds/highscore.jpg");
}
