.footer-pet {
  --pet-size: clamp(112px, 16vw, 152px);
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--blue-dark);
}
.footer-pet[hidden], .footer-pet [hidden] { display: none; }
.footer-pet__button {
  position: absolute;
  bottom: 16px;
  left: 0;
  display: grid;
  align-items: end;
  width: var(--pet-size);
  height: calc(var(--pet-size) * .8);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}
.footer-pet__button:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 8px; }
.footer-pet__button:disabled { cursor: default; pointer-events: none; }
.footer-pet__dog, .footer-pet__ghost { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.footer-pet__ghost { justify-self: center; }
.footer-pet__dog, .footer-pet__ghost { grid-area: 1 / 1; }
.footer-pet__dog, .footer-pet__ghost { scale: var(--pet-facing, 1) 1; }
.footer-pet[data-direction="-1"] { --pet-facing: -1; }
.footer-pet__ground-bone, .footer-pet__carried-bone { display: block; width: 28px; height: auto; pointer-events: none; image-rendering: pixelated; }
.footer-pet__ground-bone { position: absolute; left: 60%; bottom: 16px; transform: translateX(-50%) rotate(35deg); }
.footer-pet__carried-bone { position: absolute; right: 0; bottom: calc(var(--pet-size) * .22); transform: rotate(35deg); }
.footer-pet[data-direction="-1"] .footer-pet__carried-bone { right: auto; left: 0; }
.footer-pet[data-phase="walk"] .footer-pet__dog,
.footer-pet[data-phase="carry"] .footer-pet__dog { animation: footer-pet-step 320ms ease-in-out infinite alternate; }
.footer-pet[data-paused="true"] .footer-pet__dog { animation-play-state: paused; }
.footer-pet__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes footer-pet-step { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-3px) rotate(1deg); } }
@media (max-width: 640px) { .footer-pet { height: 170px; } }
@media (prefers-reduced-motion: reduce) { .footer-pet .footer-pet__dog { animation: none; } }
