/* Números (a Lila, a lagartinha): só o que as brincadeiras de contar precisam além do estilo.css. Tudo começa com nu-. */

/* ---------- menu e desenhos ---------- */
.nu-lila { display: block; width: 100%; }
.nu-apresenta { width: 132px; }
.abertura-arte .nu-lila { width: 170px; max-width: none; margin: 0 -30px; }
.nu-brincadeira-emoji { background: #dbeafe; }

/* ---------- o campo com as coisas para contar ---------- */
/* --lado: o tamanho do campo quadrado (cabe na tela do celular em pé); --cols: casas por linha (vem do jogo). */
.nu-campo {
  --lado: max(220px, min(calc(100vw - 32px), calc(100vh - 350px), 520px));
  position: relative; width: var(--lado); height: var(--lado); margin: 0 auto; flex: none;
  border-radius: 26px; background: radial-gradient(circle at 50% 38%, #fffdf3, #fef3c7 70%, #fde68a);
  box-shadow: var(--sombra); touch-action: manipulation;
}
.nu-campo-menor { --lado: max(220px, min(calc(100vw - 32px), calc(100vh - 370px), 500px)); }
.nu-coisa {
  --tam: calc(var(--lado) / var(--cols));
  position: absolute; width: var(--tam); height: var(--tam); margin: calc(var(--tam) / -2) 0 0 calc(var(--tam) / -2);
  padding: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: calc(var(--tam) * .6); line-height: 1;
  animation: nu-surge .4s var(--atraso, 0s) cubic-bezier(.2, 1.6, .4, 1) backwards;
}
.nu-emoji { display: block; transform: rotate(var(--giro, 0deg)); transition: transform .2s; pointer-events: none; }
.nu-item { position: relative; display: inline-grid; place-items: center; line-height: 1.12; }
.nu-surge { animation: nu-surge .4s cubic-bezier(.2, 1.6, .4, 1) backwards; }

/* Acesa: já foi contada. O número fica em cima. */
.nu-aceso { background: radial-gradient(circle, #fef08a 0 42%, rgba(254, 240, 138, 0) 70%); }
.nu-aceso .nu-emoji { transform: rotate(var(--giro, 0deg)) scale(1.15); filter: drop-shadow(0 0 5px #f59e0b); animation: nu-acende .35s cubic-bezier(.2, 1.6, .4, 1); }
.nu-marca {
  position: absolute; top: -2%; right: -2%; min-width: 1.6em; height: 1.6em; padding: 0 .3em; border-radius: 999px;
  display: grid; place-items: center; background: var(--roxo); color: #fff; border: 2px solid #fff;
  font-size: max(13px, .32em); font-weight: 900; line-height: 1; box-shadow: 0 2px 0 rgba(42, 26, 94, .3);
  animation: pula .3s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none;
}
.nu-coisa.nu-errado { animation: treme .12s 4; background: radial-gradient(circle, rgba(239, 68, 68, .6) 0 42%, rgba(239, 68, 68, 0) 70%); }
.nu-passou { background: radial-gradient(circle, rgba(249, 115, 22, .65) 0 42%, rgba(249, 115, 22, 0) 70%); }
.nu-passou .nu-marca { background: #f97316; }
.nu-faltou { border: 4px dashed #f59e0b; background: rgba(254, 243, 199, .7); }
.nu-faltou .nu-emoji { filter: none; opacity: .75; }
.nu-faltou .nu-marca { background: #f59e0b; }
.nu-acabou .nu-coisa:not(.nu-aceso):not(.nu-errado) { opacity: .4; }
/* Acertou: todas pulam, uma depois da outra. */
.nu-festa .nu-emoji { animation: nu-pula .55s var(--atraso, 0s) ease-in-out 2; }

.nu-pergunta {
  display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center;
  color: var(--branco); font-size: 22px; font-weight: 800; text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.nu-pergunta .botao-ouvir { flex: none; text-shadow: none; }
.nu-espera { visibility: hidden; }

/* ---------- os números para escolher ---------- */
.nu-numeros { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 10px; }
.nu-numero {
  min-height: 82px; padding: 4px 0; border-radius: 24px;
  background: var(--fundo); color: var(--branco); box-shadow: 0 6px 0 var(--borda);
  font-size: clamp(40px, 12vw, 64px); font-weight: 900; line-height: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .22);
  transition: transform .08s, opacity .2s;
}
.nu-numero:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--borda); }
.nu-respondido .nu-numero { opacity: .4; }
.nu-respondido .nu-numero.nu-certo {
  opacity: 1; background: #22c55e; box-shadow: 0 6px 0 #15803d, 0 0 0 5px var(--branco);
  animation: pula .4s cubic-bezier(.2, 1.6, .4, 1);
}
.nu-respondido .nu-numero.nu-errou { opacity: .9; background: #ef4444; box-shadow: 0 6px 0 #b91c1c; animation: treme .12s 4; }

/* ---------- toque e conte ---------- */
.nu-pedido {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px;
  border-radius: 22px; background: var(--branco); box-shadow: var(--sombra); font-size: 22px; font-weight: 800;
}
.nu-pedido-texto { white-space: nowrap; }
.nu-pedido-numero {
  min-width: 58px; padding: 0 10px; border-radius: 16px; background: var(--roxo); color: var(--branco);
  font-size: 40px; line-height: 1.25; text-align: center;
}
.nu-pedido-emoji { font-size: 40px; line-height: 1; }
.nu-pedido .botao-ouvir { flex: none; }
.nu-pronto { min-width: 200px; }

/* ---------- junta e conta ---------- */
.nu-palco { display: flex; flex-direction: column; gap: 12px; }
.nu-grupos { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 8px; transition: opacity .4s, height .4s ease, margin .4s ease; }
.nu-grupos.nu-vazio { opacity: .55; }
.nu-grupos.nu-recolhe { height: 0 !important; margin-bottom: -12px; opacity: 0; overflow: hidden; }
.nu-sinal { align-self: center; }
.nu-grupo {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 96px; padding: 8px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: var(--sombra);
}
.nu-grupo-coisas { display: grid; grid-template-columns: repeat(var(--cols), auto); gap: 0 6px; justify-content: center; }
.nu-grupo .nu-item { font-size: clamp(26px, 8.5vw, 44px); }
.nu-grupo-n { font-size: 28px; font-weight: 900; line-height: 1; color: var(--roxo-escuro); }
.nu-sinal { font-size: 46px; font-weight: 900; line-height: 1; color: var(--branco); text-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
/* A cesta de palha, com alça. */
.nu-cesta {
  position: relative; margin-top: 30px; padding: 12px 10px 16px;
  border: 6px solid #a16207; border-top-width: 10px;
  border-radius: 16px 16px 70px 70px / 16px 16px 40px 40px;
  background: repeating-linear-gradient(45deg, #f1c57c 0 9px, #e2b264 9px 18px);
  box-shadow: var(--sombra);
}
.nu-cesta::before {
  content: ""; position: absolute; left: 24%; right: 24%; top: -40px; height: 40px;
  border: 7px solid #a16207; border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none;
}
.nu-palco-tirar .nu-cesta { margin-top: 44px; }
.nu-cesta-dentro { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; min-height: 104px; }
.nu-cesta-dentro .nu-item { width: 20%; font-size: clamp(30px, 10vw, 52px); }
.nu-pano {
  position: absolute; inset: 2px; display: grid; place-items: center; pointer-events: none;
  border-radius: 10px 10px 62px 62px / 10px 10px 34px 34px;
  background:
    repeating-linear-gradient(0deg, rgba(220, 38, 38, .5) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, rgba(220, 38, 38, .5) 0 14px, transparent 14px 28px),
    #fff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .25);
  transform: scaleY(0); transform-origin: top; transition: transform .45s cubic-bezier(.3, 1.25, .5, 1);
}
.nu-pano span { font-size: 64px; font-weight: 900; line-height: 1; color: var(--branco); -webkit-text-stroke: 3px var(--roxo-escuro); text-shadow: 0 4px 0 var(--roxo-escuro); }
.nu-coberta .nu-pano { transform: none; }
/* Tirar: vai embora voando. */
.nu-item.nu-voa { transform: translate(var(--dx, 0px), -190px) rotate(30deg) scale(.6); opacity: 0; transition: transform 1.1s ease-in, opacity 1.1s ease-in; }
.nu-conta {
  align-self: center; padding: 6px 24px; border-radius: 999px; background: var(--branco); box-shadow: var(--sombra);
  font-size: clamp(30px, 9vw, 44px); font-weight: 900; line-height: 1.2; color: var(--roxo-escuro); letter-spacing: 1px; white-space: nowrap;
}
.nu-conta.nu-resolvida { background: #dcfce7; animation: pula .4s cubic-bezier(.2, 1.6, .4, 1); }

/* ---------- recado escrito, rodada dourada e bolinhas do pedido (para brincar sem a voz) ---------- */
.nu-recado {
  margin: 0; padding: 8px 14px; border-radius: 16px; background: var(--branco); box-shadow: var(--sombra);
  text-align: center; font-size: 19px; font-weight: 800; line-height: 1.25; color: var(--tinta);
}
.nu-recado-ruim { background: #fff7ed; color: #9a3412; }
.nu-dourada {
  align-self: center; padding: 6px 18px; border-radius: 999px; font-size: 18px; font-weight: 900; color: #78350f;
  background: linear-gradient(90deg, #fde68a, #facc15, #fde68a); box-shadow: 0 4px 0 #d97706; animation: pula .5s cubic-bezier(.2, 1.6, .4, 1);
}
.nu-pedido-coisa { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.nu-pedido-coisa small { font-size: 14px; font-weight: 800; opacity: .7; margin-top: 2px; }
.nu-bolinhas { display: flex; justify-content: center; gap: 10px; }
.nu-bolinhas i {
  width: 30px; height: 30px; border-radius: 50%; border: 4px dashed var(--branco); background: rgba(255, 255, 255, .25);
  transition: background .2s, transform .2s;
}
.nu-bolinhas i.nu-cheia { border-style: solid; border-color: #f59e0b; background: #fde047; transform: scale(1.12); }
/* Com 4 números (e de dois algarismos), a letra encolhe para caber no celular. */
.nu-numeros .nu-numero { font-size: max(30px, min(clamp(40px, 12vw, 64px), calc(40vw / var(--n, 3)))); }

/* ---------- dezenas: barrinhas de 10 e coisas soltas ---------- */
.nu-dezenas {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border-radius: 24px;
  background: radial-gradient(circle at 50% 38%, #fffdf3, #fef3c7 70%, #fde68a); box-shadow: var(--sombra);
}
.nu-barras { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nu-barra {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 1px; padding: 4px 5px;
  border-radius: 12px; background: var(--branco); border: 3px solid #f59e0b; box-shadow: 0 3px 0 rgba(42, 26, 94, .2);
  font-size: clamp(12px, 3.6vw, 17px); line-height: 1.15; animation: nu-surge .4s var(--atraso, 0s) cubic-bezier(.2, 1.6, .4, 1) backwards;
}
.nu-barra span { pointer-events: none; }
.nu-soltas { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.nu-solta {
  position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  font-size: 30px; line-height: 1; animation: nu-surge .4s var(--atraso, 0s) cubic-bezier(.2, 1.6, .4, 1) backwards;
}
.nu-barra.nu-aceso { background: #fef08a; border-color: #7c3aed; }
.nu-barra .nu-marca { top: -12px; right: -10px; font-size: 14px; }
.nu-solta .nu-marca { font-size: 13px; }
.nu-festa .nu-barra, .nu-festa .nu-solta { animation: nu-pula .55s ease-in-out 2; }
.nu-desafio { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.nu-desafio .nu-sinal { align-self: center; }
.nu-riscado { position: relative; opacity: .7; }
.nu-riscado::after {
  content: ""; position: absolute; inset: 0; border-radius: 24px; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(220, 38, 38, .35) 14px 18px);
}

/* ---------- qual é o maior? ---------- */
.nu-compara-pedido {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 14px; border-radius: 22px;
  background: #dcfce7; box-shadow: var(--sombra); font-size: 22px; font-weight: 900; text-align: center; color: #14532d;
}
.nu-compara-pedido.nu-menor { background: #e0f2fe; color: #0c4a6e; }
.nu-compara-seta { font-size: 40px; line-height: 1; }
.nu-comparar .nu-numero { min-height: 110px; }
.nu-compara-coisas { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, .9); font-size: 15px; letter-spacing: 1px; color: #b45309; word-break: break-all; }
.nu-compara-coisas b { color: var(--roxo-escuro); letter-spacing: 0; }

/* No tablet deitado sobra largura: as coisas da cesta ficam maiores. */
@media (min-width: 700px) {
  .nu-grupo { min-height: 130px; }
  .nu-cesta-dentro { min-height: 130px; }
}

@keyframes nu-surge { from { transform: scale(.2); opacity: 0; } }
@keyframes nu-acende { from { transform: rotate(var(--giro, 0deg)) scale(.6); } }
@keyframes nu-pula { 50% { transform: rotate(var(--giro, 0deg)) translateY(-22%) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .nu-festa .nu-emoji { animation: none; } }

/* ---------- a mãozinha dos gestos ---------- */
.nu-gestos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.nu-gesto {
  align-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: #fff; color: var(--tinta); font-size: 16px; box-shadow: 0 3px 0 rgba(42, 26, 94, .15);
}
.nu-mao { display: inline-block; font-size: 26px; line-height: 1; animation: nu-mao-toca .8s ease-in-out infinite; }
.nu-gesto-ligar .nu-mao { animation: nu-mao-liga 1.6s ease-in-out infinite; }
.nu-gesto-desenhar .nu-mao { animation: nu-mao-roda 1.4s linear infinite; }
.nu-gesto-arrastar .nu-mao { animation: nu-mao-arrasta 1.6s ease-in-out infinite; }
.nu-gesto-deslizar .nu-mao { animation: nu-mao-corta 1.1s ease-in-out infinite; }
@keyframes nu-mao-toca { 0%, 100% { transform: translateY(-4px); } 45% { transform: translateY(3px) scale(.9); } }
@keyframes nu-mao-liga { 0%, 40% { transform: translate(-8px, 2px); } 20% { transform: translate(-8px, 6px) scale(.88); } 60%, 100% { transform: translate(10px, 2px); } 80% { transform: translate(10px, 6px) scale(.88); } }
@keyframes nu-mao-roda { from { transform: rotate(0deg) translateX(6px) rotate(0deg); } to { transform: rotate(360deg) translateX(6px) rotate(-360deg); } }
@keyframes nu-mao-arrasta { 0% { transform: translate(-8px, 4px) scale(.9); } 60% { transform: translate(10px, -4px) scale(.9); } 100% { transform: translate(-8px, 4px); } }
@keyframes nu-mao-corta { 0% { transform: translate(-6px, -8px) rotate(-20deg); } 60% { transform: translate(6px, 8px) rotate(-20deg); } 100% { transform: translate(-6px, -8px) rotate(-20deg); } }
.nu-explica { margin-top: 2px; }

/* ---------- mercadinho: o mapa ---------- */
.nu-corvo { width: 100%; height: 100%; }
.abertura-arte svg.nu-corvo { width: 130px; height: 120px; }
.nu-mc-mapa {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 12px; border-radius: 26px; box-shadow: var(--sombra);
  background: linear-gradient(#a3e635 0 8%, #d9f99d 8%), repeating-linear-gradient(90deg, #fef3c7 0 20px, #fde68a 20px 40px);
}
@media (min-width: 700px) { .nu-mc-mapa { grid-template-columns: repeat(4, 1fr); } }
.nu-mc-barraca {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 26px 6px 8px; min-height: 128px; overflow: hidden;
  border-radius: 16px; background: #fff; border: 4px solid #f97316; box-shadow: 0 5px 0 rgba(124, 45, 18, .3);
}
.nu-mc-toldo { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: repeating-linear-gradient(90deg, #ef4444 0 14px, #fff 14px 28px); }
.nu-mc-num { position: absolute; left: 8px; top: 20px; font-weight: 900; color: #c2410c; }
.nu-mc-icone { width: 56px; height: 50px; display: grid; place-items: center; font-size: 38px; line-height: 1; }
.nu-mc-barraca strong { font-size: 15px; line-height: 1.1; text-align: center; }
.nu-mc-barraca small { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.nu-mc-chefao { border-color: #1f2937; background: #f1f5f9; }
.nu-mc-chefao .nu-mc-toldo { background: repeating-linear-gradient(90deg, #1f2937 0 14px, #94a3b8 14px 28px); }
.nu-mc-feita { border-color: #22c55e; }
.nu-mc-atual { animation: nu-mc-chama 1s ease-in-out infinite; }
.nu-mc-barraca:disabled { opacity: .55; }
@keyframes nu-mc-chama { 50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, .45); } }
.nu-mc-corvo-faixa { display: flex; align-items: center; gap: 8px; }
.nu-mc-corvo-faixa > span { width: 44px; flex: none; }
.nu-mc-corvo-faixa .barra-tempo { flex: 1; }

/* o balcão com o cliente */
.nu-mc-balcao { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nu-mc-cliente { display: flex; align-items: center; gap: 8px; }
.nu-mc-bicho { font-size: 54px; line-height: 1; }
.nu-mc-balao { position: relative; padding: 8px 14px; border-radius: 18px; background: #fff; font-size: 20px; font-weight: 800; box-shadow: var(--sombra); }
.nu-mc-balao b { font-size: 28px; color: #c2410c; }
.nu-mc-caixote {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 14px; border-radius: 14px; min-width: 120px;
  background: linear-gradient(#d97706, #b45309); color: #fff; box-shadow: 0 6px 0 #78350f; touch-action: manipulation;
}
.nu-mc-caixote span { font-size: 34px; letter-spacing: -6px; }
.nu-mc-caixote b { font-size: 15px; }
.nu-mc-caixote.nu-mc-bate { animation: nu-mc-bate .16s ease-out; }
@keyframes nu-mc-bate { 50% { transform: translateY(4px) scale(.95); box-shadow: 0 2px 0 #78350f; } }
.nu-mc-sacola-linha { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, .85); min-height: 64px; }
.nu-mc-sacola-icone { font-size: 38px; }
.nu-mc-sacola { flex: 1; display: flex; flex-wrap: wrap; gap: 2px; }
.nu-mc-fruta { position: relative; font-size: 30px; line-height: 1; animation: pula .25s; }
.nu-mc-fruta i { position: absolute; right: -4px; top: -6px; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 12px; font-style: normal; font-weight: 900; display: grid; place-items: center; }
.nu-mc-conta { min-width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #fff; font-size: 24px; }

/* etiquetas (ligar) */
.nu-mc-ligar { position: relative; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px 40px; width: min(100%, 520px); margin: 0 auto; }
.nu-mc-linhas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.nu-mc-coluna { display: flex; flex-direction: column; gap: 8px; }
.nu-mc-etiqueta {
  position: relative; z-index: 1; min-height: 62px; padding: 6px 10px; border-radius: 16px; background: #fff; color: var(--roxo-escuro);
  font-size: 32px; font-weight: 900; box-shadow: var(--sombra); border: 4px solid transparent; display: flex; align-items: center; justify-content: center;
}
.nu-mc-etiqueta.nu-mc-sel { border-color: #f59e0b; background: #fffbeb; }
.nu-mc-etiqueta.nu-mc-ligada { border-color: #22c55e; background: #f0fdf4; }
.nu-mc-etiqueta.nu-mc-errou { border-color: #ef4444; animation: treme .12s 4; }
.nu-mc-bolinhas { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 150px; }
.nu-mc-bolinhas i { width: 16px; height: 16px; border-radius: 50%; background: #f97316; }
.nu-mc-dezenas { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 3px; justify-content: center; max-width: 170px; }
.nu-mc-dezenas u { width: 9px; height: 42px; border-radius: 3px; background: repeating-linear-gradient(#3b82f6 0 3.6px, #bfdbfe 3.6px 4.2px); }
.nu-mc-dezenas i { width: 9px; height: 9px; border-radius: 2px; background: #f97316; }
.nu-mc-fracao { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-size: 26px; }
.nu-mc-fracao sup { font-size: 26px; border-bottom: 3px solid currentColor; padding: 0 4px; }
.nu-mc-pizza { width: 56px; height: 56px; }
.nu-mc-pizza svg { width: 100%; height: 100%; }

/* agrupar: a mesa e o laço */
.nu-mc-mesa {
  position: relative; width: min(100%, calc((100vh - 360px) * 1.25)); aspect-ratio: 5 / 4; margin: 0 auto; border-radius: 22px; touch-action: none;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .25), transparent 40%), repeating-linear-gradient(0deg, #d6a565 0 22px, #c99654 22px 24px); box-shadow: var(--sombra);
}
.nu-mc-laco { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 2; }
.nu-mc-peca { position: absolute; transform: translate(-50%, -50%); line-height: 1; transition: transform .25s, opacity .4s; pointer-events: none; }
.nu-mc-peca-caixa { width: min(13%, 64px); }
.nu-mc-peca-caixa svg { width: 100%; display: block; }
.nu-mc-peca.nu-mc-sel { transform: translate(-50%, -50%) scale(1.25); filter: drop-shadow(0 0 4px #7c3aed) drop-shadow(0 0 2px #fff); }
.nu-mc-peca.nu-mc-errou { animation: nu-mc-treme .12s 4; filter: drop-shadow(0 0 5px #ef4444); }
@keyframes nu-mc-treme { 0%, 100% { transform: translate(-50%, -50%); } 25% { transform: translate(calc(-50% - 5px), -50%); } 75% { transform: translate(calc(-50% + 5px), -50%); } }
.nu-mc-peca.nu-mc-foi { opacity: 0; transform: translate(-50%, 160%) scale(.4); }
.nu-mc-grupos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; min-height: 50px; }
.nu-mc-grupo { width: 58px; animation: pula .35s cubic-bezier(.2, 1.6, .4, 1); }
.nu-mc-grupo svg { width: 100%; display: block; }
.nu-mc-soltas-fixas { padding: 4px 12px; border-radius: 999px; background: #fff; font-weight: 900; }

/* pagar: o caixa, as notas e as moedas */
.nu-mc-caixa { min-height: 92px; padding: 8px; border-radius: 18px; background: #1e293b; box-shadow: var(--sombra); }
.nu-mc-caixa-titulo { display: block; color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.nu-mc-dentro { display: flex; flex-wrap: wrap; gap: 4px; min-height: 52px; }
.nu-mc-soma { align-self: center; padding: 4px 14px; border-radius: 999px; background: #fff; font-size: 20px; }
.nu-mc-bandeja { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.nu-mc-dinheiro { padding: 4px; border-radius: 14px; background: #fff; box-shadow: var(--sombra); touch-action: none; }
.nu-mc-dinheiro.nu-mc-d1 { width: 78px; }
.nu-mc-dinheiro.nu-mc-d10, .nu-mc-dinheiro.nu-mc-d100 { width: 112px; }
.nu-mc-dinheiro svg, .nu-mc-pago svg { width: 100%; display: block; pointer-events: none; }
.nu-mc-pago { padding: 0; animation: pula .2s; }
.nu-mc-pago.nu-mc-d1 { width: 40px; }
.nu-mc-pago.nu-mc-d10, .nu-mc-pago.nu-mc-d100 { width: 62px; }
.nu-mc-fantasma { position: fixed; left: 0; top: 0; z-index: 90; width: 70px; pointer-events: none; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.nu-mc-fantasma svg { width: 100%; }

/* repartir: a torta */
.nu-mc-torta { width: min(64vw, 240px, 34vh); aspect-ratio: 1; margin: 0 auto; touch-action: none; cursor: crosshair; }
.nu-mc-torta svg { width: 100%; height: 100%; display: block; overflow: visible; }
.nu-mc-pedaco { cursor: pointer; transition: transform .25s; transform-origin: 50px 50px; }
.nu-mc-pedaco.nu-mc-dado { transform: scale(.86); }
.nu-mc-pedaco.nu-mc-dado path { fill: #fde047; stroke: #a16207; }

/* balança */
.nu-mc-balanca { width: min(80vw, 300px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.nu-mc-prato { width: 100%; min-height: 64px; padding: 8px; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px; border-radius: 0 0 50% 50% / 0 0 40% 40%; background: #cbd5e1; border: 4px solid #64748b; }
.nu-mc-base { width: 70%; padding: 10px; border-radius: 16px 16px 8px 8px; background: #475569; display: grid; place-items: center; }
.nu-mc-visor { padding: 4px 16px; border-radius: 8px; background: #052e16; color: #4ade80; font-family: "Courier New", monospace; font-size: 26px; letter-spacing: 1px; }
.nu-mc-peso { padding: 8px 12px; border-radius: 12px 12px 6px 6px; color: #fff; font-weight: 900; font-size: 18px; box-shadow: 0 4px 0 rgba(0, 0, 0, .3); touch-action: none; }
.nu-mc-peso-10 { background: #334155; }
.nu-mc-peso-5 { background: #7c3aed; }
.nu-mc-peso-1 { background: #0891b2; }
.nu-mc-prato .nu-mc-peso { font-size: 14px; padding: 4px 8px; }
.nu-mc-praticou { padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .92); color: var(--tinta); font-size: 15px; line-height: 1.4; }
.nu-mc-praticou p { margin: 6px 0 0; font-weight: 800; }

@media (prefers-reduced-motion: reduce) { .nu-mao, .nu-mc-atual { animation: none; } }
