/* Moss's storefront: a shelf of goods and a quiet counter for each purchase. */
#shopModal{width:min(900px,calc(100vw - 48px));max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #fff4dc;border-radius:28px;background:#f7efddeF;color:#4f6043;box-shadow:0 25px 90px #132e3059;overflow:auto;font-family:var(--hud-font,var(--ui-font))}
#shopModal::backdrop{background:#15342c65;backdrop-filter:blur(5px)}
.shop-header{display:flex;justify-content:space-between;gap:20px;padding:26px 30px 22px;background:#506b4f;color:#fff3d7;border-bottom:4px solid #c7bc87}
.shop-header .eyebrow{color:#d8dfb5;font-size:12px;letter-spacing:1.8px}.shop-header h2{font:500 30px/1.2 var(--hud-font);margin:7px 0}.shop-header p{font-size:14px;line-height:1.5;margin:0;color:#e0e6cc}.shop-header .icon-button{flex-shrink:0;color:#fff3d7;background:#ffffff14;border:1px solid #ffffff26;border-radius:50%;width:40px;height:40px}
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 26px;border-bottom:1px solid #a9b28b40}.shop-toolbar nav{display:flex;gap:5px;flex-wrap:wrap}.shop-category{border:0;background:transparent;border-radius:12px;color:#758165;font:400 14px var(--hud-font);padding:10px 13px;min-height:42px}.shop-category[aria-pressed=true]{background:#dce5c7;color:#405737}.shop-category:hover{background:#e4e9d4}
#shopBalance{display:flex;align-items:center;gap:6px;white-space:nowrap;background:#fff9e8;border:1px solid #ddd6b8;border-radius:18px;padding:9px 13px;font-size:14px;color:#697b48}#shopBalance strong{font-size:20px;font-weight:500}#shopBalance .hud-icon{width:20px;height:20px}
.shop-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;min-height:390px}.shop-stock{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:24px;align-content:start;max-height:480px;overflow-y:auto}.shop-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:9px;padding:14px 9px 12px;min-width:0;border:2px solid transparent;border-radius:17px;background:#fffaee;color:#526147;box-shadow:0 3px 0 #d8d5bc70;transition:background .15s,transform .15s,border-color .15s;cursor:pointer;font-family:inherit}.shop-card:hover{transform:translateY(-2px);background:#fffdf4}.shop-card[aria-pressed=true]{border-color:#889e62;background:#edf1df;box-shadow:0 3px 0 #aebd8d70}.shop-card:focus-visible,.shop-category:focus-visible{outline:3px solid #c88852;outline-offset:3px}.shop-card strong{font-size:14px;line-height:1.3;font-weight:500;min-height:36px}.shop-card-price{font-size:12px;color:#778263}.shop-card-art{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;color:var(--item-color);background:#edead9;box-shadow:inset 0 0 0 1px #b4b89930}.shop-card-art svg{width:42px;height:42px;filter:drop-shadow(0 2px 0 #45544130)}.shop-card.is-locked .shop-card-art{opacity:.5}.shop-card.is-locked .shop-card-price{color:#9a886d}
.shop-detail{border-left:1px solid #a9b28b40;background:#efe9d7;display:flex;flex-direction:column;padding:22px}.shop-showcase{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:154px;border-radius:20px;background:radial-gradient(ellipse at center,#fffbee,#e2e5ca);color:var(--item-color);border:1px solid #fff8e6;box-shadow:inset 0 -6px 20px #c0bc9220}.shop-showcase svg{width:84px;height:84px;filter:drop-shadow(0 5px 2px #54644924)}.shop-showcase>span{text-transform:capitalize;font-size:12px;color:#7b8869;letter-spacing:.7px}.shop-detail-copy{display:flex;flex-direction:column;flex:1;padding-top:20px}.shop-detail-copy .eyebrow{font-size:12px;letter-spacing:.5px;color:#8b9276}.shop-detail-copy h3{font:500 23px/1.2 var(--hud-font);margin:7px 0 10px;color:#4c6142}.shop-detail-copy p{font-size:14px;line-height:1.55;margin:0;color:#75816a}.shop-purchase{margin-top:auto;padding-top:22px}.shop-purchase .shop-availability{font-size:12px;line-height:1.5;margin-bottom:12px}.shop-purchase .primary{min-height:46px;border-radius:14px;background:#cb7055;border:1px solid #b8674f;box-shadow:0 3px 0 #a9513c;color:#fff8e8;font:500 14px var(--hud-font);padding:12px}.shop-purchase .primary:hover:not(:disabled){background:#d78062}.shop-purchase .primary:disabled{background:#d6d6bf;border-color:#cbccb5;box-shadow:none;color:#858c76;cursor:default}.shop-purchase .text-button{display:block;width:100%;margin-top:10px;font:400 13px var(--hud-font);color:#687c4f;min-height:36px}.shop-footer{display:flex;justify-content:space-between;gap:16px;padding:14px 26px;border-top:1px solid #a9b28b40;font-size:12px;color:#889174}.shop-footer [role=status]{color:#536b40}.shop-empty{grid-column:1/-1;padding:24px 10px;color:#7b866d;font-size:14px;line-height:1.6}
body.awakening #shopModal{max-height:calc(100dvh - 48px);background:#f7efdd}
@media(max-width:650px){#shopModal{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:22px}.shop-header{padding:18px}.shop-header h2{font-size:24px}.shop-header p{font-size:13px}.shop-toolbar{padding:10px 14px;gap:8px;flex-wrap:wrap}.shop-category{padding:8px 10px;font-size:13px}#shopBalance{margin-left:auto;font-size:12px;padding:6px 10px}.shop-layout{grid-template-columns:1fr;min-height:0}.shop-stock{grid-template-columns:repeat(3,minmax(0,1fr));max-height:225px;padding:14px;gap:9px}.shop-card{padding:10px 6px;gap:6px;border-radius:13px}.shop-card strong{font-size:12px;min-height:32px}.shop-card-art{width:45px;height:45px;border-radius:12px}.shop-card-art svg{width:32px;height:32px}.shop-card-price{font-size:12px}.shop-detail{border-left:0;border-top:1px solid #a9b28b40;display:grid;grid-template-columns:80px minmax(0,1fr);gap:14px;padding:16px}.shop-showcase{min-height:110px;align-self:start;gap:8px;border-radius:14px}.shop-showcase svg{width:49px;height:49px}.shop-showcase>span{font-size:12px}.shop-detail-copy{padding:0}.shop-detail-copy h3{font-size:20px;margin:5px 0 8px}.shop-detail-copy p{font-size:13px}.shop-purchase{padding-top:12px}.shop-purchase .shop-availability{margin-bottom:8px}.shop-footer{padding:12px 16px;flex-wrap:wrap;gap:5px}}
@media(prefers-reduced-motion:reduce){.shop-card{transition:none}}
