/* Final shop effect modes. Loaded after SQL css_code so it can override old animation:none rules. */

@keyframes shDeskAvatarAlive {
  0%,100% { filter:brightness(1) saturate(1); transform:translateZ(0) scale(1); }
  50% { filter:brightness(1.14) saturate(1.2); transform:translateZ(0) scale(1.035); }
}
@keyframes shDeskNameAlive {
  0%,100% { filter:brightness(1) saturate(1); transform:translateY(0); }
  50% { filter:brightness(1.18) saturate(1.22); transform:translateY(-1px); }
}
@keyframes shDeskMsgAlive {
  0%,100% { filter:brightness(1) saturate(1); transform:translateY(0); }
  50% { filter:brightness(1.1) saturate(1.14); transform:translateY(-1px); }
}
@keyframes shDeskRingTurn {
  to { filter:hue-rotate(360deg) brightness(1.08); }
}

@media (min-width:721px) and (prefers-reduced-motion:no-preference) {
  body:not(.mobile-client) [class*="avatar-frame--"] {
    animation:shDeskAvatarAlive 2.35s ease-in-out infinite !important;
    transform-origin:center !important;
    backface-visibility:hidden;
  }
  body:not(.mobile-client) .avatar-frame--xat-rainbow-orbit,
  body:not(.mobile-client) .avatar-frame--xat-orbit,
  body:not(.mobile-client) .avatar-frame--amber-orbit,
  body:not(.mobile-client) .avatar-frame--ice-orbit {
    animation:shDeskAvatarAlive 2.2s ease-in-out infinite, shDeskRingTurn 5.8s linear infinite !important;
  }
  body:not(.mobile-client) .name-effect--editorial-serif,
  body:not(.mobile-client) .name-effect--executive-sans,
  body:not(.mobile-client) .name-effect--gold-reserve,
  body:not(.mobile-client) .name-effect--noir-silver,
  body:not(.mobile-client) .name-effect--signature-soft,
  body:not(.mobile-client) .name-effect--architect-mono {
    display:inline-flex;
    animation:shDeskNameAlive 2.6s ease-in-out infinite !important;
    transform-origin:center !important;
  }
  body:not(.mobile-client) .c-msg-text.msg-style--glass-note,
  body:not(.mobile-client) .c-msg-text.msg-style--editorial-card,
  body:not(.mobile-client) .c-msg-text.msg-style--executive-dark,
  body:not(.mobile-client) .c-msg-text.msg-style--paper-minimal,
  body:not(.mobile-client) .c-msg-text.msg-style--mono-ledger,
  body:not(.mobile-client) .c-msg-text.msg-style--neon-edge,
  body:not(.mobile-client) .c-msg-text.msg-style--xat-classic,
  body:not(.mobile-client) .c-msg-text.msg-style--emerald-signal,
  body:not(.mobile-client) .c-msg-text.msg-style--ruby-line,
  body:not(.mobile-client) .c-msg-text.msg-style--violet-glass,
  body:not(.mobile-client) .c-msg-text.msg-style--amber-glow,
  body:not(.mobile-client) .c-msg-text.msg-style--ice-border,
  body:not(.mobile-client) .c-msg-text.msg-style--aurora-glass,
  body:not(.mobile-client) .c-msg-text.msg-style--prism-edge,
  body:not(.mobile-client) .c-msg-text.msg-style--crown-dark,
  body:not(.mobile-client) .c-msg-text.msg-style--obsidian,
  body:not(.mobile-client) .msg-text.msg-style--glass-note,
  body:not(.mobile-client) .msg-text.msg-style--editorial-card,
  body:not(.mobile-client) .msg-text.msg-style--executive-dark,
  body:not(.mobile-client) .msg-text.msg-style--paper-minimal,
  body:not(.mobile-client) .msg-text.msg-style--mono-ledger,
  body:not(.mobile-client) .msg-text.msg-style--neon-edge,
  body:not(.mobile-client) .msg-text.msg-style--xat-classic,
  body:not(.mobile-client) .msg-text.msg-style--emerald-signal,
  body:not(.mobile-client) .msg-text.msg-style--ruby-line,
  body:not(.mobile-client) .msg-text.msg-style--violet-glass,
  body:not(.mobile-client) .msg-text.msg-style--amber-glow,
  body:not(.mobile-client) .msg-text.msg-style--ice-border,
  body:not(.mobile-client) .msg-text.msg-style--aurora-glass,
  body:not(.mobile-client) .msg-text.msg-style--prism-edge,
  body:not(.mobile-client) .msg-text.msg-style--crown-dark,
  body:not(.mobile-client) .msg-text.msg-style--obsidian {
    animation:shDeskMsgAlive 2.4s ease-in-out infinite !important;
    transform-origin:center !important;
  }
}

