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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #05070d;
}

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: none; /* we draw our own crosshair in every state */
}

#scene,
#hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
}

#scene {
  z-index: 0;
}

/* The HUD canvas sits on top but never eats pointer events. */
#hud {
  z-index: 1;
  pointer-events: none;
}

/* Unobtrusive author credit -> the GitHub repo. */
#credit {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  font: 11px 'Courier New', monospace;
  color: #5a6b7d;
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
}

#credit:hover {
  color: #bcd2e6;
  text-decoration: underline;
}
