/* Feirão da Lua: a interface por cima da feira 3D (feira3d.js).
   Minimalista: superfícies escuras e quentes, um dourado só para o que importa,
   verde só para dinheiro subindo, vermelho só para erro. Sem gradiente nem brilho.
   Retrato (celular): painel sobe de baixo. Paisagem larga (PC): painel à direita. */

body.modo-feira .cena { display: none; }
.fd {
  --fd-ouro: #f2b950; --fd-ouro-suave: rgba(242, 185, 80, .14); --fd-ouro-tinta: #1c1407;
  --fd-bom: #5fd38d; --fd-ruim: #ff6b6b;
  --fd-tinta: #f4f1ea; --fd-tinta2: rgba(244, 241, 234, .62); --fd-tinta3: rgba(244, 241, 234, .38);
  --fd-sup: rgba(18, 16, 24, .82); --fd-painel: #121017; --fd-linha: rgba(255, 255, 255, .08);
  --fd-campo: rgba(255, 255, 255, .06); --fd-campo2: rgba(255, 255, 255, .1);
  --fd-fonte: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  position: fixed; inset: 0; overflow: hidden; color: var(--fd-tinta); background: #08070c;
  font: 14px/1.4 var(--fd-fonte); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  user-select: none; -webkit-user-select: none;
}
/* :where() zera a especificidade: as classes de cada botão mandam no tamanho e na cor. */
:where(.fd) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
.fd button:disabled { opacity: .4; cursor: default; }
.fd :focus-visible { outline: 2px solid var(--fd-ouro); outline-offset: 2px; }
.fd-ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fd-prod { width: 26px; height: 26px; flex: none; }
.fd-cena { position: absolute; inset: 0; }
.fd-canvas { width: 100%; height: 100%; display: block; }
body.fd-sem-3d .fd-cena { background: #0d0b12; }
.fd .sobe { color: var(--fd-bom); }
.fd .desce { color: var(--fd-tinta2); }
@keyframes fd-entra { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- marca e carregando ---------- */
.fd-logo, .fd-marca-txt, .fd-fim-logo { display: flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.fd-logo-lua { display: grid; color: var(--fd-ouro); }
.fd-logo-lua .fd-ico { width: 16px; height: 16px; fill: var(--fd-ouro); stroke: none; }
.fd-logo b, .fd-marca-txt b, .fd-fim-logo b { font-weight: 650; }
.fd-logo small, .fd-marca-txt small, .fd-fim-logo small { font-size: inherit; color: var(--fd-tinta2); }
.fd-carregando { position: absolute; inset: 0; z-index: 30; display: grid; place-content: center; gap: 16px; justify-items: center; background: #08070c; }
.fd-carregando small { color: var(--fd-tinta3); font-size: 13px; }
.fd-logo { font-size: 20px; }
.fd-logo .fd-logo-lua .fd-ico { width: 22px; height: 22px; }
.fd-carga { width: min(200px, 60vw); height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fd-carga i { display: block; height: 100%; width: 0; background: var(--fd-ouro); transition: width .25s; }

/* ---------- topo: uma pílula e dois botões redondos ---------- */
.fd-topo { position: absolute; z-index: 10; left: 0; right: 0; top: 0;
  padding: calc(var(--in-top) + 14px) calc(var(--in-right) + 16px) 0 calc(var(--in-left) + 16px);
  display: flex; align-items: center; gap: 8px; pointer-events: none; }
.fd-topo > * { pointer-events: auto; }
.fd-hud, .fd-roda, .fd-linha-aviso, .fd-doca, .fd-gestos-bt, .fd-recentrar {
  background: var(--fd-sup); border: 1px solid var(--fd-linha);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.fd-hud { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 9px; border-radius: 18px; flex: none; }
.fd-hud:empty { display: none; }
.fd-dinheiro { position: relative; display: flex; align-items: center; gap: 8px; padding-right: 2px; }
.fd-moeda { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--fd-ouro); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.fd-dinheiro b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.fd-dinheiro.vazio { padding-right: 10px; color: var(--fd-tinta2); }
.fd-dinheiro.vazio .fd-ico { width: 16px; height: 16px; }
.fd-dinheiro.vazio b { font-size: 13px; color: var(--fd-tinta); }
.fd-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .12); flex: none; }
.fd-pos { height: 28px; padding: 0 9px 0 5px; border-radius: 14px; font-size: 13px; color: var(--fd-tinta2); }
.fd-marca { flex: 1; min-width: 0; display: none; justify-content: center; font-size: 13px; color: var(--fd-tinta2); }
.fd-roda { width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center; flex: none; position: relative; color: var(--fd-tinta); }
.fd-roda .fd-ico { width: 18px; height: 18px; stroke-width: 1.7; }
.fd-sino { margin-left: auto; }
.fd-sino-ponto { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--fd-ouro); box-shadow: 0 0 0 2px var(--fd-painel); }
.fd-sino-ponto[hidden] { display: none; }
@media (min-width: 700px) { .fd-marca { display: flex; } .fd-sino { margin-left: 0; } }

/* O caixa ao vivo: o número sobe contando, fica verde um instante e solta um "+ʀ". */
.fd-dinheiro.sobe b { animation: fd-din-sobe 1s ease-out; }
.fd-dinheiro.sobe .fd-moeda { animation: fd-din-moeda .6s ease-out; }
.fd-dinheiro.desce b { animation: fd-din-desce .5s ease-out; }
.fd-din-pop { position: absolute; left: 22px; top: calc(100% + 10px); padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  color: var(--fd-bom); background: var(--fd-sup); white-space: nowrap; pointer-events: none; animation: fd-din-pop 1.3s ease-out forwards; }
@keyframes fd-din-sobe { 15%, 55% { color: var(--fd-bom); } }
@keyframes fd-din-desce { 30% { opacity: .5; } }
@keyframes fd-din-moeda { 40% { transform: scale(1.15); } }
@keyframes fd-din-pop { from { opacity: 0; transform: translateY(-3px); } 15%, 70% { opacity: 1; } to { opacity: 0; transform: translateY(5px); } }

/* ---------- uma linha só, com o mais importante de agora ---------- */
.fd-faixa { position: absolute; z-index: 9; top: calc(var(--in-top) + 60px); left: calc(var(--in-left) + 16px); right: calc(var(--in-right) + 16px);
  display: flex; pointer-events: none; }
.fd-faixa:empty { display: none; }
.fd-linha-aviso { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 30px; max-width: 100%; padding: 0 12px; border-radius: 15px;
  font-size: 13px; white-space: nowrap; overflow: hidden; }
.fd-linha-aviso b { flex: 0 1 auto; max-width: 75%; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fd-linha-aviso span, .fd-linha-aviso em { flex: 0 1 auto; min-width: 0; color: var(--fd-tinta2); font-style: normal; overflow: hidden; text-overflow: ellipsis; }
.fd-linha-aviso b { flex-shrink: 0; }
.fd-linha-aviso em { flex: none; }
.fd-pingo { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--fd-ouro); box-shadow: 0 0 0 4px var(--fd-ouro-suave); }
.fd-linha-aviso.forte .fd-pingo { animation: fd-pingo 1.6s ease-in-out infinite; }
@keyframes fd-pingo { 50% { box-shadow: 0 0 0 6px rgba(242, 185, 80, 0); } }

/* ---------- avisos rápidos (toasts) ---------- */
.fd-avisos { position: absolute; z-index: 20; top: calc(var(--in-top) + 100px); left: 50%; transform: translateX(-50%);
  display: grid; gap: 6px; width: min(calc(100vw - 32px), 360px); pointer-events: none; }
.fd-aviso { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; font-size: 13px; background: rgba(18, 16, 24, .95);
  border: 1px solid var(--fd-linha); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); animation: fd-entra .3s cubic-bezier(.2, .8, .2, 1); transition: .4s; }
.fd-aviso .fd-ico { width: 16px; height: 16px; color: var(--fd-tinta2); }
.fd-aviso.bom .fd-ico { color: var(--fd-bom); }
.fd-aviso.ruim .fd-ico, .fd-aviso.esgotou .fd-ico { color: var(--fd-ruim); }
.fd-aviso.sai { opacity: 0; transform: translateY(-6px); }

/* ---------- ficha de outra barraca ---------- */
.fd-ficha { position: absolute; z-index: 12; left: 50%; transform: translateX(-50%); bottom: calc(var(--in-bottom) + 140px);
  width: min(calc(100vw - 32px), 360px); padding: 16px; border-radius: 20px; background: var(--fd-painel); border: 1px solid var(--fd-linha);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); display: grid; gap: 12px; animation: fd-entra .25s; }
.fd-ficha-x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 14px; display: grid; place-items: center;
  background: var(--fd-campo) !important; color: var(--fd-tinta2) !important; }
