.npc-view {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.npc-view__name {
  position: absolute;
  transform: translate(-50%, -100%);
  color: #c0ea9f;
  font: 12px/1.3 Tahoma, sans-serif;
  white-space: nowrap;
  text-shadow: 0 1px 2px #000, 0 0 4px #000;
}

button.npc-view__name {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  padding: 2px 5px;
  border-radius: 3px;
  background: transparent;
}

button.npc-view__name:is(:hover, :focus-visible) { background: #111820e8; color: #edffd9; }
