/* The original floral contours, assembled laterally and drawn as native SVG. */
.living-mandala {
  --mandala-ink: #435641;
  --mandala-gold: #ae8743;
  transform: none;
  rotate: none;
  animation: none;
  isolation: isolate;
}
.living-mandala .mandala-vector { display: block; width: 100%; height: auto; overflow: visible; animation: none; transform: none; rotate: none; }
.living-mandala .mandala-native-contour { fill: var(--mandala-ink); stroke: var(--mandala-ink); stroke-width: .65; stroke-linecap: round; stroke-linejoin: round; }
.living-mandala .mandala-gold { fill: var(--mandala-gold); stroke: var(--mandala-gold); }
.living-mandala .mandala-centre-ring { fill: none; stroke: var(--mandala-ink); stroke-width: 4; }
.living-mandala .mandala-original-emblem { fill: var(--mandala-ink); }
.living-mandala .mandala-emblem-fill { fill: var(--mandala-gold); }
.living-mandala .mandala-petal { transform-box: view-box; }

/* Without JavaScript the complete flower remains visible. */
.living-mandala.is-prepared:not(.has-bloomed) .mandala-native-contour { fill-opacity: 0; stroke-dasharray: 1; stroke-dashoffset: 1; }
.living-mandala.is-prepared:not(.has-bloomed) .mandala-petal,
.living-mandala.is-prepared:not(.has-bloomed) .mandala-centre-emblem { opacity: 0; }
.living-mandala.is-prepared:not(.has-bloomed) .mandala-centre-ring { stroke-dasharray: 1; stroke-dashoffset: 1; }

.living-mandala.is-blooming .mandala-petal { animation: mandala-petal-arrival 2.6s cubic-bezier(.18,.68,.2,1) var(--petal-delay,0ms) both; }
.living-mandala.is-blooming .mandala-native-contour { animation: mandala-line-formation 3.2s cubic-bezier(.33,.02,.23,1) var(--trace-delay,0ms) both; }
.living-mandala.is-blooming .mandala-centre-ring { animation: mandala-centre-formation 2.9s ease 1.8s both; }
.living-mandala.is-blooming .mandala-centre-emblem { animation: mandala-emblem-arrival 1.8s ease 2.15s both; }
.living-mandala.is-blooming:not(.is-playing) * { animation-play-state: paused !important; }

@keyframes mandala-line-formation { from { fill-opacity: 0; stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1; } 38% { fill-opacity: 0; stroke-width: 4; } to { fill-opacity: 1; stroke-width: .65; stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes mandala-centre-formation { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes mandala-petal-arrival { from { opacity: 0; transform: translateX(var(--petal-arrival)); } 22% { opacity: 1; } to { opacity: 1; transform: translateX(0); } }
@keyframes mandala-emblem-arrival { from { opacity: 0; } to { opacity: 1; } }

.mandala-section[data-guardian="seahorse"] .living-mandala { --mandala-ink: #f3e8ee; --mandala-gold: #e9cf8c; }
.mandala-section[data-guardian="seahorse"] .living-mandala .mandala-art { filter: none; }
.motion-reduced .living-mandala *, .living-mandala.is-still * { animation: none !important; opacity: 1 !important; fill-opacity: 1 !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.motion-reduced .living-mandala .mandala-petal, .living-mandala.is-still .mandala-petal { transform: none !important; }
@media(prefers-reduced-motion:reduce) {
  .living-mandala * { animation: none !important; opacity: 1 !important; fill-opacity: 1 !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .living-mandala .mandala-petal { transform: none !important; }
}
