@import url("page-open.css?v=5");
/* Opt-in standard pages only. Game Library, games and retired routes do not load this file.
   Existing resting styles, layout and visibility remain authoritative. */
@media (prefers-reduced-motion: no-preference) {
  html[data-site-motion] :where(header.top nav a, main a:not(.btn)):not(:where(.ad-region *)) {
    transition: color 120ms cubic-bezier(.2, .8, .2, 1), background-color 120ms cubic-bezier(.2, .8, .2, 1);
  }
  html[data-site-motion] :where(.btn, .tabs button, .fold, .nav-toggle):not(:disabled):not(:where(.ad-region *)) {
    transition: color 120ms cubic-bezier(.2, .8, .2, 1), background-color 120ms cubic-bezier(.2, .8, .2, 1), border-color 120ms cubic-bezier(.2, .8, .2, 1), transform 120ms cubic-bezier(.2, 0, 0, 1);
  }
  html[data-site-motion] :where(.btn, .tabs button, .fold, .nav-toggle):not(:disabled):not(:where(.ad-region *)):active {
    transition-duration: 120ms, 120ms, 120ms, 80ms;
    transform: translateY(1px);
  }
  /* Opening only: display:none still removes menus immediately on close. No height tween. */
  @media (min-width: 1120px) {
    html[data-site-motion] header.top .menu-panel {
      animation: site-menu-desktop 140ms cubic-bezier(.2, .8, .2, 1);
    }
  }
  @media (max-width: 1119px) {
    html[data-site-motion] header.top :where(nav.open, .menu.open > .menu-panel) {
      animation: site-menu-mobile 160ms cubic-bezier(.2, .8, .2, 1);
    }
  }
  /* Keyboard focus is never presented in a moving menu. */
  html[data-site-motion] header.top nav:focus-within,
  html[data-site-motion] header.top .menu:focus-within > .menu-panel {
    animation: none;
  }
}
@keyframes site-menu-desktop {
  from { opacity: .96; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes site-menu-mobile {
  from { opacity: .96; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-site-motion] { scroll-behavior: auto; }
}

/* Escape dismisses focus/hover-open desktop menus without blurring their trigger.
   This interaction rule also applies when reduced motion is requested. */
@media (min-width: 1120px) {
  html[data-site-motion] header.top .menu[data-motion-dismissed] > .menu-panel {
    display: none;
  }
}
