[data-muc-watch] {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
}

[data-muc-watch] { background: url("./studio-black-cat.webp") center / contain no-repeat; }
[data-muc-watch].muc-painted { background-image: none; }
.muc-figure { display:block;width:100%;height:100%;pointer-events:none;background-size:300% 300%;background-position:50% 50%;background-repeat:no-repeat; }
.muc-trail {
  position: fixed;
  z-index: 1;
  inset: 0 3px 0 auto;
  width: 26px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.muc-paw {
  position: absolute;
  width: 13px;
  height: 13px;
  color: #8c735b;
  transform: rotate(var(--muc-direction));
  animation: muc-print-fade 1.9s ease-out forwards;
}
/* A central pad and four toes leave a small ink impression in the gutter. */
.muc-paw::before {
  content: "";
  position: absolute;
  left: 26%; top: 45%; width: 56%; height: 47%;
  border-radius: 48% 48% 35% 35%;
  background: currentColor;
}
.muc-paw::after {
  content: "";
  position: absolute;
  left: 4%; top: 31%; width: 21%; height: 27%;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 3px -3px, 7px -3px, 10px 0;
}
@keyframes muc-print-fade {
  0% { opacity: 0; }
  12%, 37% { opacity: .4; }
  100% { opacity: 0; }
}
@media (max-width: 600px) {
  .muc-trail { right: 1px; width: 16px; }
  .muc-paw { scale: .72; transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) {
  .muc-trail { display: none; }
}
button.compose-mascot {display:block;flex:none;padding:0;border:0;background:transparent;border-radius:50%;cursor:pointer;z-index:0;}

/* Each full body exposure uses the same 500 × 400 stage and paw baseline.
   The yawn only paints the face region of the seated 400 × 400 portrait. */
.muc-exposure {display:none;pointer-events:none;position:absolute;inset:0 -12.5%;background-size:400% 100%;background-repeat:no-repeat;}
[data-action] > .muc-exposure {display:block;}
[data-action=ramen] > .muc-exposure {background-size:100% 100%;}
[data-action=yawn] .muc-figure {background-position:50% 50% !important;}
[data-action=yawn] > .muc-exposure {inset:20.5% auto auto 38.5%;width:29.25%;height:26.25%;background-size:1900% 100%;}
@media (prefers-reduced-motion:reduce) {
  [data-action]:not([data-action=yawn]) .muc-figure {visibility:hidden;}
}
