* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  overflow: hidden;
  font-family: 'Arial', sans-serif;
  background-color: #000;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
  animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.online-users {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10;
  text-shadow: 0 0 5px cyan, 0 0 10px cyan;
  border: 1px solid cyan;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.tower-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 10px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
  font-size: 14px;
  z-index: 10;
  text-shadow: 0 0 5px cyan, 0 0 10px cyan;
  border: 1px solid cyan;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border: 2px solid cyan;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 0 10px cyan, 0 0 20px cyan;
  transition: all 0.1s ease;
  text-shadow: 0 0 5px cyan, 0 0 10px cyan;
  border: 1px solid cyan;
}

.crosshair:hover {
  transform: scale(1.2) translate(-50%, -50%);
  border-color: cyan;
}

.height-indicator-container {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 300px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  z-index: 10;
  text-shadow: 0 0 5px cyan, 0 0 10px cyan;
  border: 1px solid cyan;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.height-indicator-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, #00ffff, #00ff00);
  border-radius: 15px;
  box-shadow: 0 0 10px cyan;
}

.height-indicator-label {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 14px;
}

.height-indicator-marks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.height-indicator-mark {
  position: absolute;
  right: 0;
  width: 10px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
}

.height-indicator-mark-label {
  position: absolute;
  right: 40px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.player-name {
  position: absolute;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  z-index: 10;
  text-shadow: 0 0 5px cyan, 0 0 10px cyan;
  border: 1px solid cyan;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.upgrade-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: cyan;
  padding: 10px 20px;
  border-radius: 10px;
  z-index: 1000;
  text-align: center;
  font-weight: bold;
  text-shadow: 0 0 5px cyan;
  border: 1px solid cyan;
}

.island-info {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: magenta;
  padding: 15px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
  transition: opacity 0.5s ease;
  z-index: 10;
  text-shadow: 0 0 5px magenta;
  border: 1px solid magenta;
  box-shadow: 0 0 10px magenta;
}

.island-info.hide {
  opacity: 0;
  pointer-events: none;
}

.island-info.show {
  opacity: 1;
}

.third-person-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: magenta;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-shadow: 0 0 5px magenta;
  border: 1px solid magenta;
  box-shadow: 0 0 10px magenta;
}

.third-person-hint.show {
  opacity: 1;
}

/* Mobile-specific styles */
#joystick-container {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 120px;
  height: 120px;
  z-index: 10;
}

#jump-button {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 12px;
  user-select: none;
}

@media (max-width: 768px) {
  .tower-info {
    font-size: 12px;
    padding: 8px;
  }

  .online-users {
    font-size: 12px;
  }
}