body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #050510;
  overflow: hidden;
  font-family: 'Orbitron', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  background-color: transparent;
  box-shadow: 0 0 50px rgba(255, 0, 255, 0.2);
  border-radius: 20px;
  z-index: 1;
}

#ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

#login-screen {
  pointer-events: auto;
  background: rgba(10, 10, 25, 0.9);
  padding: 50px;
  border-radius: 20px;
  border: 2px solid #f0f;
  box-shadow: 0 0 30px #f0f;
  text-align: center;
}

#login-screen h1 {
  margin-top: 0;
  color: #0ff;
  text-shadow: 0 0 15px #0ff;
  font-size: 3.5em;
  letter-spacing: 5px;
}

input {
  font-family: 'Orbitron', sans-serif;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #0ff;
  color: white;
  padding: 12px 25px;
  font-size: 1.4em;
  border-radius: 10px;
  margin-bottom: 30px;
  width: 250px;
  text-align: center;
  outline: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transition: box-shadow 0.2s;
}

input:focus {
  box-shadow: 0 0 25px rgba(0, 255, 255, 1);
}

button {
  font-family: 'Orbitron', sans-serif;
  background: transparent;
  border: 2px solid #f0f;
  color: #f0f;
  padding: 15px 40px;
  font-size: 1.4em;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 15px #f0f, inset 0 0 10px #f0f;
  transition: all 0.2s;
}

button:hover {
  background: #f0f;
  color: black;
  transform: scale(1.05);
  box-shadow: 0 0 30px #f0f;
}

button:active {
  transform: scale(0.95);
}

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

.top-bar {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

#player-status {
  font-size: 1.5em;
  color: #0ff;
  text-shadow: 0 0 10px #0ff;
  font-weight: bold;
}

#start-btn {
  background: transparent;
  border-color: #0f0;
  color: #0f0;
  box-shadow: 0 0 15px #0f0, inset 0 0 10px #0f0;
}
#start-btn:hover {
  background: #0f0;
  color: black;
  box-shadow: 0 0 30px #0f0;
}

#winner-announcement {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5em;
  color: #ff0;
  text-shadow: 0 0 30px #ff0;
  text-align: center;
  white-space: nowrap;
}

#cooldown-bar {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 25px;
  border: 3px solid #0ff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px #0ff;
  background: rgba(0, 0, 0, 0.5);
}

#cooldown-fill {
  width: 100%;
  height: 100%;
  background: #0ff;
  transition: width 0.1s linear;
}
