/* Pequenos elementos gráficos em camadas, sem bloquear os links. */
.livepix-ribbon,
.social-directory.social-dock {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.livepix-ribbon > *,
.social-directory.social-dock > * { position: relative; z-index: 1; }
.livepix-ribbon-text strong { font-weight: 900; color: #fff; }

.livepix-ribbon {
  --dollar-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e9ddff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M17 6.5C15.9 5.4 14.3 5 12 5c-3 0-5 1.4-5 3.5s1.8 3.1 5 3.5 5 1.5 5 3.5-2 3.5-5 3.5c-2.4 0-4.1-.6-5.2-2'/%3E%3C/svg%3E");
}
.social-directory.social-dock {
  --social-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0e3ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-8-4.8-8-10a4.5 4.5 0 0 1 8-2.9A4.5 4.5 0 0 1 20 10c0 5.2-8 10-8 10Z'/%3E%3C/svg%3E");
  --social-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0e3ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14v10H10l-4 3v-3H5z'/%3E%3Cpath d='M8 9h8M8 12h5'/%3E%3C/svg%3E");
  --social-bell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0e3ff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 17h12l-1.4-2V11a4.6 4.6 0 0 0-9.2 0v4zM10 19a2 2 0 0 0 4 0'/%3E%3C/svg%3E");
}
.livepix-ribbon::before,
.livepix-ribbon::after,
.social-directory.social-dock::before,
.social-directory.social-dock::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  animation: ambient-rise 13s linear infinite;
  opacity: .24;
}
.livepix-ribbon::before,
.livepix-ribbon::after {
  background-image: var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark),var(--dollar-mark);
  background-size: 27px 30px,22px 26px,32px 35px,25px 28px,29px 32px,22px 25px,27px 30px,32px 35px,24px 28px,29px 32px;
}
.livepix-ribbon::before { background-position: 3% 35%,14% 78%,25% 12%,36% 65%,47% 29%,58% 82%,69% 18%,79% 64%,89% 28%,97% 77%; }
.livepix-ribbon::after { background-position: 8% 81%,19% 26%,30% 68%,41% 15%,52% 72%,63% 34%,73% 84%,83% 16%,92% 67%,99% 30%; animation-duration: 15s; animation-delay: -7s; }
.social-directory.social-dock::before,
.social-directory.social-dock::after {
  background-image: var(--social-heart),var(--social-chat),var(--social-bell),var(--social-heart),var(--social-chat),var(--social-bell),var(--social-heart),var(--social-chat),var(--social-bell),var(--social-heart),var(--social-chat),var(--social-bell);
  background-size: 31px 31px,26px 26px,29px 29px,37px 37px,27px 27px,31px 31px,34px 34px,25px 25px,36px 36px,28px 28px,32px 32px,26px 26px;
}
.social-directory.social-dock::before { background-position: 3% 18%,12% 60%,21% 26%,30% 80%,39% 14%,48% 65%,57% 29%,66% 78%,75% 35%,84% 88%,92% 22%,99% 61%; }
.social-directory.social-dock::after { background-position: 6% 73%,16% 32%,25% 86%,34% 22%,43% 70%,52% 36%,61% 85%,70% 13%,79% 55%,87% 19%,95% 76%,99% 40%; animation-duration: 16s; animation-delay: -8s; }
@keyframes ambient-rise {
  0% { opacity: 0; transform: translate3d(0,100%,0); }
  18%,75% { opacity: .28; }
  100% { opacity: 0; transform: translate3d(0,-100%,0); }
}

/* Os ícones ficam apenas no fundo, sem passar sobre os cartões. */
/* A faixa de indicações mantém a erva e os comprimidos como antes. */
.indication-ribbon .indication-art-leaf { opacity: .24; transform-origin: 50% 75%; animation: indication-leaf-sway 5s ease-in-out infinite; }
.indication-ribbon .indication-art-pill { opacity: .24; transform-origin: 50% 50%; animation: indication-pill-float 5.8s ease-in-out infinite; }
@keyframes indication-leaf-sway { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes indication-pill-float { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-6px) rotate(12deg); } }

@media (max-width: 650px) {
  .livepix-ribbon::before,.livepix-ribbon::after { background-size: 22px 25px,19px 22px,27px 30px,21px 24px,25px 28px,19px 22px,22px 25px,27px 30px,21px 24px,25px 28px; }
  .social-directory.social-dock::before,.social-directory.social-dock::after { background-size: 25px 25px,22px 22px,24px 24px,30px 30px,23px 23px,25px 25px,28px 28px,21px 21px,29px 29px,23px 23px,26px 26px,22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .livepix-ribbon::before,.livepix-ribbon::after,
  .social-directory.social-dock::before,.social-directory.social-dock::after { animation: none; display: none; }
  .indication-ribbon .indication-art-leaf,.indication-ribbon .indication-art-pill { animation: none; }
}
