.homepage .paper-scene img.moving-ball { position:fixed; left:var(--ball-left,0px); top:var(--ball-top,0px); width:var(--ball-width,0px); height:auto; max-width:none; transform:none; z-index:4; pointer-events:none; transition:none; animation:none; }
.homepage .paper-scene img.moving-ball[hidden] { display:none; }
.moving-study .ball-study-note { max-width:min(650px,calc(100vw - 56px)); }
.moving-study .paper-body { position:relative; }
.moving-study .body-copy { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:normal; }
.moving-study .typed-visual { white-space:inherit; }
.moving-study .typed-grapheme { white-space:inherit; }
.moving-study .measurement-controls .travel-status { font-size:11px; margin:10px 0 0; }
.moving-study .measurement-controls { max-height:calc(100svh - 110px); overflow:auto; }
@media(max-width:760px) {
 .moving-study .measurement-controls { top:auto; bottom:90px; left:24px; right:24px; width:auto; max-width:none; }
 .moving-study .ball-study-note { left:24px; bottom:128px; max-width:calc(100vw - 48px); font-size:10px; }
}
@media(max-height:500px) {
 .moving-study .measurement-controls { top:auto; bottom:58px; left:auto; right:28px; width:260px; max-width:calc(100vw - 56px); }
 .moving-study .ball-study-note { bottom:39px; }
}
@media(prefers-reduced-motion:reduce) {
 .homepage .paper-scene img.moving-ball { transition:none; animation:none; }
}
@media print {
 .moving-study .body-copy { position:static; width:auto; height:auto; margin:0; overflow:visible; clip:auto; clip-path:none; }
 .moving-study .typed-visual,.moving-study .paper-actions { display:none!important; }
}
/* The image's key bed is the replay affordance, with a keyboard-only outline. */
.homepage .paper-scene .typewriter-keys {
 position:fixed; z-index:7; display:block; appearance:none; margin:0; padding:0;
 border:0; border-radius:3px; background:transparent; color:inherit;
 cursor:pointer; pointer-events:auto; touch-action:manipulation;
}
.homepage .paper-scene .typewriter-keys[hidden] { display:none; }
.homepage .paper-scene .typewriter-keys:hover { border:0; }
.homepage .paper-scene .typewriter-keys:focus-visible { outline:2px solid #e8bc70; outline-offset:5px; }
@media print { .homepage .paper-scene .typewriter-keys { display:none!important; } }
