/* Free time kick (kick.js): a line-drawn stick figure kicks the orange circle into the Free time page.
   Loaded after style.css on the cover and on free-time/. */
.kick-stage { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
.kick-figure { position: absolute; left: 0; top: 0; overflow: visible; fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.kick-ball { position: fixed; left: 0; top: 0; z-index: 3; border-radius: 50%; background: var(--sun); mix-blend-mode: multiply; pointer-events: none; transform-origin: 50% 50%; transition: opacity .3s ease; }
/* At rest in the bottom-right corner of the sheet. */
.kick-ball--rest { left: auto; top: auto; right: calc(var(--gap) + 22px); bottom: calc(var(--gap) + 20px); width: 32px; height: 32px; }
.kick-arrive .runhead, .kick-arrive .chapter { transform: translateX(100vw); }
.kick-arrive .painting { opacity: 0; }
.kick-arrive, .kick-arrive body { overflow-x: clip; }
/* Where the text column reaches the corner, step aside while an activity sketch is drawn in. */
@media (max-width: 1000px) { body:has(.sketch.is-on) .kick-ball--rest { opacity: 0; } }
@media (max-width: 520px) { .kick-ball--rest { right: calc(var(--gap) + 14px); bottom: calc(var(--gap) + 14px); width: 24px; height: 24px; } }
/* The two pages match exactly at the swap, so the swap itself is instant: no crossfade, no double ball. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