.fd-ficha-x .fd-ico { width: 13px; height: 13px; stroke-width: 2; }
.fd-ficha-topo { display: flex; gap: 12px; align-items: center; padding-right: 32px; }
.fd-ficha-topo > div:last-child { display: grid; gap: 2px; min-width: 0; }
.fd-ficha-topo b { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.fd-ficha-topo small, .fd-ficha > small { color: var(--fd-tinta3); font-size: 12px; }
.fd-ficha-prods { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-ficha-prods span { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 6px; border-radius: 15px; background: var(--fd-campo); font-size: 12.5px; }
.fd-ficha-prods span.vazio { opacity: .45; text-decoration: line-through; }
.fd-ficha-prods .fd-prod { width: 20px; height: 20px; }
.fd .ava { width: 36px; height: 36px; border-radius: 50%; flex: none; position: relative; display: grid; place-items: center;
  background: #26222e; color: var(--fd-tinta2); font-weight: 600; font-size: 13px; overflow: hidden; }
.fd .ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- doca: só ícones, a aba aberta com o nome ---------- */
.fd-doca { position: absolute; z-index: 14; left: 50%; transform: translateX(-50%); bottom: calc(var(--in-bottom) + 16px);
  display: flex; gap: 2px; align-items: center; height: 56px; padding: 6px; border-radius: 28px; max-width: calc(100vw - 16px);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.fd-doca:empty { display: none; }
body.fd-sem-barraca.fd-painel-aberto .fd-doca { display: none; }
.fd-doca-bt { position: relative; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  gap: 8px; flex: none; color: var(--fd-tinta2); font-size: 13px; font-weight: 600; transition: background-color .2s, color .2s; }
.fd-doca-bt .fd-ico { width: 20px; height: 20px; stroke-width: 1.7; }
.fd-doca-bt span { display: none; white-space: nowrap; }
.fd-doca-bt.on { background: var(--fd-tinta); color: var(--fd-painel); }
.fd-doca-bt.on span { display: inline; }
.fd-ponto { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--fd-ouro); box-shadow: 0 0 0 2px var(--fd-painel); }
.fd-doca-bt.on .fd-ponto { display: none; }
@media (max-width: 400px) {
  .fd-doca-bt { min-width: 40px; padding: 0 10px; }
  .fd-doca-bt.on { padding: 0 12px 0 10px; }
}
.fd-montar-cta { height: 44px; padding: 0 18px; border-radius: 22px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--fd-ouro) !important; color: var(--fd-ouro-tinta) !important; font-size: 14px; font-weight: 700; }
.fd-montar-cta .fd-ico { width: 18px; height: 18px; stroke-width: 2; }
.fd-montar-cta small { font-size: 13px; font-weight: 600; opacity: .7; }

/* ---------- um botão de ação, só quando ajuda ---------- */
.fd-acao { position: absolute; z-index: 14; left: 50%; transform: translateX(-50%); bottom: calc(var(--in-bottom) + 84px);
  max-width: calc(100vw - 2 * (16px + 40px + 10px)); display: flex; justify-content: center; }
.fd-acao[hidden], body.fd-painel-aberto .fd-acao { display: none; }
.fd-acao-bt { height: 44px; max-width: 100%; padding: 0 18px; border-radius: 22px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden;
  background: var(--fd-ouro) !important; color: var(--fd-ouro-tinta) !important; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(242, 185, 80, .22); animation: fd-entra .25s; }
.fd-acao-bt .fd-ico { width: 17px; height: 17px; stroke-width: 2; }
.fd-acao-bt span { font-weight: 600; opacity: .7; }

/* ---------- gestos e voltar a câmera: redondos e discretos ---------- */
.fd-gestos-bt, .fd-recentrar { position: absolute; z-index: 15; bottom: calc(var(--in-bottom) + 86px); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--fd-tinta); }
.fd-gestos-bt { right: calc(var(--in-right) + 16px); }
.fd-recentrar { left: calc(var(--in-left) + 16px); }
.fd-gestos-bt .fd-ico, .fd-recentrar .fd-ico { width: 18px; height: 18px; stroke-width: 1.7; }
.fd-gestos-bt[hidden], .fd-recentrar[hidden], body.fd-painel-aberto .fd-gestos-bt, body.fd-painel-aberto .fd-recentrar { display: none; }
.fd-gestos { position: absolute; z-index: 16; right: calc(var(--in-right) + 16px); bottom: calc(var(--in-bottom) + 136px);
  width: min(300px, calc(100vw - 32px)); display: grid; gap: 12px; padding: 14px; border-radius: 20px; background: var(--fd-painel);
  border: 1px solid var(--fd-linha); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: fd-entra .2s; }
.fd-gestos[hidden] { display: none; }
.fd-gestos-lista, .fd-frases { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-gestos-lista button { height: 34px; padding: 0 14px; border-radius: 17px; font-weight: 600; font-size: 13px; background: var(--fd-campo2); }
.fd-frases button { min-height: 32px; padding: 6px 12px; border-radius: 16px; font-size: 12.5px; color: var(--fd-tinta2); background: var(--fd-campo); text-align: left; }

/* ---------- painel: página inteira no celular, coluna lateral no PC ---------- */
.fd-painel { position: absolute; z-index: 13; inset: 0; display: flex; flex-direction: column; background: var(--fd-painel);
  padding: var(--in-top) var(--in-right) calc(var(--in-bottom) + 80px) var(--in-left); animation: fd-sobe .28s cubic-bezier(.2, .8, .2, 1); }
.fd-painel[hidden] { display: none; }
@keyframes fd-sobe { from { transform: translateY(24px); opacity: 0; } }
.fd-alca { display: none; }
.fd-painel-topo { flex: none; display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 8px; border-bottom: 1px solid transparent; }
.fd-painel-topo > div { flex: 1; min-width: 0; display: grid; gap: 3px; }
#fd-painel-titulo { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fd-painel-sub { font-size: 13px; color: var(--fd-tinta2); }
#fd-painel-sub b { font-weight: 600; color: var(--fd-tinta); }
#fd-painel-sub[hidden] { display: none; }
#fd-fechar { width: 32px; height: 32px; border-radius: 16px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--fd-tinta2); }
#fd-fechar .fd-ico { width: 14px; height: 14px; stroke-width: 2; }
/* max-content: linha que rola de lado não pode ser espremida pela altura do painel. */
.fd-painel-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 24px; display: grid; grid-auto-rows: max-content; align-content: start;
  overscroll-behavior: contain; user-select: text; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
body.fd-sem-barraca .fd-painel { padding-bottom: var(--in-bottom); }
@media (min-width: 900px) and (orientation: landscape) {
  .fd-painel { left: auto; width: 460px; border-left: 1px solid var(--fd-linha); padding-bottom: var(--in-bottom); animation-name: fd-lado; }
  body.fd-sem-barraca .fd-painel { padding-bottom: var(--in-bottom); }
  @keyframes fd-lado { from { transform: translateX(24px); opacity: 0; } }
  /* A doca fica no meio do que sobra da feira; o sino e as configurações, à esquerda do painel. */
  body.fd-painel-aberto .fd-doca { left: calc((100vw - 460px) / 2); }
  body.fd-painel-aberto .fd-topo { padding-right: calc(var(--in-right) + 476px); }
  body.fd-painel-aberto .fd-faixa { right: calc(var(--in-right) + 476px); }
  .fd-ficha { left: 24px; transform: none; bottom: calc(var(--in-bottom) + 96px); }
}

/* Prévia 3D do estilo da barraca (loja → Barraca): a barraca girando no ar. */
.fd-previa { position: relative; overflow: hidden; height: 260px; margin: 10px 0 2px; border-radius: 20px; background: #0d0b12;
  border: 1px solid var(--fd-linha); }
.fd-previa > canvas { display: block; width: 100% !important; height: 100% !important; }
@media (min-width: 900px) and (orientation: landscape) { .fd-previa { height: 280px; } }
.fd-item.provando { box-shadow: inset 2px 0 0 var(--fd-ouro); padding-left: 10px; margin-left: -10px; width: calc(100% + 10px); }

/* ---------- a linguagem do painel: rótulos, linhas e números ---------- */
.fd-rotulo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 2px; font-size: 13px; color: var(--fd-tinta3); }
.fd-painel-corpo > .fd-rotulo:first-child { margin-top: 8px; }
.fd-rotulo > span { color: var(--fd-tinta2); font-weight: 600; }
.fd-rotulo small { font-size: 12px; text-align: right; }
.fd-rotulo small.alerta { color: var(--fd-ouro); }
.fd-link { color: var(--fd-ouro) !important; font-size: 13px; font-weight: 600; }
.fd-nota { margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: var(--fd-tinta3); }
.fd-nota b { color: var(--fd-tinta2); font-weight: 600; }
.fd-vazio { margin: 12px 0; color: var(--fd-tinta3); font-size: 13px; }
.fd-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--fd-tinta3); font-size: 12px; font-weight: 600; }
.fd-ok .fd-ico { width: 18px; height: 18px; color: var(--fd-bom); }
.fd-qd { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--fd-campo); color: var(--fd-tinta2); }
.fd-qd .fd-ico { width: 20px; height: 20px; stroke-width: 1.7; }
.fd-qd .fd-prod { width: 26px; height: 26px; }
.fd-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 0;
  text-align: left; border-bottom: 1px solid var(--fd-linha); }
