/* ===== the Shop and Inventory ===== */
.hub-icons{position:absolute;top:calc(60px + env(safe-area-inset-top,0px));right:16px;z-index:3;display:flex;gap:8px}
.hub-ico{display:flex;align-items:center;gap:7px;padding:6px 12px 6px 8px;border-radius:14px;background:rgba(14,11,32,.86);border:2px solid var(--gold);box-shadow:0 3px 0 rgba(0,0,0,.35);color:#fff;cursor:pointer}
.hub-ico svg{width:24px;height:24px;fill:var(--gold);flex:none}
.hub-ico:hover,.hub-ico:focus-visible{background:#2a2160;transform:translateY(-1px)}
.hi-txt{display:flex;align-items:center;gap:7px;line-height:1}
.hi-txt b{font:400 14px var(--disp);letter-spacing:.03em;color:#fff3c4}
.hi-coins{padding:3px 8px;border-radius:999px;background:#2a2160;font:700 12px var(--ui);color:#ffd35c;font-variant-numeric:tabular-nums;white-space:nowrap}
.hi-coins i{font-style:normal}
@media (max-width:600px){.hub-ico{padding:4px 8px 4px 6px;gap:5px}.hub-ico svg{width:20px;height:20px}.hi-txt b{font-size:12px}.hi-coins{font-size:11px;padding:2px 6px}}
@media (max-height:460px){.hub-icons{top:40px}.hi-txt b{display:none}}
@media (max-width:440px){.hi-txt b{display:none}}

.gc-box.shop-box{width:min(820px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:18px}
.shop-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.shop-head h3{margin:0;font:400 26px var(--disp);color:#fff3c4}
.shop-head p{margin:4px 0 0;font-size:13px}
.shop-bal{display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;background:#221d4a;border:2px solid var(--gold);white-space:nowrap}
.shop-bal b{font:400 20px var(--disp);color:#ffd35c;font-variant-numeric:tabular-nums}
.shop-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:10px;margin:10px 0 14px}
.shop-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 8px 10px;border-radius:12px;background:radial-gradient(circle at 50% 30%,#332b70,#1b1744 70%);border:2px solid var(--line2);text-align:center}
.shop-card.on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(255,181,71,.25)}
.inv-chars .shop-card:not(.locked),.inv-skins .shop-card:not(.locked){cursor:pointer}
.inv-chars .shop-card:not(.locked):hover,.inv-skins .shop-card:not(.locked):hover,.shop-card:focus-visible{border-color:var(--gold)}
.shop-pic{position:relative;width:100%}
.shop-cv{width:100%;height:118px;display:block}
.shop-lock{position:absolute;top:2px;right:4px;font-size:16px;filter:drop-shadow(0 1px 0 rgba(0,0,0,.6))}
.shop-card.locked .shop-cv{filter:grayscale(1) brightness(.5)}
.shop-card.locked .shop-name{color:#9a94b8}
.shop-name{font:400 15px var(--disp);color:#fff;letter-spacing:.02em}
.shop-card small{font-size:11px;line-height:1.25}
.shop-price{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:4px;padding:7px 8px;border-radius:10px;border:0;background:linear-gradient(180deg,#ffd35c,#e8a020);color:#2a1a00;cursor:pointer;box-shadow:0 3px 0 #9a6410}
.shop-price b{font:400 16px var(--disp);font-variant-numeric:tabular-nums}
.shop-price.short{background:#3a335e;color:#cfc8ee;box-shadow:0 3px 0 #1a1640}
.shop-price:hover:not(.short),.shop-price:focus-visible{filter:brightness(1.08)}
.shop-owned{margin-top:4px;font:700 13px var(--ui);color:#6fe39a}
.shop-equip{margin-top:4px;padding:3px 12px;border-radius:999px;border:2px solid var(--line2);font:700 12px var(--ui);color:#fff}
.shop-confirm{display:flex;flex-direction:column;gap:6px;width:100%;margin-top:4px;font:700 12px var(--ui);color:#fff3c4}
.shop-yn{display:flex;gap:6px}
.shop-yn .btn{flex:1;padding:6px 4px;font-size:13px;min-height:0}
.inv-h{margin:12px 0 0;font:700 12px var(--ui);letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.inv-skins{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
.inv-skins .shop-cv,.inv-chars .shop-cv{height:100px}
@media (max-width:600px){.shop-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}.inv-skins{grid-template-columns:repeat(auto-fill,minmax(92px,1fr))}.shop-cv{height:92px}.inv-skins .shop-cv,.inv-chars .shop-cv{height:80px}.shop-head h3{font-size:22px}.shop-bal b{font-size:16px}}
