#adventureWalkSprite {
  display: none;
  position: absolute;
  height: 106%;
  max-width: 100%;
  aspect-ratio: 1;
  bottom: -3%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  background: url("adventure/piggylady-walk.webp") 0 0 / 300% 200% no-repeat;
}

#world.adventure-walking #adventureWalkSprite { display: block; }
body.trainer-mode #adventureWalkSprite{background-image:url('adventure/trainer-maple-walk-v3.webp?v=left-grip-clear4')}
#world.adventure-walking :is(#pet, #pose, #gearActor, #trickLoop, #trickSprite) {
  visibility: hidden !important;
}

@keyframes adventureWalkStride {
  0% { background-position: 0 0; }
  16.6667% { background-position: 50% 0; }
  33.3333% { background-position: 100% 0; }
  50% { background-position: 0 100%; }
  66.6667% { background-position: 50% 100%; }
  83.3333% { background-position: 100% 100%; }
  100% { background-position: 0 0; }
}

.adventure-walk-animated #adventureWalkSprite {
  animation: adventureWalkStride 1s step-end infinite;
}

#adventureWalkControls {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  max-width: calc(100% - 16px);
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #b99160;
  border-radius: 7px;
  padding: 0 2px 0 5px;
  background: #fbefdb;
  color: #294b37;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
#adventureWalkControls[hidden], .screenshot-mode #adventureWalkControls { display: none; }
#adventureWalkStop {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #294b37;
  color: #fff0d8;
}
#adventureWalkStop::before {
  content: "";
  position: absolute;
  inset: -12px;
}
#adventureWalkStop::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: currentColor;
}
