/* Shared look for component showcases (see showcase.js). The page paints
   nothing itself: the case study's CaseStudyShowcase box is the canvas. */
html, body { margin: 0; background: transparent; overflow: hidden; }
/* 40px of room each side of the stage, so popups' shadows aren't cut off at
   the stage edge (CaseStudyShowcase's BLEED widens the frame to match) */
body { padding: 0 40px; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-user-select: none; user-select: none;
}
.sc-stage { position: relative; }

/* the narrator: a fake cursor for scripted clicks */
.sc-cursor {
  position: absolute; z-index: 1000; left: -40px; top: -40px; /* parked off the stage until a scene places it; left/top is the tip (_kit/cursor.js) */
  pointer-events: none; opacity: 0;
  transition: left .55s cubic-bezier(0.16, 1, 0.3, 1), top .55s cubic-bezier(0.16, 1, 0.3, 1), opacity .1s; /* hides faster than it shows */
}
/* x and y take slightly different times, so moves bend a little like a hand's */
.sc-cursor.on { opacity: 1; transition: left .55s cubic-bezier(0.16, 1, 0.3, 1), top .62s cubic-bezier(0.22, 1, 0.36, 1), opacity .2s; }
/* letting go of the mouse: a slow, eased drift to wherever it settles */
.sc-cursor.on.sc-drift { transition: left 1.1s cubic-bezier(0.45, 0, 0.2, 1), top 1.3s cubic-bezier(0.4, 0, 0.25, 1), opacity .2s; }
.sc-pressed { transform: scale(0.94); transition: transform .1s; }


/* ...and keycaps for keys, in the site's keycap style */
.sc-keys {
  position: absolute; z-index: 1000; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; gap: 4px; pointer-events: none;
}
.sc-key {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em; line-height: 1;
  white-space: nowrap; font-variant-numeric: tabular-nums;
  color: rgba(0,0,0,0.75); background: #fff; border: 1px solid rgba(0,0,0,0.2);
  animation: sc-key-in .25s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: color .4s, border-color .4s;
}
.sc-key.old { color: rgba(0,0,0,0.4); border-color: rgba(0,0,0,0.12); }
.sc-key.out { animation: sc-key-out .12s cubic-bezier(0.16, 1, 0.3, 1) both; } /* leaving is quicker than arriving; ease-out, never ease-in */
@keyframes sc-key-in { from { opacity: 0; transform: translateY(6px) scale(.9); } }
@keyframes sc-key-out { to { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) {
  .sc-key { animation-name: sc-fade-in; }
  .sc-key.out { animation-name: sc-fade-out; }
}
@keyframes sc-fade-in { from { opacity: 0; } }
@keyframes sc-fade-out { to { opacity: 0; } }
