/* ===== INDICADORES PROFESIONALES GLOBALES ===== */

.shot .target,
.shot .arrow {
  pointer-events: none;
  z-index: 8;
}

/* Número pequeño, semitransparente y sin tapar controles */
.shot .target {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255,255,255,.95);
  background: rgba(255,132,38,.84);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow:
    0 0 0 5px rgba(255,132,38,.13),
    0 5px 16px rgba(0,0,0,.45),
    0 0 18px rgba(255,132,38,.55);
  animation: targetProPulse 2.1s ease-in-out infinite;
}

/* Flecha direccional con degradado */
.shot .arrow {
  width: var(--len, 88px);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,132,38,.12) 0%,
    rgba(255,132,38,.72) 38%,
    #ff8426 100%
  );
  transform:
    translate(-50%,-50%)
    rotate(var(--r))
    translateX(-3px);
  transform-origin: center;
  box-shadow:
    0 0 7px rgba(255,132,38,.65),
    0 0 16px rgba(255,132,38,.30);
  animation: arrowProMove 1.55s ease-in-out infinite;
}

/* Punta real y precisa */
.shot .arrow::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 0;
  border-top: 4px solid #ff9a45;
  border-right: 4px solid #ff9a45;
  background: transparent;
  transform: translateY(-50%) rotate(45deg);
  filter: drop-shadow(0 0 5px rgba(255,132,38,.85));
}

/* Destello que recorre la flecha */
.shot .arrow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 4px;
  width: 18px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.92),
    transparent
  );
  opacity: .75;
  animation: arrowProShine 1.55s linear infinite;
}

@keyframes targetProPulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(255,132,38,.12),
      0 5px 16px rgba(0,0,0,.45),
      0 0 14px rgba(255,132,38,.45);
  }
  50% {
    box-shadow:
      0 0 0 9px rgba(255,132,38,0),
      0 5px 18px rgba(0,0,0,.50),
      0 0 24px rgba(255,132,38,.72);
  }
}

@keyframes arrowProMove {
  0%, 100% {
    transform:
      translate(-50%,-50%)
      rotate(var(--r))
      translateX(-4px);
  }
  50% {
    transform:
      translate(-50%,-50%)
      rotate(var(--r))
      translateX(5px);
  }
}

@keyframes arrowProShine {
  0%   { left: 2px; opacity: 0; }
  20%  { opacity: .85; }
  80%  { opacity: .85; }
  100% { left: calc(100% - 20px); opacity: 0; }
}

