* {
  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-bottom {
  text-align: center;
  color: #888888;
  font-size: 12px;
}

/* 2D ASCII blueprint overlay */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  pointer-events: auto;
}

.map-overlay.hidden {
  display: none;
}

.ascii-blueprint-box {
  border: 1px solid #ffffff;
  padding: 18px 24px;
  background: #000000;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
}

.ascii-blueprint-header,
.ascii-blueprint-footer {
  color: #888888;
  font-size: 13px;
  margin-bottom: 12px;
}

.ascii-blueprint-footer {
  margin-top: 12px;
  margin-bottom: 0;
}

.ascii-blueprint-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  line-height: 1.15;
  color: #ffffff;
  background: #0a0a0a;
  padding: 12px;
  border: 1px dashed #444444;
  white-space: pre;
}

.ascii-blueprint-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #888888;
}

.ascii-blueprint-legend b {
  color: #ffffff;
}

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