#details:has(.equip-result){width:calc(100% - 28px);max-width:640px;max-height:94dvh;padding:0;border-radius:22px;overflow:auto;border:1px solid #d7b77955;background:#090e1c;box-shadow:0 30px 120px #000b}
#details:has(.equip-result)>.modal-close{display:none}
.equip-result{position:relative;isolation:isolate;text-align:center;padding:26px 28px 18px;overflow:hidden;background:radial-gradient(ellipse at 50% 38%,color-mix(in srgb,var(--enchant-color) 19%,transparent),transparent 65%),linear-gradient(145deg,#182137,#080d19)}
.equip-result .eyebrow{margin:0 20px 10px;color:#e2c28c;font-size:10px;letter-spacing:.22em}.equip-result h2{font:32px/1.14 Georgia,serif;margin:0;color:#fff0d6}
.enchant-stage{position:relative;height:310px;perspective:900px;pointer-events:none}
.enchant-aura{position:absolute;inset:12px 4%;background:radial-gradient(ellipse,color-mix(in srgb,var(--enchant-color) 26%,transparent),transparent 62%);filter:blur(15px)}
.enchant-ring{position:absolute;width:285px;height:285px;left:50%;top:50%;border:1px solid color-mix(in srgb,var(--enchant-color) 50%,transparent);border-radius:50%;transform:translate(-50%,-40%) rotateX(70deg);box-shadow:0 0 25px color-mix(in srgb,var(--enchant-color) 18%,transparent)}
.enchant-ring.ring-two{width:245px;height:245px;transform:translate(-50%,-40%) rotateX(70deg) rotate(45deg);border-style:dashed}
.enchant-runes{position:absolute;inset:35px 0 auto;color:#e4c28050;letter-spacing:24px;font-size:20px;transform:perspective(500px) rotateX(45deg);white-space:nowrap}
.enchant-before,.enchant-after{position:absolute;left:50%;top:50%;width:154px;transform:translate(-50%,-50%)}
.enchant-before{opacity:0}.enchant-stage .card{width:154px!important;min-width:0!important;margin:0!important;font-size:11px;pointer-events:none;box-shadow:0 12px 30px #0008}
.enchant-after{filter:drop-shadow(0 0 15px color-mix(in srgb,var(--enchant-color) 50%,transparent))}
.enchant-offering{position:absolute;width:88px;height:106px;left:50%;top:50%;transform:translate(-200%,-50%);opacity:0}.enchant-offering>.fantasy-art{width:100%;height:100%;aspect-ratio:auto;border-radius:12px}.enchant-offering .relic-mist{animation:none!important}
.enchant-beam{position:absolute;width:4px;height:220px;left:50%;top:50%;transform:translate(-50%,-50%) scaleY(0);background:#fff4d6;box-shadow:0 0 18px 8px var(--enchant-color);opacity:0;border-radius:50%}
.enchant-particles{position:absolute;left:50%;top:48%}.enchant-particles i{position:absolute;width:5px;height:10px;background:linear-gradient(#fff6d9,var(--enchant-color));clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);opacity:0}
.enchant-summary h3{font:25px Georgia,serif;color:#fff0d6;margin:0 0 5px}.enchant-summary p{color:#b7c5da;font-size:13px;margin:0 0 12px}.enchant-summary strong{display:inline-block;color:#ffe4a5;font-size:14px;padding:7px 18px;border-radius:30px;background:#d6b26b13;border:1px solid #d6b26b33}
.equip-result .enchant-note{font-size:11px;color:#a1aec4;line-height:1.5;margin:14px auto;max-width:360px}.enchant-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin:14px 0 8px}.enchant-actions button{padding:12px 20px;font-size:12px}
.enchant-playing .enchant-before{animation:enchant-original 3.3s both}.enchant-playing .enchant-offering{animation:enchant-offer 3.3s both}.enchant-playing .enchant-after{animation:enchant-reveal 3.3s both}.enchant-playing .enchant-beam{animation:enchant-beam 3.3s both}.enchant-playing .enchant-particles i{animation:enchant-spark 3.3s var(--d) both}.enchant-playing .enchant-ring{animation:enchant-ring 3.3s both}.enchant-playing .enchant-aura{animation:enchant-aura 3.3s both}
@keyframes enchant-original{0%,25%{opacity:1;transform:translate(-50%,-50%) rotateY(-12deg)}45%{opacity:1;transform:translate(-50%,-50%) rotateY(85deg)}48%,100%{opacity:0;transform:translate(-50%,-50%) rotateY(90deg)}}
@keyframes enchant-offer{0%{opacity:0;transform:translate(-220%,-40%) rotate(-18deg) scale(.8)}15%,25%{opacity:1;transform:translate(-200%,-60%) rotate(-8deg) scale(1)}46%{opacity:1;transform:translate(-50%,-50%) rotate(20deg) scale(.15)}52%,100%{opacity:0;transform:translate(-50%,-50%) scale(0)}}
@keyframes enchant-reveal{0%,45%{opacity:0;transform:translate(-50%,-50%) rotateY(-90deg) scale(.9)}64%{opacity:1;transform:translate(-50%,-50%) rotateY(12deg) scale(1.08)}85%,100%{opacity:1;transform:translate(-50%,-50%) rotateY(0) scale(1)}}
@keyframes enchant-beam{0%,32%{opacity:0;transform:translate(-50%,-50%) scaleY(0)}46%{opacity:.8;transform:translate(-50%,-50%) scaleY(1.1)}65%,100%{opacity:0;transform:translate(-50%,-50%) scaleY(.8)}}
@keyframes enchant-spark{0%,40%{opacity:0;transform:rotate(var(--a)) translateX(5px)}55%{opacity:1}85%{opacity:.7;transform:rotate(var(--a)) translateX(var(--r)) rotate(110deg)}100%{opacity:0;transform:rotate(var(--a)) translateX(calc(var(--r) + 30px)) scale(.3)}}
@keyframes enchant-ring{0%{opacity:.2}45%{opacity:1;transform:translate(-50%,-40%) rotateX(70deg) rotate(120deg) scale(1.13)}100%{opacity:.7}}
@keyframes enchant-aura{0%{opacity:.2}48%{opacity:1;transform:scale(1.35)}100%{opacity:.8;transform:scale(1)}}
@media(max-width:600px){.equip-result{padding:25px 16px 16px}.equip-result h2{font-size:26px;max-width:280px;margin:auto}.enchant-stage{height:278px}.enchant-actions{gap:8px}.enchant-actions button{padding:12px}.enchant-runes{letter-spacing:14px}.enchant-summary h3{font-size:23px}}
@media(prefers-reduced-motion:reduce){.enchant-stage *{animation:none!important}.enchant-before,.enchant-offering,.enchant-beam,.enchant-particles{display:none!important}.enchant-after{opacity:1!important}}
.reduce-motion .enchant-stage *{animation:none!important}.reduce-motion .enchant-before,.reduce-motion .enchant-offering,.reduce-motion .enchant-beam,.reduce-motion .enchant-particles{display:none!important}
