.spread-stage{position:relative;isolation:isolate;overflow:hidden;background:var(--night)}
.spread-stage .spread{position:relative;z-index:1}
.element-atmosphere{position:absolute;inset:0;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .35s ease}
.element-atmosphere[hidden]{display:none}
.spread-stage[data-element] .element-atmosphere{opacity:1}
.spread-stage[data-element="earth"]{--theme-base:#202c16;--theme-glow:#546d2d;--theme-halo:#7f6328;--theme-accent:#d2df9a;--theme-line:#a9b866}
.spread-stage[data-element="fire"]{--theme-base:#34180f;--theme-glow:#a3461c;--theme-halo:#6e2316;--theme-accent:#ffc487;--theme-line:#eaa15b}
.spread-stage[data-element="water"]{--theme-base:#102c40;--theme-glow:#236683;--theme-halo:#12465d;--theme-accent:#b3e8f4;--theme-line:#75c5d9}
.spread-stage[data-element="air"]{--theme-base:#212b39;--theme-glow:#526b83;--theme-halo:#414e72;--theme-accent:#e0e9fa;--theme-line:#bbd1e8}
.element-wash{position:absolute;inset:0;opacity:.82;background:radial-gradient(ellipse at var(--origin-x,75%) var(--origin-y,50%),var(--theme-glow) 0%,transparent 55%),radial-gradient(ellipse at 18% 63%,var(--theme-halo),transparent 58%),linear-gradient(to bottom,var(--night) 0%,var(--theme-base) 23%,var(--theme-base) 82%,var(--night) 100%);mask-image:linear-gradient(to bottom,transparent,#000 13%,#000 85%,transparent);clip-path:circle(0 at var(--origin-x,75%) var(--origin-y,50%))}
.element-atmosphere.bloom .element-wash{animation:element-spread 2.8s cubic-bezier(.2,.65,.25,1) .18s both}
@keyframes element-spread{from{clip-path:circle(0 at var(--origin-x) var(--origin-y))}to{clip-path:circle(var(--origin-radius) at var(--origin-x) var(--origin-y))}}
.element-motifs{position:absolute;left:var(--origin-x,75%);top:var(--origin-y,50%);width:clamp(650px,125vw,1900px);height:auto;transform:translate(-50%,-50%);overflow:visible;color:var(--theme-line);opacity:.52;filter:drop-shadow(0 0 5px var(--theme-glow))}
.element-motifs .trail{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:element-trail 2.7s ease-out var(--delay,0s) both}
.element-motifs .detail{fill:currentColor;opacity:0;animation:element-detail 1.1s ease-out var(--delay,0s) both}
@keyframes element-trail{to{stroke-dashoffset:0}}
@keyframes element-detail{from{opacity:0}to{opacity:.68}}
.spread-stage[data-element] .result-card:last-child{outline-color:var(--theme-accent);background:#090f1260;box-shadow:0 0 22px 2px var(--theme-glow);animation:card-reveal .55s both,attention-glow 2.2s ease-out .25s both}
.spread-stage[data-element] .spread p,.spread-stage[data-element] .result-card figcaption{color:#e2ddd2}
.spread-stage[data-element] .result-card:last-child figcaption{color:var(--theme-accent)}
.spread-stage[data-element] .secondary-action{border-color:var(--theme-line);color:var(--theme-accent)}
.spread-stage[data-element] #result-title{text-shadow:0 2px 20px #0008}
@keyframes attention-glow{0%{box-shadow:0 0 0 0 transparent}42%{box-shadow:0 0 40px 8px var(--theme-glow)}100%{box-shadow:0 0 22px 2px var(--theme-glow)}}
@media(max-width:759px){.element-motifs{width:680px;opacity:.46}.element-wash{mask-image:linear-gradient(to bottom,transparent,#000 10%,#000 92%,transparent)}}
@media(prefers-reduced-motion:reduce){.element-atmosphere.bloom .element-wash{animation:none;clip-path:none}.element-motifs .trail{animation:none;stroke-dashoffset:0}.element-motifs .detail{animation:none;opacity:.68}.spread-stage[data-element] .result-card:last-child{animation:none}}
