/* A small, self-contained interaction below the existing cat photograph. */
.cat-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cat-likes { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.cat-like-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 26px; padding: 2px 8px; border: 1px solid #dfd9dc; border-radius: 999px; background: #fff; color: #965773; font: inherit; font-size: inherit; line-height: 1.5; cursor: pointer; touch-action: manipulation; transition: background .15s, border-color .15s, transform .15s; }
.cat-like-button:hover { background: #fff4f8; border-color: #d6aabd; }
.cat-like-button:active { transform: scale(.95); }
.cat-like-button:focus-visible { outline: 2px solid var(--blue, #447b9d); outline-offset: 4px; }
.cat-like-button .cat-heart { font-size: .9rem; line-height: 1; }
.cat-like-count { position: relative; display: inline-block; overflow: hidden; min-width: 2ch; line-height: 1.4; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat-like-count [data-cat-count] { display: inline-block; }
.cat-number-out { position: absolute; inset: 0; pointer-events: none; animation: cat-number-out 240ms ease-in forwards; }
.cat-like-status { min-height: 1.5em; margin: 2px 0 0; text-align: right; font-size: .72rem; color: var(--muted, #717578); }
.cat-like-float { position: absolute; left: 50%; top: 0; z-index: 2; pointer-events: none; color: #bd628b; line-height: 1; animation: cat-heart-float 850ms ease-out forwards; }
.cat-photo.cat-loved > a > img { animation: cat-love-bounce 320ms ease-out; }
@keyframes cat-heart-float { from { opacity: 1; transform: translate(-50%, 0) scale(.8) rotate(-8deg); } to { opacity: 0; transform: translate(calc(-50% + var(--drift, 0px)), -75px) scale(1.3) rotate(15deg); } }
@keyframes cat-love-bounce { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.015) rotate(-.5deg); } }
@keyframes cat-number-out { to { opacity: 0; transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .cat-like-button { transition: none; }
  .cat-like-float, .cat-number-out { display: none; }
  .cat-photo.cat-loved > a > img { animation: none; }
}
