body {
  margin: 0;
  overflow: hidden;
  background-color: #000;
  font-family: "Courier New", Courier, monospace;
}

#game-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding: 20px;
  box-sizing: border-box;
}

#connection-status {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  display: inline-block;
  border-radius: 4px;
}

#login-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: all;
}

#login-menu.hidden {
  display: none;
}

#login-box {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px 60px;
  border-radius: 15px;
  border: 3px solid #0ff;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

#login-box h1 {
  color: #0ff;
  margin: 0 0 30px 0;
  font-size: 48px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

#player-name {
  width: 300px;
  padding: 15px;
  font-size: 18px;
  border: 2px solid #0ff;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  pointer-events: all;
}

#player-name:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

#player-color {
  width: 100px;
  height: 50px;
  border: 2px solid #0ff;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  margin-bottom: 20px;
  cursor: pointer;
  pointer-events: all;
}

#player-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

#player-color::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

#player-skin {
  width: 200px;
  padding: 15px;
  font-size: 18px;
  border: 2px solid #0ff;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  cursor: pointer;
  pointer-events: all;
}

#player-skin:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

#player-skin option {
  background-color: #000;
  color: #fff;
}

#play-button {
  padding: 15px 60px;
  font-size: 20px;
  background-color: #0ff;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-family: "Courier New", Courier, monospace;
  transition: all 0.3s;
  pointer-events: all;
}

#play-button:hover {
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
  transform: scale(1.05);
}

#play-button:active {
  transform: scale(0.95);
}

#leaderboard {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  min-width: 200px;
  border: 2px solid #fff;
}

#leaderboard h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: #fff;
  text-align: center;
}

#leaderboard-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

#leaderboard-list li {
  color: #ccc;
  margin: 3px 0;
}

#leaderboard-list li.current-player {
  color: #0ff;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
}

#leaderboard-list li.separator {
  list-style: none;
  color: #666;
  text-align: center;
  margin: 5px 0;
}
