/* Reading stays still on scroll; movement belongs to a deliberate interaction. */
.ref-file-slip{position:fixed;z-index:40;pointer-events:none;width:24px;height:15px;margin:-7px -12px;background:var(--sheet);border:1px solid var(--ink);border-radius:2px}
.ref-file-slip::after{content:"";position:absolute;inset:4px 5px;border-block:1px solid var(--rust)}
html .ink-arrives,html .chapter-in-view .chapter-visual,
html:not([data-motion=still]) .scene-entry,
html:not([data-motion=still]) .screening-head.scene-entry h2{animation:none!important}
html:not([data-motion=still]) #translator .lookup-save:disabled{animation:none}

@media(prefers-reduced-motion:no-preference){
  html:not([data-motion=still]) :where(.chapter-choice,.lookup-main-button,.lookup-minor-button,.sense-map-branch,.sense-map-toggle,.meaning-chip,.meaning-next,.cmp-reset,.film-index button){
    transition:scale 150ms cubic-bezier(.2,.8,.2,1),background-color 160ms,border-color 160ms;
  }
  html:not([data-motion=still]) :where(.chapter-choice,.lookup-main-button,.lookup-minor-button,.sense-map-branch,.sense-map-toggle,.meaning-chip,.meaning-next,.cmp-reset,.film-index button):active:enabled{
    scale:.97;transition-duration:70ms;
  }
  .ref-outgoing{pointer-events:none!important;position:absolute!important;z-index:1;margin:0!important;box-sizing:border-box}
  html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)>summary{
    position:relative;padding-inline-end:2.1rem!important;
  }
  html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)>summary::before,
  html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)>summary::after{
    content:"";position:absolute;inset-inline-end:.65rem;top:50%;width:.72rem;height:1px;margin:0;background:currentColor;
    color:var(--rust);transform-origin:center;pointer-events:none;
  }
  html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)>summary::before{
    rotate:90deg;scale:1;opacity:1;filter:blur(0);transition:rotate 160ms ease-out,scale 160ms ease-out,opacity 140ms,filter 140ms;
  }
  html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)[open]>summary::before{
    rotate:0deg;scale:.65;opacity:0;filter:blur(1px);
  }
  @supports (interpolate-size:allow-keywords) and (transition-behavior:allow-discrete){
    html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)::details-content{
      display:block;interpolate-size:allow-keywords;overflow:clip;block-size:0;opacity:.1;
      transform-origin:var(--ref-origin,0%) top;transform:scale(.95);
      transition:block-size 148ms ease-in,transform 148ms ease-in,opacity 148ms ease-in,content-visibility 148ms allow-discrete;
    }
    html:not([data-motion=still]) :is(.cmp-detail,.platforms-note details,.lookup-manage)[open]::details-content{
      block-size:auto;opacity:1;transform:none;
      transition:block-size 185ms cubic-bezier(.16,.78,.22,1),transform 185ms ease-out,opacity 160ms ease-out,content-visibility 185ms allow-discrete;
    }
  }
}
