/* The one-shot animations are shared by the gallery character and its settings preview. */
.dcp-fx-target { position:relative; isolation:isolate; }
.dcp-fx-target > .dcp-fx-decor { position:absolute; inset:0; width:100%; height:100%; display:none; overflow:visible; pointer-events:none; }
.dcp-fx-host { --dcp-fx-shove:10px; --dcp-fx-lift:-10px; }
.dcp-fx-host[data-dcp-fx='push'] .dcp-mascot { animation:dcp-push-body .82s ease-in-out both; transform-origin:50% 86%; }
.dcp-fx-host[data-dcp-fx='push'] .dcp-arm-back { animation:dcp-push-arm .82s ease both; transform-box:fill-box; transform-origin:left bottom; }
.dcp-fx-host[data-dcp-fx='wave'] .dcp-mascot { animation:dcp-wave-body 1s ease both; transform-origin:50% 84%; }
.dcp-fx-host[data-dcp-fx='wave'] .dcp-arm-front { animation:dcp-wave-hand .3s .08s ease-in-out 3; transform-box:fill-box; transform-origin:right bottom; }
.dcp-fx-host[data-dcp-fx='bounce'] .dcp-mascot { animation:dcp-fx-bounce .88s both; transform-origin:50% 88%; }
.dcp-fx-host[data-dcp-fx='sparkle'] .dcp-mascot { animation:dcp-sparkle-body .9s ease both; }
.dcp-fx-host[data-dcp-fx='heart'] .dcp-mascot { animation:dcp-heart-body 1.05s ease both; transform-origin:50% 86%; }
.dcp-fx-host:is([data-dcp-fx='heart'],[data-dcp-fx='sparkle']) .dcp-fx-decor { display:block; }
.dcp-fx-host[data-dcp-fx='sparkle'] .dcp-fx-hearts, .dcp-fx-host[data-dcp-fx='heart'] .dcp-fx-stars { display:none; }
.dcp-fx-decor .dcp-fx-bit { opacity:0; transform-box:fill-box; transform-origin:center; }
.dcp-fx-host[data-dcp-fx='sparkle'] .dcp-fx-bit { animation:dcp-star-rise .8s cubic-bezier(.19,.76,.33,1) var(--dcp-fx-delay,0s) both; }
.dcp-fx-host[data-dcp-fx='heart'] .dcp-fx-bit { animation:dcp-heart-rise .85s ease-out var(--dcp-fx-delay,0s) both; }
.dcp-fx-decor .dcp-fx-bit--a { --dcp-fx-x:-4px; --dcp-fx-y:-14px; }
.dcp-fx-decor .dcp-fx-bit--b { --dcp-fx-x:2px; --dcp-fx-y:-14px; --dcp-fx-delay:.14s; }
.dcp-fx-decor .dcp-fx-bit--c { --dcp-fx-x:5px; --dcp-fx-y:-12px; --dcp-fx-delay:.20s; }
.dcp-fx-decor .dcp-fx-bit--d { --dcp-fx-x:-6px; --dcp-fx-y:-11px; --dcp-fx-delay:.27s; }
.dcp-photo-nudge { animation:dcp-push-photo .82s ease-in-out both !important; }
.dcp-fx-host[data-dcp-fx='push'] .dcp-fx-photo { animation:dcp-push-photo .82s ease-in-out both; }

@keyframes dcp-push-body {
  0%,100% { translate:0 0; rotate:0deg; }
  22% { translate:-3px -1px; rotate:-8deg; }
  50% { translate:var(--dcp-fx-shove) -1px; rotate:12deg; }
  73% { translate:2px -3px; rotate:-6deg; }
}
@keyframes dcp-push-photo { 0%,31%,100% { translate:0 0; } 53% { translate:var(--dcp-photo-shove,8px) 0; } 75% { translate:-2px 0; } }
@keyframes dcp-push-arm { 0%,100% { rotate:0deg; } 48% { rotate:28deg; } }
@keyframes dcp-wave-body { 0%,100% { rotate:0deg; } 30%,70% { rotate:-7deg; } }
@keyframes dcp-wave-hand { 0%,100% { rotate:0deg; } 50% { rotate:33deg; } }
@keyframes dcp-fx-bounce {
  0%,100% { translate:0 0; scale:1; }
  18% { translate:0 1px; scale:1.06 .91; animation-timing-function:ease-out; }
  44% { translate:0 var(--dcp-fx-lift); scale:.97 1.06; animation-timing-function:ease-in; }
  69% { translate:0 1px; scale:1.08 .92; }
  85% { translate:0 -2px; scale:.99 1.02; }
}
@keyframes dcp-sparkle-body { 0%,100% { scale:1; } 34% { scale:1.06; } 68% { scale:.98; } }
@keyframes dcp-heart-body { 0%,100% { rotate:0deg; scale:1; } 27% { rotate:-5deg; scale:1.06; } 62% { rotate:4deg; } }
@keyframes dcp-star-rise {
  0% { opacity:0; scale:.3; }
  30% { opacity:1; scale:1.12; }
  62% { opacity:.92; }
  100% { opacity:0; scale:.58; rotate:22deg; translate:var(--dcp-fx-x) var(--dcp-fx-y); }
}
@keyframes dcp-heart-rise {
  0% { opacity:0; scale:.55; }
  26% { opacity:1; scale:1.17; }
  57% { opacity:.9; }
  100% { opacity:0; scale:.74; rotate:-13deg; translate:var(--dcp-fx-x) var(--dcp-fx-y); }
}
@media (prefers-reduced-motion: reduce) {
  .dcp-fx-host[data-dcp-fx] :is(.dcp-mascot,.dcp-arm,.dcp-fx-photo), .dcp-photo-nudge { animation:none !important; }
  .dcp-fx-host .dcp-fx-target > .dcp-fx-decor { display:none !important; }
}
