/* The premium sets at the top of the bag's Shop tab (public/bag-shop.js): the bag's own glass, lines and amber
   (public/bag.css) with a quiet gold for the section's title, the gem, the rules between sets and the buy button.
   Three pieces to a set: three tiles in a row on a desktop or tablet, three rows on a phone. */

:root { --gold: #84590a; --gold-fill: #d3a63e; --gold-ink: #2a1c04; }
@media (prefers-color-scheme: dark) { :root { --gold: #e8c56c; --gold-fill: #e3b957; --gold-ink: #221703; } }

.sh-premium { margin: 12px 0 6px; padding: 12px 10px 10px; border: 1px solid color-mix(in srgb, var(--gold-fill) 42%, var(--hud-line)); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold-fill) 15%, var(--panel)), color-mix(in srgb, var(--panel) 72%, transparent) 75%); }
.sh-premium[hidden] { display: none; }
.sh-prem-head { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.sh-gem { flex: none; width: 8px; height: 8px; margin-left: 3px; transform: rotate(45deg); border-radius: 2px; background: var(--gold-fill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-fill) 26%, transparent); }
.sh-prem-title { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.sh-prem-note { margin: 4px 2px 0 21px; color: var(--hud-muted); font-size: 12px; line-height: 1.4; }

.sh-set { margin-top: 10px; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--gold-fill) 30%, transparent); }
.sh-set-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 8px; }
.sh-set-head h3 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.sh-set-count { color: var(--hud-muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.sh-set.complete .sh-set-count { color: var(--gold); font-weight: 700; }

.sh-set-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sh-set .sh-card { gap: 4px; padding: 8px 5px 6px; border-color: color-mix(in srgb, var(--gold-fill) 34%, var(--hud-line)); }
.sh-set .sh-card.asking { border-color: var(--gold-fill); background: color-mix(in srgb, var(--gold-fill) 18%, var(--panel)); }
.sh-set .sh-card.owned { background: color-mix(in srgb, var(--gold-fill) 11%, var(--panel)); }
.sh-set .sh-card img { width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--gold-fill) 28%, transparent), transparent 72%); }
.sh-set .sh-text { min-height: 0; }
.sh-set .sh-name { font-size: 12.5px; }
.sh-set .sh-price { font-size: 12.5px; }
.sh-set .sh-act { margin-top: auto; }
.sh-set .sh-act .btn.primary { border-color: var(--gold-fill); background: var(--gold-fill); color: var(--gold-ink); }
.sh-set .sh-act .btn.primary:hover { border-color: color-mix(in srgb, var(--gold-fill) 80%, #fff); background: color-mix(in srgb, var(--gold-fill) 80%, #fff); }
.sh-set .sh-owned { color: var(--gold); }

/* a phone: a row for each piece, its picture, name and price on the left and its button on the right, so a
   name never has to wrap in a third of the sheet. The two buttons of a question stand one over the other. */
@media (max-width: 760px) {
  .sh-set-grid { grid-template-columns: minmax(0, 1fr); }
  .sh-set .sh-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) 112px; align-items: center; gap: 0 10px; padding: 6px 8px; text-align: left; }
  .sh-set .sh-card img { width: 52px; height: 52px; }
  .sh-set .sh-text { align-items: flex-start; }
  .sh-set .sh-act { flex-direction: column; width: auto; margin-top: 0; }
}
