* {
  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;
}

/*center crosshair*/
#crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
}

/*minimal in-game hud*/
#hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  z-index: 20;
}

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

.hud-stats div {
  margin-bottom: 4px;
  color: #ffffff;
}

.hud-stats span {
  color: #888888;
}

.hud-toggles {
  text-align: right;
}

.hud-toggles div {
  margin-bottom: 4px;
  color: #888888;
}

.hud-toggles span {
  color: #ffffff;
}

.hud-bottom {
  text-align: center;
  color: #888888;
  font-size: 12px;
}

/*start / pause menu overlay*/
#play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  cursor: default;
}

.ascii-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000000;
  border: 1px solid #ffffff;
  padding: 24px;
  min-width: 440px;
  max-width: 90vw;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.ascii-menu-header {
  color: #888888;
  font-size: 14px;
  margin-bottom: 6px;
}

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

.ascii-start-btn {
  background: transparent;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: bold;
  padding: 10px 24px;
  margin: 18px 0;
  cursor: pointer;
  letter-spacing: 2px;
  transition: all 0.15s ease;
}

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

.ascii-menu-footer {
  text-align: center;
  color: #888888;
  font-size: 12px;
  line-height: 1.6;
}
