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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  font-family: 'Courier New', Courier, monospace;
}

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
}

#canvas3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
}

/* Minimal HUD */
#hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: #00f0ff;
  font-size: 12px;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

.hud-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Center Crosshair Dot */
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* ============================================================================
   MINIMALIST ASCII START MENU (MONOCHROME & CLEAN)
   ============================================================================ */
#play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
  cursor: default;
}

.ascii-menu {
  background: #000000;
  border: 1px solid #ffffff;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  max-width: 480px;
  width: 100%;
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.ascii-menu-header {
  font-size: 12px;
  color: #888888;
  letter-spacing: 1px;
}

.ascii-menu-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffffff;
}

.ascii-start-btn {
  width: 100%;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 10px 20px;
  cursor: pointer;
  margin: 4px 0;
  transition: background 0.1s, color 0.1s;
}

.ascii-start-btn:hover {
  background: #ffffff;
  color: #000000;
}

.ascii-toggle-header-btn {
  background: transparent;
  color: #888888;
  border: none;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 6px 0;
  margin-top: 4px;
  transition: color 0.1s ease;
}

.ascii-toggle-header-btn:hover {
  color: #ffffff;
}

.ascii-config-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.ascii-config-panel.hidden {
  display: none;
}

.ascii-config-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #222222;
  padding: 12px 14px;
}

.ascii-config-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #dddddd;
}

.ascii-slider-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.ascii-slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #cccccc;
}

.ascii-val {
  color: #ffffff;
  font-weight: bold;
}

/* Custom Minimalist Monochrome Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #333333;
  outline: none;
  cursor: pointer;
  margin: 4px 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #ffffff;
  cursor: pointer;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ffffff;
  cursor: pointer;
  border: none;
}

.ascii-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-family: inherit;
  font-size: 12px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}

.ascii-btn:hover {
  background: #ffffff;
  color: #000000;
}

.ascii-btn.off {
  color: #777777;
  border-color: #555555;
}

.ascii-btn.off:hover {
  background: #777777;
  color: #000000;
}

.ascii-restore-btn {
  width: 100%;
  background: transparent;
  color: #aaaaaa;
  border: 1px dashed #555555;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
  margin-top: 2px;
  transition: all 0.1s ease;
}

.ascii-restore-btn:hover {
  background: #ffffff;
  color: #000000;
  border-style: solid;
}

.ascii-menu-footer {
  font-size: 11px;
  color: #777777;
  line-height: 1.6;
  margin-top: 4px;
  border-top: 1px dashed #333333;
  padding-top: 8px;
  width: 100%;
}
