/* ✅ Globální nastavení */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;        /* černé pozadí */
  overflow: hidden;        /* odstraní posuvníky */
}

/* ✅ Overlay obrazovky (Start, Game Over) */
.overlay-screen {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 36px;
  font-family: sans-serif;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  text-align: center;
  pointer-events: all;
}

/* ✅ Text pod tlačítky */
.restart-hint {
  font-size: 18px;
  color: #ccc;
  margin-top: 10px;
}

/* ✅ Skóre UI */
#scoreUI {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 20px;
  font-family: sans-serif;
  z-index: 1000;
}

/* ✅ Mobilní joystick */
.joystick-base {
  position: fixed;
  bottom: 80px;
  left: 40px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  z-index: 2000;
  touch-action: none;
}

.joystick-stick {
  position: absolute;
  left: 25px;
  top: 25px;
  width: 50px;
  height: 50px;
  background: rgba(0, 255, 0, 0.6);
  border-radius: 50%;
}

/* ✅ Mobilní tlačítko skoku */
.btn-jump {
  position: fixed;
  bottom: 120px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: rgba(0, 255, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 32px;
  color: white;
  text-align: center;
  line-height: 80px;
  z-index: 2000;
}

/* ✅ Mobilní tlačítko skrčení */
.btn-crouch {
  position: fixed;
  bottom: 20px;
  right: 40px;
  width: 80px;
  height: 80px;
  background: rgba(255, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 32px;
  color: white;
  text-align: center;
  line-height: 80px;
  z-index: 2000;
}

/* ✅ Skryj mobilní ovládání na desktopu */
@media (min-width: 768px) {
  .joystick-base, .btn-jump, .btn-crouch {
    display: none;
  }
}
