.world-staff-bubble {
  --staff-tail: 50%;
  position: absolute;
  /* Keep the action legible when a projected visitor name crosses the guide. */
  z-index: 24000;
  width: 173px;
  min-height: 44px;
  margin: 0;
  padding: .35rem 1.03rem .35rem .52rem;
  transform: translate(-50%, -100%);
  border: 1px solid #91a8ca;
  border-radius: .65em;
  background: #eef4ff;
  box-shadow: 0 3px 10px #0b12205e;
  color: #243b60;
  font-size: .73rem;
  font-weight: 720;
  line-height: 1.32;
  text-align: center;
  text-wrap: balance;
  word-break: keep-all;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

.world-staff-bubble::before {
  position: absolute;
  top: 50%;
  right: .52rem;
  width: 5px;
  height: 5px;
  transform: translate(-1px, -50%) rotate(-45deg);
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  content: '';
}

.world-staff-bubble::after {
  position: absolute;
  top: 100%;
  left: clamp(10px, var(--staff-tail), calc(100% - 10px));
  width: 7px;
  height: 7px;
  transform: translate(-50%, -52%) rotate(45deg);
  border: solid #91a8ca;
  border-width: 0 1px 1px 0;
  background: inherit;
  content: '';
}

.world-staff-bubble[data-near="true"] {
  border-color: #5c85c9;
  background: #fff;
  color: #1a3154;
}

.world-staff-bubble:hover,
.world-staff-bubble:focus-visible {
  border-color: #3e6ab4;
  background: #f9fbff;
  color: #1a3154;
}

.world-staff-bubble:focus-visible {
  outline: 2px solid #abc7ff;
  outline-offset: 2px;
}

.world-staff-bubble[hidden] { display: none; }

@media (max-width: 600px) {
  .world-staff-bubble { width: 139px; font-size: .7rem; }
}
