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

body {
  background-color: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

#game-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-canvas {
  background-color: #16213e;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#ui {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

#level-name {
  color: #e8e8e8;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#player-count {
  color: #22c55e;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#controls-hint {
  color: #a0a0a0;
  font-size: 14px;
}

#name-input-container {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  pointer-events: auto;
}

#name-input {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  width: 120px;
}

#name-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#name-input:focus {
  background: rgba(255, 255, 255, 0.15);
}

#name-submit {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  background: #22c55e;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

#name-submit:hover {
  background: #16a34a;
}
