/* bag-reveal.js: the reveal stage */
@keyframes br-spin{to{rotate:360deg}}

/* the stage: room dims, rays turn behind the squishy */
.br-stage{position:fixed;inset:0;z-index:60;pointer-events:none;background:radial-gradient(circle at var(--x) var(--y),#2a1d4a00 0,#2a1d4a26 30%,#2a1d4a8c 75%);animation:br-in .35s ease-out both}
.br-stage.br-out{animation:br-fade .45s ease-in forwards}
.br-rays{position:absolute;left:var(--x);top:var(--y);width:var(--s);height:var(--s);margin:calc(var(--s)/-2) 0 0 calc(var(--s)/-2);border-radius:50%;
 background:repeating-conic-gradient(from 0deg,#fff6c8b0 0 9deg,#fff6c800 9deg 22deg);-webkit-mask:radial-gradient(circle,#000 8%,transparent 62%);mask:radial-gradient(circle,#000 8%,transparent 62%);animation:br-spin 9s linear infinite,br-in .5s ease-out both}
.br-stage[data-tier=uncommon] .br-rays{background:repeating-conic-gradient(from 0deg,#d8ffeab0 0 9deg,#d8ffea00 9deg 22deg)}
.br-stage[data-tier=rare] .br-rays{background:repeating-conic-gradient(from 0deg,#e6d4ffc0 0 9deg,#e6d4ff00 9deg 22deg)}
.br-stage[data-tier=ultra] .br-rays{background:repeating-conic-gradient(from 0deg,#ffb3d1c0 0 6deg,#ffe58ac0 6deg 12deg,#b8f0d4c0 12deg 18deg,#c4d8ffc0 18deg 24deg,#0000 24deg 34deg)}
@keyframes br-in{from{opacity:0;scale:.6}to{opacity:1;scale:1}}
@keyframes br-fade{to{opacity:0}}

/* (the silhouette-to-color flash runs in bag-reveal.js) */
.br-confetti{position:fixed;z-index:63;width:10px;height:14px;margin:-7px 0 0 -5px;border-radius:2px;pointer-events:none}
.br-open-bag{position:fixed;z-index:61;object-fit:contain;pointer-events:none;transform-origin:50% 90%;filter:drop-shadow(0 12px 12px #6b4a6545)}
@media(prefers-reduced-motion:reduce){.br-open-bag,.br-stage,.br-rays,.br-confetti{display:none!important}}
