/* 全局悬浮黑猫：固定在右下角，不随页面滚动，不拦截页面操作 */
.cf-cat{
  position:fixed;
  right:clamp(12px,2vw,28px);
  bottom:clamp(12px,2vw,28px);
  z-index:9998;
  width:clamp(136px,14vw,196px);
  aspect-ratio:1 / 1;
  pointer-events:none;
  filter:drop-shadow(0 0 10px rgba(150,170,255,.28)) drop-shadow(0 14px 26px rgba(0,0,0,.6));
  background:url('assets/cat-idle-black.webp') center / contain no-repeat;
  -webkit-tap-highlight-color:transparent;
}
.cf-cat canvas{
  display:block;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity .3s ease;
}
.cf-cat.is-ready{background-image:none}
.cf-cat.is-ready canvas{opacity:1}

/* 仅在黑猫出现的页面，把原有「回到顶部」按钮挪到猫左侧 */
html.cf-cat-on .ux-top{
  right:calc(clamp(136px,14vw,196px) + clamp(12px,2vw,28px) + 14px);
}
@media (max-width:640px){
  .cf-cat{
    width:118px;
    right:10px;
    bottom:10px;
    filter:drop-shadow(0 0 8px rgba(150,170,255,.3)) drop-shadow(0 10px 18px rgba(0,0,0,.55));
  }
  html.cf-cat-on .ux-top{right:136px}
}
@media (prefers-reduced-motion:reduce){
  .cf-cat canvas{transition:none}
}
