/* Saltanat 0.3.340 — compact, resilient store layout */
.store-spa-screen{position:fixed;inset:0;z-index:35;display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;min-height:var(--app-height,100dvh);background:transparent}
.store-spa-screen[hidden]{display:none!important}
.store-spa-screen .shell-view-scroll{width:min(1080px,100%);margin-inline:auto;padding:clamp(12px,2.4vw,24px) clamp(10px,2.6vw,22px) calc(100px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.store-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid rgba(235,193,92,.26);border-radius:22px;background:linear-gradient(145deg,rgba(5,31,24,.95),rgba(2,14,11,.96));box-shadow:0 15px 40px rgba(0,0,0,.25)}
.store-head-copy{min-width:0;display:flex;align-items:center;gap:11px}.store-head-emblem{width:46px;height:46px;min-width:46px;display:grid;place-items:center;border:1px solid rgba(244,200,96,.24);border-radius:15px;background:rgba(244,200,96,.06)}
.store-head h1{margin:0;font-size:clamp(20px,4vw,30px);line-height:1.25}.store-head p{margin:3px 0 0;color:rgba(241,234,208,.66);font-size:11px;line-height:1.55}
.store-wallet{min-width:112px;padding:8px 12px;border:1px solid rgba(255,217,115,.32);border-radius:15px;background:rgba(0,0,0,.22);text-align:center}.store-wallet span{display:flex;align-items:center;justify-content:center;gap:5px;color:#e9d9a5;font-size:10px}.store-wallet strong{display:block;margin-top:1px;color:#ffd66d;font-size:23px;font-variant-numeric:tabular-nums;line-height:1.15}.store-wallet small{color:rgba(241,234,208,.52);font-size:9px}
.store-coin-glyph,.wallet-coin-glyph{display:block!important;width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;min-height:18px!important;max-height:18px!important;object-fit:contain!important;flex:0 0 18px!important}.store-head-emblem .store-coin-glyph{width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;min-height:31px!important;max-height:31px!important;flex-basis:31px!important}
.store-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}.store-summary div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid rgba(255,255,255,.075);border-radius:13px;background:rgba(3,20,16,.68)}.store-summary span{color:rgba(241,234,208,.6);font-size:10px}.store-summary strong{color:#f1d17c;font-size:13px}
.store-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:12px 0}.store-tabs button{min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px;border:1px solid rgba(255,255,255,.09);border-radius:13px;color:#d9d4c3;background:rgba(2,18,14,.72);font:inherit;cursor:pointer}.store-tabs button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.store-tabs button b{min-width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.07);font-size:9px}.store-tabs button.active{border-color:rgba(244,200,96,.68);color:#ffe092;background:linear-gradient(145deg,rgba(70,52,20,.7),rgba(20,31,23,.88))}
.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.store-item{min-width:0;overflow:hidden;border:1px solid rgba(255,255,255,.095);border-radius:18px;background:linear-gradient(155deg,rgba(5,27,21,.95),rgba(2,13,11,.97));box-shadow:0 12px 28px rgba(0,0,0,.22)}.store-item.equipped{border-color:rgba(244,200,96,.76);box-shadow:0 0 0 2px rgba(244,200,96,.07),0 12px 28px rgba(0,0,0,.25)}
.store-item-visual{position:relative;height:142px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 45%,rgba(55,118,87,.22),transparent 58%),rgba(0,0,0,.14)}.store-item-visual>img{box-sizing:border-box}.store-avatar-art{width:102px!important;height:102px!important;max-width:102px!important;max-height:102px!important;padding:0!important;border:1px solid rgba(255,226,143,.25);border-radius:24px;object-fit:cover!important}.store-background-art{width:100%!important;height:100%!important;padding:0!important;object-fit:cover!important}.store-card-art{width:94px!important;height:126px!important;max-width:94px!important;max-height:126px!important;padding:7px!important;object-fit:contain!important}.store-generic-art{width:100%!important;height:100%!important;padding:12px!important;object-fit:contain!important}.store-item-frame-preview{width:104px;height:104px;display:grid;place-items:center;border-radius:50%}.store-item-frame-preview img{width:80px!important;height:80px!important;max-width:80px!important;max-height:80px!important;border-radius:50%;object-fit:cover!important}.store-featured{position:absolute;top:8px;right:8px;padding:4px 7px;border-radius:999px;color:#1b1304;background:#f2c85f;font-size:9px;font-weight:900}.store-item-fallback{width:62px;height:62px;display:grid;place-items:center;color:#f2c85f}
.store-item-copy{padding:11px 12px 12px}.store-item-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.store-item-title strong{min-width:0;font-size:14px;line-height:1.45}.store-item-title span{flex:none;color:#d8bd73;font-size:9px;white-space:nowrap}.store-item-copy p{min-height:32px;margin:5px 0 10px;color:rgba(241,234,208,.56);font-size:10px;line-height:1.6}.store-item-footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.store-price{min-height:30px;display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid rgba(244,200,96,.16);border-radius:10px;color:#ffd771;background:rgba(244,200,96,.045);font-size:11px}.store-price b{font-size:11px}.store-price.owned{border-color:rgba(109,202,151,.18);color:#91d8b2;background:rgba(79,168,120,.05)}.store-item-footer button{min-width:82px;height:35px;padding-inline:10px;border:1px solid rgba(244,200,96,.4);border-radius:11px;color:#211704;background:linear-gradient(145deg,#ffe291,#c99532);font:inherit;font-size:10px;font-weight:900;cursor:pointer}.store-item-footer button:disabled{cursor:default;opacity:.55;filter:saturate(.55)}
.store-loading,.store-empty,.store-account-required{grid-column:1/-1;min-height:190px;display:grid;place-items:center;align-content:center;gap:8px;padding:22px;border:1px dashed rgba(255,255,255,.14);border-radius:18px;color:rgba(241,234,208,.68);text-align:center;background:rgba(2,17,13,.62)}.store-account-required>span{width:50px;height:50px;color:#f1c866}.store-account-required p{margin:0;max-width:340px}.store-account-required button{margin-top:8px;padding:9px 16px;border:1px solid rgba(244,200,96,.45);border-radius:11px;color:#201503;background:#f1c866}
.home-wallet-pill,.profile-wallet-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;width:auto!important;height:24px!important;min-width:0!important;max-width:96px!important;padding:3px 7px!important;border:1px solid rgba(244,200,96,.3)!important;border-radius:999px!important;color:#ffd66e!important;background:rgba(0,0,0,.2)!important;font-size:9px!important;font-weight:900!important;line-height:1!important;box-sizing:border-box!important;overflow:hidden!important}.home-wallet-pill em,.profile-wallet-pill em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}.home-wallet-pill .wallet-coin-glyph,.profile-wallet-pill .wallet-coin-glyph{width:14px!important;height:14px!important;min-width:14px!important;max-width:14px!important;min-height:14px!important;max-height:14px!important;flex-basis:14px!important}.home-profile-level .home-wallet-pill{margin-top:4px!important}.profile-page-head .profile-page-heading{width:auto!important;flex:1 1 auto!important}.profile-page-head .profile-wallet-pill{margin-inline-start:auto;flex:0 0 auto}
@media(max-width:860px){.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.store-spa-screen .shell-view-scroll{padding-top:10px}.store-head{gap:9px;padding:11px 12px;border-radius:18px}.store-head-emblem{width:38px;height:38px;min-width:38px;border-radius:12px}.store-head-emblem .store-coin-glyph{width:26px!important;height:26px!important;min-width:26px!important;max-width:26px!important;min-height:26px!important;max-height:26px!important;flex-basis:26px!important}.store-head h1{font-size:19px}.store-head p{font-size:9px}.store-wallet{min-width:86px;padding:6px 8px}.store-wallet strong{font-size:19px}.store-wallet small{display:none}.store-summary span{font-size:9px}.store-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.store-grid{grid-template-columns:1fr}.store-item{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:128px}.store-item-visual{height:100%;min-height:128px}.store-avatar-art{width:82px!important;height:82px!important;max-width:82px!important;max-height:82px!important;border-radius:20px}.store-card-art{width:70px!important;height:98px!important;max-width:70px!important;max-height:98px!important}.store-item-frame-preview{width:84px;height:84px}.store-item-frame-preview img{width:66px!important;height:66px!important;max-width:66px!important;max-height:66px!important}.store-item-copy{display:flex;flex-direction:column;justify-content:center;padding:10px}.store-item-copy p{min-height:0;margin-bottom:8px}.store-item-footer{margin-top:auto}}
@media(max-width:390px){.store-head-copy{gap:7px}.store-head-emblem{display:none}.store-head p{max-width:180px}.store-summary{grid-template-columns:1fr}.store-item{grid-template-columns:96px minmax(0,1fr)}.store-item-title{display:block}.store-item-title span{display:block;margin-top:2px}.store-item-footer button{min-width:72px}.store-price{padding-inline:5px}}

/* Saltanat 0.3.340 — render the real frame asset over the avatar preview. */
.store-item-frame-preview{position:relative;isolation:isolate;overflow:visible!important}
.store-frame-avatar{position:relative;z-index:1;width:78px;height:78px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:#071913;box-shadow:0 8px 20px rgba(0,0,0,.28)}
.store-frame-avatar img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:50%}
.store-frame-overlay{position:absolute!important;z-index:3;left:50%;top:50%;width:118%!important;height:118%!important;max-width:none!important;max-height:none!important;padding:0!important;object-fit:contain!important;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 5px 9px rgba(0,0,0,.38))}
@media(max-width:600px){.store-frame-avatar{width:64px;height:64px}.store-frame-overlay{width:120%!important;height:120%!important}}

/* Saltanat 0.3.340 — scroll-safe category tabs, quick-message products and purchase confirmation. */
.store-message-art{width:112px;min-height:96px;display:grid;place-items:center;align-content:center;gap:8px;padding:12px;border:1px solid rgba(244,200,96,.22);border-radius:18px;color:#f9db84;background:linear-gradient(145deg,rgba(47,35,13,.68),rgba(4,24,18,.86));text-align:center;box-sizing:border-box}.store-message-art>span{width:34px;height:34px}.store-message-art b{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.store-confirm-dialog{width:min(390px,calc(100vw - 28px));max-width:none;padding:0;border:0;background:transparent;color:inherit}.store-confirm-dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(3px)}.store-confirm-card{padding:20px;border:1px solid rgba(244,200,96,.42);border-radius:22px;background:linear-gradient(155deg,#08271f,#020e0b);box-shadow:0 30px 90px rgba(0,0,0,.58);text-align:center}.store-confirm-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 10px;border:1px solid rgba(244,200,96,.28);border-radius:18px;background:rgba(244,200,96,.07)}.store-confirm-icon .store-coin-glyph{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;min-height:38px!important;max-height:38px!important}.store-confirm-card h2{margin:0;font-size:21px}.store-confirm-card p{margin:7px 0 14px;color:rgba(241,234,208,.68);font-size:12px;line-height:1.7}.store-confirm-price{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:rgba(0,0,0,.18);font-size:11px}.store-confirm-price strong{display:flex;align-items:center;gap:6px;color:#ffd66d}.store-confirm-price b{font-size:18px}.store-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.store-confirm-actions button{min-height:42px;border-radius:12px;font:inherit;font-size:11px;font-weight:900;cursor:pointer}.store-confirm-actions button:first-child{border:1px solid rgba(255,255,255,.14);color:#e5deca;background:rgba(255,255,255,.04)}.store-confirm-actions button:last-child{border:1px solid rgba(244,200,96,.55);color:#211704;background:linear-gradient(145deg,#ffe291,#c99532)}
@media(max-width:600px){.store-tabs{display:flex!important;grid-template-columns:none!important;gap:7px;max-width:100%;margin-inline:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:1px 1px 5px}.store-tabs::-webkit-scrollbar{display:none}.store-tabs button{flex:0 0 auto;min-width:124px;max-width:170px;scroll-snap-align:start}.store-tabs button span{max-width:118px}.store-message-art{width:78px;min-height:78px;padding:8px}.store-message-art b{max-width:68px;font-size:10px}}

/* Saltanat 0.3.340 — quick messages are sold as complete packages. */
.store-message-package-art{
  width:min(100%,180px);
  min-height:160px;
  display:grid;
  justify-items:center;
  align-content:center;
  gap:7px;
  padding:14px 12px;
  border:1px solid rgba(244,200,96,.24);
  border-radius:20px;
  color:#f9db84;
  background:linear-gradient(145deg,rgba(47,35,13,.74),rgba(4,24,18,.9));
  text-align:center;
  box-sizing:border-box;
}
.store-message-package-icon{width:38px;height:38px}
.store-message-package-art strong{font-size:14px;line-height:1.5}
.store-message-package-art small{font-size:10px;color:#b9d9c8}
.store-message-package-preview{width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:5px}
.store-message-package-preview i{max-width:100%;padding:4px 7px;border:1px solid rgba(255,255,255,.1);border-radius:999px;color:#f3ead2;background:rgba(0,0,0,.2);font-style:normal;font-size:9px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){
  .store-message-package-art{width:96px;min-height:112px;padding:9px 7px;gap:4px}
  .store-message-package-icon{width:28px;height:28px}
  .store-message-package-art strong{font-size:11px}
  .store-message-package-art small{font-size:9px}
  .store-message-package-preview i{padding:3px 5px;font-size:8px}
  .store-message-package-preview i:nth-child(n+4){display:none}
}
