/* Loja da Moeda (v0.233, ui/shop.js): aba do menu com os Tickets Especiais e os itens de uso. Usa painéis, botões e a cor de
   raridade de sempre; neon só nos dois Tickets Especiais (aquisição de Mítico e Celestial). */

.shop-tab {
  display: flex;
  flex-direction: column;
  max-width: 980px;
}

.shop-intro {
  margin-bottom: var(--s-4);
}

#shop-root {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.shop-balance {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-4);
}

.shop-balance p:first-child {
  font-size: var(--fs-16);
}

.shop-section {
  font-family: var(--font-display);
  font-size: var(--fs-20);
}

.shop-section-note {
  margin-top: var(--s-1);
  margin-bottom: var(--s-3);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.shop-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface-1);
}

.shop-special {
  border-color: var(--rarity);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rarity) 35%, transparent);
}

.shop-ico {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-m);
  background: var(--surface-2);
}

.shop-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}

.shop-name {
  font-size: var(--fs-16);
  font-weight: 700;
}

.shop-special .shop-name {
  color: var(--rarity);
}

.shop-text,
.shop-limit {
  color: var(--text-2);
  font-size: var(--fs-13);
}

.shop-limit strong {
  color: var(--text);
}

.shop-buy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-1);
  min-width: 132px;
  max-width: 190px;
}

.shop-btn .btn-top {
  font-weight: 700;
}

.shop-btn .btn-price {
  font-weight: 400;
}

.shop-why {
  color: var(--text-2);
  font-size: var(--fs-12);
  line-height: 1.35;
  text-align: center;
}

/* Abas da Loja (v0.267): Loja da Moeda e Loja do Raid. */
/* No lobby o submenu da Loja (v0.272) já separa Loja da Moeda e Loja do Raid; as abas de dentro ficam só na barraca da taverna. */
.lobby-content .shop-views {
  display: none;
}

.shop-views {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.shop-view-tab {
  min-height: 44px;
  padding: 0 var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface-1);
  color: var(--text-2);
  font-weight: 700;
  cursor: pointer;
}

.shop-view-tab.active {
  border-color: #f06a2a;
  color: var(--text);
  background: color-mix(in srgb, #f06a2a 14%, var(--surface-1));
}

.shop-view-tab:focus-visible {
  outline: 2px solid #ffc070;
  outline-offset: 2px;
}

.raid-name-preview {
  font-weight: 800;
  font-size: var(--fs-13);
  text-align: center;
  overflow-wrap: anywhere;
  padding: 0 var(--s-1);
}

.raid-frame-preview {
  display: block;
  width: 40px;
  height: 48px;
  border-radius: var(--radius-m);
  border: 3px solid #ff7a3a;
  box-shadow: 0 0 0 1px #5c1a1c, inset 0 0 8px rgba(255, 192, 112, 0.5);
}

/* Pergaminho SS na Forja (v0.267): a lista dos três atributos no diálogo. */
.ss-pick-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.ss-pick-list .btn {
  min-height: 44px;
}

@media (max-width: 560px) {
  .shop-card {
    grid-template-columns: auto 1fr;
  }

  .shop-buy {
    grid-column: 1 / -1;
    max-width: none;
  }
}