button.fd-row { transition: background-color .15s; }
button.fd-row:active { background: rgba(255, 255, 255, .03); }
.fd-tx { display: grid; gap: 3px; min-width: 0; }
.fd-tx > b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.fd-tx small, .fd-tx > em { font-size: 12px; font-style: normal; line-height: 1.45; color: var(--fd-tinta3); }
.fd-tx small b { color: var(--fd-tinta2); font-weight: 600; }
.fd-tx p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--fd-tinta2); }
.fd-tx > span { font-size: 13.5px; line-height: 1.4; color: var(--fd-tinta2); }
.fd-tx .fd-barra { margin: 5px 0 2px; }
.fd-chev { width: 16px; height: 16px; color: var(--fd-tinta3); }
.fd-fimcol { display: grid; justify-items: end; gap: 1px; text-align: right; white-space: nowrap; }
.fd-fimcol small { font-size: 11px; color: var(--fd-tinta3); }
.fd-fimcol em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--fd-tinta2); }

.fd-numeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 10px; }
.fd-numeros.dois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fd-numeros > div { display: grid; gap: 3px; align-content: start; min-width: 0; padding-right: 10px; }
.fd-numeros > div + div { padding-left: 14px; border-left: 1px solid var(--fd-linha); }
.fd-numeros small { font-size: 12px; color: var(--fd-tinta3); }
.fd-numeros b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-numeros em { font-style: normal; font-size: 12px; color: var(--fd-tinta3); }
.fd-numeros em.sobe { color: var(--fd-bom); }
.fd-numeros .fd-spark { width: 100%; max-width: 72px; height: 14px; margin-top: 2px; }
.fd-numeros .fd-barra { margin: 4px 0 1px; }

.fd-barra { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fd-barra > i { display: block; height: 100%; border-radius: 2px; background: var(--fd-tinta2); transition: width .4s; }
.fd-barra.baixa > i, .fd-barra.cheia > i { background: var(--fd-ouro); }
.fd-spark { width: 54px; height: 16px; }
.fd-spark polyline { fill: none; stroke: var(--fd-tinta3); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.fd-spark.verde polyline { stroke: var(--fd-bom); }
.fd-spark.vermelho polyline { stroke: var(--fd-ouro); }

/* botões */
.fd-bt { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px;
  background: var(--fd-campo2) !important; color: var(--fd-tinta) !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.fd-bt .fd-ico { width: 15px; height: 15px; stroke-width: 2; }
.fd-bt.forte { background: var(--fd-ouro) !important; color: var(--fd-ouro-tinta) !important; font-weight: 700; }
.fd-bt.grande { height: 48px; border-radius: 24px; padding: 0 20px; font-size: 15px; }
.fd-bt.grande span { font-weight: 600; opacity: .65; }
.fd-mini-bt { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 14px; font-size: 12px; font-weight: 600;
  color: var(--fd-tinta2) !important; background: var(--fd-campo) !important; }
.fd-mini-bt .fd-ico { width: 13px; height: 13px; }

/* ---------- montar ---------- */
.fd-regras { display: grid; margin-top: 4px; }
.fd-regras > div { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding: 11px 0; font-size: 13px; line-height: 1.45; color: var(--fd-tinta2);
  border-bottom: 1px solid var(--fd-linha); }
.fd-regras b { color: var(--fd-tinta); font-weight: 600; }
.fd-regras .fd-ico { width: 18px; height: 18px; color: var(--fd-ouro); margin-top: 1px; }
.fd-campo { display: grid; gap: 6px; margin-top: 18px; font-size: 13px; color: var(--fd-tinta3); }
.fd-campo input, .fd-input { width: 100%; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--fd-linha); background: var(--fd-campo);
  color: var(--fd-tinta); font: 600 16px var(--fd-fonte); outline: none; user-select: text; -webkit-user-select: text; }
.fd-campo input:focus, .fd-input:focus { border-color: var(--fd-ouro); }
.fd-cores { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0 4px; }
.fd-cor { width: 30px; height: 30px; border-radius: 50%; background: var(--c) !important; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); transition: box-shadow .15s; }
.fd-cor.on { box-shadow: 0 0 0 2px var(--fd-painel), 0 0 0 4px var(--fd-tinta); }
.fd-escolhas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.fd-escolha { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 1px; align-items: center; text-align: left;
  padding: 10px 12px; border-radius: 14px; background: var(--fd-campo) !important; border: 1px solid transparent !important; }
.fd-escolha .fd-prod { grid-row: span 3; width: 30px; height: 30px; }
.fd-escolha b { font-size: 14px; font-weight: 600; }
.fd-escolha small { color: var(--fd-tinta2); font-size: 12px; white-space: nowrap; }
.fd-seta { font-style: normal; color: var(--fd-tinta3); }
.fd-escolha em { font-style: normal; color: var(--fd-tinta3); font-size: 11px; }
.fd-escolha.on { background: rgba(242, 185, 80, .08) !important; border-color: var(--fd-ouro) !important; }
.fd-marcado { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fd-ouro); color: var(--fd-ouro-tinta); }
.fd-marcado .fd-ico { width: 11px; height: 11px; stroke-width: 3; }
.fd-pagar { display: flex; align-items: center; justify-content: space-between; gap: 10px 12px; flex-wrap: wrap; margin-top: 20px; }
.fd-pagar small { color: var(--fd-tinta3); font-size: 12px; }
.fd-pagar small b { color: var(--fd-tinta2); font-weight: 600; }
.fd-pagar .fd-bt.grande { flex: 1 1 100%; }
.fd-pagar .fd-bt { flex: 1; }

