/* The shop screen (its button is the context button, css/action.css). */
#shop{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(360px,calc(100vw - 24px));max-height:calc(100vh - 40px);overflow:auto;padding:14px 16px 16px;background:rgba(9,38,40,.94);border:1px solid var(--hud-line);border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.45);z-index:5}
#shop[hidden]{display:none}
#shop .head{display:flex;align-items:center;gap:10px}
#shop .face{width:48px;height:48px;flex:none;border-radius:50%;background:rgba(255,236,190,.15)}
#shop .who{flex:1;display:flex;flex-direction:column;line-height:1.3}
#shop .who b{font-size:16px}
#shop .who span{font-size:13px;opacity:.85}
#shop .x{width:36px;height:36px;border-radius:8px;border:1px solid var(--hud-line);background:transparent;color:var(--ink);font-size:20px;line-height:1;cursor:pointer}
#shop .wallet{display:flex;align-items:center;gap:6px;margin:12px 0 10px;font-weight:700}
#shop .wallet svg{width:18px;height:18px;fill:#e8b53a;stroke:#a8741a;stroke-width:2}
#shop .tabs{display:flex;gap:6px;margin-bottom:10px}
#shop .tabs button{flex:1;min-height:40px;border-radius:9px;border:1px solid var(--hud-line);background:rgba(4,20,22,.45);color:var(--ink);font:500 15px 'Kanit',system-ui,sans-serif;cursor:pointer}
#shop .tabs button[aria-selected="true"]{background:var(--gold);color:#3b2410;border-color:transparent}
.ware{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:center;padding:10px;border-radius:10px;background:rgba(255,236,190,.08)}
.ware svg{width:40px;height:40px}
.ware .txt{display:flex;flex-direction:column;gap:2px;font-size:13px}
.ware .txt b{font-size:15px}
.ware .btns{grid-column:1 / -1;display:flex;gap:8px;flex-wrap:wrap}
.ware .btns button{flex:1;min-height:42px;border-radius:9px;border:0;background:var(--gold);color:#3b2410;font:700 14px 'Kanit',system-ui,sans-serif;cursor:pointer}
.ware .btns button:disabled{background:rgba(255,236,190,.2);color:rgba(255,247,228,.6);cursor:default}
.ware .why{grid-column:1 / -1;font-size:12px;color:#ffb3a8}
/* today's price against yesterday (market.js) */
.ware .txt i{font-style:normal;font-weight:700}
.ware .txt i.up{color:#8fe08a}
.ware .txt i.down{color:#ff9a8a}
.ware .txt i.same{opacity:.6}

#shop button:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
