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

body {
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Courier New', Courier, monospace;
  color: #fff;
}

#game-wrapper {
  position: relative;
  display: inline-block;
}

#gameCanvas {
  display: block;
  border: 2px solid #333;
  background: #111;
}

/* Volume control */
#volume-control {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.55);
  padding: 5px 10px;
  border: 1px solid #333;
}

#volume-icon {
  font-size: 16px;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  background: #444;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #ffcc00;
  cursor: pointer;
  border-radius: 0;
}

#volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #ffcc00;
  cursor: pointer;
  border-radius: 0;
  border: none;
}

/* Overlays */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
}

.overlay.hidden {
  display: none;
}

.overlay-box {
  background: #1a1a1a;
  border: 2px solid #444;
  padding: 40px 48px;
  text-align: center;
  min-width: 320px;
}

.overlay-box h2 {
  font-size: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #ffcc00;
}

.overlay-box input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 18px;
  font-family: 'Courier New', Courier, monospace;
  background: #0a0a0a;
  border: 1px solid #555;
  color: #fff;
  text-align: center;
  outline: none;
  letter-spacing: 2px;
}

.overlay-box input[type="text"]:focus {
  border-color: #ffcc00;
}

.overlay-box button {
  margin-top: 20px;
  padding: 12px 40px;
  font-size: 16px;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: #ffcc00;
  color: #000;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.overlay-box button:hover {
  background: #ffe066;
}

.error-msg {
  color: #ff4444;
  font-size: 13px;
  margin-top: 10px;
  letter-spacing: 1px;
}

.error-msg.hidden {
  display: none;
}
