/* Original, full-body soft cartoon cast. Fixed 128 × 150 drawing, safely scalable. */

.tk-person {
  --tp-fur: #fff9e9;
  --tp-fur-shade: #f2e4c9;
  --tp-edge: #d9c3a7;
  --tp-ink: #65534c;
  --tp-clothes: #fff5dc;
  --tp-clothes-shade: #e9d5ae;
  --tp-apron: #dfb9a2;
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  flex-shrink: 0;
  width: calc(128px * var(--person-scale,1));
  height: calc(150px * var(--person-scale,1));
  color: var(--tp-ink);
  overflow: visible;
  isolation: isolate;
  pointer-events: none;
}

.tk-person .tk-person-canvas {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 128px;
  height: 150px;
  transform: scale(var(--person-scale,1));
  transform-origin: left top;
}

.tk-person .tk-person-canvas span {
  position: absolute;
  box-sizing: border-box;
}

.tk-person .tp-shadow {
  left: 25px;
  bottom: 0;
  width: 80px;
  height: 10px;
  background: #99857222;
  border-radius: 50%;
  filter: blur(1px);
  z-index: 0;
}

.tk-person .tp-tail {
  display: none;
}

.tk-person .tp-torso {
  left: 34px;
  top: 82px;
  width: 61px;
  height: 57px;
  border: 1.7px solid var(--tp-edge);
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(110deg,var(--tp-clothes) 20%,var(--tp-clothes-shade));
  box-shadow: inset 4px 0 #fffaf155;
  z-index: 3;
}

.tk-person .tp-shirt-seam {
  left: 28px;
  top: 9px;
  bottom: 6px;
  width: 1px;
  background: #cbbda466;
}

.tk-person .tp-button {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ba9b7f;
  left: 24px;
  top: 21px;
}

.tk-person .tp-button.two {
  top: 31px;
}

.tk-person .tp-leg {
  top: 128px;
  width: 17px;
  height: 16px;
  border: 1.5px solid #d6bea0;
  border-radius: 5px 5px 7px 7px;
  background: #fff1d4;
  z-index: 2;
}

.tk-person .tp-leg.left {
  left: 44px;
  transform: rotate(4deg);
}

.tk-person .tp-leg.right {
  left: 71px;
  transform: rotate(-4deg);
}

.tk-person .tp-shoe {
  top: 139px;
  width: 26px;
  height: 9px;
  background: #e9bd85;
  border: 1.5px solid #cfa472;
  border-radius: 60% 60% 35% 35%;
  z-index: 4;
  box-shadow: inset 0 2px #f7d5a3;
}

.tk-person .tp-shoe.left {
  left: 35px;
  transform: rotate(-5deg);
}

.tk-person .tp-shoe.right {
  left: 72px;
  transform: rotate(5deg);
}

.tk-person .tp-apron {
  left: 41px;
  top: 96px;
  width: 48px;
  height: 40px;
  border: 1.5px solid #c8a68f;
  border-radius: 7px 7px 15px 15px;
  background: linear-gradient(100deg,#eaceb7,var(--tp-apron));
  z-index: 5;
  box-shadow: inset 3px 0 #f7e6d333;
}

.tk-person .tp-apron-strap {
  top: -13px;
  width: 7px;
  height: 20px;
  border: 1.2px solid #c8a68f;
  background: var(--tp-apron);
  border-radius: 4px;
}

.tk-person .tp-apron-strap.left {
  left: 2px;
  transform: rotate(-8deg);
}

.tk-person .tp-apron-strap.right {
  right: 2px;
  transform: rotate(8deg);
}

.tk-person .tp-pocket {
  left: 12px;
  top: 14px;
  width: 23px;
  height: 16px;
  border: 1px solid #c6a68b;
  border-radius: 3px 3px 8px 8px;
  background: #f0d6ba;
  box-shadow: inset 0 2px #fbe9ce;
}

.tk-person .tp-patch {
  left: 20px;
  top: 17px;
  width: 7px;
  height: 6px;
  border-radius: 50%;
  background: #d7af87;
  box-shadow: 0 1px #bd9772;
}

.tk-person .tp-arm {
  left: 23px;
  top: 87px;
  width: 19px;
  height: 39px;
  z-index: 6;
  transform-origin: 9px 8px;
  transform: rotate(12deg);
  border: 1.5px solid var(--tp-edge);
  border-radius: 10px 10px 12px 12px;
  background: var(--tp-fur);
  box-shadow: inset -3px -1px var(--tp-fur-shade);
}

.tk-person .tp-arm.right {
  left: 87px;
  transform: rotate(-12deg);
}

.tk-person .tp-sleeve {
  left: -2px;
  top: -2px;
  width: 20px;
  height: 18px;
  border: 1.5px solid var(--tp-edge);
  border-radius: 10px 10px 4px 4px;
  background: var(--tp-clothes);
  box-shadow: inset -3px 0 var(--tp-clothes-shade);
}

.tk-person .tp-hand {
  left: 0;
  bottom: -2px;
  width: 17px;
  height: 17px;
  border: 1.2px solid var(--tp-edge);
  border-radius: 48% 48% 45% 45%;
  background: var(--tp-fur);
  box-shadow: inset -2px -1px var(--tp-fur-shade);
}

.tk-person .tp-hand:after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 3px;
  width: 6px;
  height: 3px;
  border-bottom: 1px solid #cdbba766;
  border-radius: 50%;
}

