/**
 * The announcement bar: Really's megaphone message floating at the top of
 * every page, flanked by two mirrored clusters of the site's own stars.
 *
 * Ported from the approved mockup (announcement-bar-floating-words-mockup.html,
 * star-cluster edition): no background, no border, no box, no dot field.
 * The words simply sit on the page, and a symmetric cluster of four-pointed
 * stars — the hollow ✧ kind from the novel page's status pills, with their
 * little ✦ companions, in the theme colors — stands on each side of them.
 * The clusters are part of the row, so they travel with the words whatever
 * their length. Every star twinkles on its own rhythm (dealt by
 * announcement.js, like the Ko-fi stamp's stars do).
 *
 * @package Astra_Child
 */

/* The bar itself: no box at all, just centered words with a star cluster
   on each side, sitting straight on the page. */
.annbar{position:relative;display:flex;align-items:center;justify-content:center;padding:30px clamp(20px,4vw,48px)}

/* The row: [star cluster] megaphone words [star cluster, mirrored]. */
.annrow{position:relative;z-index:1;display:flex;align-items:center;gap:18px;max-width:100%;justify-content:center;text-align:center}
.horn{flex:none;display:grid;place-items:center}
.horn svg{width:30px;height:30px;display:block;color:var(--gold)}
[data-theme="light"] .horn svg{color:var(--golddeep)}

/* The words. Bold wears the heading gold and links keep the site's link
   treatment, so Really's <b> and <a> survive with the right colors. */
.anntext{font-size:.98rem;line-height:1.4;min-width:0}
.anntext b,.anntext strong{color:var(--headings)}
.anntext a{color:var(--purpledeep);font-weight:800;text-decoration:underline;
 text-decoration-color:rgba(174,98,217,.4);text-underline-offset:3px;white-space:nowrap}
[data-theme="dark"] .anntext a{color:var(--purple)}
.anntext a:hover{color:var(--gold)}

/* One cluster of stars. The big hollow sparkle is the showpiece, the
   filled ones are its companions, the same mix the novel page's status
   pills use (hollow ✧ anchor + solid ✦ minis). */
.starcluster{position:relative;flex:none;width:52px;height:52px}
.starcluster svg{position:absolute;overflow:visible}
/* The right cluster is the left one flipped horizontally, so the pair
   reads as a true mirror. The flip goes on the container, not the stars,
   so it never fights the twinkle animation's own transform. */
.starcluster.flip{transform:scaleX(-1)}

/* The four stars of a cluster: big hollow anchor, small filled one tucked
   at its top inner shoulder, medium hollow one below, tiny filled one at
   the outer bottom. The right cluster is the exact mirror. */
.sc-big{width:26px;height:26px;left:0;top:8px;color:var(--gold)}
.sc-small{width:10px;height:10px;left:30px;top:2px;color:var(--pink)}
.sc-med{width:16px;height:16px;left:22px;top:26px;color:var(--purple)}
.sc-tiny{width:7px;height:7px;left:6px;top:40px;color:var(--pink)}
[data-theme="light"] .sc-big{color:var(--golddeep)}
[data-theme="light"] .sc-med{color:var(--purpledeep)}

/* The big and medium stars are hollow (outline only); the little pink
   ones are solid. The styles go on the <svg> itself, not the path inside:
   a <use> shadow tree can't be reached by selectors, but fill and stroke
   inherit into it. */
.sc-big,.sc-med{fill:none;stroke:currentColor;stroke-width:1.7}
.sc-small,.sc-tiny{fill:currentColor;stroke:none}

/* Twinkle: the Ko-fi stamp's own pulse (scale + fade), each star on its
   own rhythm so the cluster shimmers instead of blinking in unison. The
   fixed classes here are only the no-JS fallback: announcement.js deals
   every star a random duration and a random negative delay, the same
   trick the stamp's inline script uses. The keyframes are named ann-tw so
   the stamp's own stamp-tw keyframes in style.css are left untouched. */
.starcluster svg{transform-box:fill-box;transform-origin:center;
 animation:ann-tw 2.4s ease-in-out infinite}
.sc-small{animation-duration:3.2s;animation-delay:1.1s}
.sc-med{animation-duration:2.8s;animation-delay:.55s}
.sc-tiny{animation-duration:3.6s;animation-delay:1.7s}
@keyframes ann-tw{
 0%,100%{opacity:1;transform:scale(1)}
 50%{opacity:.25;transform:scale(.55)}
}
/* Readers who ask for reduced motion get a still sky. */
@media (prefers-reduced-motion:reduce){.starcluster svg{animation:none}}

/* On phones the clusters come along at about three-quarter size and the
   megaphone stays inline with the words, so the announcement reads like
   one flowing line flanked by stars instead of a horn above a text block. */
@media (max-width:640px){
 .annbar{padding:26px 14px}
 .annrow{flex-wrap:wrap;row-gap:10px}
 .anntext{flex:1 1 0;text-align:left}
 .anntext a{white-space:normal}
 .starcluster{width:38px;height:38px}
 .sc-big{width:19px;height:19px;left:0;top:6px}
 .sc-small{width:7px;height:7px;left:22px;top:1px}
 .sc-med{width:12px;height:12px;left:16px;top:19px}
 .sc-tiny{width:5px;height:5px;left:4px;top:30px}
}
