#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;
  /* Mensagem longa quebra em linhas centralizadas sobre o personagem (PO, 18/10/2026): a caixa tem
     a largura do texto ate o maximo (420 px) e dai em diante o texto desce para a linha de baixo. Antes
     (nowrap) uma frase grande saia em uma linha so', cortada pelo viewport. */
  width: max-content;
  max-width: 420px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.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));
}

/*
 * The skull over a marked character.
 *
 * A div, not an <img>: skulls.png is a 55x11 sheet of FIVE 11x11 cells, and an
 * <img> would paint all five at once. background-position selects one cell.
 *
 * The cells were measured, not guessed (decoded pixel by pixel): cell0
 * grey/white, cell1 red (hue 0), cell2 green (hue 113), cell3 yellow (hue 57),
 * cell4 orange (hue 29). Background offsets below are the cell index times
 * -11px.
 *
 * None is a hidden node, not cell0: a skull that is not there has to cost no
 * pixels, and cell0 is a real drawing. BLACK (5) has no cell in this sheet --
 * it reuses the yellow cell and recolours by filter, which is honest about the
 * art instead of implying a black sprite exists. The yellow cell is the right
 * donor: in the OTHire a black-skull char is still white/yellow to whoever it
 * attacked, and the tint reads as the same shape.
 */
/* Ao lado do nome (a direita dele), nao abaixo das barras. */
.skull-icon {
  display: block;
  position: absolute;
  left: calc(100% + 2px);
  top: 1px;
  width: 11px;
  height: 11px;
  margin: 0;
  background-image: url("/png/skulls.png");
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.9));
}