.flow-art {
  --illustration-paper: #17191c;
  --illustration-plate: #252a30;
  --illustration-ink: var(--accent);
  --illustration-muted: #929aa5;
  --illustration-light: var(--ice);
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--illustration-ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.95;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.flow-art .fa-fine { stroke-width: 1.35; }
.flow-art .fa-muted { stroke: var(--illustration-muted); }
.flow-art .fa-accent { stroke: var(--illustration-light); }
.flow-art .fa-shadow { stroke: #737b85; opacity: .56; }
.flow-art .fa-fill, .flow-art .fa-slot { fill: var(--illustration-paper); }
.flow-art .fa-field { fill: var(--panel); stroke: var(--illustration-muted); stroke-width: 1.3; }
.flow-art .fa-chrome { fill: var(--illustration-ink); stroke: none; }
.flow-art .fa-token { fill: #20252b; stroke: #cfd9e4; }
.flow-art .fa-olive { fill: #929eae; stroke: #dce4ec; stroke-width: 1.1; }
.flow-art .fa-stamp { fill: var(--illustration-plate); stroke: var(--illustration-light); }
.flow-art .fa-tick { stroke: var(--highlight); stroke-width: 2.45; }
.flow-art .fa-input-caret { stroke: var(--illustration-light); stroke-width: 1.25; opacity: 0; }
.flow-art .fa-coin-top { fill: var(--illustration-plate); stroke: #d2d8df; stroke-width: 1.65; }
.flow-art .fa-coin-side { fill: #1c1f24; stroke: #b7bec7; stroke-width: 1.6; }
.flow-art .fa-wallet-back { fill: #272c32; }
.flow-art .fa-pocket { fill: #30353c; }
.flow-art .fa-rivet { fill: var(--illustration-light); stroke: none; }
.flow-art .fa-sheet { fill: var(--illustration-paper); }
.flow-art .fa-trail { stroke: #b4c6d9; stroke-dasharray: .009 .049; stroke-width: 1.8; }
.flow-art .fa-perforation { stroke: var(--illustration-muted); stroke-width: 1; stroke-dasharray: 2 4; }
.flow-art .fa-receipt-rule { stroke-width: 1.3; }
.flow-art .fa-saving-coin { transform: translate(-48px,-40px) rotate(-16deg); }
.flow-art .fa-wallet-coin { transform: translate(-50px,-44px) rotate(-13deg); }
.flow-art .fa-impact { opacity: .7; stroke-width: 1.45; }
.flow-art :is(.fa-seal,.fa-verify,.fa-window,.fa-reserve-stack,.fa-paper) { transform-box: fill-box; }
.flow-art :is(.fa-seal,.fa-verify,.fa-window) { transform-origin: center; }
.flow-art :is(.fa-reserve-stack,.fa-paper) { transform-origin: center bottom; }

.flow-thread {
  display: block;
  width: 100%;
  height: 36px;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  pointer-events: none;
}
.flow-thread path { vector-effect: non-scaling-stroke; }
.fa-thread-base { stroke: #69747f; stroke-width: 1.05; }
.fa-thread-ink { stroke: #b9c6d5; stroke-width: 1.6; opacity: .78; }

/* Completed, static, and reduced-motion states communicate the same four actions. */
.flow-step.is-done :is(.fa-saving-coin,.fa-wallet-coin) { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .flow-step.is-playing .fa-window { animation: fa-register-in 350ms cubic-bezier(.2,.72,.24,1) both; }
  .flow-step.is-playing .fa-address,
  .flow-step.is-playing .fa-receipt-lines [pathLength] {
    stroke-dasharray: 1;
    animation: fa-write 540ms 120ms ease-out both;
  }
  .flow-step.is-playing .fa-input-caret { animation: fa-caret 680ms 80ms linear both; }
  .flow-step.is-playing .fa-verify { animation: fa-stamp-in 400ms 650ms cubic-bezier(.15,.75,.25,1) both; }
  .flow-step.is-playing .fa-verify .fa-tick,
  .flow-step.is-playing .fa-seal .fa-tick {
    stroke-dasharray: 1;
    animation: fa-write 290ms 830ms ease both;
  }
  .flow-step.is-playing .fa-saving-coin { animation: fa-save 1050ms 50ms cubic-bezier(.42,0,.32,1) both; }
  .flow-step.is-playing .fa-reserve-stack { animation: fa-settle 320ms 940ms ease-out both; }
  .flow-step.is-playing .fa-wallet-coin { animation: fa-deliver 1100ms 50ms cubic-bezier(.36,.03,.29,.98) both; }
  .flow-step.is-playing .fa-wallet { animation: fa-pocket-tap 350ms 920ms ease-out both; }
  .flow-step.is-playing .fa-trail { animation: fa-light-trail 1150ms ease both; }
  .flow-step.is-playing .fa-paper { animation: fa-unfold 700ms cubic-bezier(.18,.75,.2,1) both; }
  .flow-step.is-playing .fa-receipt-lines [pathLength] { animation-delay: 300ms; }
  .flow-step.is-playing .fa-seal { animation: fa-stamp-in 390ms 690ms cubic-bezier(.15,.75,.25,1) both; }
  .flow-step.is-playing .fa-impact { animation: fa-touch 440ms 1010ms ease-out both; }
  .flow-thread.is-playing .fa-thread-ink {
    stroke-dasharray: 1;
    animation: fa-write var(--flow-run-duration, 6.2s) linear both;
  }
  .flow-story.is-paused :is(.flow-art,.flow-art *,.flow-thread *) { animation-play-state: paused !important; }
}

@keyframes fa-write { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fa-register-in { from { transform: translateY(6px) scale(.97); } to { transform: none; } }
@keyframes fa-caret {
  0%,44%,78% { opacity: 0; }
  8%,36%,53%,70% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes fa-stamp-in {
  0% { opacity: 0; transform: translateY(4px) scale(.6); }
  70% { opacity: 1; transform: translateY(-1px) scale(1.05); }
  100% { opacity: 1; transform: none; }
}
@keyframes fa-save {
  0% { opacity: 0; transform: translate(-80px,-5px) rotate(-48deg) scale(.68); }
  13% { opacity: 1; }
  44% { opacity: 1; transform: translate(-48px,-45px) rotate(-15deg) scale(1); }
  70% { opacity: 1; transform: translate(-14px,-37px) rotate(16deg) scale(1); }
  90% { opacity: 1; transform: translate(0,-6px) rotate(0deg) scale(1,.47); }
  100% { opacity: 0; transform: translate(0,4px) rotate(0deg) scale(1,.2); }
}
@keyframes fa-settle { 0%,100% { transform: none; } 35% { transform: scale(1.025,.96); } }
@keyframes fa-deliver {
  0% { opacity: 0; transform: translate(-85px,0) rotate(-42deg) scale(.66); }
  13% { opacity: 1; }
  42% { opacity: 1; transform: translate(-54px,-42px) rotate(-14deg) scale(.98); }
  65% { opacity: 1; transform: translate(-27px,-40px) rotate(8deg) scale(.95); }
  87% { opacity: 1; transform: translate(-4px,-11px) rotate(23deg) scale(.77); }
  100% { opacity: 0; transform: translate(2px,9px) rotate(29deg) scale(.7); }
}
@keyframes fa-pocket-tap { 0%,100% { transform: none; } 38% { transform: translateY(2px); } }
@keyframes fa-light-trail { from { opacity: .32; stroke-dashoffset: .1; } to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes fa-unfold {
  0% { opacity: .2; transform: translateY(4px) scaleY(.17); }
  68% { opacity: 1; transform: translateY(-2px) scaleY(1.015); }
  100% { opacity: 1; transform: none; }
}
@keyframes fa-touch {
  0% { opacity: 0; transform: translateY(2px); }
  50% { opacity: .92; }
  100% { opacity: .7; transform: none; }
}
