/* Máquina de vendas · Digital Interativo
   Usa os tokens do site (--preto, --ouro, --texto...). Valores de reserva para funcionar fora dele. */
.mv{
  --mv-fundo:#0c0c0b;
  --mv-caixa:#131210;
  --mv-caixa-on:#18160f;
  --mv-linha:var(--linha,#2c2a25);
  --mv-ouro:var(--ouro,#c9a24a);
  --mv-ouro-claro:var(--ouro-claro,#e6c77a);
  --mv-ouro-escuro:var(--ouro-escuro,#9c7a2e);
  --mv-texto:var(--texto,#f2ede3);
  --mv-texto-2:var(--texto-2,#b9b2a5);
  --mv-texto-3:var(--texto-3,#857f74);
  --mv-serif:var(--serif,"Fraunces",Georgia,serif);
  --mv-sans:var(--sans,"Inter",system-ui,sans-serif);
  position:relative;color:var(--mv-texto);font-family:var(--mv-sans)
}

/* Abas */
.mv-abas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
.mv-aba{display:flex;align-items:center;gap:12px;min-width:0;padding:14px 18px;border-radius:12px;border:1px solid var(--mv-linha);background:rgba(242,237,227,.02);color:var(--mv-texto-2);font:500 .97rem/1.25 var(--mv-sans);text-align:left;cursor:pointer;transition:border-color .25s,color .25s,background .25s}
.mv-aba:hover{border-color:rgba(201,162,74,.45);color:var(--mv-texto)}
.mv-aba-c{display:none}
.mv-celular .mv-aba-t{display:none}
.mv-celular .mv-aba-c{display:inline}
.mv-aba-n{font-size:.74rem;letter-spacing:.16em;color:var(--mv-texto-3);transition:color .25s}
.mv-aba[aria-selected="true"]{border-color:rgba(201,162,74,.65);color:var(--mv-texto);background:linear-gradient(180deg,rgba(201,162,74,.14),rgba(201,162,74,.03))}
.mv-aba[aria-selected="true"] .mv-aba-c{display:none}
.mv-celular .mv-aba-t{display:none}
.mv-celular .mv-aba-c{display:inline}
.mv-aba-n{color:var(--mv-ouro-claro)}

/* Painel */
.mv-painel{border:1px solid var(--mv-linha);border-radius:18px;overflow:hidden;
  background:radial-gradient(ellipse 65% 55% at 50% 42%,rgba(201,162,74,.08),transparent 72%),var(--mv-fundo)}
.mv-palco{padding:clamp(8px,2vw,22px);background-image:radial-gradient(rgba(242,237,227,.075) 1px,transparent 1.5px);background-size:22px 22px;background-position:11px 11px}
.mv-svg{display:block;width:100%;height:auto;overflow:visible}

/* Arestas e pulsos */
.mv-aresta{fill:none;stroke:#2a2823;stroke-width:1.6;transition:stroke .7s}
.mv-aresta.on{stroke:rgba(201,162,74,.34)}
.mv-aresta.ativo{stroke:rgba(230,199,122,.58)}
.mv-retorno{stroke-dasharray:3 7}
.mv-rotulo{fill:var(--mv-texto-3);font:italic 400 14px var(--mv-serif)}
.mv-rastro{fill:none;stroke:#f1d48b;stroke-width:2.6;stroke-linecap:round}
.mv-cabeca{fill:#fff5d8}
.mv-aura{fill:rgba(230,199,122,.24)}
.mv-m .mv-rastro{stroke-width:2.2}

/* Nós */
.mv-caixa{fill:var(--mv-caixa);stroke:var(--mv-linha);stroke-width:1.2;transition:stroke .6s,fill .6s}
.mv-halo{fill:none;stroke:var(--mv-ouro-claro);stroke-width:2.5;opacity:0}
.mv-icfundo{fill:#1c1a16;transition:fill .6s}
.mv-ic{fill:none;stroke:#6f695f;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:stroke .6s}
.mv-rot{fill:var(--mv-texto-2);font:600 14px var(--mv-sans);transition:fill .6s}
.mv-sub{fill:var(--mv-texto-3);font:400 11.5px var(--mv-sans)}
.mv-m .mv-rot{font-size:12.5px}
.mv-m .mv-chip .mv-rot{font-size:11.5px;font-weight:500}

.mv-no.on .mv-caixa{stroke:rgba(201,162,74,.72);fill:var(--mv-caixa-on)}
.mv-no.on .mv-ic{stroke:var(--mv-ouro-claro)}
.mv-no.on .mv-icfundo{fill:rgba(201,162,74,.14)}
.mv-no.on .mv-rot{fill:var(--mv-texto)}
.mv-no.atual .mv-halo{animation:mv-halo 1.7s ease-out 1}

/* servidor central */
.mv-hub .mv-caixa{stroke:rgba(201,162,74,.45);fill:#15130e}
.mv-hub .mv-rot{font:500 17px var(--mv-serif)}
.mv-m .mv-hub .mv-rot{font-size:15px}
.mv-hub .mv-sub{font-size:12px}
.mv-hub.on .mv-caixa{stroke:var(--mv-ouro-claro)}
/* ferramenta que se encaixa */
.mv-novo .mv-caixa{stroke-dasharray:5 5}
/* grupo de anúncios no celular */
.mv-moldura{fill:rgba(242,237,227,.015);stroke:var(--mv-linha);stroke-dasharray:4 6;transition:stroke .6s}
.mv-grupo.on .mv-moldura{stroke:rgba(201,162,74,.5)}
.mv-grupo-rot{fill:var(--mv-texto-3);font:600 10px var(--mv-sans);letter-spacing:.22em}

.mv-estouro{fill:var(--mv-ouro-claro);font:600 14px var(--mv-sans);animation:mv-sobe 2s ease-out forwards}
.mv-estouro.fixo{animation:none}
.mv-m .mv-estouro{font-size:12.5px}

@keyframes mv-halo{0%{opacity:.9}100%{opacity:0}}
@keyframes mv-sobe{0%{opacity:0;transform:translateY(8px)}18%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translateY(-22px)}}

/* Rodapé: legenda, controles e passos */
.mv-rodape{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:center;padding:18px clamp(16px,3vw,28px) 22px;border-top:1px solid var(--mv-linha)}
.mv-legenda{display:flex;gap:18px;align-items:baseline;min-width:0;min-height:4.4em}
.mv-num{flex:none;font-size:.76rem;letter-spacing:.14em;color:var(--mv-ouro);font-variant-numeric:tabular-nums}
.mv-legenda-t{min-width:0}
.mv-legenda strong{display:block;font:500 1.2rem/1.3 var(--mv-serif);color:var(--mv-texto);margin-bottom:3px;text-wrap:balance}
.mv-legenda p{margin:0;color:var(--mv-texto-2);font-size:.96rem;line-height:1.55;max-width:68ch}
.mv-ctrl{display:flex;gap:8px}
.mv-bt{width:42px;height:42px;padding:0;border-radius:50%;border:1px solid var(--mv-linha);background:transparent;color:var(--mv-texto-2);display:grid;place-items:center;cursor:pointer;transition:border-color .2s,color .2s}
.mv-bt:hover:not(:disabled){border-color:var(--mv-ouro);color:var(--mv-ouro-claro)}
.mv-bt[hidden]{display:none}
.mv-bt:disabled{opacity:.35;cursor:default}
.mv-bt svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mv-bt svg.mv-cheio{fill:currentColor;stroke:none}
.mv-passos{grid-column:1/-1;display:flex;gap:6px;list-style:none;margin:0;padding:0}
.mv-passos li{flex:1}
.mv-passos button{position:relative;display:block;width:100%;height:4px;padding:0;border:0;border-radius:2px;background:var(--mv-linha);cursor:pointer;overflow:visible}
.mv-passos button::before{content:"";position:absolute;inset:-10px 0}
.mv-enche{position:absolute;inset:0;border-radius:2px;transform:scaleX(0);transform-origin:left;background:linear-gradient(90deg,var(--mv-ouro-escuro),var(--mv-ouro-claro))}
.mv-passos button.feito .mv-enche{transform:scaleX(1)}
.mv-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Celular */
.mv-celular .mv-abas{gap:6px}
.mv-celular .mv-aba{flex-direction:column;align-items:flex-start;gap:4px;padding:10px 12px;font-size:.84rem}
.mv-celular .mv-rodape{grid-template-columns:1fr;padding:16px 16px 20px}
.mv-celular .mv-ctrl{order:3;justify-content:center}
.mv-celular .mv-legenda{flex-direction:column;gap:6px;min-height:8.2em}
.mv-celular .mv-legenda strong{font-size:1.1rem}
.mv-celular .mv-legenda p{font-size:.92rem}

@media (prefers-reduced-motion: reduce){
  .mv-no.atual .mv-halo,.mv-estouro{animation:none}
  .mv-aresta,.mv-caixa,.mv-ic,.mv-rot{transition:none}
}

/* Desktop: nós e textos maiores; o desenho ocupa a largura do quadro */
.mv-d .mv-rot{font-size:18px}
.mv-d .mv-sub{font-size:14px}
.mv-d .mv-hub .mv-rot{font-size:22px}
.mv-d .mv-hub .mv-sub{font-size:14px}
.mv-d .mv-rotulo{font-size:16px}
.mv-d .mv-estouro{font-size:17px}
.mv-d .mv-aresta{stroke-width:1.8}
.mv-d .mv-rastro{stroke-width:3}
#maquina .mv-svg,.mv .mv-svg{width:100%;max-width:100%;max-height:none;margin:0}
.mv-d.mv-svg{margin:-6px 0}
.mv:not(.mv-celular) .mv-palco{padding:10px 12px}