/* ---------- barraca: produtos ---------- */
.fd-banca { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--fd-linha); }
.fd-banca-info { display: grid; min-width: 0; }
.fd-banca-info b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.fd-banca-info .fd-barra { margin: 7px 0 6px; }
.fd-banca-info small { font-size: 12px; line-height: 1.45; color: var(--fd-tinta3); }
.fd-banca-info small.alerta { color: var(--fd-ouro); }
.fd-banca-info small b { font-size: inherit; color: var(--fd-tinta2); }
.fd-banca-info em { font-style: normal; }
.fd-banca-info s { color: var(--fd-tinta3); margin-left: 2px; }
.fd-combo { font-style: normal; color: var(--fd-tinta3); white-space: nowrap; }
.fd-combo.on { color: var(--fd-bom); }
.fd-combo .fd-ico { width: 11px; height: 11px; vertical-align: -1px; margin-right: 2px; stroke-width: 2.4; }
.fd-preco { display: flex; align-items: center; height: 42px; padding: 0 3px; border-radius: 21px; background: var(--fd-campo); }
.fd-preco > button { width: 30px; height: 30px; border-radius: 15px; display: grid; place-items: center; color: var(--fd-tinta2); }
.fd-preco > button:active { background: rgba(255, 255, 255, .08); }
.fd-preco > button .fd-ico { width: 14px; height: 14px; stroke-width: 2.2; }
.fd-preco-v { min-width: 52px; display: grid; justify-items: center; line-height: 1.15; }
.fd-preco-v b { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.fd-preco-v small { font-size: 10px; color: var(--fd-tinta3); }
.fd-preco.caro .fd-preco-v b, .fd-preco.caro .fd-preco-v small { color: var(--fd-ouro); }
.fd-comprar { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.fd-comprar > button { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--fd-campo); font-size: 13px; font-weight: 600; white-space: nowrap; }
.fd-comprar > button.forte { color: var(--fd-ouro); background: var(--fd-ouro-suave); }
.fd-comprar > button.forte span { font-weight: 600; opacity: .75; margin-left: 2px; }
.fd-tirar { width: 30px; padding: 0 !important; margin-left: auto; display: grid; place-items: center; background: none !important; color: var(--fd-tinta3); }
.fd-tirar .fd-ico { width: 14px; height: 14px; }
.fd-adicionar { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--fd-linha); }
.fd-adicionar > small { font-size: 13px; color: var(--fd-tinta2); }
.fd-mini-prods { display: flex; gap: 6px; flex-wrap: wrap; }
.fd-mini-prods button { display: grid; justify-items: center; gap: 4px; width: 64px; padding: 8px 0 7px; border-radius: 12px; background: var(--fd-campo); }
.fd-mini-prods small { max-width: 58px; font-size: 10.5px; color: var(--fd-tinta2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* barraca: linhas */
.fd-em-alta .fd-qd, .fd-missao.pronta .fd-qd, .fd-reforco.ativo .fd-qd, .fd-avisos-dm.on .fd-qd, .fd-noticia.ativa .fd-qd, .fd-evolucao .fd-qd,
.fd-premio .fd-qd, .fd-nobre .fd-qd, .fd-especial.outdoor .fd-qd, .fd-item.usando .fd-qd, .fd-aviso-item.forte .fd-qd {
  color: var(--fd-ouro); background: var(--fd-ouro-suave); }
.fd-bonus-loja .fd-tx b em { font-style: normal; margin-left: 2px; }
.fd-missao.pega { opacity: .5; }
.fd-missao .fd-tx > b { font-size: 14px; }
.fd-reforco .fd-tx small em { font-style: normal; color: var(--fd-ouro); font-weight: 600; }
.fd-reforco .fd-reforco-n { color: var(--fd-tinta3); font-size: 11px; }
.fd-reforco-ate { display: inline-flex; align-items: center; gap: 4px; color: var(--fd-tinta3); font-size: 12px; }
.fd-reforco-ate .fd-ico { width: 14px; height: 14px; }
.fd-reforco-ate b { font-weight: 600; color: var(--fd-tinta2); }
.fd-reforco-prods { display: grid; justify-items: end; gap: 4px; }
.fd-reforco-prods > div { display: flex; gap: 4px; }
.fd-reforco-prods .fd-bt { width: 34px; height: 34px; padding: 0; border-radius: 12px; }
.fd-reforco-prods .fd-prod { width: 20px; height: 20px; }
.fd-reforco-prods small { color: var(--fd-ouro); font-size: 11.5px; font-weight: 600; }
.fd-chave { position: relative; width: 40px; height: 24px; border-radius: 12px; flex: none; background: rgba(255, 255, 255, .14); transition: background-color .2s; }
.fd-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; }
.fd-avisos-dm.on .fd-chave { background: var(--fd-ouro); }
.fd-avisos-dm.on .fd-chave::after { left: 19px; }
.fd-renomear .fd-tx > b { font-size: 14px; font-weight: 500; }
.fd-painel-corpo > .fd-renomear:last-child { border-bottom: 0; }

/* ---------- avisos (o sino) ---------- */
.fd-np { display: flex; gap: 4px; margin-top: 3px; }
.fd-np .fd-prod { width: 20px; height: 20px; }
.fd-recente .fd-qd { width: 32px; height: 32px; border-radius: 10px; margin: 0 4px; }
.fd-recente .fd-qd .fd-ico { width: 16px; height: 16px; }
.fd-recente.bom .fd-qd { color: var(--fd-bom); }
.fd-recente.ruim .fd-qd, .fd-recente.esgotou .fd-qd { color: var(--fd-ruim); }

/* ---------- mercado ---------- */
.fd-lotacao { display: block; width: 44px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.fd-lotacao > i { display: block; height: 100%; background: var(--fd-ouro); }
.fd-noticia { align-items: start; }
.fd-noticia.acabou { opacity: .45; }
.fd-linha { grid-template-columns: 40px minmax(0, 1fr) 54px auto; }
.fd-linha.minha .fd-tx > b::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-radius: 50%; background: var(--fd-ouro); vertical-align: 2px; }
.fd-custo { display: grid; justify-items: end; min-width: 54px; }
.fd-custo b { font-size: 14px; font-weight: 600; }
.fd-custo small { font-size: 11px; color: var(--fd-tinta3); }
.fd-custo .sobe { color: var(--fd-ouro); }
.fd-custo .desce { color: var(--fd-bom); }

/* ---------- melhorias ---------- */
.fd-evolucao .fd-tx > em { font-style: normal; }
.fd-evolucao.feito .fd-qd { color: var(--fd-bom); background: rgba(95, 211, 141, .12); }
.fd-fila .fd-qd { color: var(--fd-ouro); }
.fd-pips { display: flex; gap: 3px; margin: 2px 0 1px; }
.fd-pips i { width: 14px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.fd-pips i.on { background: var(--fd-ouro); }
.fd-trava { display: grid; justify-items: center; gap: 2px; min-width: 64px; color: var(--fd-tinta3); font-size: 11px; }
.fd-trava .fd-ico { width: 16px; height: 16px; }

/* ---------- ranking ---------- */
.fd-chips { display: flex; gap: 2px; padding: 3px; margin: 6px 0 4px; border-radius: 12px; background: var(--fd-campo); overflow-x: auto; scrollbar-width: none; }
.fd-chips::-webkit-scrollbar { display: none; }
.fd-chips button { flex: 1 0 auto; height: 32px; padding: 0 9px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--fd-tinta2); white-space: nowrap; }
.fd-chips button.on { background: rgba(255, 255, 255, .12); color: var(--fd-tinta); }
.fd-chips + .fd-chips { margin-top: 8px; }
.fd-rank { grid-template-columns: 22px 32px minmax(0, 1fr) auto; padding: 10px 0; }
.fd-rank .ava, .fd-selo-casa { width: 32px; height: 32px; }
.fd-rank .fd-tx > b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-rank-pos { font-size: 14px; font-weight: 650; text-align: center; color: var(--fd-tinta3); }
.fd-rank-pos.p1, .fd-rank-pos.p2, .fd-rank-pos.p3 { color: var(--fd-ouro); }
.fd-rank.eu { width: calc(100% + 20px); margin: 0 -10px; padding: 10px; border-radius: 12px; border-bottom-color: transparent; background: rgba(242, 185, 80, .07); }
.fd-rank-v { font-size: 14px; font-weight: 600; white-space: nowrap; }
.fd-rank-v small { margin-left: 2px; font-size: 11px; font-weight: 500; color: var(--fd-tinta3); }
.fd-rank-prods { display: flex; gap: 3px; }
.fd-rank-prods .fd-prod { width: 15px; height: 15px; }
.fd-selo-casa { border-radius: 50%; display: grid; place-items: center; color: var(--fd-ouro); background: var(--fd-ouro-suave); }
.fd-selo-casa .fd-ico { width: 16px; height: 16px; }

/* ---------- leilão ---------- */
.fd-leilao { display: grid; gap: 12px; padding: 14px 0 4px; }
.fd-leilao-topo { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.fd-leilao-topo > div { display: grid; gap: 3px; }
.fd-leilao-topo small { font-size: 12px; color: var(--fd-tinta3); }
.fd-leilao-topo small em { font-style: normal; color: var(--fd-ouro); font-weight: 600; }
.fd-leilao-topo > b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.fd-leilao-fase { font-size: 13px; font-weight: 600; color: var(--fd-tinta2); }
.fd-leilao-fase.reta, .fd-leilao-fase.uma, .fd-leilao-fase.duas, .fd-leilao-fase.tres { color: var(--fd-ouro); }
.fd-lance-maior { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--fd-campo); }
.fd-lance-maior small { font-size: 12px; color: var(--fd-tinta3); }
.fd-lance-maior b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.fd-lance-maior b span { font-size: 14px; font-weight: 600; color: var(--fd-tinta3); letter-spacing: 0; }
.fd-lance-maior > span { font-size: 13px; color: var(--fd-tinta2); }
.fd-lance-maior.meu small { color: var(--fd-bom); }
.fd-dar-lance { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.fd-dar-lance .fd-campo { margin: 0; }
.fd-dar-lance .fd-bt { height: 46px; border-radius: 23px; padding: 0 18px; }
.fd-lances { display: grid; }
.fd-lance { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--fd-linha); }
.fd-lance b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-lance span { color: var(--fd-tinta2); }
.fd-lance small { color: var(--fd-tinta3); }
.fd-lance:last-child { border-bottom: 0; }
.fd-nobre.lateral .fd-qd { color: var(--fd-tinta2); background: var(--fd-campo); }
.fd-leilao-off .fd-qd { color: var(--fd-tinta3); }

/* ---------- loja ---------- */
.fd-mecenas.ouro b, .fd-mecenas.diamante b { color: var(--fd-ouro); }
.fd-slots { display: flex; gap: 6px; margin: 8px 0 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fd-slots::-webkit-scrollbar { display: none; }
.fd-slots button { flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; font-size: 13px; font-weight: 600;
  color: var(--fd-tinta2); background: var(--fd-campo); }
.fd-slots button .fd-ico { width: 16px; height: 16px; }
.fd-slots button.on { background: var(--fd-tinta); color: var(--fd-painel); }
.fd-itens { display: grid; }
.fd-item { cursor: pointer; }
.fd-item .fd-tx > b { font-size: 14px; }
.fd-item .fd-tx > em::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; vertical-align: 1px;
  background: var(--r, rgba(255, 255, 255, .3)); }
.fd-item.r-raro { --r: #6aa9ff; }
.fd-item.r-epico { --r: #b58cff; }
.fd-item.r-lendario { --r: var(--fd-ouro); }
.fd-item.r-mitico { --r: #ff8fd8; }
.fd-item-extras { grid-column: 2 / -1; display: flex; gap: 6px; flex-wrap: wrap; margin-top: -2px; }
.fd-nivel { margin-left: 6px; color: var(--fd-ouro); font-size: 11px; letter-spacing: 1px; }
.fd-item-bonus { color: var(--fd-bom) !important; font-weight: 600; white-space: nowrap; }
.fd-tag-usando { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--fd-tinta2); white-space: nowrap; }
.fd-tag-usando .fd-ico { width: 15px; height: 15px; }
.fd-tirar-item { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 30px; margin: 10px 0 2px; padding: 0 12px; border-radius: 15px;
  font-size: 12.5px; color: var(--fd-tinta2) !important; background: var(--fd-campo) !important; }
.fd-tirar-item .fd-ico { width: 13px; height: 13px; }
.fd-padroes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fd-padroes button { height: 32px; padding: 0 12px; border-radius: 16px; font-size: 12.5px; font-weight: 600; color: var(--fd-tinta2); background: var(--fd-campo); }
.fd-padroes button.on { background: var(--fd-tinta); color: var(--fd-painel); }
.fd-enfeite.tem { opacity: .6; }

/* ---------- confirmação ---------- */
.fd-confirma { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(8, 7, 12, .62); animation: fd-entra .2s; }
.fd-confirma[hidden] { display: none; }
.fd-confirma-cartao { width: min(360px, 100%); display: grid; gap: 12px; padding: 22px 20px 18px; border-radius: 24px; background: var(--fd-painel);
  border: 1px solid var(--fd-linha); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.fd-confirma-cartao > b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.fd-confirma-cartao p { margin: 0; color: var(--fd-tinta2); font-size: 14px; line-height: 1.5; }
.fd-confirma-cartao p b { color: var(--fd-tinta); font-weight: 600; }
.fd-confirma-cartao > div:last-child { display: flex; gap: 8px; margin-top: 6px; }
.fd-confirma-cartao > div:last-child .fd-bt { flex: 1; height: 44px; border-radius: 22px; font-size: 14px; }
.fd-para { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; max-height: 40vh; overflow-y: auto; }
.fd-para button { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 14px; font-weight: 600; text-align: left; background: var(--fd-campo); }
.fd-para button .fd-ico { color: var(--fd-tinta3); }
.fd-para button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- escolha do personagem (primeira vez): folha embaixo, a feira em cima ---------- */
.fd-primeiro { width: min(480px, 100%); }
.fd-generos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fd-escolha-genero { display: grid; gap: 6px; align-content: start; }
.fd-escolha-genero > b { font-size: 12px; font-weight: 600; color: var(--fd-tinta3); margin-bottom: 2px; }
.fd-escolha-genero button { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 14px; font-weight: 600;
  background: var(--fd-campo); border: 1px solid transparent; }
.fd-escolha-genero button .fd-ico { width: 16px; height: 16px; color: var(--fd-tinta3); }
.fd-escolha-genero button.on { border-color: var(--fd-ouro); background: rgba(242, 185, 80, .08); }
.fd-escolha-genero button.on .fd-ico { color: var(--fd-ouro); }
.fd-confirma:has(.fd-primeiro) { place-items: end center; padding: 0; background: none; pointer-events: none; }
.fd-confirma:has(.fd-primeiro) .fd-confirma-cartao { pointer-events: auto; border-radius: 28px 28px 0 0; border-bottom: 0;
  padding: 22px 20px calc(var(--in-bottom) + 18px); box-shadow: 0 -12px 40px rgba(0, 0, 0, .35); }
@media (min-width: 520px) { .fd-confirma:has(.fd-primeiro) { padding: 0 12px calc(var(--in-bottom) + 16px); }
  .fd-confirma:has(.fd-primeiro) .fd-confirma-cartao { border-radius: 24px; border-bottom: 1px solid var(--fd-linha); padding-bottom: 18px; } }

/* ---------- a feira fechou ---------- */
.fd-fim { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; padding: 20px; background: rgba(8, 7, 12, .74); }
.fd-fim[hidden] { display: none; }
.fd-fim-cartao { width: min(420px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 26px 22px 22px;
  border-radius: 28px; background: var(--fd-painel); border: 1px solid var(--fd-linha); }
.fd-fim-logo { font-size: 13px; color: var(--fd-tinta2); }
.fd-fim-cartao h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.fd-podio { display: flex; align-items: flex-end; gap: 8px; width: 100%; justify-content: center; margin-top: 6px; }
.fd-degrau { flex: 1; max-width: 120px; min-width: 0; display: grid; justify-items: center; gap: 2px; }
.fd-degrau > b { font-size: 15px; font-weight: 650; color: var(--fd-tinta2); }
.fd-degrau.d1 > b { color: var(--fd-ouro); }
.fd-degrau span { max-width: 100%; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-degrau small { color: var(--fd-tinta3); font-size: 12px; }
.fd-degrau em { font-style: normal; color: var(--fd-ouro); font-size: 12px; font-weight: 600; }
.fd-degrau i { width: 100%; margin-top: 6px; border-radius: 10px 10px 0 0; background: var(--fd-campo); }
.fd-degrau.d1 i { height: 88px; background: var(--fd-ouro-suave); box-shadow: inset 0 2px 0 var(--fd-ouro); }
.fd-degrau.d2 i { height: 60px; }
.fd-degrau.d3 i { height: 40px; }
.fd-revelacao { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--fd-tinta2); font-size: 13px; }
.fd-revelacao b { color: var(--fd-tinta); font-weight: 600; }
.fd-revelacao .fd-ico { width: 16px; height: 16px; color: var(--fd-ouro); }
.fd-meu-fim { margin: 0; color: var(--fd-tinta2); }
.fd-meu-fim b { color: var(--fd-tinta); }
.fd-fim-cartao > small { color: var(--fd-tinta3); font-size: 12px; }

/* ---------- tutorial ---------- */
.fd-guia { position: absolute; z-index: 18; left: 16px; right: 16px; top: calc(var(--in-top) + 100px); max-width: 400px; margin: 0 auto;
  display: grid; gap: 8px; padding: 16px 18px; border-radius: 20px; background: var(--fd-painel); border: 1px solid var(--fd-linha);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: fd-entra .3s; }
.fd-guia[hidden] { display: none; }
.fd-guia-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fd-guia-topo > b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.fd-guia-pontos { display: flex; gap: 4px; flex: none; }
.fd-guia-pontos i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .16); }
.fd-guia-pontos i.feito { background: var(--fd-tinta3); }
.fd-guia-pontos i.agora { width: 14px; background: var(--fd-ouro); }
.fd-guia p { margin: 0; color: var(--fd-tinta2); font-size: 14px; line-height: 1.5; }
.fd-guia p b { color: var(--fd-tinta); font-weight: 600; }
.fd-guia p i { color: var(--fd-tinta3); font-style: normal; }
.fd-guia > div:last-child { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.fd-guia .fd-bt { height: 36px; }
.fd-alvo { position: relative; z-index: 2; outline: 2px solid var(--fd-ouro); outline-offset: 3px; border-radius: 12px; animation: fd-alvo 1.4s ease-in-out infinite; }
#fd-hud.fd-alvo, #fd-sino.fd-alvo, #fd-faixa.fd-alvo { border-radius: 18px; }
#fd-sino.fd-alvo { position: relative; }
@keyframes fd-alvo { 50% { outline-offset: 6px; outline-color: rgba(242, 185, 80, .45); } }
@media (min-width: 900px) and (orientation: landscape) { .fd-guia { left: auto; right: 476px; margin: 0; } }

/* ---------- enquanto você esteve fora ---------- */
.fd-fora { position: absolute; z-index: 19; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); max-width: 360px; margin: 0 auto;
  padding: 22px 20px 18px; border-radius: 24px; background: var(--fd-painel); border: 1px solid var(--fd-linha);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); display: grid; animation: fd-entra .3s; }
.fd-fora > b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.fd-fora > small { margin: 2px 0 8px; color: var(--fd-tinta3); font-size: 13px; }
.fd-fora > div { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 14px; color: var(--fd-tinta2); border-bottom: 1px solid var(--fd-linha); }
.fd-fora > div b { color: var(--fd-tinta); font-weight: 600; }
.fd-fora > div .fd-ico { width: 18px; height: 18px; color: var(--fd-tinta3); }
.fd-fora > div.bom .fd-ico, .fd-fora > div.bom b { color: var(--fd-bom); }
.fd-fora > div.ruim .fd-ico { color: var(--fd-ruim); }
.fd-fora > button { margin-top: 16px; height: 48px; border-radius: 24px; font-size: 15px; }

/* ---------- o leiloeiro: "dou-lhe uma, duas, três" ---------- */
.fd-leiloeiro { position: absolute; z-index: 30; left: 16px; right: 16px; top: 30%; display: grid; place-items: center; pointer-events: none; }
.fd-leiloeiro[hidden] { display: none; }
.fd-dole { pointer-events: auto; position: relative; overflow: hidden; width: min(340px, 100%); display: grid; justify-items: center; gap: 6px;
  padding: 24px 22px 20px; border-radius: 24px; text-align: center; background: rgba(18, 16, 23, .95); border: 1px solid var(--fd-linha);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); animation: fd-bate .28s cubic-bezier(.2, .8, .2, 1); }
.fd-dole-tempo { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: rgba(255, 255, 255, .06); }
.fd-dole-tempo > i { display: block; height: 100%; background: var(--fd-ouro); animation: fd-drena 5s linear forwards; }
.fd-dole-qual { display: inline-flex; align-items: center; gap: 6px; color: var(--fd-ouro); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.fd-dole-qual .fd-ico { width: 16px; height: 16px; transform-origin: 80% 80%; animation: fd-martela .7s ease-in-out infinite; }
.fd-dole > b { font-size: 40px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.fd-dole.tres > b, .fd-dole.batido > b { color: var(--fd-ouro); }
.fd-dole > span { color: var(--fd-tinta2); font-size: 14px; }
.fd-dole > span em { font-style: normal; color: var(--fd-tinta); font-weight: 600; }
.fd-dole .fd-bt { margin-top: 8px; height: 44px; border-radius: 22px; padding: 0 20px; font-size: 14px; }
.fd-dole-meu { color: var(--fd-bom); font-size: 13px; font-weight: 600; }
.fd-dole.batido .fd-dole-qual .fd-ico { animation: none; transform: rotate(-35deg); }
@keyframes fd-bate { from { transform: scale(.94); opacity: 0; } }
@keyframes fd-drena { from { width: 100%; } to { width: 0; } }
@keyframes fd-martela { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-30deg); } 60% { transform: rotate(6deg); } }

/* ---------- Modo Leve e movimento reduzido ---------- */
/* Sem desfoque atrás de nada (cada um redesenha o 3D por baixo) e quase sem animação. */
body.leve.modo-feira [class^="fd-"], body.leve.modo-feira [class*=" fd-"] { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
body.leve .fd { --fd-sup: rgba(18, 16, 24, .96); }
body.leve .fd-dole, body.leve .fd-dole-qual .fd-ico, body.leve .fd-linha-aviso.forte .fd-pingo, body.leve .fd-dinheiro.sobe .fd-moeda,
body.leve .fd-acao-bt, body.leve .fd-alvo { animation: none; }
@media (prefers-reduced-motion: reduce) { .fd *, .fd { animation: none !important; } }
.fd-aviso.acabando .fd-ico { color: #f2b950; }
.fd-lance-bloq .fd-ico { color: #f2b950; }

/* Ostentação (Loja → Especiais): o palco ao vivo e o Rei do show. */
.fd-palco { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin: 10px 0 4px; }
.fd-palco > div { border-radius: 14px; padding: 12px 14px; background: var(--fd-campo); border: 1px solid var(--fd-linha); min-width: 0; }
.fd-palco-vivo { display: grid; gap: 2px; }
.fd-palco-vivo i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fd-ruim); vertical-align: 2px;
  box-shadow: 0 0 0 4px rgba(255, 107, 107, .18); animation: fd-vivo 1.6s ease-in-out infinite; margin-right: 9px; }
@keyframes fd-vivo { 50% { box-shadow: 0 0 0 7px rgba(255, 107, 107, 0); } }
.fd-palco-vivo b { font-size: 15px; }
.fd-palco-vivo small, .fd-palco-rei small { color: var(--fd-tinta3); font-size: 12px; }
.fd-palco-rei { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start;
  background: linear-gradient(135deg, rgba(242, 185, 80, .16), rgba(242, 185, 80, .04)) !important; border-color: rgba(242, 185, 80, .28) !important; }
.fd-palco-rei > .fd-ico { color: var(--fd-ouro); width: 20px; height: 20px; margin-top: 2px; }
.fd-palco-rei div { display: grid; gap: 1px; min-width: 0; }
.fd-palco-rei b { color: var(--fd-ouro); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-palco-rei span { color: var(--fd-tinta2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-especial .fd-tx em { display: block; font-style: normal; font-size: 12px; color: var(--fd-tinta3); margin-top: 3px; }
.fd-especial .fd-tx em.fd-show-1 { color: var(--fd-ouro); }
.fd-especial .fd-tx em.fd-show-ar { color: var(--fd-bom); }
@media (max-width: 380px) { .fd-palco { grid-template-columns: 1fr; } }

/* App do Feirão (PWA): a tela de instalar, a de entrar e a de "sem feira". */
.app-tela { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 50% 0%, rgba(242, 185, 80, .14), transparent 60%), #08070c;
  color: #f4f1ea; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif; }
.app-cartao { width: min(420px, 100%); display: grid; justify-items: center; text-align: center; gap: 10px; }
.app-cartao { animation: app-surge .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes app-surge { from { opacity: 0; transform: translateY(10px); } }
.app-logo { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 18px 50px rgba(242, 185, 80, .22), 0 0 0 1px rgba(255, 255, 255, .08); margin-bottom: 8px; }
.app-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #f2b950; font-weight: 600; }
.app-tela h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; }
.app-sub { margin: 0; color: rgba(244, 241, 234, .66); max-width: 34ch; }
.app-como { width: 100%; margin-top: 14px; display: grid; gap: 10px; justify-items: center; }
.app-como p { margin: 0; color: rgba(244, 241, 234, .8); }
.app-bt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; border: 0;
  border-radius: 16px; background: #f2b950; color: #1c1407; font: 600 16px/1 inherit; text-decoration: none; cursor: pointer; }
.app-bt svg { width: 22px; height: 22px; fill: currentColor; }
.app-bt.discord { background: #5865f2; color: #fff; }
.app-bt:active { transform: scale(.98); }
.app-como small, .app-rodape { color: rgba(244, 241, 234, .42); font-size: 12px; }
.app-rodape { margin-top: 18px; max-width: 32ch; }
.app-link { word-break: break-all; }
.app-passos { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; }
.app-passos li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; padding: 12px 14px;
  border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.app-passos svg { width: 18px; height: 18px; fill: #f2b950; vertical-align: -3px; }
.app-passos small { display: block; margin-top: 4px; font-size: 13px; opacity: .65; }
.app-passos small svg { width: 14px; height: 14px; vertical-align: -2px; }
.app-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: rgba(242, 185, 80, .16); color: #f2b950; }
.app-ok { display: flex; gap: 10px; align-items: center; text-align: left; padding: 14px; border-radius: 14px; background: rgba(95, 211, 141, .12); }
.app-ok svg { width: 22px; height: 22px; fill: #5fd38d; flex: none; }
.app-erro { margin: 0; color: #ff8a8a; font-size: 13px; }
.app-rodape a { color: rgba(244, 241, 234, .62); }

/* ---------- app instalado: cara e jeito de app nativo ---------- */
/* Sem menu de "copiar/salvar imagem" no toque longo, sem o cinza do toque, sem
   a página quicar nem dar zoom no duplo toque. */
body[data-app="feira"] { -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none; touch-action: manipulation; background: #08070c; }
body[data-app="feira"] .app-tela { -webkit-user-select: none; user-select: none; overscroll-behavior: contain; }
/* iPhone com barra transparente: a janela que o iOS informa é mais baixa que a
   tela (ver alturaDoApp). As telas cheias usam a altura de verdade e o que fica
   preso embaixo desconta a diferença. */
html:has(> body[data-app="feira"]) { min-height: calc(100% + env(safe-area-inset-top)); }
body[data-app="feira"] { height: var(--app-h, 100%); }
body[data-app="feira"] :is(.fd, .app-tela, .splash, .folha, .cena) { bottom: auto; height: var(--app-h, 100%); }
body[data-app="feira"] .offline { bottom: calc(150px + var(--in-bottom) - var(--app-sobra, 0px)); padding: 9px 16px;
  background: rgba(18, 16, 24, .92); border: 1px solid rgba(255, 255, 255, .1); color: #f4f1ea; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body[data-app="feira"] .offline.on { display: flex; align-items: center; gap: 8px; }
body[data-app="feira"] .offline::before { content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(242, 185, 80, .3); border-top-color: #f2b950; animation: app-gira .8s linear infinite; }
@keyframes app-gira { to { transform: rotate(360deg); } }

/* Abertura: o mesmo ícone no meio da tela da imagem de abertura do iOS, com
   uma barrinha embaixo. Vale para o splash, a feira carregando e o
   "Atualizando". O splash da Cidade (estrelas, prédios, passos) fica de fora. */
body[data-app="feira"] .splash { background: #08070c; padding: 0; transition: opacity .35s ease; }
body[data-app="feira"] .splash.saindo { transform: none; filter: none; }
body[data-app="feira"] .splash::before,
body[data-app="feira"] .splash > :not(.sp-centro),
body[data-app="feira"] .sp-centro > div:first-child,
body[data-app="feira"] .sp-dica,
body[data-app="feira"] .passos { display: none; }
body[data-app="feira"] .splash::after, body[data-app="feira"] .app-abre-ico, .fd-carregando::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(30vw, 160px); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url(/static/app/icone-512.png) center / contain no-repeat; border-radius: 22%; }
body[data-app="feira"] .sp-centro { position: absolute; left: 0; right: 0; top: calc(50% + min(15vw, 80px) + 28px);
  width: auto; padding: 0 28px; gap: 12px; }
body[data-app="feira"] .sp-status { order: 2; font-size: 13px; color: rgba(244, 241, 234, .42); min-height: 1.4em; }
body[data-app="feira"] .sp-cartao { order: 1; width: min(140px, 40vw); padding: 0; background: none; border: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; justify-self: center; display: grid; gap: 14px; }
body[data-app="feira"] .splash.erro .sp-cartao { width: min(320px, 100%); }
body[data-app="feira"] .sp-barra, .app-abre-barra { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
body[data-app="feira"] .sp-barra i { background: #f2b950; }
.app-tela.abrindo { display: block; padding: 0; background: #08070c; }
.app-abre-barra { position: absolute; left: 50%; top: calc(50% + min(15vw, 80px) + 28px); width: min(140px, 40vw); transform: translateX(-50%); }
.app-abre-barra i { display: block; width: 40%; height: 100%; border-radius: 2px; background: #f2b950; animation: app-vai 1.1s ease-in-out infinite; }
@keyframes app-vai { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.app-abre-tx { position: absolute; left: 0; right: 0; top: calc(50% + min(15vw, 80px) + 46px); text-align: center;
  font-size: 13px; color: rgba(244, 241, 234, .42); }
body[data-app="feira"] .fd-carregando { display: block; }
body[data-app="feira"] .fd-carregando[hidden] { display: none; }
body[data-app="feira"] .fd-carregando .fd-logo { display: none; }
body[data-app="feira"] .fd-carregando .fd-carga { position: absolute; left: 50%; top: calc(50% + min(15vw, 80px) + 28px); width: min(140px, 40vw); transform: translateX(-50%); }
body[data-app="feira"] .fd-carregando small { position: absolute; left: 0; right: 0; top: calc(50% + min(15vw, 80px) + 46px); text-align: center; }
body:not([data-app="feira"]) .fd-carregando::before { display: none; }

/* Notificações logo depois do login. */
.app-sino { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; margin-bottom: 6px;
  background: rgba(242, 185, 80, .14); color: #f2b950; box-shadow: 0 0 0 1px rgba(242, 185, 80, .2); }
.app-sino svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-lista { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; gap: 8px; text-align: left; }
.app-lista li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.app-lista span { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(242, 185, 80, .12); color: #f2b950; }
.app-lista svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-bt-sec { background: rgba(255, 255, 255, .07); color: #f4f1ea; font-weight: 500; }
.app-bt:disabled { opacity: .6; }

/* Folhas (ajustes, gráficos, confirmar) no app: as cores do Feirão, não as da Cidade. */
body[data-app="feira"] .folha { --accent: #f2b950; --muted: rgba(244, 241, 234, .42); --fg: #f4f1ea; --fg2: rgba(244, 241, 234, .66);
  --stroke: rgba(255, 255, 255, .08); --stroke-hi: rgba(255, 255, 255, .12); background: rgba(4, 3, 7, .55);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif; }
body[data-app="feira"] .folha .glass { background: #121017; border: 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: none; backdrop-filter: none; animation: fd-sobe .28s cubic-bezier(.2, .8, .2, 1); }
body[data-app="feira"] .folha .btn { border-radius: 12px; padding: 9px 14px; background: rgba(255, 255, 255, .07); border-color: transparent; }
body[data-app="feira"] .folha .btn.forte { background: #f2b950; color: #1c1407; font-weight: 600; }
body[data-app="feira"] .cfg-opcao { border-radius: 14px; background: rgba(255, 255, 255, .05); }
body[data-app="feira"] .cfg-opcao.on { border-color: #f2b950; background: rgba(242, 185, 80, .12); }
body[data-app="feira"] .cfg-rec { color: #5fd38d; background: rgba(95, 211, 141, .12); border-color: rgba(95, 211, 141, .35); }
body[data-app="feira"] .vol-controle input { accent-color: #f2b950; }
.cfg-conta { display: flex; align-items: center; gap: 12px; padding: 12px 0 4px; }
.cfg-conta .ava { width: 42px; height: 42px; flex: none; font-size: 16px; }
.cfg-conta > div:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.cfg-conta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-conta small { color: var(--muted); font-size: 12px; }
.cfg-rodape { display: block; margin: 18px 0 4px; text-align: center; color: var(--muted); font-size: 11.5px; }
.cfg-rodape a { color: inherit; }
.cfg-conta .ava { background: rgba(242, 185, 80, .16); color: #f2b950; border: 0; }

/* Privacidade e termos dentro do app (abrirDocApp): folha cheia, com fechar. */
.app-doc { position: fixed; left: 0; right: 0; top: 0; height: var(--app-h, 100%); z-index: 70; display: flex; flex-direction: column;
  background: #0c0b10; color: #f4f1ea; animation: fd-sobe .28s cubic-bezier(.2, .8, .2, 1);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif; }
.app-doc[hidden] { display: none; }
.app-doc > header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(var(--in-top) + 12px) calc(var(--in-right) + 16px) 12px calc(var(--in-left) + 20px);
  border-bottom: 1px solid rgba(255, 255, 255, .07); background: #0c0b10; }
.app-doc > header b { font-size: 17px; }
.app-doc > header button { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app-doc > header svg { width: 18px; height: 18px; fill: currentColor; }
.app-doc-corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 8px calc(var(--in-right) + 20px) calc(var(--in-bottom) + 28px) calc(var(--in-left) + 20px);
  -webkit-user-select: text; user-select: text; }
.app-doc-corpo .wrap, .app-doc-corpo .card { all: unset; display: block; }
.app-doc-corpo .sec { padding: 18px 0 6px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.app-doc-corpo h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.app-doc-corpo .num { flex: none; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 8px; display: inline-grid; place-items: center;
  background: rgba(242, 185, 80, .14); color: #f2b950; font-size: 12px; font-weight: 700; }
.app-doc-corpo p, .app-doc-corpo li { color: rgba(244, 241, 234, .74); }
.app-doc-corpo p { margin: 0 0 10px; }
.app-doc-corpo ul { margin: 0 0 10px; padding-left: 20px; }
.app-doc-corpo li { margin: 4px 0; }
.app-doc-corpo strong { color: #f4f1ea; font-weight: 600; }
.app-doc-corpo a { color: #f2b950; text-decoration: none; }
.app-doc-corpo code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.app-doc-carregando { padding: 40px 0; text-align: center; color: rgba(244, 241, 234, .42); }
.app-bt.indo { opacity: .6; pointer-events: none; }
