/* src/nora/css/shadow-hud.css */
.shadow-hud {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 276px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
  color: #f1f5f9;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  z-index: 1200;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shadow-hud.hidden {
  display: none;
}

.shadow-hud__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.shadow-hud__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: shadowHudPulse 2s infinite;
}

.shadow-hud__title {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: #e2e8f0;
  flex: 1;
}

.shadow-hud__badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.shadow-hud__legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94a3b8;
  padding-bottom: 7px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.shadow-hud__legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.legend-mark--fixed {
  width: 2px;
  height: 10px;
  background: #f8fafc;
}

.legend-mark--shadow {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.shadow-hud__row {
  margin-bottom: 8px;
}

.shadow-hud__row:last-child {
  margin-bottom: 0;
}

.shadow-hud__row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.shadow-hud__label {
  color: #cbd5e1;
  font-weight: 500;
}

.shadow-hud__values {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
}

.shadow-hud__values strong {
  color: #38bdf8;
  font-weight: 700;
}

.shadow-hud__arrow {
  color: #64748b;
  font-size: 10px;
}

.shadow-hud__delta {
  font-size: 10px;
  font-weight: 600;
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.shadow-hud__delta.is-down {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.shadow-hud__delta.is-up {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.shadow-hud__track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: visible;
}

.shadow-hud__bar--shadow {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.shadow-hud__row[data-channel^="parpado"] .shadow-hud__bar--shadow {
  background: linear-gradient(90deg, #4f46e5, #818cf8);
}

.shadow-hud__row[data-channel^="parpado"] .shadow-hud__values strong {
  color: #a5b4fc;
}

.shadow-hud__pin--fixed {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: #f8fafc;
  box-shadow: 0 0 4px rgba(248, 250, 252, 0.85);
  transform: translateX(-50%);
  transition: left 0.2s ease;
}

@keyframes shadowHudPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}