@media (max-width:720px), (prefers-reduced-motion:reduce) {
  [class*="name-effect--"]:not(.wall-person-nick),
  [class*="avatar-frame--"]:not(.wall-person-avatar),
  .c-msg-text[class*="msg-style--"],
  .msg-text[class*="msg-style--"],
  [class*="name-effect--"]:not(.wall-person-nick)::before,
  [class*="name-effect--"]:not(.wall-person-nick)::after,
  [class*="avatar-frame--"]:not(.wall-person-avatar)::before,
  [class*="avatar-frame--"]:not(.wall-person-avatar)::after,
  .c-msg-text[class*="msg-style--"]::before,
  .c-msg-text[class*="msg-style--"]::after,
  .msg-text[class*="msg-style--"]::before,
  .msg-text[class*="msg-style--"]::after {
    animation:none !important;
    transition:none !important;
    transform:none !important;
    will-change:auto !important;
  }
}

body.mobile-client [class*="name-effect--"]:not(.wall-person-nick),
body.mobile-client [class*="avatar-frame--"]:not(.wall-person-avatar),
body.mobile-client .c-msg-text[class*="msg-style--"],
body.mobile-client .msg-text[class*="msg-style--"],
body.mobile-client [class*="name-effect--"]:not(.wall-person-nick)::before,
body.mobile-client [class*="name-effect--"]:not(.wall-person-nick)::after,
body.mobile-client [class*="avatar-frame--"]:not(.wall-person-avatar)::before,
body.mobile-client [class*="avatar-frame--"]:not(.wall-person-avatar)::after,
body.mobile-client .c-msg-text[class*="msg-style--"]::before,
body.mobile-client .c-msg-text[class*="msg-style--"]::after,
body.mobile-client .msg-text[class*="msg-style--"]::before,
body.mobile-client .msg-text[class*="msg-style--"]::after {
  animation:none !important;
  transition:none !important;
  transform:none !important;
  will-change:auto !important;
}

.shop-preview-modal .shop-device-desktop [class*="avatar-frame--"] {
  animation:shDeskAvatarAlive 2.35s ease-in-out infinite !important;
}
.shop-preview-modal .shop-device-desktop .avatar-frame--xat-rainbow-orbit,
.shop-preview-modal .shop-device-desktop .avatar-frame--xat-orbit,
.shop-preview-modal .shop-device-desktop .avatar-frame--amber-orbit,
.shop-preview-modal .shop-device-desktop .avatar-frame--ice-orbit {
  animation:shDeskAvatarAlive 2.2s ease-in-out infinite, shDeskRingTurn 5.8s linear infinite !important;
}
.shop-preview-modal .shop-device-desktop .name-effect--editorial-serif,
.shop-preview-modal .shop-device-desktop .name-effect--executive-sans,
.shop-preview-modal .shop-device-desktop .name-effect--gold-reserve,
.shop-preview-modal .shop-device-desktop .name-effect--noir-silver,
.shop-preview-modal .shop-device-desktop .name-effect--signature-soft,
.shop-preview-modal .shop-device-desktop .name-effect--architect-mono {
  animation:shDeskNameAlive 2.6s ease-in-out infinite !important;
}
.shop-preview-modal .shop-device-desktop .c-msg-text[class*="msg-style--"],
.shop-preview-modal .shop-device-desktop .msg-text[class*="msg-style--"] {
  animation:shDeskMsgAlive 2.4s ease-in-out infinite !important;
}
.shop-preview-modal .shop-device-mobile [class*="name-effect--"],
.shop-preview-modal .shop-device-mobile [class*="avatar-frame--"],
.shop-preview-modal .shop-device-mobile .c-msg-text[class*="msg-style--"],
.shop-preview-modal .shop-device-mobile .msg-text[class*="msg-style--"] {
  animation:none !important;
  transition:none !important;
  transform:none !important;
}

