/* Gamelade Smooth Navigation — progressive enhancement, regular theme only.
 * No page overlay, fixed stacking layers or body transforms: video backgrounds,
 * lightboxes, sticky menus and ad popups keep their own positioning and stacking.
 */
@media (prefers-reduced-motion: no-preference) {
  /* Native cross-document View Transitions in supporting browsers. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) {
    animation: calc(var(--gdx-smooth-duration,220ms) * .85) ease-in both gdx-smooth-fade-out;
  }
  ::view-transition-new(root) {
    animation: var(--gdx-smooth-duration,220ms) ease-out both gdx-smooth-fade-in;
  }
  /* Fallback on browsers without cross-document transitions.
     Starts mostly visible to avoid a blank page on slow networks. */
  @keyframes gdx-smooth-fade-in {
    from { opacity: .80; } to { opacity: 1; }
  }
  @keyframes gdx-smooth-fade-out {
    from { opacity: 1; } to { opacity: .72; }
  }
  html.gdx-smooth-fallback-in body {
    animation: gdx-smooth-fade-in var(--gdx-smooth-duration,220ms) ease-out both;
  }
  html.gdx-smooth-fallback-out body {
    transition: opacity calc(var(--gdx-smooth-duration,220ms) * .65) ease-in !important;
    opacity: .72 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.gdx-smooth-fallback-in body,
  html.gdx-smooth-fallback-out body { animation: none !important; transition: none !important; opacity: 1 !important; }
}
