/* Rig parts pivot on their own centre. Without this a rotate or scale on an
   eye or brow pivots on the SVG's top-left corner and the part flies away.
   Keyed on the rig's own class, not its id, so a clone with a renamed id
   (the Lab's robot preview) and every host get it. */
svg.ogre-face #L-eyeball, svg.ogre-face #R-eyeball,
svg.ogre-face #L-eyeball-outline, svg.ogre-face #R-eyeball-outline, svg.ogre-face #L-eyeball-outline-2,
svg.ogre-face #L-pupil, svg.ogre-face #R-pupil,
svg.ogre-face #L-eyebrow, svg.ogre-face #R-eyebrow, svg.ogre-face #L-eyebrow-outline, svg.ogre-face #R-eyebrow-outline,
svg.ogre-face #L-eyelid, svg.ogre-face #R-eyelid,
svg.ogre-face #Mouth, svg.ogre-face #Mouth-outline, svg.ogre-face #fangs, svg.ogre-face #upper-fangs, svg.ogre-face #lower-fangs,
svg.ogre-face #Nose-outline,
svg.ogre-face #mouth-A, svg.ogre-face #mouth-B, svg.ogre-face #mouth-C, svg.ogre-face #mouth-D, svg.ogre-face #mouth-E,
svg.ogre-face #mouth-F, svg.ogre-face #mouth-G, svg.ogre-face #mouth-H, svg.ogre-face #mouth-X {
  transform-box: fill-box;
  transform-origin: center center;
}

/* Decoration art (spec `decorations`; OgreAnimator.decorate switches the
   groups by their visibility attribute). Colour comes from the class, so a
   host recolours with its own rule: the heart takes the pupil slot, the
   blush is fixed pinks. */
svg.ogre-face .fx-heart-pupil { fill: var(--ogre-pupil, #ff4d8d); }
svg.ogre-face .fx-blush-cheek { fill: #ff9ecb; opacity: 0.5; }
svg.ogre-face .fx-blush-line  { fill: none; stroke: #ff6f9c; }
svg.ogre-face .fx-blush-shine { fill: #ffffff; opacity: 0.85; }
/* A hidden heart must not count in its pupil's fill-box: it is larger than
   the pupil, so it would move the pivot above (2.6 units down) for every
   pupil rotate and scale while the decoration is off. */
svg.ogre-face g[visibility="hidden"] > .fx-heart-pupil { display: none; }
