<?php
/**
 * Four-point starburst spark — slow spin.
 *
 * @var string    $color
 * @var int       $size
 * @var float|int $delay
 */
$color = $color ?? 'var(--cc-amber)';
$size = (int)($size ?? 40);
$delay = $delay ?? 0;
?>
<svg viewBox="0 0 40 40" width="<?= $size ?>" height="<?= $size ?>"
     style="animation: cc-spin-slow 22s linear <?= h((string)$delay) ?>s infinite;"
     aria-hidden="true">
    <g stroke="<?= h($color) ?>" stroke-width="1.4" stroke-linecap="round">
        <?php foreach ([0, 45, 90, 135] as $a): ?>
            <line x1="20" y1="6" x2="20" y2="14" transform="rotate(<?= $a ?> 20 20)" />
        <?php endforeach; ?>
        <circle cx="20" cy="20" r="3" fill="<?= h($color) ?>" fill-opacity="0.2" stroke="none" />
    </g>
</svg>
