/* MoveFx "body" pack — the shapes fx-body.js draws with (the physical types: fists, feet, claws,
   horns, bones, coins, webs, ghosts …). Every class is .fx-s-b-<name>, used as shape 'b-<name>'.
   Same rules as fx.css: the shape is the ::before of an .fx-p, flat tones of --c / --l / --d
   with hard edges, so the pixel shadow on the element follows the clipped outline. No images.
   Artwork that has a direction points right (fist, horn, drill, pin, tongue, crescent, arc). */

/* ── hands and feet ── */
.fx-s-b-fist::before {            /* knuckles to the right */
  clip-path: polygon(0 28%, 10% 12%, 26% 6%, 86% 6%, 100% 14%, 100% 26%, 94% 28%, 100% 30%, 100% 48%, 94% 50%, 100% 52%, 100% 70%, 94% 72%, 100% 74%, 100% 86%, 86% 94%, 24% 94%, 10% 86%, 0 72%);
  background:
    linear-gradient(var(--d), var(--d)) 100% 27% / 38% 6% no-repeat,
    linear-gradient(var(--d), var(--d)) 100% 50% / 38% 6% no-repeat,
    linear-gradient(var(--d), var(--d)) 100% 73% / 38% 6% no-repeat,
    linear-gradient(var(--d), var(--d)) 58% 50% / 6% 62% no-repeat,
    linear-gradient(135deg, var(--l) 0 40%, var(--c) 40%);
}
.fx-s-b-hand::before {            /* open, fingers up */
  clip-path: polygon(26% 100%, 20% 92%, 20% 76%, 4% 66%, 2% 54%, 10% 50%, 20% 58%, 20% 12%, 32% 12%, 32% 45%, 37% 45%, 37% 2%, 49% 2%, 49% 45%, 54% 45%, 54% 6%, 66% 6%, 66% 45%, 71% 45%, 71% 16%, 83% 16%, 83% 45%, 85% 50%, 85% 90%, 78% 100%);
}
.fx-s-b-foot::before {            /* a sole and three toes, toes up */
  clip-path: polygon(15% 44%, 15% 32%, 5% 32%, 5% 10%, 29% 10%, 29% 32%, 15% 32%, 15% 44%, 50% 44%, 50% 24%, 38% 24%, 38% 0, 62% 0, 62% 24%, 50% 24%, 50% 44%, 85% 44%, 85% 32%, 71% 32%, 71% 10%, 95% 10%, 95% 32%, 85% 32%, 85% 44%, 92% 54%, 88% 92%, 75% 100%, 25% 100%, 12% 92%, 8% 54%);
}

