/* ==========================================================================
   Solution visuals (views/partials/visual.php)
   Line-art SVGs on the light palette. Motion runs only inside .is-playing
   (set by JS when the visual is active and on screen).
   ========================================================================== */

.v { width: 100%; height: auto; overflow: visible; }
.v-dot { fill: rgba(1, 30, 59, 0.08); }
.v-l { fill: none; stroke: rgba(1, 30, 59, 0.16); stroke-width: 1.2; }
.v-l--faint { stroke: rgba(1, 30, 59, 0.07); }
.v-dash { stroke-dasharray: 3 6; }
.v-flow { fill: none; stroke: var(--accent-bright); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2 18; }
.v-node { fill: #fff; stroke: rgba(1, 30, 59, 0.18); stroke-width: 1.2; }
.v-card { fill: #fff; stroke: rgba(1, 30, 59, 0.12); stroke-width: 1; filter: drop-shadow(0 6px 14px rgba(1, 30, 59, 0.06)); }
.v-panel { fill: var(--bg-secondary); stroke: rgba(1, 30, 59, 0.06); }
.v-soft { fill: var(--surface-2); }
.v-ink { fill: var(--navy); }
.v-t { font-family: var(--font-display); font-size: 13px; font-weight: 700; fill: var(--text-primary); letter-spacing: 0.01em; }
.v-t--muted { fill: var(--text-muted); font-weight: 600; font-size: 12px; }
.v-t--inv { fill: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.v-hub__glow { fill: rgba(1, 194, 196, 0.12); }
.v-okdot { fill: var(--success); }
.v-alert { fill: var(--amber); }
.v-ring { fill: none; stroke: var(--amber); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; }
.v-thresh { fill: none; stroke: var(--amber); stroke-width: 1; stroke-dasharray: 5 6; opacity: 0.6; }
.v-draw { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.v-spark { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.v-bar { fill: rgba(1, 30, 59, 0.12); transform-box: fill-box; transform-origin: bottom; }
.v-bar--hi { fill: var(--accent); }
.v-track { fill: var(--surface-2); }
.v-progress { transform-box: fill-box; transform-origin: left; }
.v-tick { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-tick--lg { stroke: var(--accent); stroke-width: 3; stroke-dasharray: 60; }
.v-shield { fill: #fff; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.v-arc { fill: none; stroke: var(--accent-bright); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.v-track-ring { fill: none; stroke: var(--surface-2); stroke-width: 12; }
.v-seg { fill: none; stroke-width: 12; transform: rotate(-90deg); }
.v-seg--1 { stroke: var(--navy); stroke-dasharray: 46 100; }
.v-seg--2 { stroke: var(--accent); stroke-dasharray: 30 100; stroke-dashoffset: -47; }
.v-seg--3 { stroke: var(--mint); stroke-dasharray: 21 100; stroke-dashoffset: -78; }
.v-plane { fill: rgba(255, 255, 255, 0.92); stroke: rgba(8, 127, 130, 0.35); stroke-width: 1.2; }
.v-plane--hi { fill: rgba(238, 246, 246, 0.95); stroke: var(--accent); }
.v-block { fill: var(--navy); }
.v-check { opacity: 1; }

/* ---- Motion (only while playing) ---------------------------------------- */
@keyframes v-flow { to { stroke-dashoffset: -40; } }
@keyframes v-flow-rev { to { stroke-dashoffset: 40; } }
@keyframes v-pop { 0%, 12% { opacity: 0; } 22%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes v-check { 0%, 8% { opacity: 0; } 16%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes v-progress { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
@keyframes v-draw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes v-ring { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes v-bar { 0%, 100% { transform: scaleY(0.75); } 50% { transform: scaleY(1); } }
@keyframes v-neuron { 0%, 100% { fill: #fff; } 50% { fill: rgba(1, 194, 196, 0.35); } }
@keyframes v-layer { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes v-hub { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.18); opacity: 0.4; } }

.is-playing .v-flow { animation: v-flow 1.6s linear infinite; }
.is-playing .v-flow--out { animation-name: v-flow; animation-duration: 2s; }
.is-playing .v-hub__glow { transform-box: fill-box; transform-origin: center; animation: v-hub 2.4s ease-in-out infinite; }
.is-playing .v-pop { animation: v-pop 5s var(--ease-out) infinite; }
.is-playing .v-step .v-check { animation: v-check 6s var(--ease-out) infinite; animation-delay: calc(var(--k) * 0.45s); }
.is-playing .v-progress { animation: v-progress 6s var(--ease-out) infinite; }
.is-playing .v-draw { animation: v-draw 5s var(--ease-out) infinite; }
.is-playing .v-arc { animation: v-draw 4.5s var(--ease-out) infinite; }
.is-playing .v-ring { animation: v-ring 1.8s var(--ease-out) infinite; }
.is-playing .v-bar { animation: v-bar 2.8s ease-in-out infinite; animation-delay: calc(var(--b) * -0.22s); }
.is-playing .v-neuron { animation: v-neuron 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * 0.25s); }
.is-playing .v-layer path { animation: v-layer 4s ease-in-out infinite; animation-delay: calc(var(--k) * 0.3s); }
.is-playing .v-pulse { animation: blink 1.6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .is-playing * { animation: none !important; }
}
