* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f1220;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f4f8;
}

canvas#world {
  display: block;
  touch-action: none;
  cursor: crosshair;
}

#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 14px 18px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,18,32,0.85), rgba(15,18,32,0));
}

#hud h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.02em;
}

#hud p {
  margin: 2px 0 10px;
  font-size: 13px;
  opacity: 0.7;
}

#controls {
  pointer-events: auto;
  display: flex;
  gap: 8px;
}

#controls button {
  background: #1e2338;
  border: 1px solid #363c5c;
  color: #f4f4f8;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
}

#controls button:hover {
  background: #2a3050;
}

#controls button:active {
  background: #3a4270;
}