/* ── claws, horns, teeth ── */
.fx-s-b-claw::before {            /* one raked mark: pointed at both ends, bowed */
  clip-path: polygon(0 100%, 12% 45%, 35% 12%, 65% 0, 100% 20%, 68% 30%, 40% 48%, 18% 75%);
  background: linear-gradient(#fff 0 45%, var(--l) 45% 75%, var(--c) 75%);
}
.fx-s-b-horn::before {
  clip-path: polygon(0 8%, 30% 20%, 100% 50%, 30% 80%, 0 92%);
  background: repeating-linear-gradient(100deg, var(--l) 0 12%, var(--c) 12% 24%);
}
.fx-s-b-drill::before {           /* flip it (scaleY) and the thread seems to turn */
  clip-path: polygon(0 8%, 30% 20%, 100% 50%, 30% 80%, 0 92%);
  background: repeating-linear-gradient(60deg, var(--l) 0 9%, var(--d) 9% 13%, var(--c) 13% 24%);
}
.fx-s-b-pin::before {             /* a needle with a bead at the tail */
  clip-path: polygon(0 32%, 12% 14%, 26% 32%, 26% 42%, 100% 50%, 26% 58%, 26% 68%, 12% 86%, 0 68%);
}
.fx-s-b-teeth::before {           /* two incisors, points down */
  clip-path: polygon(4% 0, 96% 0, 96% 68%, 75% 100%, 54% 68%, 54% 8%, 46% 8%, 46% 68%, 25% 100%, 4% 68%);
  background: linear-gradient(90deg, #fff 0 30%, var(--l) 30% 50%, #fff 50% 80%, var(--l) 80%);
}
.fx-s-b-tongue::before {
  clip-path: polygon(0 22%, 80% 6%, 94% 20%, 100% 50%, 94% 80%, 80% 94%, 0 78%);
  background: linear-gradient(var(--l) 0 30%, var(--c) 30% 46%, var(--d) 46% 54%, var(--c) 54%);
}

/* ── blades and waves ── */
.fx-s-b-crescent::before {        /* a blade bulging to the right */
  clip-path: polygon(30% 0, 62% 8%, 88% 28%, 100% 50%, 88% 72%, 62% 92%, 30% 100%, 52% 78%, 64% 50%, 52% 22%);
  background: linear-gradient(90deg, var(--c) 0 62%, var(--l) 62% 80%, #fff 80%);
}
.fx-s-b-swipe::before {           /* the same blade far from the middle of its box: turn the box and it swings */
  clip-path: polygon(75% 6.7%, 88.3% 17.9%, 97% 32.9%, 100% 50%, 97% 67.1%, 88.3% 82.1%, 75% 93.3%, 81.5% 76%, 84.5% 62.5%, 85.5% 50%, 84.5% 37.5%, 81.5% 24%);
  background: linear-gradient(90deg, var(--c) 0 90%, var(--l) 90% 95%, #fff 95%);
}
.fx-s-b-arc::before {             /* a thin ")" — one wave of a shout */
  clip-path: polygon(40% 0, 70% 10%, 92% 30%, 100% 50%, 92% 70%, 70% 90%, 40% 100%, 60% 85%, 76% 68%, 82% 50%, 76% 32%, 60% 15%);
  background: var(--l);
}
.fx-s-b-zag::before {             /* a jagged wave: a screech of metal */
  clip-path: polygon(40% 0, 80% 12%, 50% 25%, 80% 37%, 50% 50%, 80% 62%, 50% 75%, 80% 87%, 40% 100%, 20% 100%, 55% 87%, 25% 75%, 55% 62%, 25% 50%, 55% 37%, 25% 25%, 55% 12%, 20% 0);
  background: linear-gradient(90deg, var(--c) 0 50%, var(--l) 50%);
}
.fx-s-b-crack::before { background: var(--d); }    /* a dark line: cracks in the ground */

/* ── things that get thrown ── */
.fx-s-b-bone::before {
  clip-path: polygon(0 10%, 10% 0, 18% 14%, 20% 32%, 80% 32%, 82% 14%, 90% 0, 100% 10%, 96% 50%, 100% 90%, 90% 100%, 82% 86%, 80% 68%, 20% 68%, 18% 86%, 10% 100%, 0 90%, 4% 50%);
  background: linear-gradient(var(--l) 0 50%, var(--c) 50%);
}
.fx-s-b-coin::before {
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: linear-gradient(var(--d), var(--d)) 50% 50% / 20% 52% no-repeat, linear-gradient(135deg, var(--l) 0 40%, var(--c) 40%);
}
.fx-s-b-egg::before {
  clip-path: polygon(50% 0, 72% 8%, 90% 35%, 96% 62%, 86% 86%, 66% 100%, 34% 100%, 14% 86%, 4% 62%, 10% 35%, 28% 8%);
}
.fx-s-b-gift::before {            /* a box with a ribbon and a bow */
  clip-path: polygon(0 28%, 30% 28%, 22% 10%, 36% 2%, 50% 20%, 64% 2%, 78% 10%, 70% 28%, 100% 28%, 100% 100%, 0 100%);
  background:
    linear-gradient(90deg, transparent 0 40%, var(--l) 40% 60%, transparent 60%),
    linear-gradient(transparent 0 54%, var(--l) 54% 68%, transparent 68%),
    linear-gradient(var(--l) 0 28%, var(--c) 28%);
}
.fx-s-b-star5::before {
  clip-path: polygon(50% 0, 62.3% 33%, 97.6% 34.5%, 70% 56.5%, 79.4% 90.5%, 50% 71%, 20.6% 90.5%, 30% 56.5%, 2.4% 34.5%, 37.7% 33%);
}
.fx-s-b-caltrop::before {         /* Spikes */
  clip-path: polygon(50% 0, 60% 40%, 100% 30%, 68% 60%, 86% 100%, 50% 72%, 14% 100%, 32% 60%, 0 30%, 40% 40%);
  background: linear-gradient(135deg, #fff 0 30%, var(--l) 30% 55%, var(--c) 55%);
}
.fx-s-b-blob::before {            /* a splat with drips */
  clip-path: polygon(10% 30%, 30% 6%, 60% 0, 88% 14%, 100% 44%, 92% 62%, 92% 88%, 84% 100%, 76% 88%, 76% 70%, 62% 76%, 60% 92%, 50% 100%, 42% 90%, 42% 76%, 24% 72%, 22% 84%, 14% 92%, 8% 82%, 8% 62%, 0 46%);
}
.fx-s-b-cloud::before {           /* a puff of gas, smoke or dust */
  clip-path: polygon(20% 30%, 30% 12%, 50% 6%, 68% 14%, 76% 30%, 92% 36%, 100% 54%, 92% 74%, 74% 82%, 60% 94%, 40% 94%, 26% 82%, 8% 76%, 0 56%, 6% 38%);
  background: linear-gradient(160deg, var(--l) 0 35%, var(--c) 35% 75%, var(--d) 75%);
}

/* ── wings and feathers ── */
.fx-s-b-wing::before {            /* attached at the left, feathers trailing down */
  clip-path: polygon(0 60%, 20% 20%, 55% 0, 100% 8%, 80% 22%, 96% 34%, 72% 44%, 86% 58%, 60% 62%, 68% 78%, 40% 76%, 30% 100%);
  background: linear-gradient(160deg, #fff 0 22%, var(--l) 22% 50%, var(--c) 50%);
}
.fx-s-b-feather::before {         /* slim, with a split tip: it lies along the x axis of its box */
  clip-path: polygon(0 52%, 14% 40%, 26% 26%, 54% 18%, 82% 22%, 100% 40%, 88% 48%, 100% 58%, 80% 74%, 52% 80%, 26% 72%, 14% 60%, 2% 60%);
  background: linear-gradient(160deg, #fff 0 30%, var(--l) 30% 62%, var(--c) 62%);
}

/* ── marks ── */
.fx-s-b-heart::before {
  clip-path: polygon(50% 100%, 8% 58%, 0 36%, 6% 14%, 24% 2%, 40% 6%, 50% 20%, 60% 6%, 76% 2%, 94% 14%, 100% 36%, 92% 58%);
}
.fx-s-b-anger::before {           /* the vein that pops: four corners around a cross-shaped gap */
  clip-path: polygon(42% 42%, 0 42%, 0 28%, 28% 28%, 28% 0, 42% 0, 42% 42%, 58% 42%, 58% 0, 72% 0, 72% 28%, 100% 28%, 100% 42%, 58% 42%, 58% 58%, 100% 58%, 100% 72%, 72% 72%, 72% 100%, 58% 100%, 58% 58%, 42% 58%, 42% 100%, 28% 100%, 28% 72%, 0 72%, 0 58%, 42% 58%, 58% 58%, 58% 42%);
  background: var(--c);
}
.fx-s-b-eye::before {
  clip-path: polygon(0 50%, 22% 22%, 50% 10%, 78% 22%, 100% 50%, 78% 78%, 50% 90%, 22% 78%);
  background: linear-gradient(var(--d), var(--d)) 50% 50% / 16% 56% no-repeat, linear-gradient(var(--c), var(--c)) 50% 50% / 40% 64% no-repeat, #fff;
}
.fx-s-b-skull::before {
  clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 55%, 80% 70%, 80% 100%, 62% 100%, 62% 86%, 56% 86%, 56% 100%, 44% 100%, 44% 86%, 38% 86%, 38% 100%, 20% 100%, 20% 70%, 0 55%, 0 20%);
  background:
    linear-gradient(var(--d), var(--d)) 22% 40% / 22% 24% no-repeat,
    linear-gradient(var(--d), var(--d)) 78% 40% / 22% 24% no-repeat,
    linear-gradient(var(--d), var(--d)) 50% 68% / 8% 10% no-repeat,
    linear-gradient(135deg, #fff 0 40%, var(--l) 40%);
}
.fx-s-b-ghost::before {           /* a dark shape with two pale eyes and a ragged hem */
  clip-path: polygon(20% 0, 80% 0, 100% 22%, 100% 100%, 84% 84%, 67% 100%, 50% 84%, 33% 100%, 16% 84%, 0 100%, 0 22%);
  background:
    linear-gradient(#fff, #fff) 24% 34% / 20% 14% no-repeat,
    linear-gradient(#fff, #fff) 76% 34% / 20% 14% no-repeat,
    linear-gradient(var(--l), var(--l)) 50% 60% / 30% 8% no-repeat,
    linear-gradient(135deg, var(--c) 0 40%, var(--d) 40%);
}
.fx-s-b-wisp::before {            /* a ghost light */
  clip-path: polygon(50% 0, 66% 26%, 60% 40%, 84% 56%, 90% 78%, 70% 100%, 30% 100%, 10% 78%, 16% 56%, 34% 62%, 30% 34%);
  background: linear-gradient(#fff, #fff) 50% 80% / 30% 26% no-repeat, linear-gradient(135deg, var(--l) 0 40%, var(--c) 40%);
}
.fx-s-b-tri::before {             /* a hollow triangle (Tri Attack) */
  clip-path: polygon(evenodd, 50% 0, 100% 100%, 0 100%, 50% 0, 50% 28%, 22% 87%, 78% 87%, 50% 28%);
}

/* ── scenery ── */
.fx-s-b-web::before {             /* one ring of a web: a hollow octagon */
  clip-path: polygon(evenodd, 30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%, 30% 0, 32% 5%, 5% 32%, 5% 68%, 32% 95%, 68% 95%, 95% 68%, 95% 32%, 68% 5%, 32% 5%);
  background: var(--l);
}
.fx-s-b-chain::before {           /* links, two u long */
  background: repeating-linear-gradient(90deg, var(--l) 0 calc(var(--u, 4px) * 2), var(--d) calc(var(--u, 4px) * 2) calc(var(--u, 4px) * 3));
}
.fx-s-b-brick::before {           /* a wall: mortar lines, every other course shifted */
  background:
    repeating-linear-gradient(var(--d) 0 6%, transparent 6% 25%),
    linear-gradient(90deg, var(--d) 0 12%, transparent 12%) 0 0 / 50% 25% repeat-x,
    linear-gradient(90deg, var(--d) 0 12%, transparent 12%) 50% 33.3% / 50% 25% repeat-x,
    linear-gradient(90deg, var(--d) 0 12%, transparent 12%) 0 66.7% / 50% 25% repeat-x,
    linear-gradient(90deg, var(--d) 0 12%, transparent 12%) 50% 100% / 50% 25% repeat-x,
    linear-gradient(135deg, var(--l) 0 30%, var(--c) 30%);
}
.fx-s-b-mound::before {           /* a heap of earth */
  clip-path: polygon(0 100%, 10% 62%, 28% 30%, 50% 14%, 72% 30%, 90% 62%, 100% 100%);
  background: linear-gradient(160deg, var(--l) 0 30%, var(--c) 30% 70%, var(--d) 70%);
}
.fx-s-b-fissure::before {         /* the ground splitting open */
  clip-path: polygon(0 0, 100% 0, 80% 30%, 88% 46%, 62% 70%, 56% 100%, 44% 72%, 30% 56%, 36% 34%, 14% 22%);
  background: linear-gradient(var(--c) 0 12%, var(--d) 12%);
}
