/* Neko walker — floating REAL photo orb (not a cartoon mascot) */

.neko-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.neko-sprite {
  position: absolute;
  width: 64px;
  height: 64px;
  left: 0;
  top: 0;
  padding: 0;
  border: 2px solid rgba(245, 180, 50, 0.55);
  border-radius: 50%;
  background: #0a0a0c center / cover no-repeat;
  box-shadow:
    0 0 0 3px rgba(10, 8, 6, 0.85),
    0 8px 24px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(245, 180, 50, 0.32);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.neko-sprite::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.neko-sprite:hover,
.neko-sprite:focus-visible {
  border-color: rgba(252, 211, 77, 0.8);
  box-shadow:
    0 0 0 3px rgba(10, 8, 6, 0.9),
    0 10px 28px rgba(0, 0, 0, 0.6),
    0 0 36px rgba(245, 180, 50, 0.4);
}

.neko-sprite.walking {
  animation: neko-bob 0.55s ease-in-out infinite;
}

.neko-sprite.sitting {
  animation: neko-breathe 2.4s ease-in-out infinite;
}

.neko-sprite.looking {
  animation: neko-tilt 2s ease-in-out 1;
}

@keyframes neko-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -3px; }
}

@keyframes neko-breathe {
  0%, 100% { transform: translate3d(var(--nx, 0), var(--ny, 0), 0) scale(1); }
  50% { transform: translate3d(var(--nx, 0), var(--ny, 0), 0) scale(1.04); }
}

@keyframes neko-tilt {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(1.15); }
  70% { filter: brightness(0.95); }
}

.neko-tooltip {
  position: absolute;
  max-width: min(260px, 70vw);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 180, 50, 0.45);
  background: rgba(16, 12, 8, 0.94);
  color: #f5efe6;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 41;
}

.neko-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.neko-tooltip::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1px solid rgba(245, 180, 50, 0.45);
  border-bottom: 1px solid rgba(245, 180, 50, 0.45);
  transform: rotate(45deg);
}

@media (max-width: 720px) {
  .neko-sprite {
    width: 48px;
    height: 48px;
  }
}
