/* Scoped effects: never override the Minecraft page loader. */
#gacha-panel .gacha-controls #gacha-spin-five{min-width:174px;padding:9px 15px!important;gap:10px;border:0!important;border-radius:18px;isolation:isolate;overflow:hidden;background:#241e39!important;box-shadow:0 4px 0 #30233c,0 7px 18px #754e8630;text-shadow:none}
#gacha-panel .gacha-controls #gacha-spin-five.is-auto-active::before{content:"";display:block;position:absolute;inset:-140px;background:conic-gradient(from 0deg,#ff5379,#fcbd45,#68f0dc,#6487ff,#a26dff,#ff5379);animation:auto-spectrum 7s linear infinite;z-index:-2;opacity:1;transform-origin:center}
#gacha-panel .gacha-controls #gacha-spin-five.is-auto-active::after{content:"";position:absolute;inset:2px;border-radius:16px;background:linear-gradient(120deg,#2c263e,#43304d);z-index:-1;opacity:1;transform:none}
#gacha-panel .gacha-controls #gacha-spin-five:hover:not(:disabled){box-shadow:0 6px 0 #30233c,0 10px 24px #7553ae50}
#gacha-panel .gacha-controls #gacha-spin-five.is-auto-active::before{animation-duration:2s}
#gacha-spin-five .auto-label{font-size:12px;font-weight:800;color:#fff}
#gacha-spin-five .auto-sphere{position:relative;flex:0 0 30px;width:30px;height:30px;border-radius:50%;overflow:hidden;isolation:isolate;background:linear-gradient(120deg,#ff356b 20%,#4e59ef 80%);box-shadow:inset -2px -2px 5px #75ffff,inset 4px 0 8px #ffde65,0 0 10px #81bcff65}
#gacha-panel .gacha-controls #gacha-spin-five .auto-sphere::before{content:"";display:block;position:absolute;inset:-2px;margin:0;border-radius:50%;background:conic-gradient(#ff5d93,#754bff,#66e3ff,#f9c756,#ff5d93);animation:auto-spectrum 4s linear infinite;filter:blur(2px);z-index:-1}
.auto-sphere::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 75% 20%,#fffe, #fff7 14%,transparent 48%);box-shadow:inset -2px -2px 6px #4fffea}
.auto-sphere .auto-wave{position:absolute;left:-40%;top:35%;width:180%;height:80%;border:2px solid #fff9;border-radius:44%;animation:auto-wave-motion 3s linear infinite}
.auto-sphere .auto-wave:nth-child(2){top:45%;animation-direction:reverse;animation-delay:-1.5s;border-color:#a2ffffb3}
.auto-sphere .auto-glint{position:absolute;top:6px;right:7px;width:4px;height:4px;background:white;border-radius:50%;box-shadow:0 0 4px #fff;z-index:1}
#gacha-spin-five.is-auto-stopping .auto-sphere{filter:saturate(.5)}
@keyframes auto-spectrum{to{transform:rotate(360deg)}}
@keyframes auto-wave-motion{50%{transform:translateY(-6px) rotate(180deg)}100%{transform:rotate(360deg)}}
.auto-budget-heading>div>strong{font-size:14px}.auto-budget-wallet{display:flex;flex-direction:column;gap:4px;padding:12px 14px;margin:15px 0 18px;background:#e1f5eb;border:1px solid #81bd9e;border-radius:12px;color:#12613e;box-shadow:0 2px 0 #b6d9c5}.auto-budget-wallet>span{font-size:11px;font-weight:700}.auto-budget-wallet>strong{font-size:clamp(19px,5vw,24px);font-weight:900;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.auto-budget-wallet[data-currency=Token]{background:#eee4ff;border-color:#bea0e4;color:#64339a;box-shadow:0 2px 0 #dac7ec}
.auto-budget-value output{font-size:clamp(26px,6vw,38px);font-weight:900}.auto-budget-value>span{font-size:17px;color:#263d3c}.auto-budget-entry input{font-size:17px;font-weight:800}.auto-budget-scale{font-size:11px;color:#3f5048}.auto-budget-footnote{font-size:12px;color:#3f5048}.auto-budget-footnote strong{font-size:15px;font-variant-numeric:tabular-nums;color:#233c3d}
#gacha-current-price{font-size:21px;font-weight:900;font-variant-numeric:tabular-nums}
.spin-pack-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:116px;width:100%;color:#145c4c;background:radial-gradient(ellipse,#d4f4dc,transparent 72%);text-align:center;padding:10px 8px;box-sizing:border-box}.spin-pack-art.premium{color:#74408f;background:radial-gradient(ellipse,#ecdbfa,transparent 72%)}.spin-pack-symbol{position:absolute;font-size:25px;top:18px;left:calc(50% - 55px);color:#bd8a2b;text-shadow:0 2px #fff}.spin-pack-count{font:900 46px/1 ui-monospace,monospace;letter-spacing:-2px;text-shadow:0 2px white}.spin-pack-unit{font-size:10px;letter-spacing:.13em;font-weight:900}.spin-pack-kind{font-size:10px;font-weight:800;margin-top:4px;padding:3px 11px;border:1px solid currentColor;border-radius:20px;background:#fff8}
#admin-spin-fields[hidden],.admin-reward-block[hidden],#admin-template-field[hidden]{display:none!important}#admin-spin-fields{padding:12px;border:1px solid #c3d8c9;border-radius:12px;background:#f0f8f1}#admin-spin-fields>small{line-height:1.5;color:#456353}
@media(max-width:420px){#gacha-panel .gacha-controls #gacha-spin-five{min-width:0;padding:8px 6px!important;gap:6px}#gacha-spin-five .auto-sphere{flex-basis:24px;width:24px;height:24px}#gacha-spin-five .auto-label{font-size:11px}.auto-budget-dialog{padding:23px 18px 18px}.auto-budget-dialog h2{font-size:21px}.auto-budget-wallet{padding:10px}.auto-budget-heading{gap:4px}.auto-budget-heading>div>strong{font-size:12px}#gacha-current-price{font-size:18px}}
@media(prefers-reduced-motion:reduce){#gacha-panel .gacha-controls #gacha-spin-five.is-auto-active::before,#gacha-panel .gacha-controls #gacha-spin-five .auto-sphere::before,.auto-sphere .auto-wave{animation:none!important}}

/* Idle is the normal shop button; the spectrum starts with auto play only. */
#gacha-panel .gacha-controls #gacha-spin-five:not(.is-auto-active){background:linear-gradient(130deg,#b84b78,#913158)!important;border:1px solid #b65a82!important;border-radius:999px;box-shadow:0 5px 0 #65384a,0 7px 12px #542a3a22}
#gacha-panel .gacha-controls #gacha-spin-five:not(.is-auto-active)::before,#gacha-panel .gacha-controls #gacha-spin-five:not(.is-auto-active)::after{display:none!important;animation:none!important}
#gacha-spin-five:not(.is-auto-active) .auto-sphere{display:none!important}
#gacha-spin-five:not(.is-auto-active) .auto-sphere *,#gacha-spin-five:not(.is-auto-active) .auto-sphere::before{animation:none!important}
