/* resonance.css — driven swing + response curve for viz/resonance.js (pure DOM). */

.rs { display: flex; flex-direction: column; gap: 0.85rem; }
.rs-stage { position: relative; width: 100%; aspect-ratio: 16 / 11; min-height: 240px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 0.8rem; background: linear-gradient(180deg, #0c1018, #07090f); }
.rs-glow { position: absolute; left: 50%; top: 8%; width: 60%; height: 60%; transform: translateX(-50%); border-radius: 50%; opacity: 0; background: radial-gradient(circle, rgba(251,191,36,0.22), transparent 70%); transition: opacity 0.3s; }
.rs-glow.rs-on { opacity: 1; }
.rs-mount { position: absolute; left: 50%; top: calc(10% - 4px); width: 40px; height: 6px; border-radius: 3px; transform: translateX(-50%); background: linear-gradient(180deg, #64748b, #334155); }
.rs-rod { position: absolute; left: 50%; top: 10%; width: 2.5px; height: 60%; transform-origin: top center; background: linear-gradient(180deg, rgba(226,232,240,0.5), rgba(226,232,240,0.85)); }
.rs-bob { position: absolute; left: 50%; bottom: -10px; width: 22px; height: 22px; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle at 34% 30%, #fcd34d, #f59e0b 60%, #b45309); box-shadow: 0 0 9px rgba(245,158,11,0.6); }

.rs-curve { position: absolute; left: 6%; right: 6%; bottom: 14%; height: 30%; display: flex; align-items: flex-end; gap: 2px; }
.rs-bar { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0; background: rgba(56, 189, 248, 0.4); transition: height 0.1s, background 0.1s; }
.rs-bar.rs-here { background: #fbbf24; box-shadow: 0 0 5px rgba(251,191,36,0.7); }
.rs-clab { position: absolute; left: 6%; bottom: calc(14% + 30% + 2px); font-size: 0.68rem; color: #8aa0b6; font-style: italic; }
.rs-phase { position: absolute; left: 8px; bottom: 6px; font-size: 0.78rem; font-weight: 600; color: #aebdce; background: rgba(6, 10, 18, 0.6); padding: 2px 7px; border-radius: 5px; }