/* Ajuste para móviles */
@media (max-width: 760px) {
  .shot .target {
    width: 26px;
    height: 26px;
    border-width: 2px;
    font-size: 11px;
  }

  .shot .arrow {
    width: var(--len-mobile, 58px);
    height: 3px;
  }

  .shot .arrow::after {
    right: -6px;
    width: 11px;
    height: 11px;
    border-top-width: 3px;
    border-right-width: 3px;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .shot .target,
  .shot .arrow,
  .shot .arrow::before {
    animation: none !important;
  }
}

/* ===== ANILLO TRANSPARENTE PROFESIONAL ===== */
.shot .target {
  width: 29px;
  height: 29px;

  /* Permite ver claramente el contenido situado detrás */
  background: rgba(7,17,27,.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border: 2px solid rgba(255,145,64,.96);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-shadow:
    0 1px 2px rgba(0,0,0,.95),
    0 0 4px rgba(0,0,0,.85);

  box-shadow:
    0 0 0 3px rgba(255,132,38,.08),
    0 0 12px rgba(255,132,38,.65),
    inset 0 0 5px rgba(255,132,38,.13);

  animation: targetGlassPulse 2s ease-in-out infinite;
}

@keyframes targetGlassPulse {
  0%, 100% {
    border-color: rgba(255,145,64,.90);
    box-shadow:
      0 0 0 3px rgba(255,132,38,.08),
      0 0 10px rgba(255,132,38,.55),
      inset 0 0 4px rgba(255,132,38,.10);
  }

  50% {
    border-color: #ffb16f;
    box-shadow:
      0 0 0 8px rgba(255,132,38,0),
      0 0 20px rgba(255,132,38,.85),
      inset 0 0 6px rgba(255,132,38,.16);
  }
}

@media (max-width: 760px) {
  .shot .target {
    width: 25px;
    height: 25px;
    font-size: 10px;
    border-width: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot .target {
    animation: none !important;
  }
}

/* ===== SISTEMA DE PRECISIÓN AUTOMÁTICA ===== */

/* El objetivo pasa a ser un marco transparente */
.shot .target.precision-target {
  width: var(--target-w, 25px);
  height: var(--target-h, 25px);
  min-width: 18px;
  min-height: 18px;

  color: transparent;
  font-size: 0;
  background: rgba(255,132,38,.04);
  border: 2px solid rgba(255,153,75,.96);
  border-radius: var(--target-radius, 7px);

  box-shadow:
    0 0 0 3px rgba(255,132,38,.09),
    0 0 16px rgba(255,132,38,.72),
    inset 0 0 5px rgba(255,132,38,.10);

  animation: precisionTargetPulse 1.8s ease-in-out infinite;
}

/* Número independiente situado al comienzo de la flecha */
.shot .precision-label {
  position: absolute;
  z-index: 12;
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;
  transform: translate(-50%,-50%);

  border: 2px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: rgba(7,17,27,.20);
  color: #fff;

  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 1px 3px #000;

  box-shadow:
    0 0 0 3px rgba(255,132,38,.09),
    0 0 16px rgba(255,132,38,.68);

  pointer-events: none;
  animation: precisionLabelPulse 1.8s ease-in-out infinite;
}

/* La geometría de la flecha la calcula JavaScript */
.shot .arrow.precision-arrow {
  height: 3px;
  min-width: 12px;

  border-radius: 999px;
  transform-origin: left center;

  background: linear-gradient(
    90deg,
    rgba(255,132,38,.18),
    rgba(255,132,38,.78) 45%,
    #ff9a45 100%
  );

  box-shadow:
    0 0 7px rgba(255,132,38,.70),
    0 0 15px rgba(255,132,38,.28);

  animation: precisionArrowGlow 1.5s ease-in-out infinite;
}

/* Punta exacta */
.shot .arrow.precision-arrow::after {
  right: -7px;
  top: 50%;

  width: 11px;
  height: 11px;

  border: 0;
  border-top: 3px solid #ff9a45;
  border-right: 3px solid #ff9a45;
  background: transparent;

  transform: translateY(-50%) rotate(45deg);
  filter: drop-shadow(0 0 4px rgba(255,132,38,.9));
}

/* Destello que recorre la línea */
.shot .arrow.precision-arrow::before {
  top: -2px;
  left: 0;

  width: 18px;
  height: 7px;

  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.90),
    transparent
  );

  animation: precisionArrowTravel 1.5s linear infinite;
}

@keyframes precisionTargetPulse {
  0%,100% {
    box-shadow:
      0 0 0 3px rgba(255,132,38,.08),
      0 0 12px rgba(255,132,38,.55);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(255,132,38,0),
      0 0 22px rgba(255,132,38,.90);
  }
}

@keyframes precisionLabelPulse {
  0%,100% {
    transform: translate(-50%,-50%) scale(1);
  }
  50% {
    transform: translate(-50%,-50%) scale(1.07);
  }
}

@keyframes precisionArrowGlow {
  0%,100% {
    filter: brightness(.95);
  }
  50% {
    filter: brightness(1.28);
  }
}

@keyframes precisionArrowTravel {
  0% {
    left: 0;
    opacity: 0;
  }
  20% {
    opacity: .85;
  }
  80% {
    opacity: .85;
  }
  100% {
    left: calc(100% - 18px);
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .shot .precision-label {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .shot .target.precision-target {
    width: var(--target-w-mobile, 21px);
    height: var(--target-h-mobile, 21px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot .precision-label,
  .shot .precision-target,
  .shot .precision-arrow,
  .shot .precision-arrow::before {
    animation: none !important;
  }
}

/* ===== OCULTAR ÚNICAMENTE EL MARCO DE DESTINO ===== */
.shot .target.precision-target {
  opacity: 0;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  animation: none;
}
