.upgrade-page{padding:10px 0 24px;color:#fafafa}
.upgrade-heading{text-align:center;padding:10px 6px 0}
.upgrade-heading h1{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 0 7px;font-size:23px;letter-spacing:-.6px}
.upgrade-heading h1 .icon{width:25px;height:25px;color:var(--lime);stroke-width:2.6}
.upgrade-heading p{color:#9898a3;font-size:11px;line-height:1.45}
.upgrade-orb{position:relative;display:grid;place-items:center;width:min(65vw,280px);height:min(65vw,280px);margin:22px auto 15px;border:12px solid #18191a;border-radius:50%;background:#0c0c0e;box-shadow:0 0 0 2px #0c0d0e,inset 0 0 30px #0009}
.upgrade-orb::before{content:'';position:absolute;inset:8px;border:5px solid #3c3d3e;border-radius:50%;box-shadow:inset 0 0 35px #0009}
.upgrade-ring{position:absolute;z-index:1;inset:0;width:100%;height:100%;overflow:visible;fill:none}
.upgrade-ring-track{stroke:#373a35;stroke-width:9;stroke-linecap:round}
.upgrade-ring-progress{stroke:url(#upgrade-arc-gradient);stroke-width:10;stroke-linecap:round;filter:drop-shadow(0 0 5px #b8ff3d70)}
.upgrade-orb[data-chance="0"] .upgrade-ring-progress{opacity:0}
.upgrade-pointer{fill:var(--lime);filter:drop-shadow(0 0 5px #b8ff3d99)}
.upgrade-orb-inner{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:78%;height:78%;border-radius:50%;background:radial-gradient(circle at 50% 65%,#262823,#17181a 70%);text-align:center}
.upgrade-orb-inner strong{max-width:86%;font-size:16px;line-height:1.3}.upgrade-orb-inner span{color:#a8a9a4;font-size:11px}
.upgrade-orb.spinning .upgrade-orb-inner{box-shadow:0 0 28px #b8ff3d38}
.upgrade-result-gift{width:90px;height:90px;object-fit:contain;filter:drop-shadow(0 5px 9px #000b)}
.upgrade-orb.is-win .upgrade-orb-inner{box-shadow:0 0 22px #b8ff3d99,inset 0 0 28px #b8ff3d45;animation:upgrade-win-glow 1.1s ease-in-out 3}
.upgrade-orb.is-loss .upgrade-orb-inner{box-shadow:0 0 22px #ff4f5e99,inset 0 0 28px #ff4f5e45;animation:upgrade-loss-glow 1.1s ease-in-out 3}
.upgrade-orb.is-win .upgrade-orb-inner strong{color:var(--lime)}
.upgrade-orb.is-loss .upgrade-orb-inner strong{color:#ff6a70}
.upgrade-orb.is-loss .upgrade-pointer{fill:#ff6a70;filter:drop-shadow(0 0 5px #ff4f5e99)}
@keyframes upgrade-win-glow{50%{box-shadow:0 0 42px #b8ff3de0,inset 0 0 42px #b8ff3d80}}
@keyframes upgrade-loss-glow{50%{box-shadow:0 0 42px #ff4f5ee0,inset 0 0 42px #ff4f5e80}}
.upgrade-slots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.upgrade-slot{display:flex;align-items:center;flex-direction:column;min-width:0;min-height:142px;padding:10px 8px 12px;border:1px solid #29292e;border-radius:16px;background:linear-gradient(#18181c,#111115);color:#f6f6f7;text-align:center}
.upgrade-slot>span{width:100%;padding:5px 4px;border:1px solid #38383c;border-radius:20px;color:#c7c7d0;font-size:10px;line-height:1.2}
.upgrade-slot>.icon{width:34px;height:34px;margin:20px 0 8px;color:#9999a1;stroke-width:3}
.upgrade-slot img{width:76px;height:76px;margin:4px auto 1px;object-fit:contain;filter:drop-shadow(0 7px 7px #000a)}
.upgrade-slot strong{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.upgrade-slot small{display:flex;align-items:center;gap:3px;margin-top:4px;color:#b5b5bb;font-size:10px}.upgrade-slot small .icon{width:11px;height:11px;color:#f1bd4d;fill:currentColor}
.upgrade-slot.chosen{border-color:#4b5938;background:linear-gradient(#20271b,#111510)}
.upgrade-submit{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;margin:14px 0 0;border:0;border-radius:14px;background:var(--lime);color:#131911;font-family:Unbounded,Manrope,Arial,sans-serif;font-size:12px;font-weight:600}
.upgrade-submit>.icon{width:18px;height:18px;stroke-width:2.6}
.upgrade-submit .spinner{width:18px;height:18px;border-width:2px}
.upgrade-submit:disabled{background:#2e3527;color:#909a88;opacity:1}
.upgrade-disclosure{max-width:46ch;margin:12px auto 0;color:#8f8f9a;font-size:10px;line-height:1.5;text-align:center}
.upgrade-result-actions{display:flex;align-items:center;flex-direction:column;gap:10px;text-align:center}
.upgrade-result-actions p{max-width:35ch;color:#b5b5bb;font-size:12px;line-height:1.45}
.upgrade-result-actions .upgrade-submit{margin-top:4px}
.upgrade-inventory-link{display:flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:8px 14px;border:1px solid #3e4737;border-radius:12px;background:#242920;color:#e8f4dc;font-family:Unbounded,Manrope,Arial,sans-serif;font-size:10px;font-weight:600}
.upgrade-inventory-link .icon{width:14px;height:14px}
.upgrade-picker{display:flex;flex-direction:column;gap:8px;max-height:55dvh;overflow-y:auto}
.upgrade-picker button{display:flex;align-items:center;gap:10px;width:100%;min-height:64px;padding:7px 10px;border:1px solid #36363d;border-radius:12px;background:#24242a;color:#f7f7f8;text-align:left}
.upgrade-picker img{width:47px;height:47px;object-fit:contain}.upgrade-picker span{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.upgrade-picker strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.upgrade-picker small{color:#9e9eaa;font-size:10px}
.upgrade-picker b{display:flex;align-items:center;gap:3px;font-size:12px}.upgrade-picker b .icon{width:12px;height:12px;color:#f1bd4d;fill:currentColor}
.profile-top+.wallet-panel+.inventory-page,.wallet-panel~.inventory-page{margin-top:25px}
@media(max-width:350px){.upgrade-heading h1{font-size:21px}.upgrade-orb{width:185px;height:185px;margin-bottom:9px}.upgrade-slot{min-height:121px}.upgrade-slot>.icon{margin:12px 0 5px}.upgrade-submit{min-height:47px;margin-top:9px}.upgrade-result-gift{width:68px;height:68px}}
@media(prefers-reduced-motion:reduce){.upgrade-orb.is-win .upgrade-orb-inner,.upgrade-orb.is-loss .upgrade-orb-inner{animation:none}}
