/* Pip characters: shared by the desktop app and the landing page. */
.pip { width: 100%; height: 100%; display: block; overflow: visible; }
.pip .arm, .pip .foot, .pip .deep { fill: var(--deep); }
.pip .g-light { stop-color: var(--light); } .pip .g-body { stop-color: var(--body); } .pip .g-dark { stop-color: var(--dark); }
.pip .g-accent { stop-color: var(--accent); } .pip .g-accent2 { stop-color: var(--accent2); }
.pip .g-cheek { stop-color: var(--cheek); stop-opacity: .8; } .pip .g-cheek0 { stop-color: var(--cheek); stop-opacity: 0; }
.pip .belly { fill: var(--belly); }
.pip .gloss { fill: #fff; opacity: .34; }
.pip .inkfill { fill: var(--ink); }
.pip .nosepink { fill: var(--cheek); }
.pip .shadow { transform-box: fill-box; transform-origin: center; }
.pip .stem { fill: none; stroke: var(--deep); stroke-width: 5; stroke-linecap: round; }
.pip .tail { fill: none; stroke: var(--dark); stroke-width: 13; stroke-linecap: round; transform-box: fill-box; transform-origin: 0 100%; animation: pip-wag 2.8s ease-in-out infinite; }
.pip .gills path { fill: none; stroke-width: 9.5; stroke-linecap: round; }
.pip .gills { transform-box: fill-box; animation: pip-gill 3s ease-in-out infinite; }
.pip .gl { transform-origin: 100% 50%; } .pip .gr { transform-origin: 0 50%; animation-direction: reverse; }
.pip .ear { transform-box: fill-box; transform-origin: 50% 100%; animation: pip-ear 4.6s ease-in-out infinite; }
.pip .er { animation-delay: -.4s; animation-direction: reverse; }
.pip .whisk { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; opacity: .45; }
.pip .m-open, .pip .m-o { fill: var(--ink); }
.pip .eye-open { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: pip-blink 5.4s infinite; }
.pip .glint { fill: var(--glint); }
.pip .eye-happy, .pip .eye-shut, .pip .m-smile { fill: none; stroke: var(--ink); stroke-width: 4.2; stroke-linecap: round; }
.pip .eye-happy, .pip .eye-shut, .pip .m-open, .pip .m-o, .pip .laptop, .pip .zzz, .pip .bang, .pip .spark, .pip .heart { display: none; }
.pip .eyes { transform: translate(calc(var(--lx, 0) * 5px), calc(var(--ly, 0) * 4px)); transition: transform .14s ease-out; }
.pip .wrap { transform-box: fill-box; transform-origin: 50% 100%; animation: pip-breathe 3.6s ease-in-out infinite; }
.pip .arm { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.pip .sprout, .pip .antenna { transform-box: fill-box; transform-origin: 40% 100%; animation: pip-sway 4.2s ease-in-out infinite; }
.pip .lap-screen { fill: #e4dfe6; } .pip .lap-shine { fill: #fff; opacity: .5; } .pip .lap-base { fill: #b5aebb; } .pip .lap-logo { transform-box: fill-box; transform-origin: center; }
.pip .zzz text { font: 800 20px ui-rounded, 'Segoe UI', sans-serif; fill: var(--dark); }
.pip .bang path { stroke: #fff; stroke-width: 5.5; stroke-linecap: round; } .pip .bang .dot { fill: #fff; }
.pip .bang { transform-box: fill-box; transform-origin: 50% 100%; }
.pip .spark { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.pip .heart { fill: #f0567a; transform-box: fill-box; transform-origin: center; }
.pip[data-acc="crown"] .antenna, .pip[data-acc="party"] .antenna { display: none; }

/* glowing eyes on a dark visor or screen */
.pip[data-face="glow"] .cheek, .pip[data-face="glow"] .glint { display: none; }
.pip[data-face="glow"] .eye-open { fill: var(--glow, #b9f0ff); }
.pip[data-face="glow"] .eye-happy, .pip[data-face="glow"] .eye-shut, .pip[data-face="glow"] .glasses { stroke: var(--glow, #b9f0ff); }
.pip[data-mouth="glow"] .m-open, .pip[data-mouth="glow"] .m-o { fill: var(--glow, #b9f0ff); }
.pip[data-mouth="glow"] .m-smile { stroke: var(--glow, #b9f0ff); }
.pip[data-mouth="none"] .m-smile, .pip[data-mouth="none"] .m-open, .pip[data-mouth="none"] .m-o { display: none !important; }
.pip[data-char="titan"], .pip[data-char="vale"] { --glow: var(--accent); }
/* faces drawn on a fixed light surface (skin, skull) keep dark features on every colour */
.pip[data-face="dark"] .eye-open, .pip[data-face="dark"] .m-open, .pip[data-face="dark"] .m-o { fill: #261c2c; }
.pip[data-face="dark"] .glint { fill: #fff; }
.pip[data-face="dark"] .eye-happy, .pip[data-face="dark"] .eye-shut, .pip[data-face="dark"] .m-smile { stroke: #261c2c; }
.pip[data-char="spark"] .glint, .pip[data-char="spark"] .gloss, .pip[data-char="grim"] .glint { display: none; }
.pip[data-char="spark"] .arm { transform-origin: 50% 50%; }
.pip .brow { fill: none; stroke: #261c2c; stroke-width: 4; stroke-linecap: round; }
.pip .chrome { fill: #b4bac8; }
/* Zuck: stands perfectly still, stares, and blinks once in a long while. A slow head scan replaces breathing. */
.pip[data-char="zuck"][data-mood="idle"] .wrap { animation: pip-scan 7s cubic-bezier(.77, 0, .175, 1) infinite; }
.pip[data-char="zuck"][data-face="art"] .eye-open { animation: pip-blink 14s infinite; display: block !important; }
/* one expression for every occasion */
.pip[data-char="zuck"][data-face="art"] .eye-happy, .pip[data-char="zuck"][data-face="art"] .eye-shut, .pip[data-char="zuck"][data-face="art"] .m-open, .pip[data-char="zuck"][data-face="art"] .m-o { display: none !important; }
.pip[data-char="zuck"][data-face="art"] .m-smile { display: block !important; stroke: #b4685c; stroke-width: 1.7; }
.pip[data-char="lucy"][data-face="art"] .m-smile { stroke: #d9483f; stroke-width: 2; }
.pip[data-char="geralt"][data-face="art"] .m-smile { stroke: #7a5a4c; stroke-width: 1.8; }
.pip[data-char="david"][data-face="art"] .m-smile { stroke-width: 2; }
.pip .scarf { stroke-width: 9; }
.pip[data-char="penguin"] .foot { fill: var(--accent2); }
.pip[data-acc="crown"] .tuft, .pip[data-acc="party"] .tuft { display: none; }
.pip[data-acc="headphones"] .ear-bolt { display: none; }

/* drawn characters (data-face="art"): thin features, pupils follow the cursor inside the eye */
.pip .look { transform: translate(calc(var(--lx, 0) * 2.6px), calc(var(--ly, 0) * 2px)); transition: transform .14s ease-out; }
.pip[data-mood="working"] .look { transform: translateY(2.6px); }
.pip[data-face="art"] .eye-happy, .pip[data-face="art"] .eye-shut, .pip[data-face="art"] .m-smile { stroke: #2a1c1e; stroke-width: 2.4; }
.pip[data-face="art"] .m-open, .pip[data-face="art"] .m-o { fill: #5c2a2c; }

/* Pip: the lantern on the tail says what Claude is doing */
.pip .ptail { fill: none; stroke: var(--dark); stroke-width: 8; stroke-linecap: round; }
.pip .lantern { transform-box: fill-box; transform-origin: 0 100%; animation: pip-wag 3.4s ease-in-out infinite; }
.pip .orb { fill: var(--accent); transition: fill .3s ease; }
.pip .orb.halo { opacity: .3; }
.pip .plid { fill: none; stroke: var(--deep); stroke-width: 5.5; stroke-linecap: round; }
.pip .fang { fill: #fff; }
.pip .horn { fill: var(--deep); } .pip .horn-tip { fill: var(--belly); opacity: .55; }
.pip .scarf-end { transform-box: fill-box; transform-origin: 100% 0; animation: pip-sway 3.2s ease-in-out infinite; }
.pip[data-mood="working"] .orb { fill: #ffb23e; } .pip[data-mood="done"] .orb { fill: #4fd78b; }
.pip[data-mood="needs"] .orb, .pip[data-mood="error"] .orb { fill: #ff5a4d; }
.pip[data-mood="sleep"] .orb { opacity: .35; } .pip[data-mood="sleep"] .orb.halo { opacity: .1; }
.pip[data-mood="needs"] .orb.halo, .pip[data-mood="error"] .orb.halo, .pip[data-mood="working"] .orb.halo { animation-duration: .6s; }
.pip[data-mood="done"] .fang, .pip[data-mood="needs"] .fang, .pip[data-mood="error"] .fang, .dragging .pip .fang, .petted .pip .plid, .pip[data-mood="done"] .plid, .pip[data-mood="sleep"] .plid { display: none; }

/* Pip the fox: the tail tip is the status light */
.pip .tip { fill: var(--belly); transition: fill .3s ease; }
.pip[data-mood="working"] .tip { fill: #ffb23e; } .pip[data-mood="done"] .tip { fill: #4fd78b; }
.pip[data-mood="needs"] .tip, .pip[data-mood="error"] .tip { fill: #ff5a4d; }
.pip[data-mood="working"] .plume { animation-duration: 1.2s; }

/* newer pets */
.pip .tent { fill: none; stroke: var(--dark); stroke-width: 11; stroke-linecap: round; }
.pip .suckers { fill: none; stroke: var(--belly); stroke-width: 5; stroke-linecap: round; opacity: .8; }
.pip .snout { fill: var(--dark); }
.pip .grin { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.pip .curl { stroke-width: 10; }
.pip[data-char="duck"] .foot { fill: #f08a2c; }

/* white cheese: anyone can keep a wedge; Simba eats his, three bites and then a fresh one */
.pip .bite { fill: #000; opacity: 0; }
.pip .crumbs { fill: #fffdf6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.pip .nom { opacity: 0; }
.pip[data-mood="working"] .cheese { display: none; }
.pip .shead { transform-box: fill-box; transform-origin: 50% 100%; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .cheese, .pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .arm { animation: pip-lift 3s cubic-bezier(.4, 0, .2, 1) infinite; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .shead { animation: pip-nom 3s cubic-bezier(.4, 0, .2, 1) infinite; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .nom { animation: pip-nom-mouth 3s steps(1) infinite; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .crumbs { animation: pip-crumbs 3s ease-out infinite; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .bite1 { animation: pip-bite1 12s steps(1) infinite; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .bite2 { animation: pip-bite2 12s steps(1) infinite; }
.pip[data-char="simba"][data-acc="cheese"][data-mood="idle"] .bite3 { animation: pip-bite3 12s steps(1) infinite; }
.petted .pip .cheese, .petted .pip .shead, .petted .pip .arm, .dragging .pip .cheese, .dragging .pip .shead { animation: none !important; }
.dragging .pip .cheese { display: none; }

/* Simba */
.pip .plume { transform-box: fill-box; transform-origin: 0 100%; animation: pip-wag 3.8s ease-in-out infinite; }
.pip .wh { fill: none; stroke: #fffaf2; stroke-width: 1.5; stroke-linecap: round; filter: drop-shadow(0 .5px .4px rgba(40, 25, 20, .6)); }
.pip .tongue { fill: #f08b9b; display: none; }
.pip[data-char="simba"] .eye-happy, .pip[data-char="simba"] .eye-shut { stroke: #ecdcca; stroke-width: 2.8; }
.pip[data-char="simba"] .m-smile { stroke: #150e0d; stroke-width: 1.8; }
.pip[data-char="simba"] .m-open, .pip[data-char="simba"] .m-o { fill: #2c0f13; }
.pip[data-char="simba"][data-mood="done"] .tongue, .petted .pip[data-char="simba"] .tongue { display: block; }
.pip[data-char="simba"] .lid { transform: translateY(-9px); animation: pip-judge 9s ease-in-out infinite; }
.pip[data-char="simba"][data-mood="working"] .lid { animation: none; transform: translateY(-2px); }
.pip[data-char="simba"][data-mood="needs"] .lid, .pip[data-char="simba"][data-mood="error"] .lid, .dragging .pip[data-char="simba"] .lid { animation: none; }
.pip[data-mood="done"] .plume { animation-duration: .5s; }
.petted .pip[data-char="simba"] .m-smile { display: none; } .petted .pip[data-char="simba"] .m-open { display: block; }

/* figures: arms hang from the shoulder and swing from there */
.pip[data-kind="figure"] .arm { transform-origin: 50% 9%; fill: var(--dark); }
.pip[data-kind="figure"] .wrap { animation-name: pip-stand; }
.pip[data-kind="figure"][data-mood="working"] .arm-l { animation: pip-fig-tap-l .32s ease-in-out infinite alternate; }
.pip[data-kind="figure"][data-mood="working"] .arm-r { animation: pip-fig-tap-r .32s ease-in-out infinite alternate-reverse; }
.pip[data-kind="figure"][data-mood="working"] .wrap { animation: pip-type .46s ease-in-out infinite; }
.pip[data-kind="figure"][data-mood="done"] .arm-l { transform: rotate(152deg); }
.pip[data-kind="figure"][data-mood="done"] .arm-r { transform: rotate(-152deg); }
.pip[data-kind="figure"][data-mood="done"] .wrap { animation: pip-hop 1.05s cubic-bezier(.3, 0, .4, 1) infinite; }
.pip[data-kind="figure"][data-mood="needs"] .arm-r, .pip[data-kind="figure"][data-mood="error"] .arm-r { animation: pip-fig-wave .5s ease-in-out infinite alternate; }
.pip[data-kind="figure"][data-mood="needs"] .wrap, .pip[data-kind="figure"][data-mood="error"] .wrap { animation: pip-tilt 1.2s ease-in-out infinite; }
.pip[data-kind="figure"][data-mood="sleep"] .wrap { animation: pip-stand 5.5s ease-in-out infinite; }
.petted .pip[data-kind="figure"] .wrap { animation: pip-squish .9s cubic-bezier(.3, 1.5, .5, 1) 1; }

/* per-character idle */
.pip[data-char="ghost"] .wrap { animation: pip-float 3.2s ease-in-out infinite; }
.pip[data-char="ghost"] .shadow { animation: pip-shadow 3.2s ease-in-out infinite; }
.pip[data-char="ghost"] .m-smile { display: none; } .pip[data-char="ghost"] .m-o { display: block; }
.pip .bulb { transform-box: fill-box; transform-origin: center; animation: pip-bulb 2.4s ease-in-out infinite; }

/* working: head down, laptop out, hands peeking over the lid */
.pip[data-mood="working"] .laptop { display: block; }
.pip[data-mood="working"] .wrap { animation: pip-type .46s ease-in-out infinite; }
.pip[data-mood="working"] .eyes { transform: translateY(6px); }
.pip[data-mood="working"] .eye-open { animation: none; transform: scaleY(.72); }
.pip[data-mood="working"] .arm-l { animation: pip-tap-l .32s ease-in-out infinite alternate; }
.pip[data-mood="working"] .arm-r { animation: pip-tap-r .32s ease-in-out infinite alternate-reverse; }
.pip[data-mood="working"] .lap-logo { animation: pip-bulb 1.2s ease-in-out infinite; }
.pip[data-mood="done"] .ear { animation-duration: .5s; }
.pip[data-mood="working"] .bulb { animation-duration: .5s; }
.pip[data-mood="working"] .tail { animation-duration: 1s; }

/* done: hop, arms up, sparkles */
.pip[data-mood="done"] .wrap { animation: pip-hop 1.05s cubic-bezier(.3, 0, .4, 1) infinite; }
.pip[data-mood="done"] .shadow { animation: pip-shadow 1.05s cubic-bezier(.3, 0, .4, 1) infinite; }
.pip[data-mood="done"] .eye-open, .pip[data-mood="done"] .m-smile, .pip[data-mood="done"] .m-o { display: none; }
.pip[data-mood="done"] .eye-happy, .pip[data-mood="done"] .m-open { display: block; }
.pip[data-mood="done"] .arm-l { transform: translate(-8px, -36px) rotate(-28deg); }
.pip[data-mood="done"] .arm-r { transform: translate(8px, -36px) rotate(28deg); }
.pip[data-mood="done"] .spark { display: block; animation: pip-spark 1.4s ease-out infinite; }
.pip[data-mood="done"] .spark1 { animation-delay: .2s; } .pip[data-mood="done"] .spark2 { animation-delay: .45s; }
.pip[data-mood="done"] .spark3 { animation-delay: .7s; } .pip[data-mood="done"] .spark4 { animation-delay: .95s; }
.pip[data-mood="done"] .gills, .pip[data-mood="done"] .tail { animation-duration: .5s; }

/* needs you (and errors): wave, tilt, bang */
.pip[data-mood="needs"] .wrap, .pip[data-mood="error"] .wrap { animation: pip-tilt 1.2s ease-in-out infinite; }
.pip[data-mood="needs"] .bang, .pip[data-mood="error"] .bang { display: block; animation: pip-bang .6s cubic-bezier(.3, 0, .4, 1) infinite alternate; }
.pip[data-mood="needs"] .m-smile, .pip[data-mood="error"] .m-smile { display: none; }
.pip[data-mood="needs"] .m-o, .pip[data-mood="error"] .m-o { display: block; }
.pip[data-mood="needs"] .arm-r, .pip[data-mood="error"] .arm-r { animation: pip-wave .5s ease-in-out infinite alternate; }

/* sleep */
.pip[data-mood="sleep"] .wrap { animation-duration: 5.5s; }
.pip[data-mood="sleep"] .eye-open { display: none; } .pip[data-mood="sleep"] .eye-shut { display: block; }
.pip[data-mood="sleep"] .eyes { transform: translateY(3px); }
.pip[data-mood="sleep"] .zzz { display: block; }
.pip[data-mood="sleep"] .zzz text { animation: pip-zzz 3s ease-in-out infinite; }
.pip[data-mood="sleep"] .zzz text:nth-child(2) { animation-delay: .5s; } .pip[data-mood="sleep"] .zzz text:nth-child(3) { animation-delay: 1s; }
.pip[data-mood="sleep"] .sprout { animation-duration: 8s; }

/* petted (class on the mount element) */
.petted .pip .wrap { animation: pip-squish .9s cubic-bezier(.3, 1.5, .5, 1) 1; }
.petted .pip .eye-open, .petted .pip .eye-shut { display: none; } .petted .pip .eye-happy { display: block; }
.petted .pip .heart { display: block; animation: pip-heart .95s ease-out 1 both; }
.petted .pip .heart1 { animation-delay: .12s; } .petted .pip .heart2 { animation-delay: .24s; }

@keyframes pip-lift { 0%, 18%, 54%, 100% { transform: translateY(0); } 30%, 43% { transform: translateY(-20px); } }
@keyframes pip-nom { 0%, 26%, 52%, 100% { transform: none; } 34% { transform: translateY(8px) rotate(-3deg); } 40% { transform: translateY(11px) rotate(2deg); } 45% { transform: translateY(5px); } 60%, 72%, 84% { transform: scale(1.025, .972); } 66%, 78%, 90% { transform: none; } }
@keyframes pip-nom-mouth { 0%, 42%, 100% { opacity: 0; } 32% { opacity: 1; } }
@keyframes pip-crumbs { 0%, 39% { opacity: 0; transform: none; } 41% { opacity: 1; transform: none; } 62%, 100% { opacity: 0; transform: translateY(16px) scale(1.5); } }
@keyframes pip-bite1 { 0%, 85%, 100% { opacity: 0; } 10% { opacity: 1; } }
@keyframes pip-bite2 { 0%, 85%, 100% { opacity: 0; } 35% { opacity: 1; } }
@keyframes pip-bite3 { 0%, 85%, 100% { opacity: 0; } 60% { opacity: 1; } }
@keyframes pip-judge { 0%, 58%, 100% { transform: translateY(-9px); } 66%, 88% { transform: translateY(1.5px); } }
/* hello and goodbye (class on the mount element): a wave and a grin */
.hello .pip .arm-r, .bye .pip .arm-r { animation: pip-wave .4s ease-in-out infinite alternate !important; }
.hello .pip[data-kind="figure"] .arm-r, .bye .pip[data-kind="figure"] .arm-r { animation-name: pip-fig-wave !important; }
.hello .pip .wrap, .bye .pip .wrap { animation: pip-tilt 1s ease-in-out infinite; }
.hello .pip .m-smile, .bye .pip .m-smile, .hello .pip .laptop, .bye .pip .laptop, .hello .pip .zzz, .bye .pip .zzz, .hello .pip .eye-shut, .bye .pip .eye-shut { display: none !important; }
.hello .pip .m-open, .bye .pip .m-open, .hello .pip .eye-open, .bye .pip .eye-open { display: block !important; }

@keyframes pip-breathe { 50% { transform: scale(1.03, .97); } }
@keyframes pip-blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
@keyframes pip-sway { 50% { transform: rotate(9deg); } }
@keyframes pip-scan { 0%, 40%, 100% { transform: rotate(0); } 50%, 62% { transform: rotate(-3deg); } 72%, 84% { transform: rotate(3deg); } }
@keyframes pip-stand { 50% { transform: scale(1.012, .988); } }
@keyframes pip-fig-tap-l { from { transform: rotate(-30deg); } to { transform: rotate(-42deg); } }
@keyframes pip-fig-tap-r { from { transform: rotate(30deg); } to { transform: rotate(42deg); } }
@keyframes pip-fig-wave { from { transform: rotate(-132deg); } to { transform: rotate(-164deg); } }
@keyframes pip-ear { 50% { transform: rotate(6deg); } }
@keyframes pip-wag { 50% { transform: rotate(14deg); } }
@keyframes pip-gill { 50% { transform: rotate(7deg) scaleX(.94); } }
@keyframes pip-float { 50% { transform: translateY(-9px); } }
@keyframes pip-shadow { 50% { transform: scale(.72); opacity: .07; } }
@keyframes pip-bulb { 50% { opacity: .35; transform: scale(.85); } }
@keyframes pip-type { 50% { transform: scale(1.012, .985) translateY(1px); } }
@keyframes pip-tap-l { from { transform: translate(27px, 13px); } to { transform: translate(27px, 4px); } }
@keyframes pip-tap-r { from { transform: translate(-27px, 13px); } to { transform: translate(-27px, 4px); } }
@keyframes pip-hop { 0%, 100% { transform: scale(1.08, .9); } 18% { transform: scale(.94, 1.08) translateY(-6px); } 48% { transform: scale(1, 1) translateY(-26px); } 82% { transform: scale(.96, 1.05) translateY(-4px); } }
@keyframes pip-spark { 0% { transform: scale(.2) rotate(0); opacity: 0; } 30% { transform: scale(1.2) rotate(40deg); opacity: 1; } 100% { transform: scale(.2) rotate(120deg); opacity: 0; } }
@keyframes pip-tilt { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pip-bang { from { transform: translateY(0) scale(1); } to { transform: translateY(-9px) scale(1.08); } }
@keyframes pip-wave { from { transform: translate(8px, -34px) rotate(8deg); } to { transform: translate(8px, -34px) rotate(42deg); } }
@keyframes pip-zzz { 0% { opacity: 0; transform: translate(-6px, 8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(8px, -12px); } }
@keyframes pip-squish { 0% { transform: scale(1, 1); } 25% { transform: scale(1.16, .8); } 60% { transform: scale(.95, 1.07); } 100% { transform: scale(1, 1); } }
@keyframes pip-heart { 0% { transform: translateY(14px) scale(.2); opacity: 0; } 35% { transform: translateY(0) scale(1.25); opacity: 1; } 100% { transform: translateY(-26px) scale(.8); opacity: 0; } }

/* picked up and carried (class on the mount element): dangle from the top, limbs up, legs kicking */
.dragging .pip .wrap { animation: none !important; transform-origin: 50% 8%; transform: rotate(calc(var(--sway, 0) * 1deg)) !important; transition: transform .2s ease-out; }
.dragging .pip .laptop, .dragging .pip .zzz, .dragging .pip .m-smile, .dragging .pip .eye-shut, .dragging .pip .eye-happy { display: none !important; }
.dragging .pip .eye-open { display: block !important; animation: none !important; transform: scale(1.18) !important; }
.dragging .pip .m-o { display: block; }
.dragging .pip .arm-l { animation: none !important; transform: translate(-8px, -34px) rotate(-24deg) !important; }
.dragging .pip .arm-r { animation: none !important; transform: translate(8px, -34px) rotate(24deg) !important; }
.dragging .pip[data-kind="figure"] .arm-l { transform: rotate(158deg) !important; }
.dragging .pip[data-kind="figure"] .arm-r { transform: rotate(-158deg) !important; }
.dragging .pip .foot { transform-box: fill-box; transform-origin: 50% 0; animation: pip-kick .34s ease-in-out infinite alternate; }
.dragging .pip .foot + .foot { animation-direction: alternate-reverse; }
.dragging .pip .shadow { opacity: .35; transform: scale(.55); }
.landed .pip .wrap { animation: pip-squish .55s cubic-bezier(.3, 1.5, .5, 1) 1 !important; }
@keyframes pip-kick { from { transform: translateY(0) rotate(-14deg); } to { transform: translateY(4px) rotate(14deg); } }

@media (prefers-reduced-motion: reduce) {
  .pip *, .petted .pip * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
