@keyframes rise-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flash-delta {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.55); }
  100% { filter: brightness(1); }
}

@keyframes bar-sweep {
  from { background-position: -120% 0; }
  to { background-position: 220% 0; }
}

@keyframes heat-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(62, 230, 162, 0.25); }
  50% { box-shadow: 0 0 16px rgba(62, 230, 162, 0.55); }
}

@keyframes probe-shimmer {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

[data-card] {
  animation: rise-in 400ms ease both;
}

.crawler-grid .bot-card:nth-child(1) { animation-delay: 40ms; }
.crawler-grid .bot-card:nth-child(2) { animation-delay: 90ms; }
.crawler-grid .bot-card:nth-child(3) { animation-delay: 140ms; }
.crawler-grid .bot-card:nth-child(4) { animation-delay: 190ms; }
.crawler-grid .bot-card:nth-child(5) { animation-delay: 240ms; }
.crawler-grid .bot-card:nth-child(6) { animation-delay: 290ms; }
.crawler-grid .bot-card:nth-child(7) { animation-delay: 340ms; }
.crawler-grid .bot-card:nth-child(8) { animation-delay: 390ms; }
.crawler-grid .bot-card:nth-child(n+9) { animation-delay: 430ms; }

.delta.play { animation: flash-delta 350ms ease; }

.bot-card .bar {
  background-size: 40% 100%;
  animation: bar-sweep 450ms ease both;
}

.heat-owned.play { animation: heat-pulse 500ms ease 1; }

.probe-bar {
  height: 2px;
  margin: -8px 0 18px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  background-size: 40% 100%;
  animation: probe-shimmer 1.4s linear infinite;
}

.card, .metric, .bot-card, .pill {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.skel { overflow: hidden; }
.skel::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  animation: probe-shimmer 1.2s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
