html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  background: #000;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

#fps,
#place,
#hint,
#map-help {
  margin: 0;
  color: #fff;
  background: #000;
  font: 16px/1.2 ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  pointer-events: none;
  user-select: none;
}

#fps {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
}

#place {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 4px 8px;
}

#minimap {
  position: fixed;
  right: 12px;
  bottom: 36px;
  z-index: 2;
  width: 200px;
  height: 200px;
  outline: 2px solid #fff;
}

#hint {
  position: fixed;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 14px;
}

#map-overlay {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.78);
}

#map-overlay[hidden] {
  display: none;
}

#map-help {
  max-width: 40rem;
  padding: 6px 8px;
  text-align: center;
  background: transparent;
}

#boot-error {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 36rem;
  color: #fff;
  font: 18px/1.4 ui-sans-serif, system-ui, sans-serif;
  text-align: center;
}
