/* ===== COLLEX v2: Master Set index + hub. Loaded after /kit.css and chrome.css. ===== */

/* ---- index ---- */
.masterset-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.masterset-chip { min-height: 44px; cursor: pointer; }
.masterset-index__tiles { row-gap: 40px; }
.masterset-tile[hidden] { display: none; }
.masterset-tile .tile__media { aspect-ratio: 1 / 1; }
.masterset-tile .tile__media img { object-fit: contain; padding: 32px; }
.masterset-tile__soon { color: var(--muted); }

/* ---- hub: hero ---- */
.masterset-hub__stage { padding: 24px; }
.masterset-hub__stage .product-gallery { width: 100%; }
.masterset-hub__buy { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; min-width: 0; }
.masterset-hub__intro { display: flex; flex-direction: column; gap: 14px; }
.masterset-hub__panel { display: flex; flex-direction: column; gap: 28px; }
.masterset-hub__price { display: flex; align-items: baseline; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.masterset-hub__actions { display: flex; flex-direction: column; gap: 12px; }
.masterset-hub__actions .link { min-height: 44px; display: inline-flex; align-items: center; }
.masterset-hub__trust { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.masterset-hub__trust li { display: inline-flex; align-items: center; gap: 8px; }
.masterset-hub__trust svg { width: 16px; height: 16px; flex: none; color: var(--text); }
.masterset-v2 .buy-panel__variants { display: flex; flex-wrap: wrap; gap: 8px; }
.masterset-v2 .buy-panel__pill { min-height: 44px; }
.masterset-v2 .buy-panel__status:empty { display: none; }

/* ---- hub: sprite grid ---- */
.masterset-dex {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 28px 16px;
}
.masterset-dex-tile.masterset-hub__tile--card,
.masterset-dex-tile.masterset-hub__tile--form { aspect-ratio: auto; padding: 0; gap: 6px; background: none; align-items: stretch; flex-direction: column; }
.masterset-dex-tile .tile__media { aspect-ratio: 1 / 1; }
.masterset-dex-tile .tile__media img,
.masterset-dex-tile.masterset-hub__tile--card .tile__media img,
.masterset-dex-tile.masterset-hub__tile--form .tile__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; padding: 14px; border-radius: 0; box-shadow: none; image-rendering: pixelated; }
.masterset-dex-tile.masterset-hub__tile--card .tile__media { aspect-ratio: 5 / 7; }
.masterset-dex-tile.masterset-hub__tile--card .tile__media img { padding: 0; object-fit: cover; image-rendering: auto; }
.masterset-dex-tile:hover .tile__name { color: var(--strong); }
.masterset-hub__tag-placeholder { grid-column: 1 / -1; padding: 32px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); }

/* ---- hub: details, faq, waitlist, more ---- */
.masterset-hub__feature { display: flex; flex-direction: column; gap: 10px; }
.masterset-hub__features { gap: 48px; }
.masterset-hub__faq-wrap { max-width: 880px; }
.masterset-hub__faq .faq__q { min-height: 64px; }
.masterset-v2 .masterset-hub__waitlist { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.masterset-v2 .masterset-hub__waitlist::before { display: none; }
.masterset-wl__form { display: flex; flex-wrap: wrap; gap: 12px; }
.masterset-wl__input { flex: 1 1 240px; min-height: 44px; }
.masterset-hub__more { row-gap: 40px; }

@media (max-width: 900px) {
  .masterset-hub__features { gap: 28px; }
  .masterset-dex { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 20px 12px; }
  .masterset-hub__stage { padding: 12px; }
}

/* neutralise legacy .buy-panel sizing and pill type so the kit chip look wins */
.masterset-hub__panel { max-width: none; padding-top: 0; }
.masterset-v2 .buy-panel__pill { font-family: var(--body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.masterset-index__body { padding-top: 0; }

/* Selected variant pill: legacy styles.css paints it retired cream (#EDE6D6)
   while the kit .chip:hover forces light text on it (1.2:1). Use the kit
   .chip--on pattern for selected, hover included. */
.masterset-v2 .buy-panel__pill[aria-checked="true"],
.masterset-v2 .buy-panel__pill[aria-checked="true"]:hover {
  background: var(--text); border-color: var(--text); color: #0E0E12; box-shadow: none;
}
