/* Shared cloud plaque. Only the opening gate owns the radiating light layer. */
body[data-page=home] :is(.entrance-start,.entrance-skip,#worship,.ks-primary,#ritual-dialog .primary-button){
 --cloud-cap:44px;display:flex;align-items:center;justify-content:center;text-align:center;position:relative;isolation:isolate;overflow:visible;
 min-height:66px;padding:16px 48px;border:0;border-radius:0;
 color:#fff5dc;background:transparent;box-shadow:none;text-decoration:none;
 font-family:SceneSerif,serif;letter-spacing:.08em;animation:none;
}
body[data-page=home] :is(.entrance-start,.entrance-skip,#worship,.ks-primary,#ritual-dialog .primary-button)::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
 border:0;border-radius:0;opacity:1;animation:none;transform:none;
 background:url("assets/auspicious-button-cloud-left.svg") left center / var(--cloud-cap) 100% no-repeat,
 url("assets/auspicious-button-cloud-right.svg") right center / var(--cloud-cap) 100% no-repeat,
 url("assets/auspicious-button-plaque.svg") center / 100% 100% no-repeat;
}
body[data-page=home] :is(.entrance-start,.entrance-skip,#worship,.ks-primary,#ritual-dialog .primary-button):hover{background:transparent}
body[data-page=home] :is(#worship,.ks-primary,#ritual-dialog .primary-button)::after{content:none;animation:none}
body[data-page=home] :is(#worship,.ks-primary,#ritual-dialog .primary-button){animation:none;transform:none;transition:opacity 180ms ease}
body[data-page=home] :is(#worship,.ks-primary,#ritual-dialog .primary-button):hover::before{filter:brightness(1.08)}
body[data-page=home] :is(#worship,.ks-primary,#ritual-dialog .primary-button):disabled::before{filter:none}
body[data-page=home] :is(.entrance-start,.entrance-skip,#worship,.ks-primary,#ritual-dialog .primary-button):focus-visible{outline:2px solid var(--jade,#15675f);outline-offset:5px}
body[data-page=home] #entrance .entrance-start{min-width:280px;min-height:78px;padding:14px 56px;gap:4px;--cloud-cap:51px}
body[data-page=home] .entrance-start small{color:#f1d69c;font-size:8px}
body[data-page=home] .entrance-start-arrow,body[data-page=home] .entrance-start-hand{display:none}
body[data-page=home] #entrance .entrance-skip{--cloud-cap:34px;min-height:48px;min-width:152px;padding:12px 35px;font-size:12px}
body[data-page=home] .entrance[data-phase=idle] .entrance-start{animation:none;transform:none}
body[data-page=home] .entrance .entrance-start::after{
 content:"";position:absolute;inset:-56px -58px -18px;z-index:-2;pointer-events:none;
 border:0;border-radius:50%;opacity:0;transform:scale(.8);animation:none;
 filter:blur(7px);
 background:radial-gradient(ellipse,#fffdf1f2 12%,#fff7d6bf 36%,#fffdf200 77%),repeating-conic-gradient(from 5deg,#fffaf200 0deg 10deg,#fffdf1f2 18deg 25deg,#fffaf200 34deg 45deg);
 mask-image:radial-gradient(ellipse,transparent 10%,#000 32%,#000d 48%,#0006 65%,transparent 87%);
}
body[data-page=home] .entrance[data-phase=idle] :is(.entrance-start,.entrance-skip)::before{animation:none}
body[data-page=home] .entrance[data-phase=idle] .entrance-start::after{animation:gate-cloud-radiance 4800ms cubic-bezier(.4,0,.2,1) infinite}
body[data-page=home] #entrance .entrance-skip::after{content:none;animation:none;filter:none}
@keyframes gate-cloud-radiance{
 0%,100%{opacity:.6;transform:scale(.95) rotate(-9deg)}
 48%{opacity:.95;transform:scale(1.07) rotate(9deg)}
}
body[data-page=home] .entrance-start-sparkles{position:absolute;inset:-24px -26px;pointer-events:none}
body[data-page=home] .entrance-start-sparkles i{position:absolute;display:block;width:18px;height:18px;color:#fffbe3;filter:drop-shadow(0 0 4px #fff5b8) drop-shadow(0 0 10px #fff5cf);opacity:0;transform:scale(.3)}
body[data-page=home] .entrance-start-sparkles i::before{content:"";position:absolute;inset:0;background:currentColor;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
body[data-page=home] .entrance-start-sparkles i:nth-child(1){left:9%;top:6%;--spark-delay:0ms}
body[data-page=home] .entrance-start-sparkles i:nth-child(2){right:7%;top:19%;width:23px;height:23px;--spark-delay:700ms}
body[data-page=home] .entrance-start-sparkles i:nth-child(3){left:1%;bottom:23%;width:14px;height:14px;--spark-delay:1300ms}
body[data-page=home] .entrance-start-sparkles i:nth-child(4){right:17%;bottom:7%;width:13px;height:13px;--spark-delay:1900ms}
body[data-page=home] .entrance[data-phase=idle] .entrance-start-sparkles i{animation:gate-star-twinkle 2800ms var(--spark-delay) cubic-bezier(.4,0,.2,1) infinite}
@keyframes gate-star-twinkle{0%,66%,100%{opacity:0;transform:scale(.3) rotate(-14deg)}22%{opacity:1;transform:scale(1.12) rotate(0deg)}39%{opacity:.45;transform:scale(.75) rotate(8deg)}50%{opacity:.9;transform:scale(1) rotate(14deg)}}
@media(max-width:700px){
 body[data-page=home] :is(#worship,.ks-primary,#ritual-dialog .primary-button){--cloud-cap:38px;min-height:61px;padding:14px 40px;letter-spacing:.04em}
 body[data-page=home] #entrance .entrance-start{min-width:250px;min-height:74px;--cloud-cap:48px}
 body[data-page=home] #entrance .entrance-skip{min-width:124px;min-height:43px;--cloud-cap:29px;padding:10px 28px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 body[data-page=home] .entrance[data-phase=idle] .entrance-start::after{animation:none!important;opacity:.36;transform:none}
 body[data-page=home] .entrance[data-phase=idle] .entrance-start-sparkles i{animation:none!important;opacity:.6;transform:none}
}
