
.backglass-motion { position:relative; width:100%; order:0; }
.backglass-motion video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.backglass-motion [hidden] { display:none!important; }
.backglass-motion.is-playing img { visibility:hidden; }
.backglass-motion button { position:absolute; bottom:1rem; right:1rem; z-index:3; min-height:44px; padding:.65rem 1rem; border:2px solid white; border-radius:.3rem; background:#17120e; color:white; font:bold 1rem/1.3 sans-serif; cursor:pointer; pointer-events:auto; }
.backglass-motion button:focus-visible { outline:3px solid #ffdc55; outline-offset:3px; }

/* Reserve a separate control row below the artwork. */
.backglass-motion{margin-bottom:5rem}
.backglass-motion.backglass-motion button{top:calc(100% + .75rem);bottom:auto;right:auto;left:50%;transform:translateX(-50%);white-space:nowrap}

body[data-character-edges] .guide-character-art.backglass-motion{margin-bottom:5rem!important}

/* Illustrated feature clips: the control sits in its own row under the picture. */
.backglass-motion.feature-motion{display:grid;margin-bottom:1.5rem}
.backglass-motion.feature-motion .feature-motion-frame{position:relative;grid-area:1/1}
.backglass-motion.feature-motion .feature-motion-frame>a,
.backglass-motion.feature-motion .feature-motion-frame>img{display:block;width:100%}
.backglass-motion.feature-motion video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.backglass-motion.backglass-motion.feature-motion button{position:static;grid-area:2/1;top:auto;right:auto;bottom:auto;left:auto;transform:none;justify-self:center;margin-top:.75rem}

/* Quiet controls below the art; no overlay on the picture or painted frame. */
html body [data-inline-motion].has-inline-frame img{visibility:hidden!important}
html body [data-inline-motion][data-inline-motion] button{
  position:absolute!important;top:calc(100% + .5rem)!important;right:0!important;
  bottom:auto!important;left:auto!important;transform:none!important;
  display:inline-flex!important;align-items:center;justify-content:center;gap:.5rem;
  min-width:88px;min-height:44px;padding:.5rem .9rem!important;
  border:1px solid currentColor!important;border-radius:999px!important;
  background:var(--bg,#17132a)!important;color:var(--text,#fff)!important;
  box-shadow:none!important;font:600 14px/1.2 system-ui,sans-serif!important;
  letter-spacing:0!important;text-transform:none!important;cursor:pointer;
}
html body [data-inline-motion][data-inline-motion].feature-motion button{
  position:static!important;grid-area:2/1!important;justify-self:end!important;
  margin:.5rem 0 0!important;
}
html body [data-inline-motion] button::before{content:'';display:block;width:10px;height:12px;box-sizing:border-box}
html body [data-inline-motion] button[data-action=play]::before{border-left:10px solid currentColor;border-block:6px solid transparent}
html body [data-inline-motion] button[data-action=pause]::before{border-inline:3px solid currentColor}
html body [data-inline-motion] button[data-action=replay]::before{content:'↻';width:14px;height:auto;font-size:20px;line-height:12px}
html body [data-inline-motion] button:hover{filter:brightness(1.2)}
html body [data-inline-motion] button:focus-visible{outline:3px solid currentColor!important;outline-offset:4px!important}
/* A single cinematic scene progresses with ordinary document scrolling. */
html body .scroll-scene.scroll-enabled{position:relative;height:180svh;min-height:900px;width:100%}
html body .scroll-scene.scroll-enabled>[data-scroll-scene]{position:sticky!important;top:140px!important;margin-inline:auto!important;max-height:calc(100svh - 200px)}
html body .scroll-scene.scroll-enabled>[data-scroll-scene]::after{content:'Scroll to animate';display:block;position:absolute;top:calc(100% + 1rem);left:0;color:inherit;font:14px/1.4 system-ui,sans-serif}
html body .scroll-scene.scroll-enabled [data-scroll-scene].feature-motion::after{top:auto;bottom:12px}
@media(max-width:600px){html body .scroll-scene.scroll-enabled{height:140svh;min-height:650px}html body .scroll-scene.scroll-enabled>[data-scroll-scene]{top:140px!important}}
@media(prefers-reduced-motion:reduce){html body .scroll-scene.scroll-enabled{height:auto;min-height:0}html body .scroll-scene.scroll-enabled>[data-scroll-scene]{position:relative!important;top:auto!important}html body [data-scroll-scene]::after{display:none!important}}

/* Keep this guide's existing image/text composition and reserve quiet controls below art. */
body.twilight-zone .field-graphic .feature-motion[data-inline-motion] button{justify-self:start!important}
body.twilight-zone .field-graphic--lost-in-the-zone .feature-motion[data-inline-motion] button{margin-left:var(--tz-gutter)!important}
body.twilight-zone .field-graphic--first-ball .feature-motion video{object-position:50% 48%}
body.twilight-zone .field-graphic--first-ball figcaption{display:block;align-self:center}
body.twilight-zone .field-graphic--multiball .feature-motion video{border-radius:8px}
body.twilight-zone .field-graphic--lost-in-the-zone .feature-motion video{object-position:50% 46%}
@media(max-width:600px){body.twilight-zone .field-graphic--multiball figcaption{margin-top:12px}}
