/* Neon hands drawn directly on the Chord Studio piano and fretboard */

.nh-piano-stage,
.nh-guitar-stage {
  position: relative;
}
.nh-piano-stage {
  flex: 1 0 auto;
  min-width: 100%;
}
.nh-piano-stage .piano-keyboard {
  width: 100%;
}

/* Left-handed guitar with neon hands: nut on the right */
.guitar-fretboard.fb-mirror {
  border-left: 2px solid #45475a;
  border-right: 15px solid #11111b;
}
.guitar-fretboard.fb-mirror .fret-cell {
  border-right: none;
  border-left: 3px solid #6c7086;
}
.guitar-fretboard.fb-mirror .string-label {
  margin-right: 0;
  margin-left: 10px;
}
.fretboard-nut-markers.fb-mirror {
  margin-left: 0;
  margin-right: 40px;
}

.nh-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 6;
  display: none;
}
.nh-on .nh-overlay {
  display: block;
}
.nh-on .piano-finger-badge {
  display: none;
}

.nh-hand {
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}
.nh-hand.nh-rest {
  opacity: 0.45;
}

.nh-detail {
  fill: none;
  stroke: rgba(225, 244, 255, 0.4);
  stroke-width: 1.1;
  stroke-linecap: round;
}
.nh-detail .nh-tendon {
  stroke: rgba(225, 244, 255, 0.2);
  stroke-width: 1.3;
}
.nh-detail .nh-nail {
  fill: rgba(235, 248, 255, 0.16);
  stroke: rgba(235, 248, 255, 0.55);
  stroke-width: 1;
}

.nh-boost-pressed {
  fill: rgba(150, 215, 255, 0.4);
  stroke: rgba(235, 249, 255, 0.95);
  stroke-width: 1.4;
}
.nh-boost-target {
  fill: rgba(150, 215, 255, 0.18);
  stroke: rgba(200, 236, 255, 0.85);
  stroke-width: 1.2;
  stroke-dasharray: 4 3;
}
.nh-press-ring {
  fill: none;
  stroke: #bfe6ff;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: nhRing 1.6s ease-out infinite;
}
@keyframes nhRing {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.5); }
}

.nh-thumb-ghost {
  fill: rgba(120, 190, 255, 0.1);
  stroke: rgba(170, 220, 255, 0.55);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}

.nh-badge circle {
  fill: rgba(10, 22, 48, 0.82);
  stroke: rgba(150, 210, 255, 0.75);
  stroke-width: 1.3;
}
.nh-badge text {
  fill: #dff3ff;
  font-family: inherit;
  font-weight: 800;
}
.nh-badge-pressed circle {
  fill: #3b82f6;
  stroke: #e6f6ff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 5px rgba(80, 170, 255, 0.95));
}
.nh-badge-pressed text {
  fill: #fff;
}
.nh-badge-target circle {
  stroke: #9fd8ff;
  animation: nhPulse 1.2s ease-in-out infinite;
}
@keyframes nhPulse {
  50% { stroke-opacity: 0.35; }
}
.nh-badge-thumb circle {
  fill: rgba(10, 22, 48, 0.55);
  stroke-dasharray: 3 2;
}
.nh-badge-thumb text {
  fill: rgba(223, 243, 255, 0.8);
}
.nh-dim {
  opacity: 0.4;
}

@media (prefers-reduced-motion: reduce) {
  .nh-hand { transition: none; }
  .nh-press-ring, .nh-badge-target circle { animation: none; }
}
