.cat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  z-index: 9999;
}

.cat-widget img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.15s ease;
}

.cat-widget:hover img {
  transform: scale(1.08);
}

.cat-hunger-bar {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.cat-hunger-fill {
  height: 100%;
  width: 0%;
  background: #ffd700;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.cat-tooltip {
  position: absolute;
  bottom: 80px;
  right: 0;
  background: #f5f0e8;
  color: #1a1a1a;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.cat-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 16px;
  border: 5px solid transparent;
  border-top-color: #f5f0e8;
}

.cat-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.cat-particle {
  position: fixed;
  pointer-events: none;
  font-size: 14px;
  z-index: 10000;
  animation: cat-float 0.9s ease-out forwards;
}

@keyframes cat-float {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(-60px) scale(0.4); }
}

@keyframes cat-bounce {
  0%,100% { transform: translateY(0) scale(1); }
  40%     { transform: translateY(-10px) scale(1.05); }
  70%     { transform: translateY(-4px) scale(1.02); }
}

.cat-bouncing {
  animation: cat-bounce 0.4s ease;
}

.cat-unlock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,215,0,0.12);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
}

.cat-unlock-overlay.show {
  opacity: 1;
}

.cat-unlock-card {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: #f5f0e8;
  padding: 20px 24px;
  border-radius: 4px;
  box-shadow: 4px 6px 24px rgba(0,0,0,0.5);
  transform: rotate(-1.5deg);
  z-index: 10001;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  transform: rotate(-1.5deg) translateY(10px);
}

.cat-unlock-card.show {
  opacity: 1;
  pointer-events: all;
  transform: rotate(-1.5deg) translateY(0);
}

.cat-unlock-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 16px;
  background: rgba(255,215,0,0.5);
  border: 1px solid rgba(200,160,0,0.3);
}

.cat-unlock-card .k-emoji {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}

.cat-unlock-card .k-title {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.cat-unlock-card .k-sub {
  font-family: 'Caveat', cursive;
  font-size: 14px;
  color: #7a7060;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cat-unlock-card .k-btn {
  display: inline-block;
  background: #ffd700;
  color: #1a1a1a;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  font-weight: 700;
  padding: 8px 20px;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.15);
  transition: transform 0.15s;
}

.cat-unlock-card .k-btn:hover {
  transform: translateY(-2px);
}

.k-reset {
  display: block;
  margin-top: 10px;
  background: none;
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 2px;
  font-family: 'Caveat', cursive;
  font-size: 13px;
  color: #7a7060;
  padding: 5px 12px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.k-reset:hover {
  background: rgba(0,0,0,0.06);
  color: #1a1a1a;
}

.cat-unlock-card .k-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-family: 'Caveat', cursive;
  font-size: 16px;
  color: #bbb;
  cursor: pointer;
}

.cat-unlock-card .k-close:hover {
  color: #1a1a1a;
}
