/* A small, slow highlight travels around the Good News rim only.
   Its own angle keeps it independent of the existing lantern lighting. */
@property --good-news-shine-angle {
 syntax:'<angle>';
 inherits:false;
 initial-value:0deg;
}
body[data-page=shelf] .shelf-actions .pill.featured[href="#salvation"] {
 --good-news-shine-tail:#dca15280;
 --good-news-shine-core:#fff9dd;
 --good-news-shine-fade:#f5ce7ea6;
 --good-news-shine-inset:-1.5px;
}
:root[data-theme=heirloom_light] body[data-page=shelf] .shelf-actions .pill.featured[href="#salvation"] {
 --good-news-shine-tail:#bb795ccc;
 --good-news-shine-core:#fffaf0;
 --good-news-shine-fade:#edc3a5cc;
 --good-news-shine-inset:-1px;
}
body[data-page=shelf] .shelf-actions .pill.featured[href="#salvation"]::after {
 content:"";display:block!important;position:absolute;
 inset:var(--good-news-shine-inset);padding:2px;border-radius:inherit;
 z-index:3;pointer-events:none;
 background:conic-gradient(from var(--good-news-shine-angle),
  transparent 0deg 278deg,var(--good-news-shine-tail) 301deg,
  var(--good-news-shine-core) 319deg,var(--good-news-shine-core) 324deg,
  var(--good-news-shine-fade) 336deg,transparent 352deg 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;
 opacity:.9;
 animation:good-news-rim-shine 9s linear infinite;
}
@keyframes good-news-rim-shine {
 from {--good-news-shine-angle:0deg}
 to {--good-news-shine-angle:360deg}
}

/* Tiny glints on the cross, staggered so they never flash together. */
body[data-page=shelf] .shelf-actions .pill.featured .salvation-cross {overflow:visible}
body[data-page=shelf] .shelf-actions .pill.featured .salvation-cross .cross-glint {
 fill:#fffbea;stroke:none;pointer-events:none;
 transform-box:fill-box;transform-origin:center;
 opacity:.12;
 animation:good-news-cross-twinkle 6.4s ease-in-out infinite;
}
body[data-page=shelf] .shelf-actions .pill.featured .salvation-cross .cross-glint-arm {
 animation-delay:-3.2s;
}
@keyframes good-news-cross-twinkle {
 0%,7%,35%,100% {opacity:.12;transform:scale(.7)}
 16% {opacity:1;transform:scale(1.3)}
 24% {opacity:.35;transform:scale(.85)}
 29% {opacity:.65;transform:scale(1.05)}
}
@media (prefers-reduced-motion:reduce) {
 body[data-page=shelf] .shelf-actions .pill.featured[href="#salvation"]::after {
  animation:none;--good-news-shine-angle:35deg;opacity:.5;
 }
 body[data-page=shelf] .shelf-actions .pill.featured .salvation-cross .cross-glint {
  animation:none;transform:none;opacity:.55;
 }
}
