.cat-container {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.cat-sprite {
  image-rendering: pixelated;
  position: relative;
  width: 64px;
  height: 72px;
  animation: catBreathe 3s ease-in-out infinite;
  transform-origin: center bottom;
  transition: filter var(--transition-slow);
}

.cat-sprite svg {
  width: 64px;
  height: 72px;
  overflow: visible;
}

.cat-body      { fill: var(--cat-body, #f5cba7); }
.cat-stripe    { fill: var(--cat-stripe, #e8a87c); }
.cat-ear-inner { fill: var(--cat-ear-inner, #ffb3c6); }
.cat-eye       { fill: var(--cat-eye, #3d2b4a); }
.cat-nose      { fill: var(--cat-nose, #ff8b8b); }
.cat-cheek     { fill: var(--cat-cheek, rgba(255,150,150,0.35)); }
.cat-accessory { fill: var(--cat-accessory, none); }

@keyframes catBreathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%       { transform: translateY(-3px) scaleY(1.02); }
}

@keyframes tailWag {
  0%, 100% { transform: rotate(-15deg); }
  50%       { transform: rotate(15deg); }
}

@keyframes catBlink {
  0%, 94%, 100% { transform: scaleY(1); }
  96%, 98%      { transform: scaleY(0.05); }
}

@keyframes catBounce {
  0%, 100% { transform: translateY(0); }
  30%       { transform: translateY(-10px); }
  60%       { transform: translateY(-4px); }
}

@keyframes catSway {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2deg); }
}

@keyframes catShiver {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-2px); }
  40%       { transform: translateX(2px); }
  60%       { transform: translateX(-1px); }
  80%       { transform: translateX(1px); }
}

@keyframes catPeek {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.cat-tail-group {
  transform-origin: 20% 80%;
  animation: tailWag 2s ease-in-out infinite;
}

.cat-eyes {
  transform-origin: center center;
  animation: catBlink 4s step-end infinite;
}

.cat-sprite.state-sunny  { animation: catBounce 1.8s ease-in-out infinite; }
.cat-sprite.state-cloudy { animation: catBreathe 4s ease-in-out infinite; }
.cat-sprite.state-rainy  { animation: catSway 5s ease-in-out infinite; }
.cat-sprite.state-snowy  { animation: catShiver 0.4s ease-in-out infinite; }
.cat-sprite.state-stormy { animation: catShiver 0.25s ease-in-out infinite; }
.cat-sprite.state-foggy  { animation: catBreathe 6s ease-in-out infinite; opacity: 0.9; }
.cat-sprite.state-night  { animation: catPeek 4s ease-in-out infinite; }

.thought-bubble {
  position: absolute;
  top: -52px;
  left: 50%;
  transform: translateX(-20%);
  background: white;
  border: 2px solid var(--lavender-mid);
  border-radius: 12px;
  padding: 5px 10px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--charcoal);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px var(--shadow);
  line-height: 1.6;
}

.thought-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 16px;
  width: 6px; height: 6px;
  background: white;
  border-right: 2px solid var(--lavender-mid);
  border-bottom: 2px solid var(--lavender-mid);
  transform: rotate(45deg);
}

.cat-container:hover .thought-bubble {
  opacity: 1;
  transform: translateX(-20%) translateY(-4px);
}

@media (max-width: 480px) {
  .thought-bubble { opacity: 1; font-size: 6px; top: -46px; padding: 4px 8px; }
  .cat-sprite { width: 56px; height: 64px; }
  .cat-sprite svg { width: 56px; height: 64px; }
}

@media (max-width: 360px) {
  .cat-sprite { width: 48px; height: 56px; }
  .cat-sprite svg { width: 48px; height: 56px; }
}
