/* Each cut piece has a pale paper edge and a darker printed face. */
.landscape {
  --paper-grain: repeating-linear-gradient(111deg, #f6e3ba16 0 1px, transparent 1px 4px, #21151d19 4px 5px, transparent 5px 7px);
}
.scene-label { z-index: 3; }
.walker {
  position: absolute;
  bottom: 0;
  width: 65px;
  height: 85px;
  transform-origin: bottom left;
  filter: drop-shadow(2px 3px 1px #2215298c);
}
.walker i, .paper-body { position: absolute; display: block; }
.paper-body { inset: 0; }
.camel-body i:not(.camel-eye)::after, .camel-leg::after, .walker i:not(.shadow)::after, .trunk::after, .crown i::after {
  content: "";
  position: absolute;
  inset: 1px 2px 2px 1px;
  clip-path: inherit;
  background: var(--paper-grain), var(--ink-face);
}
.walker i:not(.shadow), .camel-body i, .camel-leg, .trunk, .crown i { background: var(--paper-edge, #e6ba82); }
.walker .shadow {
  width: 59px;
  height: 11px;
  left: 2px;
  bottom: -3px;
  border-radius: 50%;
  background: #24172680;
  filter: blur(2px);
}
.leg {
  bottom: 0;
  width: 16px;
  height: 32px;
  transform-origin: 42% 9%;
  clip-path: polygon(17% 0, 64% 0, 66% 63%, 72% 79%, 100% 85%, 98% 98%, 14% 98%, 13% 77%, 0 48%);
}
.rear { left: 23px; --ink-face: linear-gradient(#463341 72%, #342530 72%); transform: rotate(12deg); }
.front { left: 33px; --ink-face: linear-gradient(#80584d 72%, #48303a 72%); transform: rotate(-11deg); }
.cloak {
  width: 35px; height: 45px; left: 16px; bottom: 18px;
  clip-path: polygon(30% 0, 66% 0, 88% 15%, 94% 40%, 88% 62%, 100% 85%, 77% 95%, 39% 100%, 0 91%, 13% 59%, 11% 25%);
  --ink-face: linear-gradient(110deg, #7c3d38, #bd6649 54%, #d88e58);
}
.cloak-fold {
  width: 22px; height: 34px; left: 20px; bottom: 20px;
  clip-path: polygon(45% 0, 68% 48%, 100% 80%, 47% 100%, 0 100%, 21% 57%);
  --paper-edge: #ba674c;
  --ink-face: linear-gradient(120deg, #853b37, #b56048);
}
.head {
  left: 32px; top: 7px; width: 22px; height: 23px;
  clip-path: polygon(16% 0, 74% 4%, 87% 26%, 86% 42%, 100% 56%, 87% 63%, 87% 85%, 49% 100%, 6% 73%, 0 33%);
  --ink-face: linear-gradient(125deg, #92583e, #cc8959);
}
.hood {
  left: 21px; top: 2px; width: 31px; height: 28px;
  clip-path: polygon(16% 15%, 50% 0, 77% 5%, 100% 25%, 89% 37%, 63% 35%, 53% 100%, 17% 91%, 0 70%, 6% 34%);
  --ink-face: linear-gradient(125deg, #b49062, #f1d7a7 60%, #d5aa71);
}
.scarf {
  left: 13px; top: 24px; width: 38px; height: 21px;
  clip-path: polygon(22% 0, 100% 2%, 95% 30%, 69% 44%, 39% 37%, 15% 90%, 0 100%, 3% 68%);
  --ink-face: linear-gradient(120deg, #b28054, #f4dbb0);
  transform-origin: 70% 18%;
}
.pack {
  left: 8px; top: 36px; width: 22px; height: 25px;
  clip-path: polygon(14% 15%, 34% 0, 71% 0, 92% 19%, 100% 72%, 73% 100%, 24% 96%, 0 76%);
  --ink-face: linear-gradient(110deg, #405650, #7a8570);
}
.arm {
  left: 36px; top: 38px; width: 23px; height: 20px;
  clip-path: polygon(13% 0, 42% 1%, 51% 49%, 92% 46%, 100% 76%, 47% 100%, 25% 85%, 0 39%);
  --ink-face: linear-gradient(110deg, #aa5941, #d98054 80%, #c78962 80%);
}
.staff {
  right: 7px; bottom: 0; width: 5px; height: 53px;
  clip-path: polygon(20% 0, 86% 0, 100% 28%, 74% 100%, 0 98%);
  transform: rotate(11deg);
  --ink-face: linear-gradient(90deg, #986340, #bf8c5e);
}
.walking .leg { animation: paper-stride .58s ease-in-out infinite alternate; }
.walking .front { animation-direction: alternate-reverse; }
.walking .paper-body { animation: paper-bob .58s ease-in-out infinite alternate; }
.walking .scarf { animation: scarf-flutter .45s ease-in-out infinite alternate; }
@keyframes paper-stride { from { transform: rotate(-27deg); } to { transform: rotate(26deg); } }
@keyframes paper-bob { from { transform: translateY(-1px) rotate(-2deg); } to { transform: translateY(-4px) rotate(2deg); } }
@keyframes scarf-flutter { to { transform: rotate(13deg); } }

.palms {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(var(--drift, 0%));
  transition: transform var(--walk-duration, 5s) ease, opacity .48s ease;
}
.palms[data-visible="true"] { opacity: 1; }
.palm {
  position: absolute;
  bottom: -8%;
  width: 154px;
  height: 216px;
  transform-origin: bottom center;
  filter: drop-shadow(3px 4px 2px #080e1ac5);
}
.palm-tall { right: -21px; transform: rotate(-11deg); }
.palm-short { right: -109px; bottom: -9%; transform: scale(.68) rotate(13deg); }
.trunk {
  position: absolute;
  width: 29px;
  height: 156px;
  left: 65px;
  bottom: 0;
  clip-path: polygon(42% 0, 79% 0, 72% 23%, 75% 47%, 87% 76%, 100% 100%, 0 100%, 24% 76%, 27% 51%, 35% 21%);
  --paper-edge: #b39a78;
  --ink-face: repeating-linear-gradient(156deg, #69564d 0 4px, #8b7460 5px 9px, #52454a 10px 13px);
}
.crown {
  position: absolute;
  width: 154px;
  height: 128px;
  top: 1px;
  transform-origin: 50% 49%;
  animation: palms-sway 3.7s ease-in-out infinite alternate;
}
.palm-short .crown { animation-delay: -1.3s; }
.crown i {
  position: absolute;
  width: 85px;
  height: 33px;
  left: 73px;
  top: 55px;
  transform-origin: 3% 55%;
  transform: rotate(var(--angle));
  clip-path: polygon(0 51%, 15% 23%, 42% 3%, 61% 0, 80% 10%, 100% 38%, 81% 32%, 88% 47%, 66% 39%, 72% 56%, 47% 49%, 54% 66%, 30% 60%, 38% 78%, 15% 70%, 3% 100%);
  --paper-edge: #b5b18a;
  --ink-face: linear-gradient(170deg, #627e72 20%, #3b655d 45%, #233d40 81%);
}
.crown i:nth-child(1) { --angle: 169deg; }
.crown i:nth-child(2) { --angle: 201deg; }
.crown i:nth-child(3) { --angle: 233deg; }
.crown i:nth-child(4) { --angle: 267deg; }
.crown i:nth-child(5) { --angle: 305deg; }
.crown i:nth-child(6) { --angle: 342deg; }
.crown i:nth-child(7) { --angle: 19deg; }
@keyframes palms-sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@media (max-width: 550px) {
  .palm-tall { transform: scale(.76) rotate(-11deg); right: -28px; }
  .palm-short { transform: scale(.55) rotate(13deg); right: -100px; }
}

.party {
  position: absolute;
  bottom: 18%;
  --party-footprint: 201px;
  left: calc((100% - var(--party-footprint)) * var(--travel-progress, 0.03));
  width: 190px;
  height: 108px;
  transform-origin: bottom left;
  transition: left var(--walk-duration, 5s) linear;
}
.lead { left: 52px; }
.woman { left: 0; scale: .94; }
.woman .paper-body { animation-delay: -.2s; }
.woman .leg { animation-delay: -.2s; }
.woman .cloak {
  width: 39px;
  bottom: 10px;
  height: 51px;
  --paper-edge: #acccc1;
  --ink-face: linear-gradient(110deg, #234b53, #43837f 58%, #72a594);
}
.woman .cloak-fold {
  bottom: 12px;
  height: 42px;
  --paper-edge: #50928b;
  --ink-face: linear-gradient(120deg, #214550, #38706f);
}
.woman .arm {
  --paper-edge: #87b8a8;
  --ink-face: linear-gradient(110deg, #28656d, #629c8d 80%, #ac7756 80%);
}
.woman .veil, .woman .hood {
  --paper-edge: #f0cdb0;
  --ink-face: linear-gradient(115deg, #8d515b, #c3838b 65%, #dfa69d);
}
.woman .veil {
  left: 18px;
  top: 8px;
  width: 34px;
  height: 35px;
  clip-path: polygon(25% 0, 83% 0, 88% 41%, 100% 64%, 76% 86%, 34% 100%, 1% 76%, 13% 38%);
}
.woman .hood {
  width: 32px;
  height: 34px;
  clip-path: polygon(17% 13%, 47% 0, 75% 6%, 100% 26%, 91% 36%, 66% 28%, 54% 42%, 54% 70%, 90% 82%, 74% 95%, 26% 100%, 0 81%, 4% 40%);
}
.woman .head { --ink-face: linear-gradient(125deg, #805039, #b87c57); }

.camel {
  position: absolute;
  left: 111px;
  bottom: 4px;
  width: 84px;
  height: 102px;
  filter: drop-shadow(2px 3px 1px #2215298c);
}
.camel i, .camel-body { position: absolute; display: block; }
.camel-body { inset: 0; transform-origin: 44% 61%; }
.camel-shadow {
  width: 67px;
  height: 10px;
  bottom: -4px;
  left: 5px;
  border-radius: 50%;
  background: #24172680;
  filter: blur(2px);
}
.camel-coat {
  inset: 0;
  clip-path: polygon(5% 42%, 13% 33%, 26% 31%, 36% 20%, 47% 19%, 59% 32%, 64% 31%, 69% 12%, 76% 6%, 77% 0, 82% 2%, 85% 8%, 94% 10%, 100% 17%, 97% 24%, 84% 24%, 79% 41%, 73% 57%, 62% 66%, 25% 64%, 13% 60%, 8% 54%);
  --ink-face: linear-gradient(112deg, #8a543b, #c28956 51%, #d8a86d);
}
.camel-leg {
  bottom: 0;
  width: 13px;
  height: 46px;
  transform-origin: 40% 9%;
  clip-path: polygon(0 0, 83% 0, 62% 54%, 70% 80%, 99% 87%, 100% 100%, 21% 100%, 12% 79%, 19% 53%);
  --ink-face: linear-gradient(#a87149 80%, #5a3b37 80%);
}
.camel-leg.hind { left: 17px; }
.camel-leg.fore { left: 49px; }
.camel-leg.far { margin-left: 7px; bottom: 2px; transform: rotate(10deg); --paper-edge: #b68a64; --ink-face: linear-gradient(#76503d 80%, #51332e 80%); }
.camel-leg.near { transform: rotate(-8deg); }
.camel-tail {
  width: 15px;
  height: 32px;
  left: 0;
  top: 45px;
  transform-origin: 78% 5%;
  clip-path: polygon(65% 0, 100% 8%, 58% 61%, 65% 82%, 39% 100%, 0 88%, 32% 63%);
  --ink-face: linear-gradient(#996443 67%, #573d37 67%);
}
.camel-blanket {
  left: 27px;
  top: 35px;
  width: 24px;
  height: 24px;
  transform: rotate(7deg);
  clip-path: polygon(7% 0, 91% 0, 100% 89%, 73% 100%, 54% 91%, 38% 100%, 0 91%);
  --paper-edge: #ecc18c;
  --ink-face: linear-gradient(#465957 0 19%, #985644 19% 28%, #537370 28% 72%, #a05945 72% 84%, #405857 84%);
}
.camel-body .camel-eye {
  width: 3px;
  height: 3px;
  right: 12px;
  top: 13px;
  border-radius: 50%;
  background: #35272c;
}
.walking .camel-leg { animation: paper-stride .73s ease-in-out infinite alternate; }
.walking .camel-leg.fore.near, .walking .camel-leg.hind.far { animation-direction: alternate-reverse; }
.walking .camel-body { animation: paper-bob .73s ease-in-out infinite alternate; }
.walking .camel-tail { animation: scarf-flutter .73s ease-in-out infinite alternate; }
@media (max-width: 550px) {
  .party {
    --party-footprint: 147px;
    scale: .72;
  }
}
