/* Reveal choreography: a light gathers, the card pops out, then stars twinkle. */
.ks-reveal{overflow:visible}
.ks-aura,.ks-reveal-flare,.ks-reveal-ring{position:absolute;pointer-events:none;left:50%;top:50%;border-radius:50%;transform:translate(-50%,-50%)}
.ks-aura{z-index:-1;width:165%;height:145%;background:radial-gradient(ellipse,#fff9df 12%,#ffe493cc 35%,#ffd1698c 48%,#ffd16900 73%);filter:blur(14px);opacity:.9;animation:ks-aura-arrive 1.3s cubic-bezier(.16,1,.3,1) both,ks-aura-breathe 3.6s cubic-bezier(.45,0,.25,1) 1.3s infinite}
.ks-ritual[data-phase=reveal] .ks-golden-rays{inset:-100px;z-index:-1;pointer-events:none;background:repeating-conic-gradient(from 8deg,#fff2b800 0deg 7deg,#fff5d8ed 10deg,#ffdb7ac9 15deg,#ffdb7a00 21deg 30deg);mask-image:radial-gradient(ellipse,#000 23%,#000e 43%,#0008 55%,transparent 73%);filter:blur(3px);opacity:.9;animation:ks-reveal-rays 1.4s cubic-bezier(.16,1,.3,1) both,ks-rays-breathe 3.8s cubic-bezier(.45,0,.25,1) 1.4s infinite}
.ks-reveal-flare{z-index:3;width:190px;height:190px;background:radial-gradient(circle,#fffdf1 0% 12%,#fff3c5 24%,#ffdd80c9 40%,#ffcf6500 69%);filter:blur(5px);opacity:0;animation:ks-light-burst 1s cubic-bezier(.2,.65,.3,1) both}
.ks-reveal-ring{z-index:2;width:170px;height:170px;border:3px solid #fff1b9;box-shadow:0 0 22px #ffce77,inset 0 0 18px #fff4c3;filter:blur(2px);opacity:0;animation:ks-reveal-ripple 1.15s cubic-bezier(.16,1,.3,1) .22s both}
.ks-poem-card{z-index:1;opacity:1;transform-origin:50% 60%;box-shadow:0 16px 40px #65401838,0 0 28px #ffc85c99,0 0 65px #ffdf9699;animation:ks-card-pop .9s cubic-bezier(.22,1.22,.36,1) .48s both,ks-card-glow 3.2s cubic-bezier(.45,0,.25,1) 1.4s infinite}
.ks-sparks{z-index:2;inset:0;pointer-events:none}
.ks-sparks i{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);font-size:0;opacity:0;transform:translate(-50%,-50%) scale(.35);filter:drop-shadow(0 0 5px #f7b941) drop-shadow(0 0 10px #ffd877);animation:ks-star-twinkle var(--duration) cubic-bezier(.45,0,.25,1) var(--delay) infinite both}
.ks-sparks i span{display:block;width:100%;height:100%;background:linear-gradient(135deg,#fffdf0 25%,#ffda72);clip-path:polygon(50% 0,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0 50%,39% 39%)}
@keyframes ks-light-burst{0%{opacity:0;transform:translate(-50%,-50%) scale(.08)}22%{opacity:.95;transform:translate(-50%,-50%) scale(.75)}42%{opacity:1;transform:translate(-50%,-50%) scale(1.35)}68%{opacity:.65;transform:translate(-50%,-50%) scale(2)}100%{opacity:0;transform:translate(-50%,-50%) scale(2.7)}}
@keyframes ks-reveal-ripple{0%{opacity:0;transform:translate(-50%,-50%) scale(.25)}18%{opacity:.8}100%{opacity:0;transform:translate(-50%,-50%) scale(2.75)}}
@keyframes ks-aura-arrive{from{opacity:0;transform:translate(-50%,-50%) scale(.4)}to{opacity:.9;transform:translate(-50%,-50%) scale(1)}}
@keyframes ks-aura-breathe{0%,100%{opacity:.75;transform:translate(-50%,-50%) scale(1)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.07)}}
@keyframes ks-reveal-rays{0%{opacity:0;transform:scale(.25) rotate(-9deg)}45%{opacity:1}100%{opacity:.9;transform:scale(1) rotate(0deg)}}
@keyframes ks-rays-breathe{0%,100%{opacity:.75;transform:scale(1) rotate(0deg)}50%{opacity:1;transform:scale(1.07) rotate(4deg)}}
@keyframes ks-card-pop{0%{opacity:0;transform:translateY(32px) scale(.58) rotate(-5deg)}68%{opacity:1;transform:translateY(-7px) scale(1.045) rotate(1deg)}100%{opacity:1;transform:none}}
@keyframes ks-card-glow{0%,100%{box-shadow:0 16px 40px #65401838,0 0 28px #ffc85c99,0 0 65px #ffdf9699}50%{box-shadow:0 16px 40px #65401838,0 0 38px #ffc85ccc,0 0 85px #ffdc96b3}}
@keyframes ks-star-twinkle{0%,100%{opacity:0;transform:translate(-50%,-50%) scale(.35) rotate(-12deg)}22%{opacity:1;transform:translate(-50%,-50%) scale(1.15) rotate(0deg)}45%{opacity:.4;transform:translate(-50%,-50%) scale(.7) rotate(9deg)}62%{opacity:0;transform:translate(-50%,-50%) scale(.4) rotate(12deg)}}
@media(max-width:760px){
 .ks-ritual[data-phase=reveal] .ks-reveal{width:calc(100% - 30px);max-width:290px;padding:22px 12px}
 .ks-ritual[data-phase=reveal] .ks-golden-rays{inset:-48px}
 .ks-aura{width:145%;height:130%;filter:blur(12px)}
 .ks-reveal-flare{width:145px;height:145px}
 .ks-reveal-ring{width:130px;height:130px}
 .ks-poem-card{padding:26px 12px 22px}
 .ks-poem-card .ks-poem{font-size:20px}
}
@media(prefers-reduced-motion:reduce){
 .ks-aura,.ks-reveal-flare,.ks-reveal-ring,.ks-golden-rays,.ks-poem-card,.ks-sparks i{animation:none!important}
 .ks-reveal-flare,.ks-reveal-ring{display:none}
 .ks-poem-card{opacity:1;transform:none}
 .ks-aura{opacity:.65;transform:translate(-50%,-50%)}
 .ks-ritual[data-phase=reveal] .ks-golden-rays{opacity:.65;transform:none}
 .ks-sparks i{opacity:.7;transform:translate(-50%,-50%)}
}
