/* Mercado (#mercado, iteration 40, js/ui/market.js): listings as cards like the Tienda's, a picker of
   your free machines to sell, and your open listings / last sales. */
.screen-market .seg { margin-bottom: var(--sp-4); }
.mk-body { display: flex; flex-direction: column; gap: var(--sp-4); }
.mk-sort { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--sp-3); color: var(--text-2); font-size: var(--fs-5); }
.mk-sort select { width: auto; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--sp-4); }
.mk-card { display: flex; flex-direction: column; gap: var(--sp-3); padding: 16px; }
.mk-machine { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mk-art { flex: none; display: grid; place-items: center; width: 72px; height: 72px; background: var(--well); box-shadow: var(--sunk-2); }
.mk-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mk-name { margin: 0; font: 600 var(--fs-4)/1.25 var(--f-body); color: var(--text); }
.mk-stats { margin: 0; font-size: var(--fs-5); color: var(--text-2); }
.mk-line { margin: 0; font-size: var(--fs-6); color: var(--text-3); }
.mk-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.mk-sell { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 620px; }
.mk-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-pick-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; cursor: pointer;
  font: 500 var(--fs-5)/1.2 var(--f-body); color: var(--text); background: var(--surface-2); box-shadow: var(--bevel-2s), var(--ring2);
}
.mk-pick-btn small { color: var(--text-3); }
.mk-pick-btn:hover { background: var(--surface-3); }
.mk-pick-btn[aria-pressed="true"] { background: var(--violet); box-shadow: inset 0 3px 0 var(--violet-hi), inset 0 -3px 0 var(--violet-lo), var(--ring2); }
.mk-selected { max-width: 420px; }
.mk-get { margin: 0; color: var(--text-2); }
.mk-get strong { color: var(--gold); }
.mk-sell > .btn { align-self: flex-start; }
.mk-sales { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mk-sales li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "art what got" "art when when"; gap: 2px 10px; align-items: center; padding: 8px 10px; background: var(--surface-2); box-shadow: var(--bevel-2s); }
.mk-sales li > :first-child { grid-area: art; }
.mk-sales li span { grid-area: what; color: var(--text); overflow-wrap: anywhere; }
.mk-sales li strong { grid-area: got; color: var(--gold); }
.mk-sales li small { grid-area: when; color: var(--text-3); font-size: var(--fs-6); }
/* «Mercado de jugadores ›» under the Tienda's title */
.shop-market-link { color: var(--violet-text); font-size: var(--fs-5); }
