/* The worlds' in-game shops: the Shop tab of a world's game page (store/shop.js). */
.shop-tabs { display: flex; gap: var(--s5); padding: 0 var(--s6); background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; }
.shop-tab { padding: 12px 2px; color: var(--dim); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; white-space: nowrap; }
.shop-tab:hover { color: var(--text); }
.shop-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.shop-head { margin-bottom: var(--s5); }
.shop-head-row { gap: var(--s5); align-items: center; flex-wrap: wrap; }
.shop-head-row .grow { flex: 1 1 240px; min-width: 0; }
.shop-bal { display: flex; flex-direction: column; gap: 2px; padding-right: var(--s5); border-right: 1px solid var(--line); }
.shop-bal .k { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.shop-bal .v { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-name-row { gap: var(--s2); flex-wrap: wrap; }
.shop-name-row input { width: min(240px, 100%); min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font: 14px var(--font); }
.shop-filters { margin-top: var(--s2); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); margin-bottom: var(--s6); }
.shop-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; min-width: 0; }
.shop-card:hover { border-color: var(--line-strong); }
.shop-card.sold { opacity: .7; }
/* Part 5: ammo for the player's guns */
.shop-card.for-mine { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.shop-card.flash { animation: shop-flash 1.6s ease-out 1; }
@keyframes shop-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: inset 0 0 0 1px var(--accent); } }
.shop-for-mine { margin: 0; align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.shop-uses { margin: 0; color: var(--dim); }
.shop-uses a { color: var(--accent-ink); font-weight: 600; }
.filters button.shop-mine-toggle { border-style: dashed; }
.filters button.shop-mine-toggle[aria-pressed="true"] { border-style: solid; }
.shop-asof { flex-basis: 100%; }
.shop-art { display: grid; place-items: center; height: 132px; background: radial-gradient(ellipse at 50% 40%, var(--card-hi), var(--panel)); border-bottom: 1px solid var(--line); }
.shop-icon { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; }
.shop-icon.none { display: grid; place-items: center; border-radius: var(--r-sm); background: var(--panel); border: 1px dashed var(--line-strong); color: var(--dim); font: 700 20px var(--font); letter-spacing: .06em; }
.shop-icon.sm { width: 36px; height: 36px; font-size: 11px; flex: none; }
.shop-icon.lg { width: 72px; height: 72px; flex: none; }
.shop-body { padding: var(--s3) var(--s4) var(--s4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.shop-body h3 { margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.shop-stats { margin: 0; overflow-wrap: anywhere; }
.shop-foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.shop-foot .spacer { flex: 1; }
.shop-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-mine h2 { margin-top: 0; }
.shop-waiting { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s3); }
.shop-list li { flex-wrap: nowrap; }
.shop-list .grow { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.shop-dialog { width: min(460px, calc(100vw - 32px)); }
.shop-kicker { margin: 0 0 var(--s2); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; overflow-wrap: anywhere; }
.shop-dlg-head { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s3); }
.shop-dlg-head h2 { margin: 0; overflow-wrap: anywhere; }
.shop-dlg-head img.shop-icon.lg { background: var(--panel); border-radius: var(--r-sm); padding: 4px; }
.shop-kv { grid-template-columns: 130px minmax(0, 1fr); margin-bottom: var(--s3); }
.shop-dialog .form-msg:empty { display: none; }
@media (max-width: 640px) {
  .shop-tabs { padding: 0 var(--s4); }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .shop-art { height: 96px; }
  .shop-icon { width: 72px; height: 72px; }
  .shop-body { padding: var(--s3); }
  .shop-foot .btn { width: 100%; }
  .shop-bal { border-right: 0; padding-right: 0; }
  .shop-kv { grid-template-columns: 1fr; }
  .shop-dialog .dialog-actions .btn { flex: 1; }
  .shop-list li { flex-wrap: wrap; row-gap: 4px; }
  .shop-list .grow { flex: 1 1 calc(100% - 52px); }
  .shop-list .amt { margin-left: 48px; }
  .shop-list .pill { margin-left: auto; }
}
