/* Shared state motion for the concept sites: one ease, 140-220ms, transform and opacity only.
   The sites' own entrances, hovers and loops stay as they are; this adds motion where a click changes something. */
:root { --ml-ease: cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: no-preference) {
  /* press: a small give on every button, composed with each site's own transforms */
  :is(button, [role="button"], input[type="submit"], a[class*="btn"], a[class*="button"]):not(:disabled) {
    transition-property: scale; transition-duration: 140ms; transition-timing-function: var(--ml-ease);
  }
  :is(button, [role="button"], input[type="submit"], a[class*="btn"], a[class*="button"]):not(:disabled):active { scale: .97; }

  /* dialogs that opened with no motion: rise 10px and fade, backdrop fades */
  :is(.hotel, .offbeat, .store) dialog[open] { animation: ml-dialog-in 220ms var(--ml-ease) both; }
  :is(.hotel, .offbeat, .store) dialog[open]::backdrop { animation: ml-fade 220ms var(--ml-ease) both; }
}
@keyframes ml-dialog-in { from { opacity: 0; translate: 0 10px; scale: .985; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ml-fade { from { opacity: 0; } to { opacity: 1; } }

/* information labels inside Morrow's night dialog, as readable text (see labels.css) */
.offbeat .night-dialog dt { font-weight: 500 !important; font-size: 14px !important; line-height: 1.45 !important; letter-spacing: normal !important; text-transform: none !important; }
