/* Mobile: Tap-Highlight / Auswahl / Callout deaktivieren */
html, body {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Für Buttons/Controls speziell */
button, .mobile-btn, a {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

/* Optional: Fokus-Outline nur für Tastatur (besser als komplett aus) */
button:focus { outline: none; }
button:focus-visible {
  outline: 2px solid rgba(38,255,107,.8);
  outline-offset: 2px;
}


/* Sci-Fi Space Theme */
body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background: radial-gradient(ellipse at center, #0d0d0d 0%, #000000 100%);
  color: #00ffee;
  text-align: center;
  overflow: hidden;
  position: relative;
  min-height: 100vh;
  will-change: transform; /* Hinweis für Browser-Optimierung */
}

h2, h3 {
  margin-top: 30px;
  text-shadow: 0 0 5px #00ffee, 0 0 10px #00ffee;
}

/* Neon Buttons im Raumschiff-Style */
.rps-button {
  background-color: transparent;
  border: 2px solid #00ffee;
  color: #00ffee;
  font-size: 3rem;
  padding: 20px;
  margin: 15px;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #00ffee;
  cursor: pointer;
}

.rps-button:hover {
  background-color: #00ffee;
  color: #000;
  box-shadow: 0 0 20px #00ffee;
}

/* Ergebnisanzeige */
#result {
  font-size: 1.5rem;
  color: #fff;
  text-shadow: 0 0 5px #00ffee;
  margin-top: 40px;
}

/* Sterne (Animation im Hintergrund) */
body::before {
  content: '';
  position: fixed;
  top: -20px;
  left: 0;
  width: 100%; 
  height: calc(100% + 40px);
  background: url('/PLAYER_vs_PLAYER_Handbattle/img/background.jpg') no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0.7;
  z-index: -1;
  animation: floatUpDown 6s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
  will-change: transform; /* Signalisiert dem Browser, Animation zu optimieren */
  transform: translateZ(0); /* Hardware-Beschleunigung aktivieren */
  -webkit-backface-visibility: hidden; /* Verhindert Rendering-Probleme */
  backface-visibility: hidden;
}

@keyframes floatUpDown {
  0% {
      transform: translateY(0) translateZ(0);
  }
  50% {
      transform: translateY(-15px) translateZ(0);
  }
  100% {
      transform: translateY(0) translateZ(0);
  }
}

/* Anwendung der Animation auf ein Element */
.floating-element {
  animation: floatUpDown 6s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
  transform: translateZ(0);
}

/* Variationen mit unterschiedlicher Geschwindigkeit */
.floating-slow {
  animation: floatUpDown 9s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}

.floating-fast {
  animation: floatUpDown 4s cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
}




.logout-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 8px 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.logout-btn:hover {
  background: #c00;
}


.scrollable-list {
  max-height: 300px;
  overflow-y: auto;
}
