/* Readability updates, scoped to the existing shop. */
#shop-content #shop-balances{background:#fff6fb;border:1px solid #bf7a98;border-radius:12px;padding:14px 18px;gap:12px;flex-wrap:wrap;color:#302731}
#shop-content #shop-balances>span:first-child{color:#342c35!important;font-weight:700;opacity:1}
#shop-content #shop-token,#shop-content #shop-xu{display:inline-block;padding:8px 13px;border-radius:9px;font-size:19px;font-weight:800;opacity:1;line-height:1.3}
#shop-content #shop-token{color:#542987!important;background:#efe4ff;border:1px solid #b695db}
#shop-content #shop-xu{color:#126344!important;background:#e4f5eb;border:1px solid #85baa0}
#shop-content :is(.product-description,.offline-hint,.art-caption,.muted,.empty,small,.gacha-heading p){color:#3e4149!important;opacity:1}
#shop-content :is(.price,.price span){color:#852449!important;font-weight:800;opacity:1}
#shop-content .gacha-wallet{background:#e4f5eb;border:1px solid #85baa0;border-radius:10px;padding:10px 15px;color:#214d3e}
#shop-content .gacha-wallet strong{color:#126344!important;font-size:22px}
#shop-content .shop-sections button{font-weight:750;opacity:1}
.gacha-wins{display:flex;align-items:center;gap:12px;max-width:100%;min-width:0;margin:0 0 18px;padding:11px 14px;background:#fff3f7;border:1px solid #d9a6ba;border-radius:10px;color:#412e38}
.gacha-wins>strong{flex:none;font-size:13px;color:#852449}
.gacha-wins-window{overflow:hidden;min-width:0;flex:1}
#gacha-wins-track{display:flex;width:max-content;gap:32px;font-size:14px;line-height:1.6}
#gacha-wins-track.is-moving{animation:skanWins 45s linear infinite}
.gacha-win-group{display:flex;gap:32px;flex:none}
.gacha-win{white-space:nowrap}.gacha-win b{color:#24494e}.gacha-win em{font-style:normal;font-weight:750;color:#852449}

@keyframes skanWins{to{transform:translateX(calc(-50% - 16px))}}
@media(prefers-reduced-motion:reduce){#gacha-wins-track.is-moving{animation:none}.gacha-wins-window{overflow-x:auto}}
@media(max-width:480px){#shop-content #shop-balances{padding:12px;gap:8px}#shop-content #shop-token,#shop-content #shop-xu{font-size:17px}.gacha-wins{gap:8px;padding:10px}}

/* Keep the feed visible in both shop tabs; item art has a fixed footprint. */
#shop-content>.gacha-wins{display:flex;opacity:1;visibility:visible;margin-top:14px;min-height:58px}
.gacha-win{display:inline-flex;align-items:center;gap:5px;min-height:32px}
.gacha-win img{display:block;flex:none;width:32px;height:32px;object-fit:contain;image-rendering:pixelated}
.gacha-win-group{min-width:700px;justify-content:space-around}
#purchase-dialog .code-box,.skan-dialog .code-box,.code-box{background:#fffafc!important;border:2px solid #a45b7a!important;opacity:1!important;filter:none!important}
.code-box samp,#gacha-win-code{display:block;color:#19252c!important;background:#fff!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:20px!important;font-weight:800!important;line-height:1.55;letter-spacing:.6px;opacity:1!important;filter:none!important;text-shadow:none!important;overflow-wrap:anywhere;padding:12px;border-radius:8px;user-select:text}
.code-box p,.code-box .text-button{color:#6e2146!important;opacity:1!important;font-weight:700}
