/* Four distinct summon / impact / release signatures. Entire overlay ignores input. */
.guardian-cast{position:absolute;inset:0;z-index:12;pointer-events:none!important;isolation:isolate;border-radius:inherit;--cast-color:#6ef1ca}
.guardian-cast *{pointer-events:none!important}.cast-wash{position:absolute;inset:-10px;border-radius:20px;background:radial-gradient(ellipse at 50% 28%,color-mix(in srgb,var(--cast-color) 28%,transparent),transparent 72%);animation:cast-wash 1.5s ease-out both;z-index:0}.cast-avatar{position:absolute;left:50%;top:8%;width:clamp(90px,25%,145px);aspect-ratio:1;z-index:3;filter:drop-shadow(0 0 18px color-mix(in srgb,var(--cast-color) 65%,transparent));animation:guardian-arrival 1.55s both}.cast-avatar .guardian-icon{position:absolute;inset:7%;border:2px solid #f8e1a2;box-shadow:0 0 25px var(--cast-color);width:86%;height:86%}.cast-orbit{position:absolute;inset:-5%;border:1px solid var(--cast-color);border-radius:50%;box-shadow:0 0 10px color-mix(in srgb,var(--cast-color) 35%,transparent);animation:orbit-turn 1.6s linear both}.cast-orbit:after,.cast-orbit:before{content:'';position:absolute;inset:12%;border:1px dashed var(--cast-color);transform:rotate(45deg)}.cast-orbit.inner{inset:-15%;border-style:dashed;animation-direction:reverse}.cast-banner{position:absolute;left:50%;top:-20px;transform:translateX(-50%);width:max-content;max-width:95%;padding:9px 23px 10px;background:linear-gradient(90deg,transparent,#082b2af5 17%,#082b2af5 83%,transparent);border-block:1px solid color-mix(in srgb,var(--cast-color) 75%,transparent);text-align:center;z-index:5;animation:cast-title 1.55s both;text-shadow:0 0 10px var(--cast-color)}.cast-banner b{display:block;font:600 clamp(18px,3vw,25px)/1.4 var(--font);color:#ffebc1;letter-spacing:.16em}.cast-banner b span{font-size:.72em}.cast-banner small{display:block;font:10px/1.7 var(--font);color:var(--cast-color);letter-spacing:.18em;white-space:nowrap}.board-frame .cast-drawing{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;stroke:var(--cast-color);fill:none;stroke-linecap:round;filter:drop-shadow(0 0 5px var(--cast-color))}.cast-tile{position:absolute!important;z-index:4!important;margin:0!important;transition:none!important;animation-duration:1.3s;animation-fill-mode:both}.cast-tile .depth,.cast-tile .lock-dot{display:none}.cast-mote{position:absolute;z-index:4;width:5px;height:8px;border-radius:2px;background:var(--cast-color);box-shadow:0 0 9px var(--cast-color);animation:cast-particle 1s ease-out both}.cast-mote.jade{border-radius:50% 0;transform:rotate(45deg)}
.dragon-river{stroke-width:6;stroke-dasharray:100;animation:river-draw 1.2s both}.dragon-river.echo{stroke-width:2;stroke:#e8ffdc}.dragon-gate{stroke-width:2;transform-box:fill-box;transform-origin:center;animation:gate-open 1.2s both}.dragon-gate.outer{stroke-dasharray:5 7;stroke-width:1}.dragon-pearl{position:absolute;width:17px;height:17px;margin:-8px;border-radius:50%;background:#efffec;box-shadow:0 0 13px 5px #74ecc6;animation:pearl-travel 1.3s ease-in-out both}.dragon-tile{animation-name:dragon-gather}.cast-dragon .cast-avatar{animation-name:dragon-arrival}
.cast-tiger .cast-avatar{animation-name:tiger-arrival}.cast-tiger .cast-orbit{border-radius:15%;transform:rotate(45deg)}.tiger-claw{stroke:#fff7de;stroke-width:6;stroke-dasharray:100;animation:tiger-slash 1.05s both}.tiger-impact{stroke-width:3;transform-box:fill-box;transform-origin:center;animation:gate-open 1s both}.tiger-shard{animation-name:tiger-break}.cast-mote.stone{width:8px;height:9px;background:linear-gradient(140deg,#fff6d9,#829daa);clip-path:polygon(15% 0,100% 20%,72% 100%,0 70%)}
.cast-bird .cast-avatar{animation-name:bird-arrival}.phoenix-wing{stroke:#ffd99c;stroke-width:7;stroke-dasharray:100;animation:wing-unfurl 1.2s both}.phoenix-flight{stroke-width:3;stroke-dasharray:4 8;animation:phoenix-trail 1.1s both}.phoenix-tile{animation-name:phoenix-gather}.cast-mote.feather{width:7px;height:23px;border-radius:90% 0 90% 0;background:linear-gradient(#fff0ab,#f25d36)}.cast-mote.ember{border-radius:50%;width:5px;height:5px}.phoenix-bloom{stroke:#fff0bd;stroke-width:6;transform-box:fill-box;transform-origin:center;animation:gate-open .8s both}
.cast-tortoise .cast-avatar{animation-name:tortoise-arrival}.cast-tortoise .cast-orbit{border-style:double;border-width:4px}.tortoise-tide{stroke-width:2;stroke-dasharray:10 4;transform-box:fill-box;transform-origin:center;animation:tide-in 1.4s both}.tortoise-hex{stroke:#c3edff;stroke-width:1;animation:hex-reveal 1.4s both}.tortoise-recall{stroke-width:2;transform-box:fill-box;transform-origin:center;animation:tide-in 1.2s both}.tortoise-return{animation-name:tortoise-restore}.cast-mote.water{border-radius:80% 0 80% 80%;animation-direction:reverse;background:#b1eaff}
@keyframes cast-wash{0%{opacity:0}20%,55%{opacity:1}100%{opacity:0}}
@keyframes cast-title{0%{opacity:0;translate:0 12px}16%,68%{opacity:1;translate:0 0}100%{opacity:0;translate:0 -10px}}
@keyframes orbit-turn{to{rotate:150deg}}
@keyframes guardian-arrival{0%{opacity:0;transform:translate(-50%,-20px) scale(.6)}25%,65%{opacity:.94;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-20px) scale(1.08)}}
@keyframes dragon-arrival{0%{opacity:0;transform:translate(-110%,20px) scale(.45) rotate(-30deg)}28%,60%{opacity:.94;transform:translate(-50%,0) scale(1) rotate(0)}100%{opacity:0;transform:translate(10%,-35px) scale(.8) rotate(20deg)}}
@keyframes tiger-arrival{0%{opacity:0;transform:translate(15%,-20px) scale(.55)}22%{opacity:1;transform:translate(-55%,12px) scale(1.16)}42%,65%{opacity:.94;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-70%,-5px) scale(1.14)}}
@keyframes bird-arrival{0%{opacity:0;transform:translate(-50%,75px) scale(.35)}32%{opacity:1;transform:translate(-50%,-8px) scale(1.1)}58%{opacity:.94;transform:translate(-50%,0) scale(1)}100%{opacity:0;transform:translate(-50%,-65px) scale(1.15)}}
@keyframes tortoise-arrival{0%{opacity:0;transform:translate(-50%,30px) scale(1.3) rotate(25deg)}28%,65%{opacity:.94;transform:translate(-50%,0) scale(1) rotate(0)}100%{opacity:0;transform:translate(-50%,0) scale(.5) rotate(-30deg)}}
@keyframes river-draw{0%{stroke-dashoffset:100;opacity:0}15%{opacity:1}65%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-100;opacity:0}}
@keyframes gate-open{0%{transform:scale(.25);opacity:0}25%{opacity:1}100%{transform:scale(2.1);opacity:0}}
@keyframes pearl-travel{0%{offset-distance:0%;opacity:0}15%,80%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes dragon-gather{0%,20%{opacity:1;transform:scale(1)}38%{transform:translateY(-12px) scale(1.13);filter:brightness(1.18)}80%,100%{opacity:0;transform:translate(var(--pull-x),var(--pull-y)) scale(.2) rotate(15deg)}}
@keyframes tiger-slash{0%{stroke-dashoffset:100;opacity:0}20%{opacity:1}38%,65%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-10;opacity:0}}
@keyframes tiger-break{0%,24%{opacity:1;transform:scale(1)}45%{opacity:1;filter:brightness(1.35);transform:translate(var(--split),-9px) rotate(7deg)}100%{opacity:0;transform:translate(calc(var(--split)*2),35px) rotate(20deg) scale(.55)}}
@keyframes wing-unfurl{0%{stroke-dashoffset:100;opacity:0}40%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:-25;opacity:0}}
@keyframes phoenix-trail{0%{opacity:0;stroke-dashoffset:70}35%{opacity:1}100%{opacity:0;stroke-dashoffset:0}}
@keyframes phoenix-gather{0%,15%{opacity:1;transform:scale(1)}40%{opacity:1;transform:translate(calc(var(--pull-x)*.3),calc(var(--pull-y)*.3 - 25px)) scale(1.12);filter:brightness(1.16)}78%,100%{opacity:0;transform:translate(var(--pull-x),var(--pull-y)) scale(.25) rotate(-10deg)}}
@keyframes tide-in{0%{transform:scale(1.25) rotate(20deg);opacity:0}30%{opacity:.85}100%{transform:scale(.25) rotate(-50deg);opacity:0}}
@keyframes hex-reveal{0%{opacity:0}35%,60%{opacity:.65}100%{opacity:0}}
@keyframes tortoise-restore{0%{opacity:0;transform:translateY(var(--pull-y)) scale(.65);filter:brightness(1.5)}45%{opacity:1;transform:translateY(-3px) scale(1.08)}78%{opacity:1;transform:translateY(0) scale(1);filter:brightness(1)}100%{opacity:0;transform:scale(1)}}
@keyframes cast-particle{0%{opacity:0;transform:translate(0,0) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(.15)}}
.cast-reduced .cast-drawing{display:none}.cast-reduced .cast-banner{animation:none;top:5px;background:#092d2bf5}
@media(max-width:600px){.cast-banner{top:-13px;padding:6px 15px}.cast-banner b{font-size:19px}.cast-banner small{font-size:9px}.cast-avatar{top:12%;width:105px}}
@media(prefers-reduced-motion:reduce){.guardian-cast .cast-wash,.guardian-cast .cast-avatar,.guardian-cast .cast-mote,.guardian-cast .cast-tile,.guardian-cast .cast-drawing{display:none!important}.guardian-cast .cast-banner{animation:none}}
