/* Day to night and back: the new look opens out from the button as a growing circle. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: look-in 560ms cubic-bezier(.3, .6, .1, 1); }
@keyframes look-in {
  from { clip-path: circle(0 at var(--vt-x, 100%) var(--vt-y, 0)); }
  to { clip-path: circle(150vmax at var(--vt-x, 100%) var(--vt-y, 0)); }
}
/* A board's way in and out as a View Transition (boards.js zvt, an experiment): the page under it is the new one at once,
   and the board's canvas, captured, shrinks into its card or grows from it, edged in the depth colour (section 25). */
:root.vt-zoom::view-transition-old(root) { display: none; }
:root.vt-zoom::view-transition-new(root) { animation: none; clip-path: none; }
::view-transition-group(cx-zoom) {
  animation-duration: var(--zvt-ms, 330ms); animation-timing-function: cubic-bezier(.3, .1, .15, 1);
  overflow: hidden; box-shadow: 0 0 0 1px var(--z), 0 0 0 5px var(--z-soft);
}
::view-transition-old(cx-zoom), ::view-transition-new(cx-zoom) {
  animation-duration: var(--zvt-ms, 330ms); animation-timing-function: cubic-bezier(.3, .1, .15, 1); height: 100%; object-fit: cover;
}
/* A way out of a board lands in its card by fading in over the capture of its last frames (boards.js landSoft); the
   page takes presses meanwhile. */
:root.vt-land::view-transition { pointer-events: none; }
:root.vt-land::view-transition-old(root) { animation: none; }
:root.vt-land::view-transition-new(root) { animation: vt-land 150ms ease-out both; clip-path: none; }
@keyframes vt-land { from { opacity: 0; } }
/* The new look is all there inside the circle: its colours' own transitions (tiles, buttons, cards, boxes) would still
   be easing out of the old look's there, a grey flash, and some 650 transitions at once (dom.js adds the class). */
:root.vt-look *, :root.vt-look *::before, :root.vt-look *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
  .fc-wait i, .dock > .btn, .tm-read, .tm-rip, .al-bell, #clear.arm::after, .obj.board.into > .binner::after { animation: none !important; }
}
