/* MGH / CHAPTER ARRIVAL — custom edge paths, never across character art. */
#view-home .home-motion-item{opacity:1!important;translate:0 0;transform:none!important;transition:opacity .85s ease,translate 1s cubic-bezier(.16,.75,.2,1)!important}
#view-home .home-motion-item:not(.home-motion-visible){opacity:0!important;translate:0 76px}
#view-home .home-scene-heading.home-motion-item{transition-duration:.7s,.9s!important}
#view-home .home-scene-gateway.home-motion-item{transition-duration:.85s,1.1s!important}
.mgh-traced-button{position:relative;isolation:isolate;overflow:hidden!important}
.mgh-button-trace{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;fill:none;z-index:3;overflow:hidden}
.mgh-button-trace path{vector-effect:non-scaling-stroke;stroke-linejoin:round}
.mgh-button-trace .trace-rail{stroke:#b9cffa;stroke-width:1;opacity:.22}
.mgh-button-trace .trace-tail{stroke:#91afff;stroke-width:3;stroke-dasharray:150 850;opacity:.45;animation:mgh-edge-flow 3.8s linear infinite paused}
.mgh-button-trace .trace-head{stroke:#eefaff;stroke-width:1.7;stroke-dasharray:32 968;animation:mgh-edge-flow 3.8s linear infinite paused;filter:drop-shadow(0 0 3px #98b7ff)}
.trace-visible .mgh-button-trace :is(.trace-tail,.trace-head){animation-play-state:running}
.mgh-traced-button:is(:hover,:focus-visible){box-shadow:0 0 25px #9abfff40}
.mgh-traced-button:is(:hover,:focus-visible) .trace-head{stroke:#fff;stroke-width:2.5}
.home-motion-paused .mgh-button-trace path{animation-play-state:paused!important}
@keyframes mgh-edge-flow{to{stroke-dashoffset:-1000}}
#view-home.home-motion-reduced .home-motion-item{opacity:1!important;translate:none;transition:none!important}
.home-motion-reduced .mgh-button-trace :is(.trace-tail,.trace-head){animation:none;opacity:0}
@media(max-width:800px){#view-home .home-motion-item{transition-duration:.9s,1.1s!important}#view-home .home-motion-item:not(.home-motion-visible){translate:0 60px}}
@media(prefers-reduced-motion:reduce){#view-home .home-motion-item{opacity:1!important;translate:none;transition:none!important}.mgh-button-trace :is(.trace-tail,.trace-head){animation:none;opacity:0}}
