* { box-sizing: border-box; }
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; }

.grid-bg {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.panel {
  background: rgba(8, 12, 24, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.08), inset 0 0 20px rgba(6, 182, 212, 0.03);
}

.hud-item {
  display: flex; flex-direction: column; align-items: flex-end;
  border-left: 1px solid rgba(6,182,212,0.2);
  padding-left: 18px;
}
.hud-item .label { font-size: 9px; letter-spacing: 0.2em; color: rgba(6,182,212,0.6); }
.hud-item .value { font-size: 13px; font-weight: 600; margin-top: 2px; text-shadow: 0 0 8px currentColor; }

.neon-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, #06b6d4, #f97316);
  border-radius: 2px; outline: none;
}
.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 0 12px #06b6d4, 0 0 20px #06b6d4;
  border: 2px solid #06b6d4;
}
.neon-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 0 12px #06b6d4;
  border: 2px solid #06b6d4;
}

.tech-btn {
  width: 100%; padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67e8f9; font-size: 12px;
  border-radius: 8px; cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.05em;
}
.tech-btn:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
}
.tech-btn.active {
  background: rgba(249, 115, 22, 0.15);
  border-color: #f97316;
  color: #fed7aa;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.galvanometer {
  background: radial-gradient(ellipse at top, rgba(6,182,212,0.1), transparent);
  border: 1px solid rgba(6,182,212,0.3);
  border-radius: 8px; padding: 12px;
}
.gauge-scale {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(6,182,212,0.6); margin-bottom: 4px;
  font-family: monospace;
}
.gauge-track {
  position: relative; height: 60px;
  background: linear-gradient(90deg,
    rgba(249,115,22,0.2) 0%,
    rgba(249,115,22,0.05) 45%,
    rgba(6,182,212,0.05) 55%,
    rgba(6,182,212,0.2) 100%);
  border-radius: 4px;
  border-bottom: 2px solid rgba(6,182,212,0.4);
  overflow: hidden;
}
.gauge-needle {
  position: absolute;
  bottom: 0; left: 50%;
  width: 2px; height: 100%;
  background: linear-gradient(to top, #fff, #06b6d4);
  transform-origin: bottom center;
  transform: rotate(0deg);
  transition: transform 0.15s ease-out;
  box-shadow: 0 0 8px #06b6d4;
}
.gauge-center {
  position: absolute; bottom: -4px; left: 50%;
  width: 10px; height: 10px;
  background: #06b6d4; border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px #06b6d4;
}

#canvas-container { cursor: grab; }
#canvas-container:active { cursor: grabbing; }

#chart { width: 100%; height: 120px; }

@keyframes pulse-glow {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulsing { animation: pulse-glow 1.2s ease-in-out infinite; }
