/* LOJA NOVA — piloto de reconstrução (13/09/2026).
   Identidade madeira escura + bronze envelhecido, os MESMOS tons já
   aprovados no piloto do Inventário (`inventario-novo/styles.css`) — não
   inventei paleta nova, reaproveitei os valores medidos ali. Sem imagem
   nova: gradientes, box-shadow em camadas e cantoneiras via ::before/::after.
   Ver index.js pro porquê do DOM próprio e as decisões de dados. */

@font-face {
  font-family: Cinzel;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/potato/fonts/cinzel-latin.woff2) format('woff2');
}

.loja2 {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  font-family: 'Baloo 2', system-ui, sans-serif;
  color: #ede1c8;
}

.loja2-veu {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 2, 0.72);
  backdrop-filter: blur(2px);
}

.loja2-caixa {
  position: relative;
  width: min(1400px, 98vw);
  height: min(880px, 96vh);
  display: grid;
  grid-template-columns: 250px 1fr;
  background: radial-gradient(120% 55% at 50% -6%, rgb(255 140 40 / 0.08), transparent 60%), linear-gradient(180deg, #241609, #170e07 46%, #100a05);
  border: 2px solid #120b05;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgb(201 154 76 / 0.18), 0 0 40px #000000cc, 0 24px 60px rgb(0 0 0 / 0.6);
  overflow: hidden;
}
.loja2-caixa::before,
.loja2-caixa::after {
  content: '';
  position: absolute;
  z-index: 5;
  width: 26px;
  height: 26px;
  border: 2px solid rgb(201 154 76 / 0.5);
  pointer-events: none;
}
.loja2-caixa::before {
  top: 7px;
  left: 7px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 12px 0 0;
}
.loja2-caixa::after {
  bottom: 7px;
  right: 7px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 12px;
}

.loja2-fechar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  /* L12 (auditoria 25/09): o mesmo ✕ redondo das outras janelas. */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgb(201 154 76 / 0.4);
  background: rgb(16 10 5 / 0.85);
  color: #d9c6a3;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.08s, filter 0.08s, background 0.12s, color 0.12s;
}
/* 28/09 (Zerg: "o Fechar da Loja está saindo do layout da janela"): no PC o ✕ ficava por cima do saldo de ouro, no canto
   do conteúdo. A faixa de cima termina antes dele: o ✕ fica sozinho no canto da moldura. (No celular a faixa de abas já para
   antes do ✕, ver `.loja2-rail` mais abaixo.) */
@media (min-width: 700px) {
  .loja2-moedas {
    padding-right: 44px;
  }
}
.loja2-fechar:hover {
  color: #ede1c8;
  background: rgb(58 39 18 / 0.95);
}
.loja2-fechar:active {
  transform: scale(0.9);
}

/* sensação de clique — uma regra pra todo botão clicável, em vez de repetir por classe */
.loja2-cat:not(:disabled),
.loja2-moeda,
.loja2-unit,
.loja2-card__preco:not(:disabled),
.loja2-sk-btn:not(:disabled),
.loja2-pp-btn:not(:disabled),
.loja2-pp-chip,
.loja2-voltar,
.loja2-atualiza {
  transition: transform 0.08s, filter 0.08s, background 0.12s, border-color 0.12s;
}
.loja2-cat:not(:disabled):active,
.loja2-moeda:active,
.loja2-unit:active,
.loja2-card__preco:not(:disabled):active,
.loja2-sk-btn:not(:disabled):active,
.loja2-pp-btn:not(:disabled):active,
.loja2-pp-chip:active,
.loja2-voltar:active,
.loja2-atualiza:active {
  transform: scale(0.95);
  filter: brightness(0.9);
}

/* ── rail (categorias) ─────────────────────────────────────────────── */

.loja2-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 14px;
  background: linear-gradient(180deg, #1c1108, #140c05);
  border-right: 1px solid #120b05;
  overflow-y: auto;
}

.loja2-rail__titulo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f8e2ab, #d9a44a 55%, #a9782c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  margin: 0 4px 4px;
}

