/* =============================================================================
 * LabPulse - shared seasonal / decorative artwork (SOE Adjustment Batch 6)
 * -----------------------------------------------------------------------------
 * Small inline SVG drawings (no downloads, no libraries) and the keyframes that move them, shared by
 *   - the avatar frames                 (lp-profile.css, .lp-frame-host[data-frame])
 *   - the cover-photo effects           (lp-profile.css, .pf-fx[data-effect])
 *   - the public website's seasonal overlay (lp-seasonal.css, .lp-season)
 *
 * Motion policy, everywhere these are used:
 *   Full    (data-lp-motion="full")      - the full animation; only transform and opacity move (the GPU composites them,
 *                                            nothing is re-laid out), at calm speeds, never flashing.
 *   Reduced (the device asks, or chosen)  - nothing travels, turns or falls; at most a slow glow (3 s or longer).
 *   A background tab pauses everything (themes-motion.css, data-lp-hidden).
 * Every decorative layer is aria-hidden and pointer-events: none - it never takes a click, a tap or text selection.
 * ========================================================================== */
:root {
    /* a small spider (head, body, eight legs, two amber eye glints) */
    --fx-spider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg stroke='%23170c22' stroke-width='1.7' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 15 7 10 3 12M13 17 6 16 2 19M13 19 7 22 4 27M14 20 10 25 9 30M19 15 25 10 29 12M19 17 26 16 30 19M19 19 25 22 28 27M18 20 22 25 23 30'/%3E%3C/g%3E%3Cellipse cx='16' cy='19.5' rx='4.4' ry='5.2' fill='%23170c22'/%3E%3Ccircle cx='16' cy='12.6' r='3' fill='%23170c22'/%3E%3Ccircle cx='14.9' cy='12.2' r='.8' fill='%23ffa24a'/%3E%3Ccircle cx='17.1' cy='12.2' r='.8' fill='%23ffa24a'/%3E%3C/svg%3E");
    /* a corner spider web: five threads from the corner and three rows of sagging silk */
    --fx-web: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.62' stroke-width='.9' stroke-linecap='round'%3E%3Cpath d='M0 0 100 8M0 0 92 46M0 0 70 78M0 0 40 98M0 0 8 100'/%3E%3Cpath d='M25 2Q20 8 22.4 11.2Q17 14 16.7 18.6Q12 19 9.5 23.2Q5 22 2 25'/%3E%3Cpath d='M50 4Q41 14 44.7 22.4Q34 28 33.4 37.2Q24 39 18.9 46.3Q10 44 4 50'/%3E%3Cpath d='M75 6Q62 21 67 33.5Q51 42 50 55.7Q36 58 28.4 69.5Q15 66 6 75'/%3E%3C/g%3E%3C/svg%3E");
    /* a bat, wings spread */
    --fx-bat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 22'%3E%3Cpath fill='%231b1030' d='M24 9c1-2 1.6-3.6 1.6-5 1 .8 1.6 2 1.8 3.4C32 4 39 3 48 6c-4.6 1.4-7 4-8 8-2.4-2.2-6-2.4-8.6.2-1.4-2.6-4-4-7.4-4s-6 1.4-7.4 4C14 11.6 10.4 11.8 8 14 7 10 4.6 7.4 0 6c9-3 16-2 20.6 1.4.2-1.4.8-2.6 1.8-3.4 0 1.4.6 3 1.6 5z'/%3E%3C/svg%3E");
    /* a four-point sparkle */
    --fx-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff6cf' d='M10 0 11.8 8.2 20 10 11.8 11.8 10 20 8.2 11.8 0 10 8.2 8.2z'/%3E%3C/svg%3E");
}

/* shared keyframes (transform / opacity only) */
@keyframes fx-turn { to { transform: rotate(1turn); } }
@keyframes fx-turn-back { to { transform: rotate(-1turn); } }
@keyframes fx-glow { 0%, 100% { opacity: 0.72; } 50% { opacity: 1; } }
@keyframes fx-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fx-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes fx-dangle { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(var(--fx-drop, 40%)); } 60% { transform: translateY(var(--fx-drop, 40%)); } }
@keyframes fx-spark { 0%, 100% { transform: scale(0.55) rotate(0deg); opacity: 0.35; } 50% { transform: scale(1) rotate(30deg); opacity: 1; } }
@keyframes fx-snow { from { transform: translate3d(0, -100%, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes fx-across { from { transform: translate3d(var(--fx-from, -30vw), 0, 0); } to { transform: translate3d(var(--fx-to, 130vw), 0, 0); } }
@keyframes fx-flap { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.45); } }
