﻿/* Responsive storefront 779: isolated visual layer; transaction logic unchanged. */
#shopframe#shopframe { --sf-inv:1; background:rgba(3,8,20,.88); padding:24px; box-sizing:border-box; font-family:Inter,system-ui,sans-serif; }
#shopframe#shopframe *,#shopframe#shopframe *::before,#shopframe#shopframe *::after {box-sizing:border-box}
#shopframe#shopframe .sf-panel {position:relative;left:auto;top:auto;transform:none;width:min(1280px,100%);height:min(850px,100%);padding:24px;gap:22px;border-radius:24px;background:radial-gradient(ellipse at 0 0,#182d50 0,transparent 55%),#0b1425;box-shadow:0 24px 100px #0009;border:1px solid #30415e}
#shopframe#shopframe .sf-panel::before {display:none}
#shopframe#shopframe .sf-top {gap:12px;min-width:0;padding-bottom:18px;border-bottom:1px solid #ffffff12;flex-wrap:wrap}
#shopframe#shopframe .sf-title {font:800 clamp(18px,2.2vw,28px)/1.25 system-ui;letter-spacing:.02em;font-style:normal;text-shadow:none}
#shopframe#shopframe .sf-logo {width:44px;height:44px;flex-shrink:0;border-radius:12px;box-shadow:none}
#shopframe#shopframe .sf-wallets {gap:8px;min-width:0}
#shopframe#shopframe .sf-wal {min-width:0;width:auto;max-width:240px;height:46px;padding:0 4px 0 10px;gap:6px;background:#111f36!important;border:1px solid #30415e;border-image:none!important;border-radius:12px;box-shadow:none;font:700 14px/1 system-ui}
#shopframe#shopframe .sf-wal b {position:static!important;min-width:0;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;transform:none!important}
#shopframe#shopframe .sf-wal-ic {position:static!important;flex:0 0 22px;width:22px;height:22px;background:none!important;transform:none!important}
#shopframe#shopframe .sf-wal-ic svg {display:block;width:22px;height:22px}
#shopframe#shopframe .sf-plus {position:static!important;flex:0 0 44px;width:44px;height:44px;transform:none!important;box-shadow:none;background:#203654!important;border:0;border-image:none!important;color:#8ed8ff;border-radius:10px}
#shopframe#shopframe .sf-plus svg {display:block}
#shopframe#shopframe .sf-closebtn {width:44px;height:44px;filter:none;border:1px solid #34445f;border-radius:12px;background:#18263d!important;position:relative}
#shopframe#shopframe .sf-closebtn::before,#shopframe#shopframe .sf-closebtn::after {content:'';position:absolute;left:12px;top:21px;width:18px;height:2px;background:#e4edff;transform:rotate(45deg)}
#shopframe#shopframe .sf-closebtn::after {transform:rotate(-45deg)}
#shopframe#shopframe .sf-body {grid-template-columns:176px minmax(0,1fr);gap:24px;min-width:0}
#shopframe#shopframe .sf-rail {gap:8px;min-width:0;overflow-y:auto}
#shopframe#shopframe .sf-cat {height:auto;min-height:56px;flex:0 0 auto;padding:10px 12px;gap:10px;border:1px solid transparent;border-image:none!important;background:transparent!important;border-radius:12px;box-shadow:none;filter:none;font:700 13px/1.35 system-ui;letter-spacing:0;transform:none}
#shopframe#shopframe .sf-cat .sf-cat-ic {position:static;width:26px;height:26px;flex:0 0 26px;background:none!important;filter:none}
#shopframe#shopframe .sf-cat .sf-cat-ic svg {display:block;width:24px;height:24px}
#shopframe#shopframe .sf-cat .sf-cat-l {position:static;white-space:normal;text-shadow:none;font:inherit}
#shopframe#shopframe .sf-cat.on {background:#244567!important;border-color:#4a86aa;color:#cff2ff}
#shopframe#shopframe .sf-cat:hover {background:#1a304b!important}
#shopframe#shopframe .sf-mid {gap:16px}
#shopframe#shopframe .sf-gridhead {gap:10px;flex-wrap:wrap}
#shopframe#shopframe .sf-allpill {padding:8px 0;background:none!important;border:0;border-image:none!important;box-shadow:none;font:700 13px/1.3 system-ui;letter-spacing:.04em;min-height:44px}
#shopframe#shopframe .sf-sort {height:44px;min-width:0;border:0;border-image:none!important;background:none!important;max-width:100%}
#shopframe#shopframe .sf-sort select {width:100%;max-width:240px;min-height:44px;height:44px;padding:0 32px 0 12px;background:#14243c!important;border:1px solid #344761!important;border-radius:10px;color:#e2edff;font:500 14px system-ui;appearance:auto}
#shopframe#shopframe .sf-scroll {padding:2px 6px 12px 2px;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#3a597a transparent}
#shopframe#shopframe .sf-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#shopframe#shopframe .sf-grp {font:800 13px/1.5 system-ui;letter-spacing:.04em;padding:12px 0 4px;margin:0;gap:8px;flex-wrap:wrap}
#shopframe#shopframe .sf-grp-n {font-size:12px}
#shopframe#shopframe .sf-grp-hint {font:400 12px/1.5 system-ui;color:#9baec8}
#shopframe#shopframe .sf-card[class] {display:flex;flex-direction:column;gap:8px;width:100%;min-width:0;height:auto;aspect-ratio:auto;padding:12px!important;border:1px solid #34425b;border-image:none!important;background:linear-gradient(145deg,#1c2b43,#111d31)!important;border-radius:16px;box-shadow:none;overflow:hidden;transform:none}
#shopframe#shopframe .sf-card.on {border-color:#7cd4ff;box-shadow:0 0 0 2px #7cd4ff33}
#shopframe#shopframe .sf-card:hover {border-color:#7cd4ff;background:#223956!important}
#shopframe#shopframe .sf-card .sp-card-frame {display:none}
#shopframe#shopframe .sf-card .sf-card-n {order:2;position:static;display:flex;align-items:center;justify-content:center;min-height:38px;height:auto;inset:auto;width:100%;max-width:100%;padding:0;background:none!important;border:0;border-image:none!important;white-space:normal;overflow:visible;transform:none}
#shopframe#shopframe .sf-card .sf-nm {font:700 14px/1.35 system-ui!important;position:static;transform:none;white-space:normal;overflow-wrap:anywhere;color:#edf4ff;text-shadow:none;letter-spacing:0}
#shopframe#shopframe .sf-card .sf-art {order:1;width:100%;aspect-ratio:1;height:auto;flex:0 0 auto;margin:0;padding:0;overflow:hidden}
#shopframe#shopframe .sf-card .sp-card-skin {left:7%!important;top:7%!important;width:86%!important;height:86%!important;transform:none!important;object-fit:contain}
#shopframe#shopframe .sf-new {top:8px;right:8px;font:700 9px/1.5 system-ui;padding:2px 6px;box-shadow:none;background:#276a66;color:#baffef;z-index:2}
#shopframe#shopframe .sf-card .sf-price {order:3;position:static;display:flex;align-items:center;justify-content:center;width:100%;height:36px;min-height:36px;padding:4px 8px;margin:0;transform:none;border:0;border-image:none!important;border-radius:9px;background:#091323!important;aspect-ratio:auto;color:#8bdbff}
#shopframe#shopframe .sf-price::before,#shopframe#shopframe .sf-price::after,#shopframe#shopframe .sc-sb-deco {display:none!important}
#shopframe#shopframe .sc-sb-main {position:static!important;display:flex;align-items:center;justify-content:center;gap:6px;width:auto;height:auto;transform:none!important}
#shopframe#shopframe .sc-sb-text {position:static!important;display:block;font:800 13px/1.3 system-ui!important;transform:none!important;white-space:normal;text-shadow:none;color:inherit;letter-spacing:0}
#shopframe#shopframe .sc-sb-gem {position:static!important;width:18px;height:22px;transform:none!important}
#shopframe#shopframe .sf-price.own {color:#98edc7;background:#12382f!important}
#shopframe#shopframe .sf-dlg {position:absolute!important;inset:0!important;padding:16px;background:#030916b8;z-index:10}
#shopframe#shopframe .sf-dlg-card {width:420px;max-width:100%;max-height:100%;padding:20px;border-radius:20px;gap:10px;overscroll-behavior:contain;background:#111f35;scrollbar-width:thin}
#shopframe#shopframe .sf-dlg-x {top:8px;right:8px;width:44px;height:44px;z-index:3}
#shopframe#shopframe .sf-d-art {max-height:200px;flex-shrink:0}
#shopframe#shopframe .sf-d-name {font:800 22px/1.3 system-ui;padding-right:24px;overflow-wrap:anywhere}
#shopframe#shopframe .sf-d-freetag {font-size:11px}
#shopframe#shopframe .sf-cta {min-height:48px;font:800 15px/1.4 system-ui;border-radius:12px;box-shadow:none;flex-shrink:0}
#shopframe#shopframe .sf-panel.mode-bag .sf-bag {grid-template-columns:220px minmax(0,1fr)}
#shopframe#shopframe :is(button,select):focus-visible {outline:3px solid #8ad9ff!important;outline-offset:2px}
@media(min-width:1500px){#shopframe#shopframe .sf-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1050px){#shopframe#shopframe{padding:12px}#shopframe#shopframe .sf-panel{padding:18px;gap:16px}#shopframe#shopframe .sf-body{grid-template-columns:144px minmax(0,1fr);gap:16px}#shopframe#shopframe .sf-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:700px){
#shopframe#shopframe{padding:0}
#shopframe#shopframe .sf-panel{width:100%;height:100%;max-height:100dvh;border:0;border-radius:0;padding: max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));gap:12px}
#shopframe#shopframe .sf-top{padding:0 0 10px;gap:8px;position:relative}
#shopframe#shopframe .sf-logo{width:44px;height:44px}
#shopframe#shopframe .sf-title{font-size:20px;max-width:calc(100% - 106px)}
#shopframe#shopframe .sf-wallets{width:100%;margin:0;gap:8px;padding:0}
#shopframe#shopframe .sf-wal{flex:1 1 0;max-width:calc(50% - 4px);width:0;padding-left:8px}
#shopframe#shopframe .sf-wal b{font-size:12px!important;max-width:none;flex:1 1 auto}
#shopframe#shopframe .sf-closebtn{position:absolute;top:0;right:0}
#shopframe#shopframe .sf-body{display:flex;flex-direction:column;gap:12px}
#shopframe#shopframe .sf-rail{flex-direction:row;flex:0 0 auto;overflow-x:auto;overflow-y:hidden;gap:6px;padding-bottom:4px;scrollbar-width:none}
#shopframe#shopframe .sf-cat{min-height:46px;gap:6px;padding:8px 10px;font-size:12px;white-space:nowrap}
#shopframe#shopframe .sf-cat .sf-cat-l{white-space:nowrap}
#shopframe#shopframe .sf-cat .sf-cat-ic{width:20px;height:20px;flex-basis:20px}
#shopframe#shopframe .sf-cat .sf-cat-ic svg{width:20px;height:20px}
#shopframe#shopframe .sf-stage{flex:1 1 auto}
#shopframe#shopframe .sf-mid{gap:8px}
#shopframe#shopframe .sf-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#shopframe#shopframe .sf-sort{flex:0 1 175px}
#shopframe#shopframe .sf-sort select{font-size:13px}
#shopframe#shopframe .sf-allpill{font-size:12px;gap:5px}
#shopframe#shopframe .sf-grp-hint{flex:1 0 100%}
#shopframe#shopframe .sf-card[class]{padding:10px!important;border-radius:14px;gap:6px}
#shopframe#shopframe .sf-card .sf-nm{font-size:13px!important}
#shopframe#shopframe .sf-dlg{padding:10px;align-items:end}
#shopframe#shopframe .sf-dlg-card{width:100%;border-radius:20px 20px 12px 12px;max-height:100%}
#shopframe#shopframe .sf-panel.mode-bag .sf-bag{display:flex;flex-direction:column;overflow-y:auto;gap:12px}
#shopframe#shopframe .sf-load{display:none}
#shopframe#shopframe .sf-inv{min-height:0;flex:1 1 auto}
#shopframe#shopframe .sf-inv-title{font-size:13px}
#shopframe#shopframe .sf-inv-tabs{flex-wrap:wrap}
}
@media(max-height:500px) and (min-width:701px){#shopframe#shopframe{padding:0}#shopframe#shopframe .sf-panel{height:100%;padding:10px 16px;border-radius:0;gap:8px}#shopframe#shopframe .sf-top{padding-bottom:8px}#shopframe#shopframe .sf-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#shopframe#shopframe .sf-body{gap:12px}#shopframe#shopframe .sf-d-art{max-height:120px}#shopframe#shopframe .sf-dlg-card{width:560px}}
@media(prefers-reduced-motion:reduce){#shopframe#shopframe *{animation:none!important;transition:none!important}}
/* Keep currency identities visible when replacing the legacy image counters. */
#shopframe#shopframe .sf-wal-ic {display:grid!important}
#shopframe#shopframe .sc-sb-text {text-box:normal;padding:0;overflow:visible;line-height:1.4!important}
#shopframe#shopframe .sf-grp {gap:4px 8px;padding-top:6px}
@media(max-width:700px){
#shopframe#shopframe .sf-panel.mode-bag .sf-load{display:flex;flex-direction:row;flex:0 0 120px;gap:8px}
#shopframe#shopframe .sf-load-ship{flex:1 1 50%;max-width:50%}
#shopframe#shopframe .sf-load-row{flex:1 1 50%;min-width:0}
#shopframe#shopframe .sf-inv-grid:not(.list){grid-template-columns:repeat(3,minmax(0,1fr))}
#shopframe#shopframe .sf-grp-hint{font-size:11px}
}
@media(max-height:500px) and (max-width:700px){
#shopframe#shopframe .sf-panel{padding:8px;gap:6px}
#shopframe#shopframe .sf-top{flex-wrap:nowrap;padding-bottom:6px;gap:6px}
#shopframe#shopframe .sf-title{font-size:14px;max-width:110px}
#shopframe#shopframe .sf-logo{display:none}
#shopframe#shopframe .sf-wallets{width:auto;flex:1 1 auto;padding-right:48px}
#shopframe#shopframe .sf-wal{height:44px}
#shopframe#shopframe .sf-wal-ic{flex-basis:18px;width:18px}
#shopframe#shopframe .sf-closebtn{top:0}
#shopframe#shopframe .sf-body{flex-direction:row;gap:10px}
#shopframe#shopframe .sf-rail{width:110px;flex-direction:column;overflow:auto;flex-shrink:0}
#shopframe#shopframe .sf-cat{font-size:10px;padding:6px;gap:4px}
#shopframe#shopframe .sf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#shopframe#shopframe .sf-gridhead{gap:6px}
#shopframe#shopframe .sf-sort{flex-basis:150px}
#shopframe#shopframe .sf-card .sf-nm{font-size:13px!important}
#shopframe#shopframe .sf-d-art{max-height:100px}
}
