.dc-cat-root {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 220px;
  overflow: hidden;
  color: #f4f4ef;
  font-family: Outfit, sans-serif;
  isolation: isolate;
}

.dc-cat-label {
  position: absolute;
  top: -22px;
  left: 50%;
  width: 170px;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  color: #a4a49e;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.035em;
}

.dc-cat-track {
  position: absolute;
  inset: 42px 12px 25px;
  min-width: 0;
}

.dc-cat-button {
  position: absolute;
  left: 0;
  top: 5px;
  display: block;
  width: min(148px, 100%);
  height: 140px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.dc-cat-button:focus-visible {
  outline: 1px solid #b1b1a8;
  outline-offset: -3px;
}

.dc-cat-svg {
  position: absolute;
  right: 2px;
  bottom: 14px;
  width: calc(100% - 4px);
  height: auto;
  overflow: visible;
  image-rendering: pixelated;
}

.dc-cat-sleeper {
  transform-origin: 48px 54px;
  animation: dc-cat-breathe 3.6s steps(2, end) infinite;
}

.dc-cat-walker,
.dc-cat-open-eyes {
  display: none;
}

.dc-cat-root[data-state="waking"] .dc-cat-sleeper {
  animation: none;
}

.dc-cat-root[data-state="waking"] .dc-cat-open-eyes {
  display: block;
}

.dc-cat-root[data-state="waking"] .dc-cat-closed-eyes {
  display: none;
}

.dc-cat-root[data-state="walking"] .dc-cat-sleeper {
  display: none;
}

.dc-cat-root[data-state="walking"] .dc-cat-walker {
  display: block;
  transform-origin: 48px 40px;
  animation: dc-cat-step 0.46s steps(2, end) infinite;
}

.dc-cat-facing-left .dc-cat-svg {
  transform: scaleX(-1);
}

.dc-cat-leg-back {
  animation: dc-cat-leg 0.46s steps(2, end) infinite;
}

.dc-cat-leg-front {
  animation: dc-cat-leg 0.46s steps(2, end) infinite reverse;
}

.dc-cat-dream {
  position: absolute;
  top: 14px;
  right: 21px;
  color: #8e8e83;
  font-family: Outfit, sans-serif;
  font-size: 15px;
  line-height: 1;
  animation: dc-cat-dreaming 3.6s ease-in-out infinite;
}

.dc-cat-dream span:first-child {
  display: inline-block;
  margin-left: 3px;
  transform: translateY(-5px);
  font-size: 12px;
}

.dc-cat-dream span:nth-child(2) {
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-11px);
  font-size: 9px;
}

.dc-cat-dream span:last-child {
  display: inline-block;
  margin-left: 2px;
  transform: translateY(-16px);
  font-size: 7px;
}

.dc-cat-root[data-state="waking"] .dc-cat-dream,
.dc-cat-root[data-state="walking"] .dc-cat-dream {
  visibility: hidden;
}

.dc-cat-hint {
  position: absolute;
  right: 8px;
  bottom: 18px;
  left: 8px;
  color: #777770;
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

.dc-cat-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes dc-cat-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes dc-cat-step {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -1px; }
}

@keyframes dc-cat-leg {
  0%, 100% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
}

@keyframes dc-cat-dreaming {
  0%, 100% { opacity: 0.45; transform: translateY(1px); }
  50% { opacity: 0.9; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .dc-cat-sleeper,
  .dc-cat-walker,
  .dc-cat-leg-back,
  .dc-cat-leg-front,
  .dc-cat-dream {
    animation: none !important;
  }
}
