/* between pages (Patto: "Animatie tussen paginawissels"): a yellow VoetbalVitrine panel. Leaving, it rises from the
   bottom over the page with the V growing in; on the new page it lifts off upwards. Pure CSS on html::after, so it
   shows before any script or image has loaded. */
html::after {
  content: ""; position: fixed; left: -2px; right: -2px; top: -25vh; bottom: -25vh; z-index: 2147483000; pointer-events: none;
  background: #EFD71D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='120 190 670 580'%3E%3Cpath fill='%23151513' d='M130 200h188l27 52H222l233 403 233-403H565l27-52h188L455 762z'/%3E%3Cpath fill='%23151513' d='M320 310h60l75 128 73-128h62L455 545z'/%3E%3C/svg%3E") 50% 50% / clamp(64px, 11vmin, 120px) no-repeat;
  clip-path: inset(100% 0 0 0); visibility: hidden;
}
html.pt-leave::after { visibility: visible; animation: ptCover .42s cubic-bezier(.7, 0, .2, 1) both; }
html.pt-arrive::after { visibility: visible; clip-path: inset(0); animation: ptReveal .62s cubic-bezier(.7, 0, .2, 1) .08s both; }
@keyframes ptCover { from { clip-path: inset(100% 0 0 0); background-size: clamp(40px, 7vmin, 80px); } to { clip-path: inset(0); } }
@keyframes ptReveal { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); background-size: clamp(90px, 15vmin, 160px); } }
/* the new page settles in under the lifting panel */
html.pt-arrive body > * { animation: ptRise .8s cubic-bezier(.16, 1, .3, 1) .12s both; }
@keyframes ptRise { from { transform: translateY(28px); opacity: .4; } }
html.pt-arrive body > dialog { animation: none; }
@media (prefers-reduced-motion: reduce) { html.pt-leave::after, html.pt-arrive::after, html.pt-arrive body > * { animation: none; visibility: hidden; } }
