@view-transition { navigation: auto; }
:root { --route-background: #000; }
::view-transition { background: var(--route-background); }
::view-transition-group(root) { animation-duration: 240ms; }
::view-transition-image-pair(root) { isolation: isolate; }
::view-transition-old(root) {
    mix-blend-mode: normal;
    animation: route-depart 120ms cubic-bezier(.4,0,.2,1) both;
}
::view-transition-new(root) {
    mix-blend-mode: normal;
    animation: route-arrive 140ms 100ms cubic-bezier(.2,0,.2,1) both;
}
@keyframes route-depart { from { opacity:1; } to { opacity:0; } }
@keyframes route-arrive { from { opacity:0; } to { opacity:1; } }
.route-cover { position:fixed; inset:0; z-index:2147483647; pointer-events:auto; }
.route-leaving { cursor:progress; }
@media(prefers-reduced-motion:reduce) {
    ::view-transition-group(root), ::view-transition-old(root), ::view-transition-new(root) { animation:none; }
}
