/* Cuetra kinetic icons — layer and rest state.
   One treatment visible at a time; the runtime animates the parts of the visible layer only.
   This file belongs with the runtime; page styling belongs in the page. */

.cuetra-kinetic {
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: visible;
  color: inherit;
  vertical-align: -0.125em;
}

.cuetra-kinetic .mt { display: none; }
.cuetra-kinetic[data-treatment="outline"] > .mt[data-treatment="outline"],
.cuetra-kinetic[data-treatment="solid"] > .mt[data-treatment="solid"],
.cuetra-kinetic[data-treatment="duotone"] > .mt[data-treatment="duotone"],
.cuetra-kinetic[data-treatment="glass"] > .mt[data-treatment="glass"] { display: inline; }

/* no treatment set yet: show the outline so the icon is never invisible */
.cuetra-kinetic:not([data-treatment]) > .mt[data-treatment="outline"] { display: inline; }

.cuetra-kinetic [data-part] {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.cuetra-kinetic[data-playing] [data-part] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .cuetra-kinetic [data-part] { will-change: auto; }
}
