/* PlayableChord Component Styles */

.playable-chord-wrapper {
    position: relative;
    display: block;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.playable-chord-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

.playable-chord-wrapper .chord-name-display {
    text-align: center;
    margin-bottom: 4px;
    font-weight: bold;
    font-size: 0.9em;
}

/* String animation keyframes */
@keyframes wiggle-string-vertical {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(calc(var(--amplitude, 1) * 1px)); }
    50% { transform: translateX(0); }
    75% { transform: translateX(calc(var(--amplitude, 1) * -1px)); }
}

@keyframes wiggle-string-horizontal {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(calc(var(--amplitude, 1) * 1px)); }
    50% { transform: translateY(0); }
    75% { transform: translateY(calc(var(--amplitude, 1) * -1px)); }
}

.string-wiggle-6,
.string-wiggle-5,
.string-wiggle-4,
.string-wiggle-3,
.string-wiggle-2,
.string-wiggle-1,
.string-wiggle-muted {
    animation: var(--wiggle-animation, wiggle-string-vertical) var(--duration) ease-out infinite;
    --amplitude: var(--wiggle-amplitude, 6);
}

.string-wiggle-6 { --duration: 0.05s; }
.string-wiggle-5 { --duration: 0.045s; }
.string-wiggle-4 { --duration: 0.04s; }
.string-wiggle-3 { --duration: 0.035s; }
.string-wiggle-2 { --duration: 0.03s; }
.string-wiggle-1 { --duration: 0.025s; }
.string-wiggle-muted { --duration: 0.02s; --wiggle-amplitude: 2; }

.string-glow {
    filter: drop-shadow(0 0 5px #ffff00) drop-shadow(0 0 10px #ff8800);
    transition: filter 1.5s ease-out, stroke 0.2s ease-out;
}

.string-color-change {
    stroke: #ff8800 !important;
}

/* Rhythm grid styles are defined in keyboard-guitar.css to keep one source of truth. */
