.card{--rarity:#b5c58c;--rarity-dark:#28321f;isolation:isolate;border-color:var(--rarity);background:linear-gradient(145deg,var(--rarity),var(--rarity-dark) 48%,#10150f 85%)}.card .card-top>span,.card .card-info b{color:var(--rarity)}.card .card-info b{border-color:var(--rarity)}.card .halo{border-color:var(--rarity);box-shadow:0 0 0 20px color-mix(in srgb,var(--rarity) 8%,transparent),0 0 70px color-mix(in srgb,var(--rarity) 20%,transparent)}.card.rarity-standard{--rarity:#aabc87;--rarity-dark:#303b26}.card.rarity-elite{--rarity:#ba8dff;--rarity-dark:#35234e;box-shadow:0 12px 40px #0008,0 0 22px #a568ff45}.card.rarity-electric{--rarity:#5ee4ff;--rarity-dark:#073c5a;box-shadow:0 12px 40px #0008,0 0 30px #27cfff65}.card.rarity-legendary{--rarity:#fff;--rarity-dark:#525c67;color:#fff;border-width:2px;box-shadow:0 0 28px #fff7,0 0 65px #bde9ff45}.rarity-legendary .card-info{background:linear-gradient(transparent,#151c25 35%)}.card-shine{position:absolute;inset:-50%;z-index:5;pointer-events:none;background:linear-gradient(115deg,transparent 43%,#ffffff48 49%,transparent 55%);transform:translateX(-80%);opacity:0}.rarity-elite .card-shine{animation:card-shimmer 4s ease-in-out infinite}.rarity-electric .card-shine,.rarity-legendary .card-shine{animation:card-shimmer 3s ease-in-out infinite}.card-lightning{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;overflow:visible}.card-lightning path{fill:none;stroke:var(--rarity,#fff);stroke-width:2;stroke-linejoin:bevel;filter:drop-shadow(0 0 4px var(--rarity,#fff));stroke-dasharray:80 25 10 35;animation:electric-flow 1.8s linear infinite}.rarity-standard>.card-lightning,.rarity-elite>.card-lightning{display:none}.rarity-legendary>.card-lightning path{stroke-width:2.5;animation-duration:1.2s}.card-enter{animation:card-arrive .7s cubic-bezier(.2,.8,.2,1) both}.rarity-elite.card-enter{animation:elite-arrive 1s ease-out both}.rarity-electric.card-enter{animation:electric-arrive 1.1s ease-out both}.legend-reveal{position:fixed;inset:0;z-index:90;background:#02040aef;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;pointer-events:none;animation:legend-screen 3.6s ease both;overflow:hidden}.legend-reveal .card{width:min(278px,65vw);height:min(390px,54vh);transform:rotate(0);flex-shrink:0;animation:legend-card .9s cubic-bezier(.16,1,.3,1) both}.legend-reveal .card .portrait{height:75%}.legend-title,.legend-caption{z-index:2;color:white;text-align:center;letter-spacing:5px;font-size:11px;padding:0 20px;text-shadow:0 0 15px #d8f7ff}.legend-caption{letter-spacing:3px;font-size:9px;opacity:.8}.legend-storm{position:absolute;inset:-5%;--rarity:#eefaff;opacity:.7}.legend-storm .card-lightning path{stroke-width:.5;stroke-dasharray:40 80 10 50;animation-duration:2s}.legend-quake #arenaView{animation:legend-quake .7s ease-out 2}.legend-reveal:before{content:'';position:absolute;width:min(800px,120vw);aspect-ratio:1;background:radial-gradient(ellipse,#b1e6ff28,transparent 65%);border-radius:50%}@keyframes card-shimmer{0%,25%{transform:translateX(-80%);opacity:0}40%{opacity:.7}70%,100%{transform:translateX(80%);opacity:0}}@keyframes electric-flow{to{stroke-dashoffset:-300}}@keyframes card-arrive{from{opacity:0;transform:translateY(25px) rotate(-7deg) scale(.94)}to{opacity:1;transform:rotate(-3deg)}}@keyframes elite-arrive{from{opacity:0;transform:perspective(800px) rotateY(70deg) scale(.88);filter:brightness(1.7)}to{opacity:1;transform:rotate(-3deg);filter:brightness(1)}}@keyframes electric-arrive{0%{opacity:0;transform:scale(.7) rotate(4deg);filter:brightness(2)}60%{opacity:1;transform:scale(1.04) rotate(-4deg)}100%{transform:scale(1) rotate(-3deg);filter:brightness(1)}}@keyframes legend-card{from{opacity:0;transform:scale(.65) translateY(60px);filter:brightness(2)}to{opacity:1;transform:scale(1);filter:brightness(1)}}@keyframes legend-screen{0%{opacity:0}15%,80%{opacity:1}100%{opacity:0}}@keyframes legend-quake{0%,100%{transform:translate(0)}15%{transform:translate(-5px,3px)}30%{transform:translate(5px,-3px)}45%{transform:translate(-3px,-2px)}65%{transform:translate(3px,2px)}85%{transform:translate(-1px,1px)}}@media(prefers-reduced-motion:reduce){.card-enter,.card-shine,.card-lightning path,.legend-reveal,.legend-reveal .card,.legend-quake #arenaView{animation:none!important}.legend-storm{opacity:.25}.legend-reveal{background:#02040ae8}}
