/* Sparkle
 * The twinkling star ring applied to .sparkle-outline cards.
 *
 * Lifted from the prototype's single stylesheet, unchanged apart from
 * indentation. Every colour resolves through a token in tokens.css.
 */

/* ---------- sparkle outline (wheel + completion cards) ----------
   A ring of tiny stars sits right on the card border and twinkles in
   a slow, staggered loop — the total circle once your week is complete,
   the Wheel of Life, and (in each area's own color) whichever card is
   open in the accordion. */
.sparkle-star {
  position: absolute; color: var(--accent); font-size: 11px; line-height: 1;
  text-shadow: 0 0 6px currentColor;
  transform: translate(-50%, -50%) rotate(0deg) scale(.6); opacity: 0; pointer-events: none; z-index: 2;
  animation: sparkleTwinkle 3s ease-in-out infinite;
}
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(.4); }
  50%      { opacity: 1; transform: translate(-50%, -50%) rotate(12deg) scale(1.3); }
}
@media (prefers-reduced-motion: reduce) {
  .sparkle-star { animation: none; opacity: .4; transform: translate(-50%, -50%) scale(.85); }
}
.wheel-wrap { position: relative; max-width: 420px; margin: 0 auto; }
.wheel-wrap > svg { display: block; width: 100%; height: auto; }
.wheel-wrap svg svg { width: 23px; height: 23px; }
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; pointer-events: none; width: 40%;
}
.wheel-center .num { font-family: 'Karla', system-ui, sans-serif; font-size: 38px; font-weight: 700; line-height: 1; color: var(--ink); }
.wheel-center .band { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-top: 5px; line-height: 1.3; }
.wheel-dot { transition: cx .45s cubic-bezier(.22,1,.36,1), cy .45s cubic-bezier(.22,1,.36,1), fill .3s ease; }
.wheel-poly { transition: fill .4s ease; }
.savepill {
  position: fixed; left: 50%; bottom: 22px; z-index: 40;
  display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card);
  padding: 9px 16px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  transform: translate(-50%, 8px);
}
.savepill.show { opacity: 1; transform: translate(-50%, 0); }
.savepill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
