/* crosshair.css */

/* Lines: hidden until the cursor is inside the container */
[data-crosshair] [data-crosshair-line] {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease; /* replaces any transform transition, which would make the lines lag */
  will-change: transform;
}
[data-crosshair].is-crosshair [data-crosshair-line] {
  opacity: 1;
}

/* Generated lines (used when the container has no lines of its own) */
.crosshair_line {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--crosshair-z, auto);
  background: var(--crosshair-color, currentColor);
}
.crosshair_line.is-h {
  width: 100%;
  height: 1px;
}
.crosshair_line.is-v {
  width: 1px;
  height: 100%;
}

/* Coordinates readout (generated) */
.crosshair_coords {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  padding: 0.3em 0.55em;
  border-radius: 2px;
  background: var(--coords-bg, rgba(8, 10, 20, 0.78));
  color: var(--coords-color, #faf8f2);
  font-size: 0.6875rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums; /* fixed-width digits: the box never jitters */
  white-space: pre;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
  will-change: transform;
}
[data-crosshair].is-crosshair:not(.is-anchored) .crosshair_coords {
  opacity: 1;
}
