/* Owner-authorized shop and case slot editor, plus buyer purchase/reveal dialog. */
#retailEditor :is(#retailShopContents,#retailCaseContents)[hidden],#retailPurchase[hidden],#retailPurchase [hidden]{display:none!important}
#retailEditor .retail-slot-kind{display:grid;gap:9px;padding:12px;border:1px solid #87b8ff80;background:#083985}
#retailEditor .retail-slot-kind>span,#retailEditor .retail-commerce-label{font-size:10px;font-weight:950;letter-spacing:1.5px;color:#c4efff}
#retailEditor .retail-slot-kind>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#retailEditor .retail-slot-kind button{padding:12px 6px;border:1px solid #8fbafa;background:#113e92;border-radius:5px;color:#d1eaff;font-size:11px;font-weight:950;cursor:pointer}
#retailEditor .retail-slot-kind button[aria-pressed=true]{color:#052b70;background:#d5f7ff;border-color:#e7fdff;box-shadow:0 2px 12px #a7efff36}
#retailEditor .retail-commerce-config{display:grid;gap:12px;padding:15px;border:1px solid #84bfff90;border-radius:5px;background:#052e82}
#retailEditor .retail-commerce-config>p{margin:0}
#retailEditor .retail-price-hint,#retailEditor .retail-config-hint{font-size:10px;font-weight:600;line-height:1.5;letter-spacing:0;color:#b9dfff}
#retailEditor input[type=number]{min-width:0;min-height:43px;width:100%;border:1px solid #8cbfff85;border-radius:5px;background:#082c80;color:#fff;padding:9px 10px;font:800 12px system-ui,Arial,sans-serif}
#retailEditor #retailCaseRewards{display:grid;gap:8px}
#retailEditor .retail-case-reward{display:grid;grid-template-columns:minmax(115px,2fr) minmax(79px,1fr) 62px 46px 29px;align-items:center;gap:5px;padding:7px;border:1px solid #6aa4f285;border-radius:5px;background:#093c94}
#retailEditor .retail-case-reward select{padding:4px;font-size:10px;min-height:35px}
#retailEditor .retail-case-reward input[type=number]{min-height:35px;padding:4px 5px;font-size:11px}
#retailEditor .reward-chance{font-size:10px;font-weight:900;color:#d6faff;text-align:center}
#retailEditor .reward-remove{height:29px;min-width:26px;border:1px solid #d8efff8a;background:#143a79;color:#f9e1e9;cursor:pointer;border-radius:4px}
#retailEditor #retailAddReward{min-height:36px;padding:9px 12px;border:1px solid #b9f6ff;background:#d6f6ff;color:#06347a;font-size:10px;font-weight:950;cursor:pointer;border-radius:5px}
#retailEditor #retailAddReward:disabled{opacity:.45;cursor:not-allowed}
#retailEditor .retail-case-test-row{display:grid;gap:9px;padding:12px;border:1px solid #9bebfbad;border-radius:5px;background:linear-gradient(115deg,#0d65a5,#093d90)}
#retailEditor #retailTestSpin{min-height:44px;padding:10px 15px;border:1px solid #f1fdff;border-radius:5px;background:#c8fff8;color:#063b65;font:950 12px/1 system-ui,Arial,sans-serif;letter-spacing:.8px;cursor:pointer;box-shadow:0 4px 15px #001f5959}
#retailEditor #retailTestSpin:disabled{opacity:.48;cursor:not-allowed}
#retailEditor .retail-case-test-row small{font-size:10px;font-weight:600;line-height:1.5;color:#d4f9ff}
#retailEditor .retail-slot-button small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:155px}
#menu .retail-card.retail-for-sale{pointer-events:auto;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;border-color:#c2f7ff}
#menu .retail-card.retail-for-sale:hover,#menu .retail-card.retail-for-sale:focus-visible{transform:translateY(-5px);box-shadow:0 0 0 2px #c8faff,0 18px 32px #02133fb5;outline:none}
#menu .retail-card.retail-case-card{border-color:#c1a2ff}
#menu .retail-card.retail-for-sale .retail-card-label small{background:#e3faff!important;color:#06387b!important;font-size:10px!important;font-weight:1000}
#retailPurchase{position:fixed;inset:0;z-index:230;display:grid;place-items:center;padding:15px;background:#04112de8;backdrop-filter:blur(10px);color:#effaff;font-family:system-ui,Arial,sans-serif}
#retailPurchase *{box-sizing:border-box}
#retailPurchase .retail-purchase-shell{display:flex;flex-direction:column;width:min(900px,100%);max-height:95dvh;overflow-y:auto;border:1px solid #91dcff;background:linear-gradient(160deg,#084ab5,#07328c 65%,#062469);box-shadow:0 24px 100px #010a24df}
#retailPurchase header{position:relative;padding:22px 65px 15px 25px;border-bottom:1px solid #8cbfff8c;background:linear-gradient(100deg,#103b97,#092f81)}
#retailPurchase header small{font-size:10px;font-weight:950;color:#abedff;letter-spacing:1.8px}
#retailPurchase header h2{margin:5px 0;font:italic 1000 clamp(27px,4vw,42px)/1 'Arial Black',Impact,Arial,sans-serif}
#retailPurchase #retailPurchaseClose{position:absolute;right:17px;top:18px;width:40px;height:40px;background:#0b4aa2;color:#d8f8ff;border:1px solid #92cbff;border-radius:5px;font-size:22px;cursor:pointer}
#retailPurchase .retail-purchase-content{display:grid;grid-template-columns:minmax(190px,38%) 1fr;gap:20px;padding:22px}
#retailPurchase .retail-purchase-art{min-height:260px;overflow:hidden;border:1px solid #71b9f6;background:#0b3983}
#retailPurchase .retail-purchase-art img{display:block;width:100%;height:100%;max-height:360px;object-fit:cover}
#retailPurchase .retail-purchase-info{min-width:0}
#retailPurchase #retailPurchaseType{font-size:10px;letter-spacing:1px;font-weight:950;color:#acecff}
#retailPurchase #retailPurchaseName{margin:8px 0;font:italic 1000 clamp(20px,3vw,32px)/1.05 'Arial Black',Impact,Arial,sans-serif;overflow-wrap:anywhere}
#retailPurchase #retailPurchaseDetails{font-size:12px;line-height:1.55;color:#d2e9ff}
#retailPurchase .retail-case-odds{margin:14px 0;padding:12px;border:1px solid #8fc9ff88;background:#062a75;max-height:236px;overflow-y:auto}
#retailPurchase .retail-case-odds h4{margin:0 0 10px;font-size:10px;letter-spacing:1px;color:#d0f9ff}
#retailPurchase .retail-odds-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #8cb6e842;font-size:11px}
#retailPurchase .retail-odds-row strong{white-space:nowrap;color:#e3f9ff;font-variant-numeric:tabular-nums}
#retailPurchase .retail-purchase-price{display:inline-block;margin:9px 0 0;padding:10px 14px;border:1px solid #8fddff;background:#cfedff;color:#063472;font-size:15px;font-weight:1000;letter-spacing:.5px}
#retailPurchase footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;border-top:1px solid #86beff8b;background:#05276a}
#retailPurchase #retailPurchaseStatus{margin:0;color:#d3edff;font-size:11px;font-weight:800;line-height:1.5;max-width:520px}
#retailPurchase #retailPurchaseStatus.error{color:#ffd2d2}
#retailPurchase #retailPurchaseConfirm{min-height:45px;padding:12px 17px;flex:none;border:1px solid #ebfdff;border-radius:5px;background:#d6f7ff;color:#073376;font-size:11px;font-weight:950;cursor:pointer}
#retailPurchase #retailPurchaseConfirm:disabled{opacity:.5;cursor:not-allowed}
#retailPurchase.retail-test-preview .retail-purchase-shell{border-color:#9ffff1}
#retailPurchase.retail-test-preview header{background:linear-gradient(105deg,#0978a0,#0a378c)}
#retailPurchase.retail-test-preview #retailPurchaseType{color:#9ffff1}
#retailPurchase.retail-test-preview .retail-purchase-price{background:#baffef;color:#075f65;border-color:#d7fff6}
#retailPurchase.retail-test-preview #retailPurchaseConfirm{background:#baffef;color:#084c65}
#retailPurchase .retail-spin-stage{position:relative;overflow:hidden;padding:24px 0 12px;margin:0 22px 20px;border:1px solid #b4caff;background:#071d53}
#retailPurchase .retail-spin-stage:before,#retailPurchase .retail-spin-stage:after{content:'';position:absolute;z-index:3;top:0;bottom:0;width:12%;pointer-events:none}
#retailPurchase .retail-spin-stage:before{left:0;background:linear-gradient(90deg,#071d53,transparent)}
#retailPurchase .retail-spin-stage:after{right:0;background:linear-gradient(270deg,#071d53,transparent)}
#retailPurchase .retail-spin-marker{position:absolute;z-index:4;top:0;bottom:0;left:50%;width:3px;background:#e1ffff;box-shadow:0 0 14px #8aeaff;pointer-events:none}
#retailPurchase .retail-spin-reel{display:flex;gap:8px;width:max-content;will-change:transform}
#retailPurchase .retail-spin-tile{width:132px;flex:0 0 132px;height:146px;display:flex;flex-direction:column;align-items:center;gap:4px;overflow:hidden;padding:8px;border:1px solid #86bcff;background:#0a3981;text-align:center}
#retailPurchase .retail-spin-tile img{width:100%;height:89px;object-fit:cover}
#retailPurchase .retail-spin-tile strong{max-width:100%;font-size:9px;line-height:1.1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#retailPurchase .retail-spin-tile small{font-size:8px;color:#c7e7ff}
#retailPurchase .retail-spin-tile[data-rarity=epic]{border-color:#ce7cff}#retailPurchase .retail-spin-tile[data-rarity=legendary]{border-color:#ffd574}#retailPurchase .retail-spin-tile[data-rarity=mythic]{border-color:#fff879}#retailPurchase .retail-spin-tile[data-rarity=exotic]{border-color:#6af3ef}
#retailPurchase #retailSpinResult{margin:12px 6px 0;color:#ddfaff;font-size:13px;font-weight:950;text-align:center}
#retailPurchase :is(button):focus-visible{outline:3px solid #fffc8e;outline-offset:2px}
@media(max-width:800px){#retailEditor .retail-case-reward{grid-template-columns:1fr 90px 54px 40px 25px}#retailEditor .retail-case-reward select{font-size:9px}}
@media(max-width:600px){#retailPurchase .retail-purchase-content{grid-template-columns:1fr;padding:13px;gap:10px}#retailPurchase .retail-purchase-art{min-height:130px;height:160px}#retailPurchase .retail-purchase-art img{max-height:160px}#retailPurchase header{padding:15px 58px 12px 14px}#retailPurchase footer{flex-direction:column;align-items:stretch;padding:13px}#retailEditor .retail-case-reward{grid-template-columns:minmax(90px,2fr) minmax(65px,1fr) 45px 35px 22px;gap:3px;padding:4px}#retailEditor .retail-case-reward select{font-size:8px;letter-spacing:-.3px}#retailEditor .retail-case-reward input[type=number]{font-size:9px}#retailEditor .reward-chance{font-size:8px}}
@media(prefers-reduced-motion:reduce){#menu .retail-card.retail-for-sale{transition:none}}