.tk-person .tp-head-group {
  position: absolute;
  inset: 0;
  z-index: 7;
  transform-origin: 64px 75px;
}

.tk-person .tp-head {
  left: 27px;
  top: 29px;
  width: 76px;
  height: 62px;
  border: 1.7px solid var(--tp-edge);
  border-radius: 49% 49% 43% 43%;
  background: radial-gradient(ellipse at 37% 30%,var(--tp-fur) 49%,var(--tp-fur-shade) 100%);
  box-shadow: inset -3px -2px #d8c5a822;
}

.tk-person .tp-eye {
  top: 53px;
  left: 46px;
  width: 6px;
  height: 8px;
  background: var(--tp-ink);
  border-radius: 50%;
  z-index: 4;
  box-shadow: inset 1px 1px #fff9ec55;
}

.tk-person .tp-eye.right {
  left: 77px;
}

.tk-person .tp-eye:after {
  content: "";
  position: absolute;
  left: 1px;
  top: 1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fffcf3;
}

.tk-person .tp-brow {
  left: 44px;
  top: 46px;
  width: 10px;
  height: 3px;
  background: #9c8268;
  border-radius: 50%;
  transform: rotate(-8deg);
  z-index: 4;
}

.tk-person .tp-brow.right {
  left: 75px;
  transform: rotate(8deg);
}

.tk-person .tp-cheek {
  left: 33px;
  top: 65px;
  width: 15px;
  height: 8px;
  border-radius: 50%;
  background: #efc1b5;
  z-index: 4;
  opacity: .88;
}

.tk-person .tp-cheek.right {
  left: 82px;
}

