/* fx21: picture-book objects, once-on-view drift, no accent bars. */

.pic .rim {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}
.pic .rim-kas {
  fill: none;
  stroke: var(--fx-blue, #1f5be0);
  stroke-width: 2;
}
.pic .fill-coin {
  fill: color-mix(in oklab, var(--text) 6%, var(--bg, #fff));
  stroke: var(--text);
  stroke-width: 2;
}
.pic .fill-coin-kas {
  fill: color-mix(in oklab, var(--fx-blue, #1f5be0) 16%, var(--bg, #fff));
  stroke: var(--fx-blue, #1f5be0);
  stroke-width: 2;
}
.pic .chart {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pic .chart-kas {
  fill: none;
  stroke: var(--fx-blue, #1f5be0);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.pic .chart-dash {
  fill: none;
  stroke: var(--muted, #667);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

/* Coin starts on the $1 line and drifts down to the authored end of the dip. */
.pic[data-play] .pic-drift {
  transform-box: fill-box;
  transform-origin: center;
}
.pic[data-play]:not(.is-in) .pic-drift {
  transform: translate(-72px, -88px);
}
.pic[data-play].is-in .pic-drift {
  animation: pic-drift 700ms 60ms ease-in forwards;
}
@keyframes pic-drift {
  to { transform: translate(0, 0); }
}

/* A line that draws once (chart that holds or collapses). */
.pic[data-play] .pic-draw {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}
.pic[data-play].is-in .pic-draw {
  animation: pic-draw 700ms 40ms ease-out forwards;
}
@keyframes pic-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pic[data-play] .pic-drift {
    transform: none;
    animation: none !important;
  }
  .pic[data-play] .pic-draw {
    stroke-dashoffset: 0;
    animation: none !important;
  }
}