.loja2-cats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loja2-cat {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #b9a583;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.loja2-cat:hover:not(:disabled):not(.loja2-cat--ativa) {
  background: rgb(201 154 76 / 0.08);
  color: #e9d9bd;
}
.loja2-cat:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.loja2-cat--ativa {
  /* dourado só aqui e no botão de preço — a categoria selecionada é "onde o
     olho já está", tratar como o mesmo tipo de destaque do CTA principal. */
  background: linear-gradient(180deg, #3a2712, #241609);
  border-color: rgb(201 154 76 / 0.45);
  color: #f2dfb2;
}
.loja2-cat__icone {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.6));
}
.loja2-cat__rotulo {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loja2-cat__conta {
  font-size: 10.5px;
  color: #9c8a6c;
  background: rgb(0 0 0 / 0.3);
  border-radius: 6px;
  padding: 1px 6px;
}

.loja2-rail__aviso {
  position: relative;
  margin-top: 6px;
  padding: 10px 10px 12px;
  border-radius: 10px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: linear-gradient(180deg, #1a0f06, #110a04);
  text-align: center;
}
.loja2-rail__selo {
  display: inline-block;
  margin-bottom: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: rgb(201 154 76 / 0.18);
  color: #d9a44a;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.loja2-rail__aviso-titulo {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12.5px;
  color: #e9d9bd;
  margin-bottom: 4px;
}
.loja2-rail__aviso-art {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(0.3);
}
.loja2-rail__aviso-texto {
  font-size: 10.5px;
  line-height: 1.4;
  color: #9c8a6c;
  margin: 4px 0 8px;
}
.loja2-rail__aviso-btn {
  width: 100%;
  padding: 6px 0;
  border-radius: 6px;
  border: 1px solid rgb(201 154 76 / 0.25);
  background: rgb(0 0 0 / 0.25);
  color: #6f6249;
  font-size: 11px;
  font-weight: 700;
  cursor: not-allowed;
}

/* 25/09: o botão "Comprar Gemas" do atalho é clicável (os outros avisos eram desligados). */
.loja2-rail__aviso-btn:not(:disabled) {
  border-color: rgb(240 196 74 / 0.7);
  background: linear-gradient(180deg, #f0c44a, #c98e1e);
  color: #241706;
  cursor: pointer;
}
.loja2-rail__aviso-btn:not(:disabled):hover { filter: brightness(1.08); }
.loja2-rail__aviso:has(.loja2-rail__aviso-btn:not(:disabled)) .loja2-rail__aviso-art { opacity: 1; filter: none; }

/* ── corpo (moedas/controles/grid) ─────────────────────────────────── */

.loja2-body {
  display: flex;
  flex-direction: column;
  padding: 18px 22px 16px;
  overflow-y: auto;
}

.loja2-titulo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f8e2ab, #d9a44a 55%, #a9782c);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  margin: 0 0 14px;
}

.loja2-moedas {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.loja2-abas-moeda {
  display: flex;
  gap: 8px;
  flex: 1;
}
.loja2-moeda {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: linear-gradient(180deg, #201409, #140c05);
  cursor: pointer;
  text-align: left;
}
.loja2-moeda img {
  flex: none;
}
.loja2-moeda span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.loja2-moeda strong {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  color: #e9d9bd;
}
.loja2-moeda small {
  font-size: 10.5px;
  color: #9c8a6c;
}
.loja2-moeda small b {
  color: #b9a583;
}
.loja2-moeda[aria-pressed='true'] {
  background: linear-gradient(180deg, #3a2712, #241609);
  border-color: #e2b45a;
  box-shadow: inset 0 0 0 1px rgb(226 180 90 / 0.25);
}
.loja2-saldo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgb(0 0 0 / 0.3);
  border: 1px solid rgb(201 154 76 / 0.2);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 16px;
  color: #f2dfb2;
  white-space: nowrap;
}

.loja2-controles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(201 154 76 / 0.15);
}
.loja2-rotulo {
  font-size: 11px;
  color: #9c8a6c;
  margin-right: 6px;
}
.loja2-lote {
  display: flex;
  align-items: center;
  gap: 4px;
}
.loja2-unit {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: #1c1108;
  color: #b9a583;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.loja2-unit[aria-pressed='true'] {
  background: linear-gradient(180deg, #d9a44a, #a9702a);
  border-color: #f6d68a;
  color: #1c1109;
  box-shadow: inset 0 1px rgb(255 255 255 / 0.4), 0 2px #4d3005;
}
.loja2-ordenar {
  display: flex;
  align-items: center;
}
.loja2-ordenar select {
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid rgb(201 154 76 / 0.25);
  background: #1c1108;
  color: #ede1c8;
  font-size: 12px;
}
.loja2-atualiza {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: #1c1108;
  color: #b9a583;
  font-size: 11px;
  cursor: pointer;
}
.loja2-atualiza b {
  color: #e2b45a;
}
.loja2-atualiza:hover {
  background: #241609;
}

.loja2-grid__msg {
  padding: 40px 0;
  text-align: center;
  color: #9c8a6c;
}
.loja2-grid__msg--erro {
  color: #ff8f7a;
}
.loja2-grid__retry {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgb(201 154 76 / 0.3);
  background: #1c1108;
  color: #ede1c8;
  cursor: pointer;
}

.loja2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 12px;
  padding-bottom: 6px;
}

/* ── cartões de oferta ──────────────────────────────────────────────── */

.loja2-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgb(201 154 76 / 0.22);
  background: linear-gradient(180deg, #201409, #150d05 70%, #100a05);
  box-shadow: inset 0 1px rgb(255 255 255 / 0.03), 0 3px 8px rgb(0 0 0 / 0.35);
}
.loja2-card[data-estado='travado'] {
  filter: saturate(0.55) brightness(0.85);
}

.loja2-card__topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-height: 18px;
  margin-bottom: 6px;
}
.loja2-card__tag {
  padding: 1px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f9cd68, #d9901c);
  color: #2a1a02;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.loja2-card__tag--novo {
  background: linear-gradient(180deg, #8fdb7f, #4f9c43);
  color: #0e2409;
}
.loja2-card__posse {
  margin-left: auto;
  font-size: 10.5px;
  color: #9c8a6c;
  white-space: nowrap;
}
.loja2-card__posse b {
  color: #b9a583;
}
.loja2-card__selo {
  margin-left: 0;
  color: #d9a44a;
  font-weight: 700;
}

.loja2-card__palco {
  position: relative;
  display: grid;
  place-items: center;
  height: 74px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: radial-gradient(60% 60% at 50% 40%, rgb(201 154 76 / 0.1), transparent 70%);
}
.loja2-card__art {
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.5));
}
.loja2-card__qty {
  position: absolute;
  bottom: 2px;
  right: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.55);
  color: #ede1c8;
  font-size: 10.5px;
  font-weight: 700;
}
.loja2-card__cadeado {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(10 6 2 / 0.45);
  border-radius: 8px;
  font-size: 22px;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
}
.loja2-card__promo {
  position: absolute;
  top: 2px;
  left: -6px;
  transform: rotate(-4deg);
  padding: 1px 10px;
  background: linear-gradient(180deg, #e0473f, #a8241d);
  color: #ffe9e5;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.4);
}

.loja2-card__nome {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  color: #ede1c8;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loja2-card__desc {
  flex: 1;
  font-size: 11px;
  line-height: 1.4;
  color: #b9a583;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: default;
}
.loja2-card__desc[data-aberto='1'] {
  -webkit-line-clamp: unset;
  display: block;
}

/* CORRIGIDO (verificação): produção mostra texto explícito "ver mais"/"ver
   menos" abaixo da descrição (não só um sublinhado sutil no próprio texto). */
.loja2-card__vermais {
  align-self: flex-start;
  margin: -4px 0 8px;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #d9a44a;
  cursor: pointer;
  text-decoration: underline;
}
.loja2-card__vermais:hover {
  color: #f8e2ab;
}

/* Único dourado "alto" por cartão: o botão de comprar. É repetido — um por
   cartão, como o grid inteiro do jogo real já faz — não é a mesma coisa que
   ter duas AÇÕES PRINCIPAIS diferentes competindo na mesma tela; aqui é uma
   lista de itens iguais entre si, cada um com sua própria CTA. */
.loja2-card__preco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0;
  border-radius: 8px;
  border: 2px solid #ffe6a8;
  background: linear-gradient(180deg, #f9cd68, #d9901c);
  color: #2a1a02;
  font-family: 'Baloo 2', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: inset 0 1px rgb(255 255 255 / 0.5), 0 3px #6d3f06;
}
.loja2-card__preco:hover:not(:disabled) {
  filter: brightness(1.05);
}
.loja2-card__preco:disabled {
  border-color: rgb(201 154 76 / 0.25);
  background: linear-gradient(180deg, #3a3226, #26211a);
  color: #7a6f5c;
  box-shadow: none;
  cursor: not-allowed;
}
.loja2-card[data-estado='ok'] .loja2-card__preco:not(:disabled) {
  box-shadow: inset 0 1px rgb(255 255 255 / 0.5), 0 3px #6d3f06, 0 0 18px -6px rgb(240 180 60 / 0.9);
}

.loja2-card__falta {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  font-size: 10.5px;
  text-align: center;
  color: #ff8f7a;
}
.loja2-card[data-estado='travado'] .loja2-card__falta {
  color: #9c8a6c;
}

.loja2-card--fundador {
  border-color: #e2b45a;
  background: linear-gradient(180deg, #2c1c0d, #1c1108);
}
.loja2-card--fundador .loja2-card__preco--fundador {
  background: linear-gradient(180deg, #f8e2ab, #d9a44a 55%, #a9782c);
}
.loja2-card__contador {
  color: #ffd27a;
  font-weight: 700;
}
.loja2-card--beta {
  border-color: #8fb4e8;
  background: linear-gradient(180deg, #16223a, #0e1626);
}
.loja2-card--beta .loja2-card__preco--fundador:disabled {
  background: linear-gradient(180deg, #c9d8ee, #8ea6c8 55%, #5f7596);
  color: #1b2638;
  opacity: 0.85;
  cursor: default;
}

/* ── sub-telas: voltar/topo compartilhado (Skins/Poupança) ─────────── */

.loja2-sub-topo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.loja2-sub-topo .loja2-titulo {
  margin: 0;
}
.loja2-sub-legenda {
  flex: 1;
  min-width: 160px;
  font-size: 11.5px;
  color: #9c8a6c;
  margin: 0;
}
.loja2-voltar {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgb(201 154 76 / 0.25);
  background: #1c1108;
  color: #b9a583;
  font-size: 11.5px;
  cursor: pointer;
}
.loja2-voltar:hover {
  background: #241609;
  color: #ede1c8;
}
.loja2-pp-i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgb(201 154 76 / 0.35);
  background: #1c1108;
  color: #d9a44a;
  font-weight: 900;
  font-style: italic;
  font-size: 12px;
  cursor: pointer;
}

/* ── Skins ──────────────────────────────────────────────────────────── */

.loja2-sk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.loja2-sk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: linear-gradient(180deg, #201409, #150d05);
}
.loja2-sk-card[data-vestida='1'] {
  border-color: #e2b45a;
  box-shadow: inset 0 0 0 1px rgb(226 180 90 / 0.3);
}
.loja2-sk-arte {
  position: relative;
  width: 100%;
  height: 130px;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(70% 70% at 50% 30%, rgb(201 154 76 / 0.12), transparent 70%);
  display: grid;
  place-items: center;
}
.loja2-sk-arte img {
  /*
   * CORRIGIDO (Zerg, teste manual 13/09 — "só mostra a cabeça"): medido ao
   * vivo contra a tela real de Skins (`skin__arte img`, produção): ela usa
   * `max-height` em PIXEL ABSOLUTO (132px), não porcentagem. Aqui era
   * `max-height:100%` — dentro de um `display:grid; place-items:center`
   * (mesma estrutura da tela real) a porcentagem de altura no filho NÃO
   * resolve (o track do grid não vira referência definida), então a
   * imagem caía pro tamanho NATURAL (151×249 medido) e o container com
   * `overflow:hidden` cortava tudo abaixo dos 130px — sobrava só a cabeça.
   * Pixel absoluto (mesmo padrão da tela real) resolve sempre.
   */
  max-width: 88%;
  max-height: 116px;
  object-fit: contain;
}
.loja2-sk-selo {
  position: absolute;
  bottom: 4px;
  right: 4px;
  padding: 1px 8px;
  border-radius: 5px;
  background: linear-gradient(180deg, #d9a44a, #a9702a);
  color: #1c1109;
  font-size: 9.5px;
  font-weight: 800;
}
.loja2-sk-nome {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12px;
  color: #ede1c8;
  margin: 0;
  text-align: center;
}
.loja2-sk-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
  border-radius: 7px;
  border: 1px solid rgb(201 154 76 / 0.3);
  background: #1c1108;
  color: #ede1c8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.loja2-sk-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
/*
 * CORRIGIDO (Zerg, 13/09 — "ícone da gema gigantesco"): `gem.png` é 96×96px
 * nativo (medido) — sem restrição de tamanho ele renderiza no tamanho real,
 * bem maior que o padrão de ~20px usado no resto da Loja (preço do cartão,
 * saldo do topo). Faltava essa regra (e as duas de Poupança logo abaixo,
 * mesmo problema, mesma causa, achadas revisando o arquivo inteiro depois
 * do relato — não só o botão que apareceu na foto).
 */
.loja2-sk-btn img {
  width: 18px;
  height: 18px;
  flex: none;
}
.loja2-sk-btn--comprar {
  border: 2px solid #ffe6a8;
  background: linear-gradient(180deg, #f9cd68, #d9901c);
  color: #2a1a02;
}
.loja2-sk-btn--comprar:disabled {
  border-color: rgb(201 154 76 / 0.25);
  background: linear-gradient(180deg, #3a3226, #26211a);
  color: #7a6f5c;
}

/* ── Poupança ───────────────────────────────────────────────────────── */

.loja2-pp-tranca {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
}
.loja2-pp-tranca img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  opacity: 0.85;
}
.loja2-pp-tranca p {
  color: #b9a583;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.loja2-pp-tranca__dica {
  color: #9c8a6c !important;
  font-size: 11.5px !important;
}

.loja2-pp-grade {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
  margin-bottom: 16px;
}
.loja2-pp-cofre,
.loja2-pp-mes {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: linear-gradient(180deg, #1c1108, #140c05);
}
.loja2-pp-saldo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 22px;
  color: #f2dfb2;
  margin: 4px 0 0;
}
.loja2-pp-saldo img {
  width: 26px;
  height: 26px;
  flex: none;
}
.loja2-pp-teto {
  font-size: 10.5px;
  color: #ff8f7a;
  margin: 6px 0 0;
}
.loja2-pp-vazio {
  color: #9c8a6c;
  font-size: 12px;
  margin: 6px 0 0;
}
.loja2-pp-mes em {
  color: #e2b45a;
  font-style: normal;
}
.loja2-pp-barra {
  height: 8px;
  border-radius: 5px;
  background: rgb(0 0 0 / 0.4);
  margin: 8px 0;
  overflow: hidden;
}
.loja2-pp-barra i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a9702a, #e2b45a);
}
.loja2-pp-rende {
  font-size: 11.5px;
  color: #b9a583;
  margin: 0;
}
.loja2-pp-rende b {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #f2dfb2;
}
.loja2-pp-rende b img {
  width: 13px;
  height: 13px;
  flex: none;
}

.loja2-pp-acao {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.loja2-pp-campo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #9c8a6c;
}
.loja2-pp-campo input {
  width: 140px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgb(201 154 76 / 0.25);
  background: #100a05;
  color: #ede1c8;
  font-size: 13px;
}
.loja2-pp-botoes {
  display: flex;
  gap: 8px;
}
.loja2-pp-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgb(201 154 76 / 0.3);
  background: #1c1108;
  color: #ede1c8;
  font-weight: 700;
  cursor: pointer;
}
.loja2-pp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.loja2-pp-btn--guardar {
  border: 2px solid #ffe6a8;
  background: linear-gradient(180deg, #f9cd68, #d9901c);
  color: #2a1a02;
}
.loja2-pp-btn--guardar:disabled {
  border-color: rgb(201 154 76 / 0.25);
  background: linear-gradient(180deg, #3a3226, #26211a);
  color: #7a6f5c;
}
.loja2-pp-atalhos {
  display: flex;
  gap: 6px;
}
.loja2-pp-chip {
  padding: 6px 10px;
  border-radius: 7px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: rgb(201 154 76 / 0.08);
  color: #b9a583;
  font-size: 11px;
  cursor: pointer;
}

.loja2-pp-regra {
  font-size: 11px;
  line-height: 1.5;
  color: #b9a583;
  margin: 0 0 8px;
}
.loja2-pp-regra--calma {
  color: #9c8a6c;
}

.loja2-pp-det {
  position: absolute;
  right: 22px;
  top: 90px;
  width: 340px;
  max-width: calc(100% - 44px);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e2b45a;
  background: linear-gradient(180deg, #241609, #170e07);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.55);
  z-index: 10;
}
.loja2-pp-det__topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #f2dfb2;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 12.5px;
}
.loja2-pp-det__x {
  border: none;
  background: none;
  color: #b9a583;
  font-size: 16px;
  cursor: pointer;
}
.loja2-pp-det__lista {
  margin: 0;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.5;
  color: #b9a583;
}
.loja2-pp-det__lista li {
  margin-bottom: 6px;
}
.loja2-pp-det__lista b {
  color: #ede1c8;
}

/* ── toast (avisos de compra/erro) ──────────────────────────────────── */

#loja2-aviso {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 950;
  padding: 10px 20px;
  border-radius: 10px;
  background: #1c1108;
  border: 1px solid rgb(201 154 76 / 0.35);
  color: #ede1c8;
  font-size: 13px;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.5);
}
#loja2-aviso[data-tipo='ok'] {
  border-color: #8fdb7f;
  color: #cdeec5;
}
#loja2-aviso[data-tipo='erro'] {
  border-color: #ff8f7a;
  color: #ffd6ce;
}

/* ── responsivo ─────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .loja2-caixa {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
  .loja2-rail {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid #120b05;
  }
  .loja2-rail__aviso {
    display: none;
  }
  .loja2-pp-grade {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════════════
 * CELULAR EM PÉ (layout vertical `hud-retrato-premium`, Zerg 24/09): tela cheia, categorias em abas roláveis no
 * topo (48px), moeda + saldo FIXOS no alto enquanto a lista rola, lote ×1/×10/×100 logo abaixo (também fixo),
 * cartões em 2 colunas com o preço grande. Escopado a `[data-hud16='pe'][data-retrato-premium]`.
 * ════════════════════════════════════════════════════════════════════ */
html[data-hud16='pe'][data-retrato-premium] .loja2-caixa {
  width: 100vw;
  height: 100dvh;
  border-radius: 0;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-fechar {
  top: calc(env(safe-area-inset-top, 0px) + 4px);
  right: calc(env(safe-area-inset-right, 0px) + 4px);
  width: 48px;
  height: 48px;
  font-size: 18px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-rail {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-right: 56px; /* a faixa termina antes do ✕: as abas nunca passam por baixo dele */
  padding: 4px 8px 4px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  border-right: none;
  border-bottom: 1px solid #120b05;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}
html[data-hud16='pe'][data-retrato-premium] :is(.loja2-rail__titulo, .loja2-rail__aviso) {
  display: none;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-cats {
  flex-direction: row;
  gap: 8px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-cat {
  flex: none;
  width: auto;
  min-height: 48px;
  padding: 0 14px;
  font-size: 14px;
  white-space: nowrap;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-body {
  padding: 0 12px 12px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-titulo {
  display: none;
}
/* moeda + saldo fixos no alto */
html[data-hud16='pe'][data-retrato-premium] .loja2-moedas {
  position: sticky;
  top: 0;
  z-index: 3;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 -12px;
  padding: 8px 12px;
  background: #170e07;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-abas-moeda {
  flex: 1 1 100%;
  order: 2;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-moeda {
  min-height: 48px;
  padding: 0 12px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-moeda small {
  display: none;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-moeda img {
  width: 28px;
  height: 28px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-saldo {
  order: 1;
  flex: 1 1 100%;
  justify-content: center;
  font-size: 18px;
  padding: 6px 12px;
}
/* lote e ordenar logo abaixo, também fixos */
html[data-hud16='pe'][data-retrato-premium] .loja2-controles {
  position: sticky;
  top: 116px;
  z-index: 2;
  gap: 8px;
  margin: 0 -12px 12px;
  padding: 0 12px 8px;
  background: #170e07;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-lote {
  flex: 1 1 100%;
  gap: 8px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-unit {
  flex: 1;
  min-height: 48px;
  font-size: 16px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-ordenar {
  flex: 1 1 auto;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-ordenar select {
  flex: 1;
  min-height: 44px;
  font-size: 16px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-atualiza {
  min-height: 48px;
  margin-left: 0;
  font-size: 13px;
}
/* 2 colunas legíveis, preço grande */
html[data-hud16='pe'][data-retrato-premium] :is(.loja2-grid, .loja2-sk-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-card {
  padding: 8px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-card__nome {
  font-size: 13px;
  white-space: normal;
  overflow: visible;
  line-height: 1.2;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-card__desc {
  -webkit-line-clamp: 3;
  font-size: 12px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-card__vermais {
  min-height: 32px;
  font-size: 12px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-card__preco {
  min-height: 48px;
  font-size: 16px;
}
html[data-hud16='pe'][data-retrato-premium] .loja2-card__preco img {
  width: 20px;
  height: 20px;
}

/* 25/09 (Gabriel): o saldo de gemas abre a tela de comprar gemas; e o preço em gema sem saldo leva pra lá também. */
.loja2-saldo[data-acao='recarregar-gemas'] { cursor: pointer; }
.loja2-saldo[data-acao='recarregar-gemas']:hover { filter: brightness(1.15); }
.loja2-card[data-estado='caro'] .loja2-card__preco:not(:disabled) { cursor: pointer; }

/* 25/09 (Rafael): o pacote que a Invocação pediu pisca dourado ao abrir a Loja. */
.loja2-card--foco { outline: 2px solid #f0c44a; outline-offset: 2px; animation: loja2-foco 0.8s ease-in-out 3; }
@keyframes loja2-foco { 50% { box-shadow: 0 0 22px rgb(240 196 74 / 0.75); } }

/* "i" do VIP (cartão vip_1): painel fixo no meio da loja, não some com a rolagem do grid. */
.loja2-card__nome .loja2-pp-i {
  width: 18px;
  height: 18px;
  font-size: 11px;
  vertical-align: middle;
}
.loja2-vip-det {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  z-index: 60;
}

/* 02/10 (Gabriel): campo para digitar a quantidade da compra (1 a 99.999) + confirmação do lote grande. */
.loja2-qtd {
  box-sizing: border-box;
  width: 58px;
  height: 27px;
  margin: 0;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgb(201 154 76 / 0.2);
  background: #1c1108;
  color: #f1dfb8;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 25px;
  text-align: center;
}
.loja2-qtd::placeholder { color: #b9a583; opacity: 0.8; font-size: 12px; }
.loja2-qtd:focus { outline: 2px solid #d9a44a; outline-offset: 1px; }
#loja2-conf { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; background: rgba(8, 5, 2, 0.75); }
.loja2-conf__caixa { background: linear-gradient(165deg, #77572f, #4a3116); border: 3px solid #2c1d0d; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(220, 175, 90, 0.55), 0 14px 40px rgba(0, 0, 0, 0.6); color: #f6e6c4; font: 600 16px/1.5 system-ui; padding: 24px 30px; text-align: center; max-width: min(86vw, 420px); }
.loja2-conf__caixa b { color: #ffd76a; }
.loja2-conf__erro { color: #ff9a8a; }
.loja2-conf__acoes { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.loja2-conf__acoes button { background: linear-gradient(180deg, #8a6a3a, #6b4e28); border: 2px solid #33240f; border-radius: 10px; color: #ffe9c4; font: 700 14px/1 system-ui; padding: 10px 16px; cursor: pointer; }
.loja2-conf__acoes button[data-sim] { background: linear-gradient(180deg, #e2a83e, #a97318); color: #3a2506; }
.loja2-conf__acoes button:disabled { opacity: 0.5; cursor: not-allowed; }
