:root {
  --sight-size: clamp(144px, 40vmin, 256px);
  --threshold-paper: radial-gradient(ellipse farthest-corner at center,
    #e3e1de 0%, #e0dcd6 22%, #dcd4c9 38%, #d5c4ad 57%,
    #ccaa83 74%, #c5905c 87%, #b86b1e 100%);
}
img.arrival-target,
.arrival-target img {
  display: block;
  width: var(--sight-size);
  max-width: min(90vw, 90vh);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 0 .8px white) drop-shadow(0 0 .55px #fff9ee);
}

/* Each temporary surface is the real camera projection of one game sheet.
   Start with rings already inside the top edge, then land in native register. */
.sophe-preview, .sophe-preview canvas {
  position:absolute; inset:0; width:100%; height:100%; pointer-events:none;
}
.sophe-preview { z-index:0; overflow:hidden; }
.sophe-preview[hidden] { display:none; }
.sophe-preview canvas:nth-child(1) { z-index:3; --lift:-78%; --travel:840ms; }
.sophe-preview canvas:nth-child(2) { z-index:2; --lift:-73%; --travel:740ms; }
.sophe-preview canvas:nth-child(3) { z-index:1; --lift:-68%; --travel:640ms; }
.sophe-preview:is([data-state="waiting"],[data-state="held"]) canvas { transform:translateY(var(--lift)); }
.sophe-preview[data-state="arriving"] canvas {
  animation:sophe-descend var(--travel) cubic-bezier(.24,.65,.27,1) var(--sophe-delay,0ms) both;
}
@keyframes sophe-descend {
  from { transform:translateY(var(--lift)); }
  to { transform:translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sophe-preview[data-state="arriving"] canvas { animation:none; }
}
