/* Generated by tools/make_characters.py. Expressions and moods for every character.
   The host element (Pip's walking element, or a preview box) carries class "ch", an optional
   mood-<mood> and an optional expr-<name>. Expressions win over moods. */
.ch .faces > *, .ch .mouths > *, .ch .props > * { display: none; }
.ch .faces > .f-open, .ch .mouths > .m-smile { display: inline; }

/* moods (no expression set) */
.ch .bud { display: none; }
.ch.mood-thriving .bud { display: inline; }
.ch.mood-thirsty .mouths > .m-smile { display: none; }
.ch.mood-thirsty .mouths > .m-sad { display: inline; }
.ch.mood-thirsty .leaf-l { transform: rotate(-38deg) translateY(6px); }
.ch.mood-thirsty .leaf-r { transform: rotate(38deg) translateY(6px); }
.ch.mood-thirsty .blob { filter: saturate(.6) brightness(1.03); }
.ch.mood-sleeping .faces > .f-open { display: none; }
.ch.mood-sleeping .faces > .f-closed { display: inline; }
.ch .leaf-l:not([style]) { transform-origin: 61px 16px; }
.ch .leaf-r:not([style]) { transform-origin: 61px 14px; }

/* expressions */
.ch[class*="expr-"] .faces > *, .ch[class*="expr-"] .mouths > * { display: none; }

.ch.expr-happy .faces > .f-open,
.ch.expr-happy .mouths > .m-smile { display: inline; }
.ch.expr-calm .faces > .f-closed,
.ch.expr-calm .mouths > .m-smile { display: inline; }
.ch.expr-wave .faces > .f-joy,
.ch.expr-wave .mouths > .m-grin { display: inline; }
.ch.expr-joy .faces > .f-joy,
.ch.expr-joy .mouths > .m-grin,
.ch.expr-joy .props > .p-sparkle { display: inline; }
.ch.expr-wink .faces > .f-wink,
.ch.expr-wink .mouths > .m-smirk { display: inline; }
.ch.expr-love .faces > .f-joy,
.ch.expr-love .mouths > .m-smile,
.ch.expr-love .props > .p-heart { display: inline; }
.ch.expr-adore .faces > .f-hearts,
.ch.expr-adore .mouths > .m-grin { display: inline; }
.ch.expr-cool .faces > .f-cool,
.ch.expr-cool .mouths > .m-smirk,
.ch.expr-cool .props > .p-sparkle { display: inline; }
.ch.expr-work .faces > .f-focus,
.ch.expr-work .mouths > .m-smile,
.ch.expr-work .props > .p-laptop { display: inline; }
.ch.expr-read .faces > .f-read,
.ch.expr-read .mouths > .m-smile,
.ch.expr-read .props > .p-book { display: inline; }
.ch.expr-think .faces > .f-think,
.ch.expr-think .mouths > .m-flat,
.ch.expr-think .props > .p-question { display: inline; }
.ch.expr-idea .faces > .f-wow,
.ch.expr-idea .mouths > .m-grin,
.ch.expr-idea .props > .p-bulb { display: inline; }
.ch.expr-sleep .faces > .f-closed,
.ch.expr-sleep .mouths > .m-flat,
.ch.expr-sleep .props > .p-zzz { display: inline; }
.ch.expr-party .faces > .f-joy,
.ch.expr-party .mouths > .m-grin,
.ch.expr-party .props > .p-party,
.ch.expr-party .props > .p-sparkle { display: inline; }
.ch.expr-sad .faces > .f-tear,
.ch.expr-sad .mouths > .m-sad { display: inline; }
.ch.expr-wow .faces > .f-wow,
.ch.expr-wow .mouths > .m-o { display: inline; }
.ch.expr-water .faces > .f-open,
.ch.expr-water .mouths > .m-smile,
.ch.expr-water .props > .p-water { display: inline; }
.ch.expr-check .faces > .f-open,
.ch.expr-check .mouths > .m-smile,
.ch.expr-check .props > .p-clip { display: inline; }

/* glowing eyes on a dark visor (Nova) */
.eyes-glow .f-open ellipse, .eyes-glow .f-wink ellipse, .eyes-glow .f-wow ellipse, .eyes-glow .f-think ellipse,
.eyes-glow .f-focus ellipse, .eyes-glow .f-read ellipse, .eyes-glow .f-tear ellipse { fill: #62F2F0; }
.eyes-glow .faces [stroke], .eyes-glow .mouths [stroke] { stroke: #62F2F0; }
.eyes-glow .faces circle[fill="#fff"] { opacity: .55; }
.eyes-glow .m-grin path:first-child, .eyes-glow .m-o { fill: #0F2A30; }
.eyes-glow .faces > *, .eyes-glow .mouths > * { filter: drop-shadow(0 0 2px rgba(98,242,240,.7)); }

/* the waving arm only shows while waving; holding something hides the resting right hand */
.ch .arm { opacity: 0; }
.ch.waving .arm, .ch.expr-wave .arm { opacity: 1; }
.ch.waving .arm-rest, .ch.expr-wave .arm-rest { opacity: 0; }
.ch.expr-water .arm-rest, .ch.expr-check .arm-rest { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ch * { transition: none !important; } }
