/* Page 6 only: a fine light follows each pill's existing outline. */
:is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip) {
  position: relative;
  isolation: isolate;
  --entre-box-period: 7.4s;
  --entre-box-phase: -1.6s;
  --entre-box-direction: normal;
}

:is(.stage .sc:nth-of-type(7), .mobile-chapter#para-quem) .chip:nth-child(2) {
  --entre-box-period: 9.2s;
  --entre-box-phase: -5.4s;
  --entre-box-direction: reverse;
}

:is(.stage .sc:nth-of-type(7), .mobile-chapter#para-quem) .chip:nth-child(3) {
  --entre-box-period: 8.6s;
  --entre-box-phase: -2.8s;
}

:is(.stage .sc:nth-of-type(7), .mobile-chapter#para-quem) .chip:nth-child(4) {
  --entre-box-period: 10s;
  --entre-box-phase: -7.7s;
  --entre-box-direction: reverse;
}

/* No JavaScript or mask support: leave the original pill entirely unchanged. */
:is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::before,
:is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::after {
  content: none;
}

@supports (background: conic-gradient(from 0deg, transparent, white)) and ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  html.has-box-border-motion :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::before,
  html.has-box-border-motion :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::after {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    background: conic-gradient(
      from var(--entre-box-angle, 0deg),
      transparent 0deg 252deg,
      rgba(255, 255, 255, .025) 278deg,
      rgba(255, 255, 255, .28) 306deg,
      rgba(255, 255, 255, .95) 329deg,
      rgba(255, 255, 255, .46) 341deg,
      transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation-play-state: paused;
  }

  html.has-box-border-motion :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::after {
    padding: 2px;
    filter: blur(1.3px);
  }

  html.has-box-border-motion :is(.stage .sc:nth-of-type(7).on .chip, .mobile-chapter#para-quem.is-box-motion-visible .chip)::before,
  html.has-box-border-motion :is(.stage .sc:nth-of-type(7).on .chip, .mobile-chapter#para-quem.is-box-motion-visible .chip)::after {
    animation: entre-box-orbit var(--entre-box-period) linear var(--entre-box-phase) infinite var(--entre-box-direction);
    animation-play-state: running;
  }

  html.has-box-border-motion :is(.stage .sc:nth-of-type(7).on .chip, .mobile-chapter#para-quem.is-box-motion-visible .chip)::before {
    opacity: .82;
  }

  html.has-box-border-motion :is(.stage .sc:nth-of-type(7).on .chip, .mobile-chapter#para-quem.is-box-motion-visible .chip)::after {
    opacity: .24;
  }

  /* Existing .paused * does not target pseudo-elements; pause both explicitly. */
  html.box-motion-suspended :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::before,
  html.box-motion-suspended :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::after,
  .paused :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::before,
  .paused :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::after,
  .stage:is(.paused, .still) .sc:nth-of-type(7) .chip::before,
  .stage:is(.paused, .still) .sc:nth-of-type(7) .chip::after {
    animation-play-state: paused !important;
  }
}

@keyframes entre-box-orbit {
  from { --entre-box-angle: 0deg; }
  to { --entre-box-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce), print {
  html.has-box-border-motion :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::before,
  html.has-box-border-motion :is(.stage .sc:nth-of-type(7) .chip, .mobile-chapter#para-quem .chip)::after {
    content: none !important;
    animation: none !important;
    opacity: 0 !important;
  }
}
