/* ---------- counter-goods shop ---------- */
/* every shop tile is the same frame: icon on top, then exactly TWO text
   lines — the item name on line one, its price on line two — then the
   buy button. Both lines are nowrap at a size picked to fit the tile,
   so a short price (300) and a long one (3,000) lay out identically
   and nothing ever wraps mid-phrase */
#shopGrid{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px}
@media (max-width:380px){ #shopGrid{grid-template-columns:1fr} }
.shop-bal{display:flex; align-items:center; gap:5px; font-weight:900; font-size:15px; margin:10px 0 0}
.shop-card{flex-direction:column; align-items:center; text-align:center; gap:3px; padding:10px 6px 9px}
.shop-card .z-ic{width:48px; height:48px}
.shop-card .z-ic svg{width:42px; height:42px}
.shop-card .z-tx{display:flex; flex-direction:column; align-items:center; min-width:0}
.shop-card .z-name{font-size:13.5px; white-space:nowrap; line-height:1.35}
.shop-price{display:flex; align-items:center; justify-content:center; gap:3px; font-weight:900; font-size:12.5px; color:#8A5A10; margin-top:1px; white-space:nowrap; line-height:1.35}
@media (prefers-color-scheme:dark){ .shop-price{color:var(--gold-l)} }
.buy-btn{
  flex:none; border-radius:999px; border:2px solid #A92436; background:var(--shu); color:#FFF;
  font-weight:900; font-size:13px; padding:6px 16px; min-height:40px; min-width:0; margin-top:3px;
}
.buy-btn:disabled{background:var(--bg); color:var(--muted); border-color:var(--line)}
.owned-tag{flex:none; font-weight:900; font-size:12.5px; color:var(--ok)}
/* a quiet little "i" in each shop card's top-right corner: tapping it
   unfolds that item's effect (when it has one) and a short description
   inside the card. Deliberately small and pale so it never competes
   with the item itself */
.shop-card{position:relative}
.info-btn{
  position:absolute; top:6px; right:6px; width:26px; height:26px; min-width:0; min-height:0;
  border-radius:50%; border:1.5px solid var(--line); background:var(--panel); color:var(--muted);
  font-family:Georgia,"Times New Roman",serif; font-style:italic; font-weight:700; font-size:14px; line-height:1;
  display:flex; align-items:center; justify-content:center; padding:0; opacity:.85;
}
.shop-info{width:100%; margin-top:7px; background:var(--panel); border:1.5px dashed var(--line); border-radius:10px; padding:7px 9px; text-align:left}
.shop-info p{margin:0; font-size:11.5px; line-height:1.55; color:var(--muted)}
.shop-fx{font-size:11.5px; font-weight:900; line-height:1.55; color:#8A5A10; margin-bottom:2px}
@media (prefers-color-scheme:dark){ .shop-fx{color:var(--gold-l)} }
