/* Theme-specific motion; backdrop photographs, monuments and actual match text stay still. */
.heritage-motion{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1;contain:layout paint;--heritage-ink:#e8c991}
.heritage-motion[data-motif=leshan]{--heritage-ink:#ade0d1}
.heritage-eaves{position:absolute;left:26%;right:26%;top:67%;height:20%}
.heritage-eaves i{position:absolute;top:calc(var(--tier)*16%);left:calc((4 - var(--tier))*6%);right:calc((4 - var(--tier))*6%);height:16px;background:var(--heritage-ink);clip-path:polygon(0 0,12% 45%,45% 62%,50% 46%,55% 62%,88% 45%,100% 0,93% 69%,55% 90%,50% 78%,45% 90%,7% 69%);opacity:0}
.heritage-timber{position:absolute;left:9%;right:9%;bottom:9%;height:2px}
.heritage-timber i{position:absolute;inset:0;background:linear-gradient(90deg,transparent,var(--heritage-ink),transparent);opacity:0;transform-origin:center}
.heritage-ripples{position:absolute;left:8%;right:8%;top:63%;height:17%}
.heritage-ripples i{position:absolute;inset:20% 28%;border:2px solid var(--heritage-ink);border-radius:50%;opacity:0;transform:scale(.3)}
.heritage-current{position:absolute;left:0;right:0;top:66%;height:7%;overflow:hidden}
.heritage-current i{position:absolute;inset:20% -40%;height:2px;background:linear-gradient(90deg,transparent,#d9f2e833, var(--heritage-ink),transparent);opacity:0;transform:translateX(-30%)}
.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) :is(.real-stadium-beam,.yingxian-light-sweep,.leshan-light-sweep,.yingxian-event-effect,.leshan-event-effect,.real-stadium-award-confetti){display:none!important}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]) :is(.yingxian-light-sweep,.leshan-light-sweep,.stadium-confetti){display:none!important}
.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) .real-stadium-intro{animation:heritage-ceremony 5s both;animation-delay:var(--heritage-intro-delay,0ms)}
.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) .real-stadium-awards{animation:heritage-award-reveal 10s both;animation-delay:var(--disney-award-delay,0ms)}
.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) .real-stadium-intro>:not(.heritage-motion){position:relative;z-index:2}
.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) .real-stadium-scene:has(.real-stadium-intro:not(.real-stadium-awards)) :is(.real-stadium-top,.real-stadium-score,.real-stadium-phase){visibility:hidden}
.real-stadium[data-skin=yingxian] .real-stadium-event{animation:heritage-timber-caption .5s ease-out both}
.real-stadium[data-skin=leshan] .real-stadium-event{animation:heritage-water-caption .65s ease-out both}
.real-stadium[data-skin=yingxian] .real-stadium-person{animation:none}
.real-stadium[data-skin=leshan] .real-stadium-person{animation:none}
.real-stadium[data-skin=yingxian] [data-heritage-event=change] .real-stadium-person{animation:heritage-timber-change .65s both}
.real-stadium[data-skin=leshan] [data-heritage-event=change] .real-stadium-person{animation:heritage-water-change .8s both}
/* Only live active effects or explicitly playing showroom scenes animate. */
.heritage-running [data-motif=yingxian][data-motion=entrance] .heritage-eaves i,.is-playing [data-motif=yingxian][data-motion=entrance] .heritage-eaves i{animation:heritage-eave-entry 5s both;animation-delay:calc(var(--heritage-intro-delay,0ms) + var(--tier)*110ms)}
.heritage-running [data-motif=yingxian]:is([data-motion=goal],[data-motion=awards],[data-motion=final]) .heritage-eaves i,.is-playing [data-motif=yingxian]:is([data-motion=goal],[data-motion=awards],[data-motion=final]) .heritage-eaves i{animation:heritage-eave-score 2.8s both;animation-delay:calc(var(--tier)*100ms)}
.heritage-running [data-motif=yingxian] .heritage-timber i,.is-playing [data-motif=yingxian] .heritage-timber i{animation:heritage-timber-line 2.2s ease-out both}
.heritage-running [data-motif=leshan] .heritage-ripples i,.is-playing [data-motif=leshan] .heritage-ripples i{animation:heritage-river-ring 2.8s ease-out both}
.heritage-running [data-motif=leshan] .heritage-ripples i:nth-child(2),.is-playing [data-motif=leshan] .heritage-ripples i:nth-child(2){animation-delay:.35s}
.heritage-running [data-motif=leshan] .heritage-ripples i:nth-child(3),.is-playing [data-motif=leshan] .heritage-ripples i:nth-child(3){animation-delay:.7s}
.heritage-running [data-motif=leshan] .heritage-current i,.is-playing [data-motif=leshan] .heritage-current i{animation:heritage-river-current 3.6s ease-in-out both}
.heritage-running [data-motif=leshan] .heritage-current i:nth-child(2),.is-playing [data-motif=leshan] .heritage-current i:nth-child(2){top:70%;animation-delay:.3s;animation-direction:reverse}
.heritage-running [data-motif=leshan][data-motion=entrance] :is(.heritage-current i,.heritage-ripples i){animation-delay:var(--heritage-intro-delay,0ms)}
.heritage-motion:is([data-motion=yellow],[data-motion=red],[data-motion=change],[data-motion=phase]) :is(.heritage-eaves,.heritage-ripples){display:none}
.heritage-motion[data-motion=yellow]{--heritage-ink:#f1d453}.heritage-motion[data-motion=red]{--heritage-ink:#ff7581}
.heritage-motion[data-motion=awards] .heritage-eaves{top:70%}.heritage-motion[data-motion=awards] .heritage-ripples{top:70%}
.heritage-motion[data-motion=final]{opacity:.6}
.heritage-running [data-motif=yingxian][data-motion=entrance] .heritage-eaves i,.is-playing [data-motif=yingxian][data-motion=entrance] .heritage-eaves i{animation-duration:4.4s}
.heritage-running [data-motif=leshan][data-motion=entrance] .heritage-ripples i:nth-child(2){animation-delay:calc(var(--heritage-intro-delay,0ms) + .35s)}
.heritage-running [data-motif=leshan][data-motion=entrance] .heritage-ripples i:nth-child(3){animation-delay:calc(var(--heritage-intro-delay,0ms) + .7s)}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]) .stadium-event-card{top:auto;bottom:6%;background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;text-shadow:0 2px 8px #000b}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]) .stadium-event-card:after{display:none!important}
.stadium-scene[data-theme=yingxian] .stadium-event-card{animation:heritage-timber-caption .5s both}
.stadium-scene[data-theme=leshan] .stadium-event-card{animation:heritage-water-caption .65s both}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]) .event-score-pulse{animation:none!important;box-shadow:none!important}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]) .stadium-shootout-panel{top:auto;bottom:35%;background:transparent!important;border:0!important;box-shadow:none!important}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]).is-playing .stadium-scoreboard{animation:none}
.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]).mode-entrance.is-playing .stadium-scoreboard{animation:heritage-ceremony 5s both}
@keyframes heritage-ceremony{0%{opacity:0}12%,78%{opacity:1}100%{opacity:0;visibility:hidden}}
@keyframes heritage-award-reveal{0%,100%{opacity:0}12%,88%{opacity:1}}
@keyframes heritage-eave-entry{0%,100%{opacity:0;transform:translateY(8px)}18%,65%{opacity:.75;transform:translateY(0)}}
@keyframes heritage-eave-score{0%,100%{opacity:0}25%,60%{opacity:.85;transform:translateY(-4px)}}
@keyframes heritage-timber-line{0%{opacity:0;transform:scaleX(.15)}30%,65%{opacity:.9;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1)}}
@keyframes heritage-river-ring{0%{opacity:0;transform:scale(.25)}20%{opacity:.6}100%{opacity:0;transform:scale(2.5)}}
@keyframes heritage-river-current{0%{opacity:0;transform:translateX(-30%)}35%,60%{opacity:.65}100%{opacity:0;transform:translateX(30%)}}
@keyframes heritage-timber-caption{from{opacity:0;clip-path:inset(0 100% 0 0)}to{opacity:1;clip-path:inset(0)}}
@keyframes heritage-water-caption{from{opacity:0;filter:blur(3px);transform:translateY(7px)}to{opacity:1;filter:none;transform:none}}
@keyframes heritage-timber-change{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@keyframes heritage-water-change{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
.no-motion .heritage-motion,.is-static .heritage-motion{display:none!important}
.real-stadium.no-motion .real-stadium-scene:has(.real-stadium-intro) :is(.real-stadium-top,.real-stadium-score,.real-stadium-phase){visibility:visible}
@media(prefers-reduced-motion:reduce){.heritage-motion{display:none!important}.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) .real-stadium-event,.stadium-scene:is([data-theme=yingxian],[data-theme=leshan]) *{animation:none!important;transition:none!important}.real-stadium:is([data-skin=yingxian],[data-skin=leshan]) .real-stadium-scene :is(.real-stadium-top,.real-stadium-score,.real-stadium-phase){visibility:visible}}
