:host(:not(:is([hydrated], .hydrated))) {
  @apply not-hydrated;
}


/**
 * @prop --mds-emoji-expression-follow-mouse-head-duration: Sets the duration for the head to follow the mouse
 * @prop --mds-emoji-expression-follow-mouse-traits-duration: Sets the duration for facial traits to follow the mouse
 * @prop --mds-emoji-expression-max-rotation: Public. Sets the maximum rotation angle for the emoji expression
 * @prop --mds-emoji-offset-ears: Sets the positional offset for the ears
 * @prop --mds-emoji-offset-eyebrows: Sets the positional offset for eyebrows
 * @prop --mds-emoji-offset-eyes: Sets the positional offset for eyes
 * @prop --mds-emoji-offset-gadget: Sets the positional offset for gadgets
 * @prop --mds-emoji-offset-hands: Sets the positional offset for the hands
 * @prop --mds-emoji-offset-head: Sets the positional offset for the head
 * @prop --mds-emoji-offset-mouth: Sets the positional offset for the mouth
 * @prop --mds-emoji-perspective: Sets the perspective distance for 3D transformations of the emoji
 */

:host {
  --mds-emoji-expression-follow-mouse-traits-duration: var(--duration-200, 200ms);
  --mds-emoji-expression-follow-mouse-head-duration: var(--duration-300, 300ms);
  --mds-emoji-expression-max-rotation: 16deg;
  --mds-emoji-perspective: --spacing(10000);

  align-items: stretch;
  aspect-ratio: 1/1;
  display: flex;
  height: --spacing(1200);
  justify-content: stretch;
  perspective: var(--mds-emoji-perspective, --spacing(10000));
  perspective-origin: center;
  width: --spacing(1200);
}

svg {
  height: 100%;
  overflow: visible;
  transition: transform var(--duration-200, 200ms) ease-out;
  width: 100%;
}

/**
 * @prop --mds-emoji-mia-eyes-color: Sets the color of Mia's eyes
 * @prop --mds-emoji-mia-hands-color: Sets the color of Mia's hands
 * @prop --mds-emoji-mia-head-color: Sets the color of Mia's head
 * @prop --mds-emoji-mia-head-stroke-color: Sets the stroke color of Mia's head
 * @prop --mds-emoji-mia-head-stroke-width: Sets the stroke width of Mia's head
 * @prop --mds-emoji-mia-mouth-color: Sets the color of Mia's mouth
 */

:host([name='mia']) {
  --mds-emoji-mia-eyes-color: rgb(var(--magma-accent-ai-emphasis-hover, var(--variant-ai-03, 105 49 204)));
  --mds-emoji-mia-hands-color: rgb(var(--magma-accent-ai-emphasis, var(--variant-ai-04, 128 78 232)));
  --mds-emoji-mia-head-color: rgb(var(--magma-accent-ai-surface-hover, var(--variant-ai-08, 214 205 255)));
  --mds-emoji-mia-head-stroke-color: rgb(var(--magma-accent-ai-border, var(--variant-ai-06, 178 157 254)));
  --mds-emoji-mia-head-stroke-width: 0px;
  --mds-emoji-mia-mouth-color: rgb(var(--magma-accent-ai-emphasis, var(--variant-ai-04, 128 78 232)));
  --mds-emoji-offset-eyes: 1px;
  --mds-emoji-offset-gadget: 1px;

  /* stylelint-disable-next-line magma/token-values -- read by mds-emoji.tsx through cssSizeToNumber, which parses a px literal, not the calc() of --spacing() */
  --mds-emoji-offset-hands: 2px;
  --mds-emoji-offset-head: 0;
  --mds-emoji-offset-mouth: 1px;

  container-type: size;
}

/**
 * @prop --mds-emoji-simi-eye: Sets the color of Simi's eyes
 * @prop --mds-emoji-simi-eye-light: Sets the light color of Simi's eyes
 * @prop --mds-emoji-simi-eyebrow: Sets the color of Simi's eyebrows
 * @prop --mds-emoji-simi-gadget: Sets the color of Simi's gadget
 * @prop --mds-emoji-simi-mouth: Sets the color of Simi's mouth
 * @prop --mds-emoji-simi-mouth-teeth: Sets the color of Simi's teeth
 * @prop --mds-emoji-simi-mouth-throat: Sets the color of Simi's throat
 * @prop --mds-emoji-simi-nose-light: Sets the light color of Simi's nose
 * @prop --mds-emoji-simi-nose: Sets the color of Simi's nose
 * @prop --mds-emoji-simi-outline: Sets the color of Simi's outline
 * @prop --mds-emoji-simi-skin-dark: Public, static. Sets the dark shade of Simi's skin
 * @prop --mds-emoji-simi-skin-light: Public, static. Sets the light shade of Simi's skin
 * @prop --mds-emoji-simi-skin: Public, static. Sets the base color of Simi's skin
 * @prop --mds-emoji-offset-hands: Sets the positional offset for the hands
 * @prop --mds-emoji-offset-mouth: Sets the positional offset for the mouth
 * @prop --mds-emoji-offset-gadget: Sets the positional offset for gadgets
 * @prop --mds-emoji-offset-eyebrows: Sets the positional offset for eyebrows
 * @prop --mds-emoji-offset-eyes: Sets the positional offset for eyes
 * @prop --mds-emoji-offset-head: Sets the positional offset for the head
 * @prop --mds-emoji-offset-ears: Sets the positional offset for the ears
 */

:host([name='simi']) {
  --mds-emoji-offset-ears: 0;

  /* stylelint-disable magma/token-values -- read by mds-emoji.tsx through cssSizeToNumber, which parses a px literal, not the calc() of --spacing() */
  --mds-emoji-offset-eyebrows: 10px;
  --mds-emoji-offset-eyes: 7px;
  --mds-emoji-offset-gadget: 14px;
  --mds-emoji-offset-hands: 18px;
  --mds-emoji-offset-head: 5px;
  --mds-emoji-offset-mouth: 16px;

  /* stylelint-enable magma/token-values */

  /* stylelint-disable magma/token-values -- the colours of Simi, drawn in its own palette: an illustration, not roles of the interface */
  --mds-emoji-simi-eye-light: #ffffff;
  --mds-emoji-simi-eye: #40281b;
  --mds-emoji-simi-eyebrow: #feefd8;
  --mds-emoji-simi-gadget: #2b1c15;
  --mds-emoji-simi-mouth-teeth: #ffffff;
  --mds-emoji-simi-mouth-throat: #c3481b;
  --mds-emoji-simi-mouth: #2b1c15;
  --mds-emoji-simi-nose-light: #7e695f;
  --mds-emoji-simi-nose: #2b1c15;
  --mds-emoji-simi-outline: #2b1c15;
  --mds-emoji-simi-skin-dark: #c3481b;
  --mds-emoji-simi-skin-light: #feefd8;
  --mds-emoji-simi-skin: #f36320;

  /* stylelint-enable magma/token-values */
}

