/* Shared by the archive and presentation: a sheet becomes the actual deck. */
@view-transition { navigation: auto; }
::view-transition-group(open-deck) { animation-duration: 240ms; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
::view-transition-old(open-deck) { animation: 180ms both sheet-out; }
::view-transition-new(open-deck) { animation: 240ms both sheet-in; }
/* The sheet carries the transition. The whole page never fades. */
::view-transition-group(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(root) { animation: none; opacity: 0; }
@keyframes sheet-out { to { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
