/* ===== PomPom — Pom Cat Styles ===== */

.pom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pom-stage {
  position: relative;
  width: 256px;
  height: 256px;
  background: transparent;
  border-radius: var(--radius-lg);
  border: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pomCanvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  width: 256px;
  height: 256px;
}

.pom-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  pointer-events: none;
}

/* Idle animation */
.pom-stage.idle #pomCanvas {
  animation: cat-breathe 3s ease-in-out infinite;
}

@keyframes cat-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Walking animation */
.pom-stage.walking #pomCanvas {
  animation: cat-walk 2s linear;
}

@keyframes cat-walk {
  0% { transform: translateX(-200px); }
  100% { transform: translateX(200px); }
}

/* Alert state */
.pom-stage.alert #pomCanvas {
  animation: cat-alert 0.5s ease-in-out infinite alternate;
}

@keyframes cat-alert {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

/* Celebration */
.pom-stage.celebrating #pomCanvas {
  animation: cat-celebrate 0.4s ease-in-out infinite alternate;
}

@keyframes cat-celebrate {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.05); }
}

/* Sleeping */
.pom-stage.sleeping #pomCanvas {
  animation: cat-sleep 4s ease-in-out infinite;
}

@keyframes cat-sleep {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.03) rotate(1deg); }
}

/* Tooltip */
.pom-tooltip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-light);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.pom-tooltip.visible { opacity: 1; }
