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

body {
  background: #0a0a1a;
  overflow: hidden;
  font-family: 'Press Start 2P', monospace;
  cursor: crosshair;
  image-rendering: pixelated;
  -ms-interpolation-mode: nearest-neighbor;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}

.tooltip {
  display: none;
  position: absolute;
  background: #1a0a2e;
  border: 3px solid #5b2da0;
  padding: 10px 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #b48eff;
  pointer-events: none;
  z-index: 100;
  max-width: 260px;
  line-height: 1.8;
  box-shadow: 0 0 20px rgba(91, 45, 160, 0.5);
}

.tooltip .title {
  color: #ff55ff;
  margin-bottom: 6px;
}

.tooltip .lore {
  color: #5555ff;
  font-style: italic;
}

.tooltip .enchant {
  color: #aaaaaa;
}