#text-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  pointer-events: none;
  z-index: 10000;
  /* Force GPU rendering for smoother transforms */
  will-change: transform;
  transform: translateZ(0);
}

/* Prototypes are always hidden */
.prototype {
  display: none;
}

.text-bubble {
  background-color: transparent;
  border: none;
  border-radius: 8px;
  padding: 4px;
  text-align: center;
  word-break: break-word;
  text-shadow:
    -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000,
    -2px 0 0 #000, 2px 0 0 #000, 0 -2px 0 #000, 0 2px 0 #000;
  /* Thicker outline */
  font-family: "Verdana", sans-serif;
  font-weight: 900;
  font-size: 14px;
  max-width: 500px;
  white-space: nowrap;
}

.text-window {
  line-height: 14px;
  pointer-events: none;
  position: absolute;
  font-size: 10px;
  text-align: center;
  /* Force GPU rendering for smoother transforms */
  will-change: transform;
  backface-visibility: hidden;
}

.character-element-bar {
  margin: 0px auto;
  width: 32px;
  background-color: black;
  border: 1px solid black;
}

.value-health {
  background-color: green;
  height: 2px;
  width: 100%;
}

.value-mana {
  background-color: blue;
  height: 2px;
  width: 100%;
}

/* NPC Icon styles */
.npc-icon {
  display: block;
  width: 16px;
  height: 16px;
  margin: 4px auto 0 auto;
  margin-left: 40px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}