/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #18211b;   /* wie Startbild und Ladebildschirm */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

#game-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#game-container canvas {
  display: block;
}

/* Connection status indicator */
#connection-status {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffcc00;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  z-index: 1000;
  border: 1px solid #333;
}

/* Player count */
#player-count {
  position: fixed;
  top: 50px;
  right: 10px;
  padding: 8px 16px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #88ccff;
  border-radius: 5px;
  font-size: 14px;
  z-index: 1000;
  border: 1px solid #333;
}

/* Instructions panel */
#instructions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border-radius: 10px;
  font-size: 14px;
  z-index: 900;
  border: 2px solid #444;
  opacity: 0;
  transition: opacity 1s ease;
  max-width: 250px;
}

#instructions h3 {
  margin-bottom: 10px;
  color: #ffcc00;
  font-size: 16px;
}

#instructions p {
  margin-bottom: 5px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  #instructions {
    bottom: auto;
    top: 200px;   /* unter Statusbox und Minikarte */
    right: 50%;
    transform: translateX(50%);
  }
}
