/**
 * AnimateBox.dev — Spotlight Hover Text
 * https://animatebox.dev
 *
 * Two-layer flashlight text. Theme via --ab-sht-* variables.
 * Default visual system: DM Sans, near-black / white, solid backgrounds.
 */

.ab-spotlight-hover-text {
  --ab-sht-bright: #f3f1ec;
  --ab-sht-dim: rgba(243, 241, 236, 0.14);
  --ab-sht-font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --ab-sht-size: 80px;
  --ab-sht-weight: 600;
  --ab-sht-style: normal;
  --ab-sht-align: center;
  --ab-sht-leading: 1;
  --ab-sht-tracking: 0em;

  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  margin: 0;
  padding: 0;
  font-family: var(--ab-sht-font);
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ab-spotlight-hover-text[data-reduced="true"],
.ab-spotlight-hover-text[data-interactive="false"] {
  cursor: default;
}

.ab-spotlight-hover-text__content {
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.ab-spotlight-hover-text__layer {
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: var(--ab-sht-size);
  font-weight: var(--ab-sht-weight);
  font-style: var(--ab-sht-style);
  letter-spacing: var(--ab-sht-tracking);
  line-height: var(--ab-sht-leading);
  text-align: var(--ab-sht-align);
  white-space: pre-wrap;
  word-break: break-word;
}

.ab-spotlight-hover-text__dim {
  position: relative;
  color: var(--ab-sht-dim);
}

.ab-spotlight-hover-text__bright {
  position: absolute;
  inset: 0;
  color: var(--ab-sht-bright);
  pointer-events: none;
  /* Mask is painted inline (flashlight). Resting = fully hidden. */
  -webkit-mask-image: none;
  mask-image: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: auto;
  mask-size: auto;
  opacity: 0;
}

.ab-spotlight-hover-text[data-reduced="true"] .ab-spotlight-hover-text__bright {
  /* Reduced motion: show bright type without the torch (no mask). */
  -webkit-mask-image: none !important;
  mask-image: none !important;
  opacity: 1 !important;
}
