/* ===== CAPY PARADE — Animated strip below home header ===== */
.capy-parade {
  position: relative;
  height: 68px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffab91 0%, #c8e6c9 50%, #81c784 100%);
  border-bottom: 3px solid #66bb6a;
}

/* Grass ground */
.parade-ground {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(180deg, #66bb6a, #4caf50);
}

/* Grass tufts */
.parade-ground::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 8px,
    #66bb6a 8px,
    #66bb6a 10px
  );
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='6'%3E%3Cpath d='M2 6 Q3 0 4 6 M8 6 Q10 1 12 6 M16 6 Q17 0 18 6' stroke='black' fill='black' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='6'%3E%3Cpath d='M2 6 Q3 0 4 6 M8 6 Q10 1 12 6 M16 6 Q17 0 18 6' stroke='black' fill='black' stroke-width='2'/%3E%3C/svg%3E");
  mask-repeat: repeat-x;
  -webkit-mask-repeat: repeat-x;
  background: #4caf50;
}

/* Scrolling group */
.parade-track {
  position: absolute;
  bottom: 8px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  animation: paradeScroll 14s linear infinite;
  will-change: transform;
}

@keyframes paradeScroll {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(100vw); }
}

/* Individual capy hop */
.parade-capy {
  flex-shrink: 0;
  animation: capyHop 0.55s ease-in-out infinite;
}

.parade-capy:nth-child(1) { animation-delay: 0s; }
.parade-capy:nth-child(2) { animation-delay: 0.12s; }
.parade-capy:nth-child(3) { animation-delay: 0.24s; }
.parade-capy:nth-child(4) { animation-delay: 0.36s; }
.parade-capy:nth-child(5) { animation-delay: 0.48s; }
.parade-capy:nth-child(6) { animation-delay: 0.08s; }
.parade-capy:nth-child(7) { animation-delay: 0.20s; }

@keyframes capyHop {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* User capy highlight */
.parade-capy-user {
  filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.7));
}
.parade-capy-user svg {
  width: 58px;
  height: 48px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .parade-track { animation: none; transform: translateX(10%); }
  .parade-capy  { animation: none; }
}