.tk-person .tp-muzzle {
  left: 51px;
  top: 65px;
  width: 29px;
  height: 14px;
  background: linear-gradient(#f3d291,#e7bc78);
  border: 1.3px solid #cfa86f;
  border-radius: 50%;
  z-index: 3;
  box-shadow: inset 1px 2px #ffe8b166;
}

.tk-person .tp-mouth {
  left: 59px;
  top: 70px;
  width: 14px;
  height: 5px;
  border-bottom: 1.6px solid #bb925e;
  border-radius: 0 0 50% 50%;
  z-index: 5;
}

.tk-person .tp-nose {
  display: none;
}

.tk-person .tp-mask,.tk-person .tp-ear,.tk-person .tp-bag-strap,.tk-person .tp-satchel {
  display: none;
}

.tk-person .tp-hat {
  left: 36px;
  top: 3px;
  width: 59px;
  height: 33px;
  transform: rotate(5deg);
  z-index: 6;
}

.tk-person .tp-hat-puff {
  left: -5px;
  top: 5px;
  width: 28px;
  height: 24px;
  border: 1.5px solid #e3d7bf;
  border-radius: 50%;
  background: #fffdf4;
  z-index: 1;
}

.tk-person .tp-hat-puff.p2 {
  left: 13px;
  top: -1px;
  width: 34px;
  height: 30px;
  z-index: 2;
}

.tk-person .tp-hat-puff.p3 {
  left: 38px;
  top: 7px;
  width: 25px;
  height: 22px;
}

.tk-person .tp-hat-band {
  left: 4px;
  bottom: -3px;
  width: 52px;
  height: 16px;
  border: 1.5px solid #dccdb2;
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(#fffdf4,#f3e9d0);
  z-index: 3;
  box-shadow: inset 0 3px #fffdf6;
}

.tk-person .tp-hat-tip {
  display: none;
}

.tk-person .tp-neckerchief {
  left: 43px;
  top: 83px;
  width: 44px;
  height: 9px;
  border: 1.3px solid #c99186;
  background: #dcaaa0;
  border-radius: 6px;
  z-index: 8;
  transform: rotate(-2deg);
}

.tk-person .tp-neckerchief:before,.tk-person .tp-neckerchief:after {
  content: "";
  position: absolute;
  left: 26px;
  top: 4px;
  width: 9px;
  height: 15px;
  background: #d6a197;
  border: 1px solid #c38e85;
  border-radius: 2px 2px 5px 5px;
  transform: rotate(18deg);
}

.tk-person .tp-neckerchief:after {
  left: 32px;
  top: 3px;
  transform: rotate(-20deg);
  height: 12px;
}

.tk-person .tp-neckerchief>span {
  left: 25px;
  top: 1px;
  width: 9px;
  height: 8px;
  border-radius: 50%;
  background: #c98f86;
  border: 1px solid #bd837b;
  z-index: 2;
}

.tk-person .tp-prop {
  position: absolute;
  z-index: 10;
  pointer-events: none;
}

.tk-person .tp-kitchen {
  display: none;
  left: 41px;
  top: 103px;
  width: 55px;
  height: 34px;
}

.tk-person .tp-bowl {
  left: 0;
  top: 15px;
  width: 46px;
  height: 22px;
  border: 1.5px solid #9ab8ad;
  border-radius: 4px 4px 23px 23px;
  background: linear-gradient(100deg,#d3e5d8,#b7d1c4);
  box-shadow: inset 2px 0 #e6f1de;
}

.tk-person .tp-bowl:before {
  content: "";
  position: absolute;
  left: -2px;
  top: -4px;
  width: 47px;
  height: 9px;
  border: 1.5px solid #a1beb2;
  border-radius: 50%;
  background: #f0ead4;
}

.tk-person .tp-spoon {
  left: 35px;
  top: -11px;
  width: 5px;
  height: 36px;
  border: 1px solid #ae8b6d;
  border-radius: 4px;
  background: #cfab83;
  transform: rotate(28deg);
  transform-origin: bottom center;
}

.tk-person .tp-spoon>span {
  left: -4px;
  top: -9px;
  width: 12px;
  height: 16px;
  border: 1.2px solid #af8d70;
  border-radius: 50%;
  background: #d5b38d;
  box-shadow: inset 2px 2px #e9cb9e;
}

.tk-person .tp-reaction {
  opacity: 0;
  left: 13px;
  top: 31px;
  width: 5px;
  height: 13px;
  border-radius: 3px;
  background: #edcf91;
  transform: rotate(-30deg);
  z-index: 15;
}

.tk-person .tp-reaction.r2 {
  left: 113px;
  top: 36px;
  transform: rotate(28deg);
  height: 9px;
}

/* 阿禾: caramel goose, bakery apron, rolled sleeves and bread tray. */

.tk-person[data-character="baker"] {
  --tp-fur: #f6deb4;
  --tp-fur-shade: #e1bf8c;
  --tp-edge: #c9a77c;
  --tp-clothes: #f4ecd5;
  --tp-clothes-shade: #e5d5ae;
  --tp-apron: #c59e79;
}

.tk-person[data-character="baker"] .tp-head {
  top: 31px;
  height: 60px;
}

.tk-person[data-character="baker"] .tp-hat {
  left: 33px;
  top: 13px;
  width: 65px;
  height: 22px;
  transform: rotate(-7deg);
}

.tk-person[data-character="baker"] .tp-hat-puff {
  display: none;
}

.tk-person[data-character="baker"] .tp-hat-band {
  width: 63px;
  height: 22px;
  border-radius: 50% 50% 7px 7px;
  background: #f3e7c9;
  border-color: #d2b995;
}

.tk-person[data-character="baker"] .tp-hat-band:after {
  content: "";
  position: absolute;
  left: 22px;
  top: 5px;
  width: 18px;
  height: 8px;
  border-radius: 50%;
  background: #d7b78a;
  box-shadow: inset 0 2px #e9cba0;
  transform: rotate(-12deg);
}

.tk-person[data-character="baker"] .tp-neckerchief {
  background: #b3c1a0;
  border-color: #95a88d;
}

.tk-person[data-character="baker"] .tp-neckerchief:before,.tk-person[data-character="baker"] .tp-neckerchief:after,.tk-person[data-character="baker"] .tp-neckerchief>span {
  background: #a2b593;
  border-color: #8fa381;
}

.tk-person[data-character="baker"] .tp-apron {
  background: linear-gradient(100deg,#d6b491,#be966f);
  border-color: #af8966;
}

.tk-person[data-character="baker"] .tp-pocket {
  background: #d9b591;
  border-color: #b3906d;
}

.tk-person[data-character="baker"] .tp-patch {
  left: 5px;
  top: 9px;
  width: 4px;
  height: 3px;
  background: #fff1d4;
  box-shadow: 6px 4px #fff1d4,3px 12px #f3dec0;
  opacity: .8;
}

.tk-person .tp-tray {
  left: 22px;
  top: 111px;
  width: 89px;
  height: 16px;
  transform: rotate(-2deg);
}

.tk-person .tp-tray-rim {
  left: 0;
  top: 8px;
  width: 89px;
  height: 9px;
  border: 1.5px solid #9db4a6;
  border-radius: 50% 50% 8px 8px;
  background: #c8d7c6;
  box-shadow: 0 2px #a7b6a3;
}

.tk-person .tp-bun {
  left: 8px;
  top: -7px;
  width: 29px;
  height: 20px;
  border: 1.5px solid #c5a06d;
  border-radius: 50% 50% 30% 30%;
  background: linear-gradient(#f9e5b3,#dbb980);
  transform: rotate(-9deg);
  z-index: 2;
  box-shadow: inset 0 3px #fff0c9;
}

.tk-person .tp-bun:after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 3px;
  height: 10px;
  border-radius: 3px;
  background: #fff2cc;
  transform: rotate(19deg);
  box-shadow: 7px 0 #fff2cc;
}

.tk-person .tp-bun.b2 {
  left: 32px;
  top: -9px;
  transform: rotate(3deg);
  z-index: 3;
}

.tk-person .tp-bun.b3 {
  left: 57px;
  top: -5px;
  transform: rotate(10deg);
}

/* 林叔: round raccoon, olive overalls, glasses, striped tail and a warm cup. */

.tk-person[data-character="raccoon"] {
  --tp-fur: #d9cec0;
  --tp-fur-shade: #b8aa98;
  --tp-edge: #a59b8d;
  --tp-ink: #4f4c46;
  --tp-clothes: #f2e9d5;
  --tp-clothes-shade: #ded0b7;
  --tp-apron: #a7b18b;
}

.tk-person[data-character="raccoon"] .tp-head {
  left: 25px;
  top: 35px;
  width: 80px;
  height: 59px;
  border-radius: 48% 48% 43% 43%;
}

.tk-person[data-character="raccoon"] .tp-ear {
  display: block;
  left: 24px;
  top: 25px;
  width: 24px;
  height: 27px;
  border: 1.5px solid #a49786;
  border-radius: 50%;
  background: #b7aa99;
  box-shadow: inset 0 0 0 5px #dcd0be;
}

.tk-person[data-character="raccoon"] .tp-ear.right {
  left: 83px;
}

.tk-person[data-character="raccoon"] .tp-mask {
  display: block;
  left: 31px;
  top: 51px;
  width: 30px;
  height: 19px;
  background: #968b7b;
  border-radius: 50%;
  transform: rotate(-12deg);
  z-index: 2;
}

.tk-person[data-character="raccoon"] .tp-mask.right {
  left: 70px;
  transform: rotate(12deg);
}

.tk-person[data-character="raccoon"] .tp-muzzle {
  left: 46px;
  top: 65px;
  width: 38px;
  height: 22px;
  background: #f6ead3;
  border-color: #c5baa5;
  border-radius: 50%;
  box-shadow: none;
}

.tk-person[data-character="raccoon"] .tp-nose {
  display: block;
  left: 60px;
  top: 68px;
  width: 11px;
  height: 7px;
  border: 1px solid #655d50;
  border-radius: 45% 45% 60% 60%;
  background: #786e5f;
  z-index: 5;
}

.tk-person[data-character="raccoon"] .tp-mouth {
  left: 59px;
  top: 76px;
  width: 14px;
  border-color: #91816c;
}

.tk-person[data-character="raccoon"] .tp-cheek {
  top: 70px;
  background: #d9b5a4;
  width: 11px;
  height: 6px;
}

.tk-person[data-character="raccoon"] .tp-cheek.right {
  left: 87px;
}

.tk-person[data-character="raccoon"] .tp-brow {
  top: 46px;
  background: #7f7566;
}

.tk-person[data-character="raccoon"] .tp-eye {
  top: 56px;
}

.tk-person[data-character="raccoon"] .tp-hat {
  display: none;
}

.tk-person[data-character="raccoon"] .tp-glasses {
  left: 37px;
  top: 49px;
  width: 23px;
  height: 23px;
  border: 1.6px solid #b29169;
  border-radius: 50%;
  z-index: 7;
  background: #fffbe010;
  box-shadow: inset 0 1px #f9e3b866;
}

.tk-person[data-character="raccoon"] .tp-glasses.right {
  left: 70px;
}

.tk-person[data-character="raccoon"] .tp-glasses-bridge {
  left: 59px;
  top: 57px;
  width: 12px;
  height: 4px;
  border-top: 1.6px solid #b29169;
  border-radius: 50%;
  z-index: 7;
}

.tk-person[data-character="raccoon"] .tp-neckerchief {
  display: none;
}

.tk-person[data-character="raccoon"] .tp-apron {
  left: 37px;
  top: 96px;
  width: 57px;
  height: 42px;
  border-radius: 7px 7px 13px 13px;
  background: linear-gradient(110deg,#b8c29a,#99a67f);
  border-color: #8b9876;
}

.tk-person[data-character="raccoon"] .tp-apron-strap {
  width: 8px;
  background: #a8b58b;
  border-color: #8e9c76;
}

.tk-person[data-character="raccoon"] .tp-apron-strap:after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #e6d5aa;
  border: 1px solid #a59772;
}

.tk-person[data-character="raccoon"] .tp-pocket {
  left: 16px;
  top: 15px;
  background: #b4bf95;
  border-color: #8fa078;
  box-shadow: inset 0 2px #cbd5af;
}

.tk-person[data-character="raccoon"] .tp-patch {
  display: none;
}

.tk-person[data-character="raccoon"] .tp-leg {
  background: #a6b18a;
  border-color: #8b9877;
}

.tk-person[data-character="raccoon"] .tp-shoe {
  background: #9b8c74;
  border-color: #827660;
  box-shadow: inset 0 2px #b4a58a;
}

.tk-person[data-character="raccoon"] .tp-tail {
  display: block;
  left: 88px;
  top: 103px;
  width: 34px;
  height: 37px;
  border: 1.5px solid #9a8d7c;
  border-radius: 50% 50% 55% 20%;
  background: repeating-linear-gradient(155deg,#b8aa95 0 8px,#8f8472 9px 15px);
  transform: rotate(-22deg);
  z-index: 1;
}

.tk-person .tp-cup {
  left: 48px;
  top: 105px;
  width: 38px;
  height: 27px;
}

.tk-person .tp-cup-body {
  left: 0;
  top: 0;
  width: 30px;
  height: 27px;
  border: 1.5px solid #b3c6ba;
  border-radius: 5px 5px 12px 12px;
  background: linear-gradient(110deg,#fff9e7,#d9e9da);
  box-shadow: inset 3px 0 #fffdf1;
  z-index: 2;
}

.tk-person .tp-cup-handle {
  right: 0;
  top: 5px;
  width: 14px;
  height: 15px;
  border: 4px solid #b9cdbf;
  border-radius: 4px 9px 9px 4px;
}

.tk-person .tp-cup-top {
  left: 0;
  top: -3px;
  width: 30px;
  height: 8px;
  border: 1.5px solid #bdcdbd;
  border-radius: 50%;
  background: #e8d3ac;
  z-index: 3;
}

/* 小满: white theatre cat, lilac beret, bow tie, script and cross-body satchel. */

.tk-person[data-character="cat"] {
  --tp-fur: #fffaf0;
  --tp-fur-shade: #eae4d4;
  --tp-edge: #cfc7b6;
  --tp-clothes: #ded2e4;
  --tp-clothes-shade: #c4b4cf;
  --tp-apron: #bca6c9;
}

.tk-person[data-character="cat"] .tp-head {
  left: 27px;
  top: 34px;
  width: 77px;
  height: 58px;
  border-radius: 37% 37% 44% 44%;
}

.tk-person[data-character="cat"] .tp-ear {
  display: block;
  left: 27px;
  top: 24px;
  width: 25px;
  height: 29px;
  border: 1.5px solid #d0c6b3;
  border-radius: 5px 70% 8px 8px;
  background: #fff6e5;
  transform: rotate(-13deg);
  z-index: 0;
}

.tk-person[data-character="cat"] .tp-ear:after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 12px;
  height: 15px;
  border-radius: 2px 70% 4px 4px;
  background: #edc7c5;
}

.tk-person[data-character="cat"] .tp-ear.right {
  left: 80px;
  transform: rotate(13deg) scaleX(-1);
}

.tk-person[data-character="cat"] .tp-muzzle {
  left: 49px;
  top: 66px;
  width: 33px;
  height: 18px;
  background: #fffdf2;
  border: 0;
  box-shadow: none;
}

.tk-person[data-character="cat"] .tp-nose {
  display: block;
  left: 61px;
  top: 66px;
  width: 9px;
  height: 6px;
  border-radius: 45% 45% 70% 70%;
  background: #d6a5a8;
  z-index: 6;
}

.tk-person[data-character="cat"] .tp-mouth {
  left: 59px;
  top: 73px;
  width: 14px;
  border-color: #b59c94;
}

.tk-person[data-character="cat"] .tp-eye {
  top: 55px;
}

.tk-person[data-character="cat"] .tp-brow {
  top: 48px;
  background: #a58d99;
}

.tk-person[data-character="cat"] .tp-cheek {
  top: 68px;
  width: 12px;
  height: 7px;
  background: #edc4c8;
}

.tk-person[data-character="cat"] .tp-whiskers {
  left: 24px;
  top: 69px;
  width: 16px;
  height: 1px;
  background: #b8a89b;
  box-shadow: 0 5px #b8a89b;
  transform: rotate(6deg);
  z-index: 5;
}

.tk-person[data-character="cat"] .tp-whiskers.right {
  left: 91px;
  transform: rotate(-6deg);
}

.tk-person[data-character="cat"] .tp-hat {
  left: 40px;
  top: 14px;
  width: 60px;
  height: 20px;
  border: 1.5px solid #b39abd;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(130deg,#e3d5eb,#bfa6cf);
  transform: rotate(11deg);
  box-shadow: inset 3px 2px #efe3f1;
}

.tk-person[data-character="cat"] .tp-hat-puff {
  display: none;
}

.tk-person[data-character="cat"] .tp-hat-band {
  left: 6px;
  bottom: -2px;
  width: 46px;
  height: 7px;
  border: 1px solid #ac93b6;
  background: #c2a8d1;
  border-radius: 4px;
  box-shadow: none;
}

.tk-person[data-character="cat"] .tp-hat-tip {
  display: block;
  left: 27px;
  top: -6px;
  width: 7px;
  height: 9px;
  border-radius: 5px;
  background: #ac92b8;
  transform: rotate(-10deg);
}

.tk-person[data-character="cat"] .tp-apron {
  display: none;
}

.tk-person[data-character="cat"] .tp-neckerchief {
  left: 51px;
  top: 87px;
  width: 28px;
  height: 11px;
  border: 0;
  background: transparent;
  transform: none;
}

.tk-person[data-character="cat"] .tp-neckerchief:before,.tk-person[data-character="cat"] .tp-neckerchief:after {
  left: 0;
  top: 0;
  width: 13px;
  height: 11px;
  border: 1px solid #a995b0;
  border-radius: 4px;
  background: #c0abce;
  transform: rotate(12deg);
}

.tk-person[data-character="cat"] .tp-neckerchief:after {
  left: 14px;
  transform: rotate(-12deg);
}

.tk-person[data-character="cat"] .tp-neckerchief>span {
  left: 11px;
  top: 2px;
  width: 7px;
  height: 7px;
  background: #a58db4;
  border-color: #9c84aa;
}

.tk-person[data-character="cat"] .tp-shirt-seam {
  background: #bba9c5;
}

.tk-person[data-character="cat"] .tp-button {
  background: #f3e6cd;
  left: 28px;
  top: 22px;
}

.tk-person[data-character="cat"] .tp-button.two {
  top: 34px;
}

.tk-person[data-character="cat"] .tp-leg {
  background: #fff5e1;
  border-color: #d0c3ae;
}

.tk-person[data-character="cat"] .tp-shoe {
  background: #b99fbd;
  border-color: #a18aa7;
  box-shadow: inset 0 2px #d5c1d7;
}

.tk-person[data-character="cat"] .tp-bag-strap {
  display: block;
  left: 65px;
  top: 86px;
  width: 5px;
  height: 48px;
  background: #bc967f;
  border: 1px solid #aa866e;
  transform: rotate(-41deg);
  z-index: 6;
}

.tk-person[data-character="cat"] .tp-satchel {
  display: block;
  left: 85px;
  top: 113px;
  width: 27px;
  height: 26px;
  border: 1.5px solid #bd9b80;
  border-radius: 6px 6px 8px 8px;
  background: #ddba9a;
  z-index: 8;
  transform: rotate(-9deg);
  box-shadow: inset 2px 0 #efceb0;
}

.tk-person[data-character="cat"] .tp-satchel>span {
  left: -1px;
  top: -2px;
  width: 26px;
  height: 13px;
  border: 1.5px solid #b89a80;
  border-radius: 5px 5px 9px 9px;
  background: #e9c8a9;
}

.tk-person[data-character="cat"] .tp-satchel>span:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 5px;
  left: 10px;
  top: 7px;
  border-radius: 2px;
  background: #c2a071;
  border: 1px solid #a78a63;
}

.tk-person[data-character="cat"] .tp-tail {
  display: block;
  left: 88px;
  top: 110px;
  width: 28px;
  height: 30px;
  border: 10px solid #eee7d8;
  border-left-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  transform: rotate(-15deg);
  z-index: 1;
  filter: drop-shadow(1px 1px #cfc4b1);
}

.tk-person .tp-script {
  left: 32px;
  top: 111px;
  width: 26px;
  height: 30px;
  border: 1.5px solid #c3adbb;
  border-radius: 3px 5px 5px 3px;
  background: #e1ccd9;
  transform: rotate(-10deg);
  box-shadow: inset 3px 0 #bd9eb7;
}

.tk-person .tp-script-page {
  left: 5px;
  top: 4px;
  width: 16px;
  height: 21px;
  border-radius: 2px;
  background: #fff4db;
}

.tk-person .tp-script-mark {
  left: 8px;
  top: 9px;
  width: 10px;
  height: 2px;
  background: #cdbd9b;
  box-shadow: 0 4px #d9cbae,0 8px #d9cbae;
}

/* Clearly different expressions, independent of clothing and pose. */

.tk-person[data-mood="thinking"] .tp-head-group {
  transform: rotate(-5deg);
}

.tk-person[data-mood="thinking"] .tp-brow.left {
  transform: rotate(-17deg);
  top: 44px;
}

.tk-person[data-mood="thinking"] .tp-brow.right {
  transform: rotate(11deg);
}

.tk-person[data-mood="thinking"] .tp-eye {
  transform: translateX(2px);
}

.tk-person[data-mood="thinking"] .tp-mouth {
  width: 9px;
  height: 2px;
  left: 63px;
  border-radius: 3px;
  transform: rotate(-8deg);
}

.tk-person[data-mood="proud"] .tp-eye {
  height: 5px;
  background: transparent;
  border-top: 2.4px solid var(--tp-ink);
  border-radius: 50% 50% 0 0;
  box-shadow: none;
  top: 55px;
}

.tk-person[data-mood="proud"] .tp-eye:after {
  display: none;
}

.tk-person[data-mood="proud"] .tp-brow {
  transform: rotate(0);
  opacity: .7;
}

.tk-person[data-mood="proud"] .tp-cheek {
  height: 10px;
  opacity: 1;
}

.tk-person[data-mood="proud"] .tp-mouth {
  width: 17px;
  height: 6px;
  left: 57px;
}

.tk-person[data-mood="surprised"] .tp-brow {
  top: 42px;
  transform: rotate(-9deg);
}

.tk-person[data-mood="surprised"] .tp-brow.right {
  transform: rotate(9deg);
}

.tk-person[data-mood="surprised"] .tp-eye {
  width: 7px;
  height: 10px;
  top: 51px;
}

.tk-person[data-mood="surprised"] .tp-mouth {
  left: 62px;
  top: 70px;
  width: 7px;
  height: 8px;
  border: 1.4px solid #ae8d71;
  border-radius: 50%;
  background: #b39279;
}

.tk-person[data-character="raccoon"][data-mood="surprised"] .tp-mouth,.tk-person[data-character="cat"][data-mood="surprised"] .tp-mouth {
  top: 76px;
  width: 6px;
  height: 7px;
  background: #a58d7e;
  border-color: #a58d7e;
}

/* Hands explain the interaction; props are held, rather than floating nearby. */

.tk-person[data-pose="wave"] .tp-arm.right {
  left: 84px;
  top: 87px;
  transform: rotate(-132deg);
  z-index: 10;
}

.tk-person[data-pose="wave"] .tp-arm.left {
  transform: rotate(-12deg);
}

.tk-person[data-pose="cook"] .tp-arm.left {
  left: 27px;
  transform: rotate(-42deg);
}

.tk-person[data-pose="cook"] .tp-arm.right {
  left: 85px;
  top: 87px;
  transform: rotate(35deg);
  z-index: 12;
}

.tk-person[data-pose="cook"] .tp-kitchen {
  display: block;
}

.tk-person[data-pose="serve"] .tp-arm.left {
  left: 27px;
  top: 88px;
  transform: rotate(-48deg);
  z-index: 11;
}

.tk-person[data-pose="serve"] .tp-arm.right {
  left: 84px;
  top: 88px;
  transform: rotate(48deg);
  z-index: 11;
}

.tk-person[data-pose="serve"] .tp-kitchen {
  display: block;
  left: 42px;
  top: 103px;
}

.tk-person[data-pose="serve"] .tp-kitchen .tp-spoon {
  display: none;
}

.tk-person[data-pose="listen"] .tp-head-group {
  transform: rotate(-4deg);
}

.tk-person[data-pose="listen"] .tp-arm.left {
  left: 25px;
  transform: rotate(-22deg);
}

.tk-person[data-pose="listen"] .tp-arm.right {
  left: 86px;
  transform: rotate(22deg);
}

.tk-person[data-character="baker"]:not([data-pose="wave"]) .tp-arm.left {
  left: 25px;
  transform: rotate(-46deg);
}

.tk-person[data-character="baker"]:not([data-pose="wave"]) .tp-arm.right {
  left: 86px;
  transform: rotate(46deg);
}

.tk-person[data-character="raccoon"]:not([data-pose="wave"]) .tp-arm.left {
  left: 25px;
  transform: rotate(-54deg);
  z-index: 11;
}

.tk-person[data-character="raccoon"]:not([data-pose="wave"]) .tp-arm.right {
  left: 86px;
  transform: rotate(54deg);
  z-index: 11;
}

.tk-person[data-character="cat"][data-pose="wave"] .tp-script {
  left: 28px;
  top: 112px;
  transform: rotate(-18deg);
}

.tk-person[data-character="cat"][data-pose="serve"] .tp-script {
  left: 52px;
  top: 109px;
  transform: rotate(3deg);
}

/* Single, interaction-triggered reactions. There is no idle loop. */

.tk-person:is(.is-reacting,.is-reacting *) .tk-person-canvas {
  animation: tp-greet-body 760ms ease-in-out 1;
}

.tk-person:is(.is-reacting,.is-reacting *)[data-pose="wave"] .tp-arm.right {
  animation: tp-wave-hand 900ms ease-in-out 1;
}

.tk-person:is(.is-reacting,.is-reacting *)[data-pose="cook"] .tp-spoon {
  animation: tp-stir-spoon 900ms ease-in-out 1;
}

.tk-person:is(.is-reacting,.is-reacting *)[data-pose="cook"] .tp-arm.right {
  animation: tp-cook-hand 900ms ease-in-out 1;
}

.tk-person:is(.is-reacting,.is-reacting *)[data-pose="serve"] .tp-prop {
  animation: tp-offer 760ms ease-in-out 1;
}

.tk-person:is(.is-reacting,.is-reacting *)[data-pose="listen"] .tp-head-group {
  animation: tp-listen-nod 800ms ease-in-out 1;
}

.tk-person:is(.is-reacting,.is-reacting *) .tp-reaction {
  animation: tp-response 700ms ease-out 1;
}

@keyframes tp-greet-body {
  0%,100% {
    transform: scale(var(--person-scale,1)) translateY(0);
  }
  45% {
    transform: scale(var(--person-scale,1)) translateY(-3px);
  }
  70% {
    transform: scale(var(--person-scale,1)) translateY(1px);
  }
}

@keyframes tp-wave-hand {
  0%,100% {
    transform: rotate(-132deg);
  }
  25% {
    transform: rotate(-155deg);
  }
  50% {
    transform: rotate(-117deg);
  }
  75% {
    transform: rotate(-149deg);
  }
}

@keyframes tp-stir-spoon {
  0%,100% {
    transform: rotate(28deg);
  }
  25% {
    transform: rotate(8deg);
  }
  65% {
    transform: rotate(43deg);
  }
}

@keyframes tp-cook-hand {
  0%,100% {
    transform: rotate(35deg);
  }
  35% {
    transform: rotate(24deg);
  }
  70% {
    transform: rotate(43deg);
  }
}

@keyframes tp-offer {
  0%,100% {
    translate: 0 0;
  }
  40% {
    translate: 0 -4px;
  }
  65% {
    translate: 0 -2px;
  }
}

@keyframes tp-listen-nod {
  0%,100% {
    transform: rotate(-4deg);
  }
  35% {
    transform: rotate(3deg) translateY(2px);
  }
  65% {
    transform: rotate(-3deg);
  }
}

@keyframes tp-response {
  0%,100% {
    opacity: 0;
  }
  25%,65% {
    opacity: .9;
  }
}

[data-reduced="true"] .tk-person *, .tk-person[data-reduced="true"] * {
  animation: none!important;
  transition: none!important;
}

@media(prefers-reduced-motion:reduce) {
  .tk-person * {
    animation: none!important;
    transition: none!important;
  }
}

/* The game toggle takes effect immediately, including on figures already reacting. */

.reduce-motion .tk-person *,
.tk-person.reduce-motion * {
  animation: none !important;
  transition: none !important;
}

button.tk-character-tap {
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}
