/* Software: a small pixel hand typing in the sheet's bottom-right corner.
   A fast burst on open (driven by typing.js), then it fades away. */
.typist { position: absolute; z-index: 4; right: calc(var(--gap) + 20px); bottom: calc(var(--gap) + 16px); width: 96px; height: auto; image-rendering: pixelated; pointer-events: none; animation: typist-in .25s cubic-bezier(.2,.7,.2,1) both; }
.typist .key.is-down { transform: translateY(1px); }
.typist .finger.is-down { transform: translateY(2px); }
@keyframes typist-in { from { opacity: 0; } }
.typist.is-gone { visibility: hidden; animation: typist-out .4s ease both; }
@keyframes typist-out { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }

/* Pin it to the sheet when the margins beside the text column are wide enough to hold it. */
@media (min-width: 1000px) {
  .typist { position: fixed; }
}

@media (max-width: 520px) {
  .typist { width: 72px; right: calc(var(--gap) + 14px); bottom: calc(var(--gap) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .typist { animation: none; }
}
