
/* LAITNO PREMIUM MOTION SYSTEM V63.51 */

:root {
  --lm-ease: cubic-bezier(.22,1,.36,1);
  --lm-fast: 170ms;
  --lm-medium: 260ms;
  --lm-flip: 460ms;
}

@keyframes lm-reveal {
  from {
    opacity: 0;
    transform: translate3d(0,8px,0);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

@keyframes lm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lm-dialog {
  from {
    opacity: 0;
    transform: translate3d(0,12px,0) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
}

@keyframes lm-toast {
  0% {
    opacity: 0;
    transform: translate(-50%,12px) scale(.97);
  }
  14%,78% {
    opacity: 1;
    transform: translate(-50%,0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%,-5px) scale(.99);
  }
}

/* Premium flashcards */

.study-flip-scene {
  perspective: 1600px;
  -webkit-perspective: 1600px;
}

.study-flip-scene .study-flip-inner {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition:
    transform var(--lm-flip)
    cubic-bezier(.22,.76,.22,1) !important;
}

.study-flip-scene .study-flip-face {
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

.study-flip-inner.is-flipped
.study-flip-back > :not(.word-card-top) {
  animation:
    lm-reveal 320ms 150ms
    var(--lm-ease) both;
}

.study-flip-inner:not(.is-flipped)
.study-flip-front > :not(.word-card-top) {
  animation:
    lm-reveal 300ms 100ms
    var(--lm-ease) both;
}

.study-flip-front,
.study-flip-back {
  transition:
    border-color 190ms ease,
    box-shadow 260ms ease;
}

/* Buttons and tabs */

:where(
  .btn,
  .home-sync-button,
  .home-sync-icon,
  .profile-sync-button-v228,
  .fp-tabs button,
  .auth-tabs button,
  .social-modal-actions button
) {
  transition:
    transform var(--lm-fast) var(--lm-ease),
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease,
    color 170ms ease;
}

:where(
  .btn,
  .home-sync-button,
  .home-sync-icon,
  .profile-sync-button-v228,
  .fp-tabs button,
  .auth-tabs button,
  .social-modal-actions button
):not(:disabled):active {
  transform: scale(.975);
}

:where(
  .btn,
  .home-sync-button,
  .home-sync-icon,
  .fp-tabs button,
  .auth-tabs button,
  .social-modal-actions button
):focus-visible {
  outline: 2px solid #5598df;
  outline-offset: 3px;
}

.fp-tabs button.selected {
  box-shadow: 0 5px 14px rgba(25,55,85,.11);
}

.home-bottom-nav a {
  transition:
    color 190ms ease,
    background-color 190ms ease,
    opacity 170ms ease,
    transform 180ms var(--lm-ease);
}

.home-bottom-nav a:active {
  transform: scale(.94);
}

/* Cards and panels */

.elevated-card,
.profile-sync-grid-v228 > div {
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 260ms ease;
}

.profile-sync-grid-v228 > div {
  animation: lm-fade 240ms ease-out both;
}

/* Dialogs */

.fp-dialog-backdrop {
  animation: lm-fade 180ms ease-out both;
}

.fp-dialog,
.duel-modal {
  animation:
    lm-dialog 290ms var(--lm-ease) both;
}

/* Toast */

.app-toast {
  animation:
    lm-toast 2.5s ease-in-out both !important;
}

/* Loading */

.ui-skeleton-stack > i {
  border-radius: 16px;
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .study-flip-scene .study-flip-inner {
    transition-duration: .01ms !important;
  }

  .study-flip-inner.is-flipped
  .study-flip-back > :not(.word-card-top),
  .study-flip-inner:not(.is-flipped)
  .study-flip-front > :not(.word-card-top),
  .fp-dialog-backdrop,
  .fp-dialog,
  .duel-modal,
  .profile-sync-grid-v228 > div {
    animation: none !important;
  }

  .app-toast {
    animation: none !important;
    opacity: 1 !important;
  }

  :where(
    .btn,
    .home-sync-button,
    .home-sync-icon,
    .profile-sync-button-v228,
    .fp-tabs button,
    .auth-tabs button,
    .social-modal-actions button,
    .home-bottom-nav a
  ) {
    transition-duration: .01ms !important;
  }
}
