/* Cat (used on the session progress bar and scene) */
.cat {
  position: relative;
  width: 88px;
  height: 64px;
  animation: catBob 5.2s ease-in-out infinite;
  transition: transform var(--transition-smooth);
}

.cat-body {
  position: absolute;
  left: 16px;
  bottom: 6px;
  width: 60px;
  height: 34px;
  border-radius: 40px 40px 30px 30px;
  background: linear-gradient(180deg, #fdf5e6, #f5deb3); /* Cream to Wheat */
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
  border: 1.5px solid rgba(0,0,0,0.03);
}

.cat-body::before {
  content: '';
  position: absolute;
  inset: 4px 6px 6px;
  border-radius: inherit;
  background: 
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), transparent 60%),
    repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(139,69,19,0.05) 9px, transparent 12px);
  opacity: 0.8;
}

.cat-paw {
  position: absolute;
  bottom: -4px;
  width: 14px;
  height: 10px;
  border-radius: 10px;
  background: #fffaf0; /* Floral White */
  box-shadow: 0 2px 0 rgba(139,69,19,0.15);
  border: 1px solid rgba(0,0,0,0.02);
}

.cat-paw.paw-one { left: 8px; }
.cat-paw.paw-two { left: 24px; }
.cat-paw.paw-three { right: 10px; }

.cat-face {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 60px;
  height: 46px;
  border-radius: 32px 32px 28px 28px;
  background: linear-gradient(180deg, #fffaf0, #fdf5e6);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1.5px solid rgba(0,0,0,0.03);
  overflow: hidden;
  z-index: 2;
}

/* Big expressive eyes */
.cat-face::before,
.cat-face::after {
  content: '';
  position: absolute;
  top: 18px;
  width: 12px;
  height: 14px;
  border-radius: 50%;
  background: #2d3436;
  transform-origin: center;
  animation: blink 6s infinite;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Eye highlights */
.cat-face::before {
  left: 14px;
  background: radial-gradient(circle at 35% 35%, #fff 2px, #2d3436 3px);
}

.cat-face::after {
  right: 14px;
  background: radial-gradient(circle at 35% 35%, #fff 2px, #2d3436 3px);
}

.cat-mark {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 0 0 15px 15px;
  background: rgba(210,180,140,0.4); /* Tan */
}

.cat-nose {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 8px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: #ffb6c1; /* Light Pink */
}

.cat-mouth {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 16px;
  height: 8px;
  transform: translateX(-50%);
}

.cat-mouth::before,
.cat-mouth::after {
  content: '';
  position: absolute;
  top: 0;
  width: 9px;
  height: 7px;
  border: 1.5px solid rgba(45,52,54,0.3);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.cat-mouth::before { left: -1px; transform: scaleX(-1); }
.cat-mouth::after { right: -1px; }

/* Blush */
.cat-face::after {
  /* We use a pseudo-element for blush since we already used before/after for eyes */
}

/* Adding blush via a new div in App.js or using a trick */
/* Let's use a background on cat-face for blush */
.cat-face {
  background: 
    radial-gradient(circle at 15% 75%, rgba(255,182,193,0.3) 0, transparent 35%),
    radial-gradient(circle at 85% 75%, rgba(255,182,193,0.3) 0, transparent 35%),
    linear-gradient(180deg, #fffaf0, #fdf5e6);
}

.cat-whiskers {
  position: absolute;
  top: 28px;
  width: 18px;
  height: 10px;
  opacity: 0.4;
}

.cat-whiskers::before,
.cat-whiskers::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 1px;
  background: #2d3436;
}

.cat-whiskers::before { top: 2px; }
.cat-whiskers::after { bottom: 2px; }

.cat-whiskers.left { left: 2px; transform: rotate(10deg); }
.cat-whiskers.right { right: 2px; transform: rotate(-10deg); }

.cat-ear {
  position: absolute;
  top: 2px;
  width: 20px;
  height: 22px;
  background: #f5deb3;
  border-radius: 8px 8px 4px 4px;
  transform-origin: bottom center;
  z-index: 1;
  border: 1px solid rgba(0,0,0,0.02);
}

.cat-ear::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 4px;
  background: #ffc0cb; /* Pink */
  opacity: 0.6;
}

.cat-ear.left {
  left: 12px;
  transform: rotate(-15deg);
  animation: earTwitch 8s infinite;
}

.cat-ear.right {
  right: 12px;
  transform: rotate(15deg);
  animation: earTwitch 8s infinite 1.5s;
}

.cat-tail {
  position: absolute;
  right: -4px;
  bottom: 14px;
  width: 34px;
  height: 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, #f5deb3, #e6ccb2);
  transform-origin: left center;
  animation: tailWag 3.5s ease-in-out infinite;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.02);
}

.cat-zzz {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(10px);
  font-weight: 800;
  font-size: 1rem;
  color: #a29bfe;
  opacity: 0;
  animation: zzzFloat 3s ease-in-out infinite;
}

/* States */
.cat-host.cat-awake .cat-face::before,
.cat-host.cat-awake .cat-face::after {
  height: 14px;
  top: 18px;
}

.cat-host.cat-sleep .cat-face::before,
.cat-host.cat-sleep .cat-face::after {
  height: 3px;
  width: 14px;
  top: 24px;
  border-radius: 10px;
  background: rgba(45,52,54,0.5);
  animation: none;
}

.cat-host.cat-sleep .cat-zzz { opacity: 1; }

.cat-host.cat-celebrate .cat {
  animation: catJump 0.5s ease-in-out infinite;
}

.cat-host.cat-celebrate .cat-face::before,
.cat-host.cat-celebrate .cat-face::after {
  height: 16px;
  width: 14px;
  top: 16px;
  background: radial-gradient(circle at 35% 35%, #fff 3px, #2d3436 4px);
}

.cat-host.cat-celebrate .cat-tail {
  animation: tailWagFast 0.4s ease-in-out infinite;
}

/* Scene Cat Specifics */
.scene-cat.cat-sleep .cat-face::before,
.scene-cat.cat-sleep .cat-face::after {
  height: 3px;
  width: 14px;
  top: 24px;
  border-radius: 10px;
  background: rgba(45,52,54,0.5);
  animation: none;
}
.scene-cat.cat-sleep .cat-zzz { opacity: 1; }
