/* Esportcards — Case opening */
.ec-unopened-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;background:linear-gradient(120deg,#f5d020,#ffe14a);color:#12121b;border-radius:14px;padding:14px 18px;margin-bottom:18px;text-decoration:none;font-weight:800;animation:ec-pulse 2.4s ease-in-out infinite}
.ec-unopened-cta{font-size:13px;text-decoration:underline}
@keyframes ec-pulse{0%,100%{box-shadow:0 0 0 0 rgba(245,208,32,.5)}50%{box-shadow:0 0 0 10px rgba(245,208,32,0)}}

.ec-boosters-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.ec-booster-card{cursor:pointer;font:inherit;text-align:left;transition:.15s}
.ec-booster-card:hover{transform:translateY(-3px);border-color:#f5d020}
.ec-booster-card:disabled{opacity:.6;cursor:default}
.ec-booster-card img{transition:filter .2s}

@keyframes ec-shake{
	0%,100%{transform:translate(0,0) rotate(0)}
	10%{transform:translate(-2px,-1px) rotate(-1deg)}
	20%{transform:translate(3px,1px) rotate(1deg)}
	30%{transform:translate(-3px,1px) rotate(-1.5deg)}
	40%{transform:translate(3px,-1px) rotate(1.5deg)}
	50%{transform:translate(-2px,1px) rotate(-1deg)}
	60%{transform:translate(2px,-2px) rotate(1deg)}
	70%{transform:translate(-2px,1px) rotate(-0.5deg)}
	80%{transform:translate(2px,1px) rotate(0.5deg)}
	90%{transform:translate(-1px,-1px) rotate(0)}
}
.ec-shake{animation:ec-shake .35s ease-in-out infinite}
.ec-shake img{filter:drop-shadow(0 0 14px #f5d020)}

.ec-reveal-overlay{position:fixed;inset:0;background:rgba(6,6,11,.92);backdrop-filter:blur(6px);z-index:99999;display:none;align-items:center;justify-content:center;padding:30px 16px}
.ec-reveal-overlay.is-active{display:flex}
body.ec-noscroll{overflow:hidden}

.ec-reveal-panel{max-width:1000px;width:100%;max-height:90vh;overflow:auto;text-align:center}
.ec-reveal-title{color:#fff;font-size:26px;font-weight:800;margin-bottom:22px;letter-spacing:.5px}
.ec-reveal-grid{display:flex;flex-wrap:wrap;gap:22px;justify-content:center}

.ec-reveal-card{width:200px;perspective:1200px}
.ec-flip-inner{position:relative;width:100%;aspect-ratio:5/7;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.ec-flip.is-flipped .ec-flip-inner{transform:rotateY(180deg)}
.ec-flip-back,.ec-flip-front{position:absolute;inset:0;backface-visibility:hidden;border-radius:14px;overflow:hidden}
.ec-flip-back{background:linear-gradient(150deg,#211a3a,#0b0b14);border:2px solid #3a3a55;display:flex;align-items:center;justify-content:center}
.ec-flip-back:after{content:'';width:60%;aspect-ratio:1;background:radial-gradient(circle,#f5d02033,transparent 70%)}
.ec-flip-front{transform:rotateY(180deg);background:linear-gradient(160deg,#2a2140,#0b0b14);border:2px solid var(--ec-accent,#f5d020);box-shadow:0 0 30px -6px var(--ec-accent,#f5d020);display:flex;flex-direction:column}
.ec-rf-art{flex:1;background:#1c1c2c;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ec-rf-art img{width:100%;height:100%;object-fit:cover}
.ec-rf-rarity{padding:8px 12px 0;font-size:11px;letter-spacing:1.5px;font-weight:800;color:var(--ec-accent,#f5d020)}
.ec-rf-name{padding:2px 12px 0;font-size:18px;font-weight:800;color:#fff;line-height:1.15}
.ec-rf-team{padding:0 12px;font-size:12px;color:#b9b3c9}
.ec-rf-serial{padding:6px 12px 12px;font-size:11px;color:#8a8aa0;font-family:monospace}

.ec-reveal-close{margin-top:26px;background:#f5d020;color:#12121b;font-weight:800;border:0;border-radius:10px;padding:12px 26px;cursor:pointer;font-size:14px}
.ec-reveal-close:hover{background:#ffe14a}

/* Collection grid rarity accents */
.ec-card-item[data-rarity]{border-left:3px solid #666}
.ec-card-item[data-rarity="Common"]{border-left-color:#9aa4b2}
.ec-card-item[data-rarity="Uncommon"]{border-left-color:#4caf50}
.ec-card-item[data-rarity="Rare"]{border-left-color:#3da5ff}
.ec-card-item[data-rarity="Epic"]{border-left-color:#b06cff}
.ec-card-item[data-rarity="Legendary"]{border-left-color:#e8b923}
.ec-card-item[data-rarity="Mythic"]{border-left-color:#ff5a3c}
.ec-card-item[data-rarity="Ultra Rare"]{border-left-color:#ff2d95}
.ec-card-item[data-rarity="Holographic"]{border-left-color:#37e0c8}
.ec-card-item[data-rarity="Gold"]{border-left-color:#ffcf40}
.ec-card-item[data-rarity="Black Edition"]{border-left-color:#c9c9d4}
.ec-card-item[data-rarity="Signed Edition"]{border-left-color:#f5d020}
.ec-card-item[data-rarity="Tournament Edition"]{border-left-color:#ff8a3d}
.ec-card-item[data-rarity="Founders Edition"]{border-left-color:#8ad1ff}
.ec-card-item[data-rarity="One Of One"]{border-left-color:#ffffff}
