/* ==========================================================================
   Tactical HUD Overlays, Kinetic Parallax & Tensura OP Motion Graphics
   ========================================================================== */

/* Background Grid & Scanline */
.hud-canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-void-0);
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(16, 32, 54, 0.6) 0%, rgba(4, 7, 11, 0.95) 75%),
    linear-gradient(to right, var(--hud-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hud-grid) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

/* Kinetic Anime OP Diagonal Streaks */
.hud-canvas-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: repeating-linear-gradient(
    -35deg,
    transparent,
    transparent 120px,
    rgba(0, 240, 255, 0.015) 120px,
    rgba(0, 240, 255, 0.015) 122px
  );
  transform: translateZ(0);
}

/* Subtle Animated Scanline */
.hud-canvas-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 240, 255, 0.012) 51%,
    transparent 52%
  );
  background-size: 100% 8px;
  opacity: 0.7;
}

/* ==========================================================================
   MULTI-TIER PARALLAX DEPTH PLANES & SEAMLESS ENDLESS HUD
   ========================================================================== */

/* Fixed Fullscreen Parallax Wrapper */
.hud-depth-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Deep Background Plane (0.2x speed, linear travel) */
.parallax-plane-deep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Mid Anime OP Slash Plane (0.55x speed, linear travel) */
.parallax-plane-mid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
}

/* Foreground Hyper-Speed HUD Plane (1.55x speed, linear travel) */
.parallax-plane-fg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: transform;
  z-index: 50;
}

/* Floating Anime OP Watermark Typography */
.anime-op-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.035);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.anime-op-text.cyan {
  color: rgba(0, 240, 255, 0.04);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.anime-op-text.amber {
  color: rgba(251, 191, 36, 0.035);
}

/* Floating Manga Target Bounding Box */
.hud-floating-bbox {
  position: absolute;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.03);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
  pointer-events: none;
}

.hud-floating-bbox::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}

.hud-floating-bbox::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
}

/* Pinned Tactical HUD Telemetry Flight Gauge */
.pinned-hud-gauge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  background: rgba(8, 12, 18, 0.9);
  border: 1px solid var(--accent-cyan);
  clip-path: var(--polygon-corner-cut);
  padding: 12px 18px;
  font-family: var(--font-mono);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), 0 8px 30px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.pinned-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.gauge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.gauge-label {
  color: var(--text-dim);
}

.gauge-val {
  color: var(--accent-cyan);
  font-weight: 700;
}

.gauge-val.amber {
  color: var(--accent-amber);
}

/* Infinite Scroll Track */
.infinite-scroll-track {
  position: relative;
  width: 100%;
}

.track-cycle {
  position: relative;
  width: 100%;
}


/* Tactical HUD Decorative Crosshairs & Telemetry */
.hud-crosshair {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0.45;
}

.hud-crosshair::before,
.hud-crosshair::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
}

.hud-crosshair::before {
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
}

.hud-crosshair::after {
  top: 0;
  left: 7px;
  width: 2px;
  height: 16px;
}

/* HUD Tactical Corner Markers */
.hud-corner-bracket {
  position: relative;
}

.hud-corner-bracket::before,
.hud-corner-bracket::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent-cyan);
  pointer-events: none;
  opacity: 0.6;
}

.hud-corner-bracket::before {
  top: 0;
  left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}

.hud-corner-bracket::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* Anime OP Floating Wireframe Dial */
.hud-wireframe-dial {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 240, 255, 0.15);
  pointer-events: none;
  animation: hudRotate 40s linear infinite;
}

.hud-wireframe-dial::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.12);
  border-left-color: transparent;
  border-right-color: transparent;
  animation: hudRotateRev 25s linear infinite;
}

@keyframes hudRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes hudRotateRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Tensura Anime OP Slashed Badge */
.badge-tactical {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  clip-path: var(--polygon-badge);
  background: rgba(0, 240, 255, 0.12);
  color: var(--accent-cyan);
  border-left: 2px solid var(--accent-cyan);
}

.badge-tactical.amber {
  background: rgba(251, 191, 36, 0.14);
  color: var(--accent-amber);
  border-left: 2px solid var(--accent-amber);
}

/* High Voltage Tactical Button */
.btn-tactical-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-cyan);
  color: #04070b;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  clip-path: var(--polygon-corner-cut);
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-tactical-primary:hover {
  background: var(--accent-cyan-light);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}

.btn-tactical-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface-panel);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 12px 24px;
  clip-path: var(--polygon-corner-cut);
  text-decoration: none;
  border: 1px solid var(--border-hard);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-tactical-secondary:hover {
  background: var(--surface-panel-alt);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
