/* V1.130 — pre-commit Rimeblade route preview, local to affected combatants. */
:is(.fighter, .seat-fighter).rimeblade-path-source {
  box-shadow:
    inset 0 0 0 2px rgba(192, 244, 255, 0.52),
    0 0 24px rgba(92, 202, 255, 0.22) !important;
}

:is(.fighter, .seat-fighter).rimeblade-path-preview {
  position: relative;
  z-index: 3;
  isolation: isolate;
  filter: brightness(1.08) saturate(0.88);
  box-shadow:
    inset 0 0 0 2px rgba(169, 236, 255, 0.86),
    inset 0 0 30px rgba(75, 178, 255, 0.2),
    0 0 0 5px rgba(115, 215, 255, 0.1),
    0 0 30px rgba(69, 185, 255, 0.28) !important;
  animation: rimeblade-path-preview-pulse 1.15s ease-in-out infinite;
  animation-delay: calc(var(--rimeblade-path-order, 0) * 90ms);
}

:is(.fighter, .seat-fighter).rimeblade-path-target {
  box-shadow:
    inset 0 0 0 3px rgba(226, 251, 255, 0.96),
    inset 0 0 36px rgba(91, 191, 255, 0.26),
    0 0 0 6px rgba(139, 229, 255, 0.14),
    0 0 38px rgba(83, 202, 255, 0.4) !important;
}

:is(.fighter, .seat-fighter).rimeblade-path-bypass {
  filter: grayscale(0.55) brightness(0.68);
  opacity: 0.66;
  animation: none;
}

.rimeblade-path-step {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 14;
  display: grid;
  place-items: center;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  border: 1px solid rgba(220, 250, 255, 0.9);
  border-radius: 999px;
  color: #f3fdff;
  background: linear-gradient(180deg, rgba(31, 123, 178, 0.96), rgba(5, 31, 61, 0.96));
  box-shadow: 0 0 16px rgba(86, 204, 255, 0.5);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.rimeblade-path-preview-rail {
  margin: 12px 0 10px;
  padding: 9px 12px;
  border: 1px solid rgba(150, 226, 255, 0.26);
  border-radius: 10px;
  color: #dff9ff;
  background: linear-gradient(90deg, rgba(9, 43, 74, 0.86), rgba(8, 18, 34, 0.82));
  box-shadow: inset 0 0 20px rgba(77, 185, 236, 0.08);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-align: center;
}

#rimebladeDirectionDialog [data-direction-preview="true"]:not(:disabled) {
  border-color: rgba(211, 248, 255, 0.98);
  filter: brightness(1.12) saturate(1.08);
  box-shadow:
    inset 0 0 28px rgba(100, 209, 255, 0.18),
    0 18px 38px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(99, 207, 255, 0.3) !important;
}

@keyframes rimeblade-path-preview-pulse {
  0%, 100% { filter: brightness(1.04) saturate(0.86); }
  50% { filter: brightness(1.13) saturate(0.96); }
}

@media (max-width: 720px) {
  .rimeblade-path-preview-rail {
    margin-top: 8px;
    font-size: 11px;
  }

  .rimeblade-path-step {
    top: 6px;
    right: 6px;
    min-width: 23px;
    height: 23px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.fighter, .seat-fighter).rimeblade-path-preview {
    animation: none !important;
  }
}

@media (forced-colors: active) {
  :is(.fighter, .seat-fighter).rimeblade-path-preview {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  .rimeblade-path-step,
  .rimeblade-path-preview-rail {
    border: 2px solid Highlight;
  }
}
