/* The vitrine and workbench share one engraved frame, with actions in place. */
.equipment-store .shop-workbench{position:absolute;right:2%;top:max(108px,14%);bottom:48px;width:min(780px,53%);display:flex;flex-direction:column;gap:8px;padding:28px 28px 22px;color:#f5e7c8;background:radial-gradient(ellipse at 50% 0,#5b4936f7,#30261ff5 72%);box-shadow:0 18px 48px #0008;isolation:isolate;border-radius:5px;font-family:var(--sans)}
.shop-workbench::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:2;background-image:url('/assets/premium-frame-crest.webp'),url('/assets/premium-frame-tl.webp'),url('/assets/premium-frame-tr.webp'),url('/assets/premium-frame-bl.webp'),url('/assets/premium-frame-br.webp'),url('/assets/premium-frame-top.webp'),url('/assets/premium-frame-bottom.webp'),url('/assets/premium-frame-left.webp'),url('/assets/premium-frame-right.webp');background-position:top center,top left,top right,bottom left,bottom right,top center,bottom center,left center,right center;background-size:64px 42px,36px 36px,36px 36px,36px 36px,36px 36px,calc(100% - 72px) 18px,calc(100% - 72px) 18px,18px calc(100% - 72px),18px calc(100% - 72px);background-repeat:no-repeat}
.equipment-store [hidden]{display:none!important}
.equipment-store button{touch-action:manipulation}
.equipment-store button:focus-visible,.equipment-store select:focus-visible{outline:2px solid #ffe5a0;outline-offset:2px}
.store-heading{display:flex;align-items:center;gap:20px;flex:none}
.store-heading h2{font:600 34px/1 var(--serif);margin:0 auto 0 0;color:#ffe8b5;outline:none}
.store-heading>button{font:600 17px var(--serif);color:#ecd2a1}
.store-heading label{display:flex;align-items:center;gap:6px;font:12px var(--sans);color:#e2ccaa}
.store-heading select{color:#f5dfb6;background:#2c251f;border:1px solid #a88750;border-radius:3px;min-height:38px;padding:4px 7px;font:inherit;max-width:115px;color-scheme:dark}
.store-controls{flex:none}
.store-categories{display:flex;justify-content:center;gap:12px;margin-bottom:8px}
.store-categories button{position:relative;width:56px;height:54px;border:1px solid #a5854945;border-radius:5px;background:linear-gradient(#9d7a2630,#1a171230);color:#eddbb5;padding:4px;transition:background .15s,border-color .15s}
.store-categories .gear-art{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 3px #0007)}
.store-categories button[aria-pressed=true]{border-color:#e7c577;background:linear-gradient(#ab893f80,#75532250);box-shadow:inset 0 0 0 2px #eed69720}
.store-all{font:600 18px var(--serif)}
.store-filter-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-block:1px solid #b7976240}
.store-qualities,.store-toggles{display:flex;gap:9px;align-items:center}
.store-qualities button,.store-toggles button{min-height:34px;padding:5px 1px;font:12px var(--sans);color:#cfbfa3;white-space:nowrap}
.store-qualities button[aria-pressed=true]{color:#ffe4a8;box-shadow:inset 0 -1px #e6c27c}
.store-toggles button{display:flex;align-items:center;gap:5px}
.store-toggles button::before{content:'';width:11px;height:11px;border:1px solid #b5955e;box-shadow:inset 0 0 0 2px #33271b}
.store-toggles button[aria-pressed=true]{color:#ffe4a8}
.store-toggles button[aria-pressed=true]::before{background:#e9c778}
.store-stock{flex:1;min-height:100px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:132px;align-content:start;gap:8px;padding:5px 4px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b49457 #221a15}
.store-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;padding:6px 4px;color:#f1e3c9;border:1px solid transparent;border-radius:5px;background:linear-gradient(#c69b3110,#0002);transition:border-color .15s,background .15s}
.store-item:hover{background:linear-gradient(#dcb65425,#231c1840);border-color:#bd9a5650}
.store-item[aria-pressed=true]{border-color:#eed18d;background:radial-gradient(ellipse at 50% 30%,#d6b16545,#2d2319a0);box-shadow:inset 0 0 0 2px #d7b67320}
.store-item-art{position:relative;display:block;width:90px;height:90px;max-width:100%;filter:drop-shadow(0 4px 5px #0005)}
.store-item-art .gear-art{display:block;width:100%;height:100%}
.store-item.gold .store-item-art::after,.store-item.relic .store-item-art::after{content:'';position:absolute;inset:auto 18% 0;height:1px;background:#dfb866}
.store-item.relic .store-item-art::after{height:2px;box-shadow:0 0 8px #f9d485}
.store-item-art small{position:absolute;bottom:2px;right:0;font:700 10px var(--sans);color:#e7d1a4;text-shadow:0 1px 3px #000}
.store-item-art b{position:absolute;left:0;top:0;display:grid;place-items:center;width:20px;height:20px;border:1px solid #dac282;border-radius:50%;background:#35321e;color:#fff1bc;font:700 13px var(--sans)}
.store-price{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:1px 7px}
.store-price-part{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font:600 12px/1.4 var(--sans)}
.store-price-part img{width:22px;height:22px;object-fit:contain}
.store-detail{flex:none;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:64px 67px 24px;gap:4px 14px;min-height:167px;padding:12px 2px 0;border-top:1px solid #c2a16c80}
.store-item-heading{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-width:0}
.store-detail-art{position:relative;flex:none;display:block;width:50px;height:54px}
.store-detail-art .gear-art{width:100%;height:100%}
.store-item-heading>div{flex:1;min-width:0}
.store-item-heading h3{font:600 24px/1.05 var(--serif);color:#ffe7b8;margin:3px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.store-item-heading small{font:10px var(--sans);color:#c4b28f}
.store-bookmark{display:grid;place-items:center;flex:none;width:38px;height:42px;color:#e4c690}
.store-bookmark svg,.store-goal svg{width:17px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5}
.store-bookmark[aria-pressed=true] svg{fill:#d9b668;stroke:#ffe6ad}
.store-stats{display:flex;align-items:center;justify-content:space-around;gap:12px;margin:0;text-align:center}
.store-stats dt{font:10px var(--sans);color:#dcc8a7}
.store-stats dd{font:600 23px/1.1 var(--serif);margin:4px 0 0;color:#fff2d6}
.store-stats small{display:block;margin-top:3px;font:600 11px var(--sans);color:#cabba1}
.store-stats .positive{color:#bbdc8e}.store-stats .negative{color:#ffb393}
.store-checkout{display:flex;flex-direction:column;justify-content:center;gap:5px;text-align:center}
.store-buy{min-height:42px;width:100%;padding:9px 12px;border:1px solid #bc9042;border-radius:3px;background:linear-gradient(#ffedbb,#e6c77f 52%,#c99e51);color:#513719;font:700 19px/1.1 var(--serif);box-shadow:inset 0 0 0 2px #fff2c63b,0 3px 8px #0003}
.store-buy:hover:not(:disabled){filter:brightness(1.08)}
.store-buy:disabled{background:linear-gradient(#9a8b6c,#796b52);color:#eee1c7;box-shadow:none;cursor:default}
.store-owned-label,.store-select-hint{font:12px var(--sans);color:#decdad}
.store-shortage{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#ffb99c;font:11px var(--sans)}
.store-shortage .store-price-part{font-size:11px}.store-shortage img{width:19px;height:19px}
.store-empty-detail{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center;font:500 24px var(--serif);color:#c8b491}
.store-status{flex:none;min-height:0;margin:0;color:#ffe2a2;font:12px var(--sans)}
.store-status:empty{display:none}
.store-goal:empty{display:none}
.store-goal>button{display:flex;align-items:center;gap:8px;width:100%;min-height:32px;padding:3px 6px;color:#ead5a7;background:#b38a2520}
.store-goal>button>span{flex:1;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font:600 16px var(--serif)}
.store-goal strong{display:flex;align-items:center;gap:5px;font:11px var(--sans)}.store-goal .store-price-part{font-size:11px}
.store-no-items{grid-column:1/-1;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:12px;color:#ddc9a7;font:18px var(--serif)}
.store-no-items button{color:#ffe1a3;border-bottom:1px solid #a88d5c;min-height:36px;font:14px var(--sans)}
.equipment-store .store-fitting{position:absolute;left:22%;bottom:9%;transform:translateX(-50%);min-height:38px;padding:7px 17px;border:1px solid #d5b87480;border-radius:3px;background:#211b15c9;color:#ffe2a3;font:600 18px var(--serif)}
.store-fitting span{margin-left:10px}
.equipment-store .shop-workbench{z-index:3}
.equipment-store .store-fitting{z-index:5}
.store-mobile-fit{display:none}
.store-mobile-preview{flex:1;min-height:80px;overflow:hidden;text-align:center;background:radial-gradient(ellipse at 50% 80%,#c8a56a33,transparent 65%)}
.store-mobile-preview>.hero-paperdoll{height:100%;max-width:100%;width:auto;filter:drop-shadow(0 4px 8px #0008)}
@media(max-width:1200px){.chamber .equipment-store.grounded-workshop .workshop-life{display:none}}
@media(max-width:800px) and (orientation:portrait),(max-height:440px){
 .store-mobile-fit{display:block;padding:3px 0;color:#f4d69a;font:11px var(--sans);text-decoration:underline;text-underline-offset:3px;min-height:26px}
 .store-detail{grid-template-rows:76px 64px 20px;min-height:170px}
 .chamber.forge-open .game-exit-trigger{display:none}
}
@media(max-width:1100px){.equipment-store .shop-workbench{width:64%;right:2%;padding-inline:22px}.store-categories{gap:9px}.store-filter-row{gap:6px}.store-qualities,.store-toggles{gap:7px}.store-qualities button,.store-toggles button{font-size:11px}.store-stock{grid-auto-rows:124px}.store-item-art{width:82px;height:82px}.store-price-part{font-size:11px}.store-item-heading h3{font-size:22px}}
@media(max-width:800px) and (orientation:portrait){
 .equipment-store .shop-workbench{left:12px;right:12px;width:auto;top:116px;bottom:47px;padding:25px 22px 19px;gap:6px}
 .store-heading h2{font-size:29px}.store-heading{gap:10px}.store-heading>button{font-size:15px}
 .store-categories{gap:10px;margin-bottom:5px}.store-categories button{width:48px;height:46px}
 .store-filter-row{flex-wrap:wrap;justify-content:center;gap:0 12px}.store-qualities button,.store-toggles button{min-height:31px}
 .store-stock{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:120px;gap:5px;padding:3px 0;min-height:80px}
 .store-item-art{width:76px;height:76px}.store-item{gap:4px;padding:4px 1px}.store-price-part{font-size:10px;gap:2px}.store-price-part img{width:18px;height:18px}
 .store-detail{grid-template-columns:1fr 1fr;grid-template-rows:55px 64px 24px;min-height:155px;gap:3px 8px;padding-top:8px}
 .store-item-heading h3{font-size:21px}.store-detail-art{width:37px;height:44px}.store-item-heading{gap:7px}.store-item-heading small{font-size:9px}
 .store-stats{gap:6px}.store-stats dd{font-size:22px}.store-buy{font-size:17px;min-height:42px;padding:8px 4px}.store-stats dt{font-size:9px}
 .store-goal>button>span{font-size:14px}.store-goal strong{font-size:10px}.store-goal .store-price-part{font-size:10px}
 .equipment-store .store-fitting{display:none}
}
@media(max-height:660px) and (min-width:801px){.equipment-store .shop-workbench{top:96px;bottom:30px;padding:23px 22px 18px;gap:4px;width:68%}.store-heading h2{font-size:28px}.store-categories button{width:44px;height:40px}.store-categories{margin-bottom:4px}.store-stock{grid-auto-rows:108px}.store-item-art{width:70px;height:70px}.store-detail{grid-template-rows:48px 60px 20px;min-height:136px;padding-top:6px}.store-item-heading h3{font-size:21px}.store-detail-art{height:42px;width:40px}}
@media(max-height:440px) and (orientation:landscape){.equipment-store .shop-workbench{left:28%;width:auto;right:10px;top:65px;bottom:30px;padding:20px 20px 16px;display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.95fr);grid-template-rows:30px 48px minmax(0,1fr);gap:3px 12px}.store-heading{grid-column:1/-1}.store-heading h2{font-size:25px}.store-heading select{min-height:28px}.store-controls{grid-column:1;grid-row:2;display:flex;align-items:center;gap:5px}.store-categories{gap:4px;margin:0}.store-categories button{width:30px;height:34px;padding:2px}.store-all{font-size:13px}.store-filter-row{border:0}.store-qualities,.store-toggles{display:none}.store-stock{grid-column:1;grid-row:3;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:85px;min-height:0;gap:3px}.store-item-art{width:51px;height:51px}.store-item{padding:2px 0;gap:2px}.store-price-part{font-size:9px;gap:1px}.store-price-part img{width:15px;height:15px}.store-detail{grid-column:2;grid-row:2/4;display:flex;flex-direction:column;min-height:0;padding:0 0 0 12px;border-top:0;border-left:1px solid #b7976240;gap:7px;overflow-y:auto}.store-item-heading h3{font-size:19px}.store-item-heading small{font-size:8px}.store-detail-art{width:32px;height:36px}.store-stats{flex:1}.store-stats dd{font-size:21px}.store-checkout{flex:none}.store-buy{min-height:38px;font-size:16px}.store-shortage{font-size:10px;gap:4px}.store-goal,.store-status{grid-column:1/-1}.store-goal:not(:empty){display:none}.equipment-store .store-fitting{left:15%;bottom:11%;font-size:14px;padding:5px 10px;min-height:30px}}
@media(prefers-reduced-motion:reduce){.store-item,.store-categories button{transition:none}}
@media(max-height:440px) and (orientation:landscape){
 .equipment-store .shop-workbench{grid-template-rows:30px 88px minmax(0,1fr)}
 .equipment-store .store-fitting{display:none}
 .store-controls{display:block}.store-categories{justify-content:flex-start;margin-bottom:3px}
 .store-filter-row{display:block}.store-qualities,.store-toggles{display:flex;gap:9px}
 .store-qualities button,.store-toggles button{font-size:9px;min-height:23px;padding:2px 0}
 .store-toggles button::before{width:9px;height:9px}
 .store-detail{min-height:0}.store-mobile-preview{grid-column:1;grid-row:2/4;min-height:0}
 .shop-workbench:has(.store-mobile-preview:not([hidden])) .store-controls{visibility:hidden}
}

/* Smith: no overlapping popovers; the right pane is the only comparison. */
.smith-heading{min-height:58px}
.smith-heading h2{font-size:38px}
.smith-shop{bottom:0}
.smith-filters{display:flex;gap:20px;flex:none;border-bottom:1px solid #b38a4840;margin-bottom:12px}
.smith-filters button{min-height:38px;padding:4px 0;font:600 17px var(--serif);color:#80623e}
.smith-filters button[aria-pressed=true]{color:#513311;box-shadow:inset 0 -2px #a77b32}
.smith-items{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:155px;gap:12px;align-content:start}
.smith-item{padding:10px 5px 8px;gap:6px;border-color:#ac844b30;background:linear-gradient(#fff9e650,#d1ac6815)}
.smith-item-art{width:92px;height:96px}
.smith-item-art small{position:absolute;bottom:0;right:0;font-size:10px;color:#64491f}
.smith-equipped{position:absolute;left:0;top:0;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#e7d08f;border:1px solid #b18e43;color:#684b1b;font:700 12px var(--sans)}
.smith-item-name{font:600 16px/1 var(--serif)}
.smith-rank{display:flex;gap:4px}
.smith-rank i{display:block;width:15px;height:4px;border:1px solid #ad884e88;background:#ae94552a}
.smith-rank i.filled{background:linear-gradient(#e4c977,#a2772d);border-color:#a47b30}
.smith-statistics dd>span{color:#987e55;font-size:19px}
.smith-gain{display:block;color:#47652e;font:700 12px var(--sans);margin-top:6px}
.smith-status:empty{display:none}
.smith-price-part{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font:600 13px var(--sans)}
.smith-price-part img{width:26px;height:26px;object-fit:contain}
.smith-wallet>strong{display:flex;flex-wrap:wrap;gap:4px 14px}
.smith-purchase{display:grid;grid-template-columns:1fr;gap:5px;text-align:center}
.smith-cost{display:flex;align-items:center;justify-content:center;gap:14px}
.smith-missing{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;font:11px var(--sans);color:#a23f22}
.smith-missing img{width:20px;height:20px}.smith-missing .smith-price-part{font-size:11px}
.smith-craft{min-height:48px;padding:10px 14px}
.smith-detail-note:empty{display:none}
@media(max-width:600px) and (orientation:portrait){
 .store-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px}
 .store-heading h2{font-size:28px;min-width:0}
 .store-heading>button{font-size:15px;white-space:nowrap}
 .store-heading>label{grid-column:1/-1;justify-self:end}
 .store-heading select{min-height:32px}
}
.smith-craft:only-child{grid-column:1/-1}
.smith-empty{grid-column:1/-1;font:18px var(--serif);text-align:center}
@media(max-width:760px){.smith-heading{min-height:48px}.smith-filters{gap:18px;margin-bottom:7px}.smith-filters button{font-size:15px;min-height:32px}.smith-items{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:110px;gap:6px}.smith-item{gap:5px;padding:6px 3px}.smith-item-art{width:64px;height:66px}.smith-item-name{font-size:13px}.smith-rank i{width:11px;height:3px}.smith-wallet>strong{gap:6px}.smith-price-part{font-size:11px}.smith-price-part img{width:21px;height:21px}.smith-checkout{grid-template-columns:minmax(0,.8fr) minmax(0,1fr);gap:8px}.smith-wallet{display:block}.smith-cost{gap:8px}.smith-gain{font-size:10px;margin-top:3px}}
@media(max-width:420px){.smith-items{grid-template-columns:repeat(3,minmax(0,1fr))}.smith-statistics dd{font-size:20px}.smith-statistics dd>span{font-size:16px}.smith-checkout{grid-template-columns:1fr}.smith-wallet{display:none}.smith-purchase{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.smith-cost{flex-wrap:wrap;gap:2px 7px}.smith-missing{grid-column:1/-1}.smith-craft{min-height:45px}.smith-detail h3{font-size:22px}.smith-heading h2{font-size:32px}}
@media(max-height:650px) and (max-width:760px){.smith-body{grid-template-rows:minmax(100px,.85fr) minmax(150px,1fr)}.smith-filters{margin-bottom:4px}.smith-filters button{min-height:28px}.smith-items{grid-auto-rows:86px;gap:4px}.smith-item{gap:3px;padding:4px}.smith-item-art{width:48px;height:48px}.smith-item-name{font-size:12px}.smith-detail{align-content:start}.smith-detail h3{font-size:18px}.smith-statistics{padding:3px 0}.smith-gain{margin-top:2px}}
@media(max-height:440px) and (min-width:761px){.smith-heading{min-height:36px}.smith-items{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:82px;gap:4px}.smith-item-art{width:43px;height:43px}.smith-item{padding:3px;gap:3px}.smith-item-name{font-size:12px}.smith-filters{margin-bottom:4px}.smith-filters button{min-height:28px;font-size:14px}.smith-cost{gap:8px}.smith-price-part{font-size:11px}.smith-price-part img{width:20px;height:20px}.smith-purchase{grid-template-columns:1fr 1fr;align-items:center}.smith-craft{min-height:40px}.smith-missing{grid-column:1/-1}.smith-gain{font-size:10px;margin-top:2px}.smith-statistics dd>span{font-size:15px}}
@media(max-width:760px){.smith-window::before{background-size:48px 33px,32px 32px,32px 32px,32px 32px,32px 32px,calc(100% - 64px) 16px,calc(100% - 64px) 16px,16px calc(100% - 64px),16px calc(100% - 64px)}}
@media(min-width:801px) and (min-height:441px){.equipment-store .store-fitting{left:34%;bottom:6%}}
@media(max-width:800px) and (orientation:portrait){.store-detail{grid-template-rows:78px 64px 20px;min-height:176px}}
@media(max-width:420px) and (max-height:650px){
 .equipment-store .shop-workbench{top:112px;bottom:40px;padding:23px 20px 17px;gap:4px}
 .store-heading h2{font-size:26px}.store-heading select{min-height:32px}
 .store-categories{gap:7px}.store-categories button{width:40px;height:37px}
 .store-qualities button,.store-toggles button{min-height:27px;font-size:10px}
 .store-stock{min-height:40px;grid-auto-rows:100px}.store-item-art{width:60px;height:60px}
 .store-detail{grid-template-rows:72px 57px 18px;min-height:157px;padding-top:5px}
 .store-item-heading h3{font-size:19px}.store-stats dd{font-size:20px}.store-buy{font-size:15px}
}

/* Weapon techniques stay in the existing engraved lower pane. */
.equipment-store:not(.market-scene) .store-detail{grid-template-rows:64px 67px auto;min-height:246px;max-height:47%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b49457 transparent}
.store-weapon-guide{grid-column:1/-1;align-self:start;min-width:0;padding:8px 0 3px;border-top:1px solid #b7976240;color:#f1e3c9;font:12px/1.4 var(--sans)}
.store-weapon-guide strong{display:block;margin-bottom:3px;color:#ffe1a3;font:600 18px/1.15 var(--serif)}
.store-weapon-guide p{margin:0}
.store-weapon-guide small{display:block;margin-top:4px;font:inherit;color:#d8c397}
.store-experience-guide{grid-column:1/-1;align-self:start;min-width:0;padding:5px 0 14px;color:#ffe1a3;font:600 12px/1.35 var(--sans)}
.store-experience-guide strong{display:block;font:inherit}
.store-experience-guide small{display:block;margin-top:3px;color:#d8c397;font:400 11px/1.35 var(--sans)}
/* Keep the market vitrine in place as the detail content changes. */
.equipment-store.market-scene .store-detail{height:174px;min-height:0;align-content:start;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b49457 transparent}
.equipment-store.market-scene .store-empty-detail{align-self:center;min-height:120px;display:grid;place-items:center}
.equipment-store.market-scene .store-status{display:block;height:16px;overflow:auto}
@media(max-width:800px) and (orientation:portrait){.equipment-store.market-scene .store-detail{height:176px}}
@media(max-height:660px) and (min-width:801px){.equipment-store.market-scene .store-detail{height:136px}}
@media(max-width:420px) and (max-height:650px){.equipment-store.market-scene .store-detail{height:157px}}
@media(max-height:440px) and (orientation:landscape){.equipment-store.market-scene .store-detail{height:auto}.equipment-store.market-scene .store-detail>*{flex-shrink:0}.store-experience-guide{font-size:11px}.store-experience-guide small{font-size:10px}}
@media(max-width:800px) and (orientation:portrait){.equipment-store:not(.market-scene) .store-detail{grid-template-rows:64px 76px auto;min-height:264px;max-height:55%}.store-weapon-guide{font-size:11px;line-height:1.35}.store-weapon-guide strong{font-size:17px}}
@media(max-height:660px) and (min-width:801px){.equipment-store:not(.market-scene) .store-detail{grid-template-rows:42px 48px auto;min-height:182px;max-height:50%;padding-top:6px}.equipment-store:not(.market-scene) .store-stock{min-height:60px}.store-weapon-guide{font-size:11px;line-height:1.3}.store-weapon-guide strong{font-size:17px}}
@media(max-width:420px) and (max-height:650px){.equipment-store:not(.market-scene) .store-detail{grid-template-rows:55px 70px auto;min-height:230px;max-height:55%}.store-weapon-guide{padding-top:5px}}
@media(max-height:440px) and (orientation:landscape){.equipment-store:not(.market-scene) .store-detail{display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);grid-template-rows:40px 56px auto;gap:5px 8px;align-content:start;min-height:0;max-height:none}.store-detail .store-mobile-fit{display:none}.store-detail .store-stats{gap:4px}.store-detail .store-buy{font-size:14px;padding:6px 3px}.store-weapon-guide{font-size:10px}.store-weapon-guide strong{font-size:16px}}

/* Ordinary layouts keep the existing flex/grid children. On short landscape
   screens, scroll the complete left catalogue so a card can be viewed in full. */
.store-catalog{display:contents}
@media(max-height:320px) and (orientation:landscape){
 body .chamber:is(.market-open,.forge-open):not(.city-view):not(.character-open) .wallet{flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px;padding:2px 180px 0 0}
 body .chamber:is(.market-open,.forge-open):not(.city-view):not(.character-open) .currency{height:20px;min-height:20px}
 body .chamber:is(.market-open,.forge-open):not(.city-view):not(.character-open) .currency small{display:none}
 body .chamber:is(.market-open,.forge-open):not(.city-view):not(.character-open) .utilities{top:0;right:0}
 body .equipment-store .shop-workbench{left:12px;right:12px;top:62px;bottom:42px;width:auto;padding:14px 20px 10px;grid-template-columns:minmax(0,1.3fr) minmax(160px,.8fr);grid-template-rows:26px minmax(0,1fr) auto;gap:3px 12px}
 body .equipment-store .store-catalog{display:block;grid-column:1;grid-row:2;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:3px;scrollbar-width:thin;scrollbar-color:#b49457 #221a15}
 body .equipment-store .store-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;min-width:0;margin-bottom:4px}
 body .equipment-store .store-categories{min-width:0;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;gap:3px;margin:0;scrollbar-width:thin}
 body .equipment-store .store-categories>button{flex:none;width:28px}
 body .equipment-store .store-filter-row{min-width:0}
 body .equipment-store .store-stock{min-height:0;overflow:visible;grid-auto-rows:85px}
 body .equipment-store .store-detail{grid-column:2;grid-row:2;min-height:0;height:auto}
 body .equipment-store .store-status{grid-row:3;min-height:0}
}
@media(max-height:250px) and (orientation:landscape){
 body .equipment-store .store-catalog{scroll-padding:0}
 body .equipment-store .store-stock{grid-auto-rows:64px}
 body .equipment-store .store-item-art{width:38px;height:38px}
}
