.bal-escena{--bal-caja:var(--eje-datos);--bal-caja-tinta:#fff;--bal-pesa:var(--primary);--bal-pesa-tinta:var(--primary-foreground);--bal-estructura:var(--border);flex-direction:column;align-items:center;padding:.5rem 0 0;display:flex}.bal-brazo{transform-origin:50% 100%;justify-content:space-between;align-items:flex-end;width:100%;max-width:22rem;transition:transform .6s;display:flex;position:relative}.bal-brazo:before{content:"";background:var(--bal-estructura);border-radius:9999px;height:.35rem;position:absolute;bottom:.35rem;left:4%;right:4%}.bal-inclinada-izq{transform:rotate(-7deg)}.bal-inclinada-der{transform:rotate(7deg)}.bal-intro-animada{animation:4s ease-in-out both bal-volver-equilibrio}.bal-intro-ecuacion{text-align:center;grid-template-columns:42% 16% 42%;align-items:start;max-width:22rem;margin:0 auto .75rem;font-size:2.25rem;font-weight:800;line-height:1.2;display:grid}.bal-intro-lado{flex-direction:column;gap:.4rem;display:flex}.bal-intro-lado small{font-size:.75rem;font-weight:600;line-height:1.4}.bal-intro-izquierda{color:var(--bal-intro-izquierda)}.bal-intro-derecha{color:var(--bal-intro-derecha)}.bal-intro-igual{animation:1.2s ease-in-out 4s both bal-igual-brilla}@keyframes bal-igual-brilla{0%,to{text-shadow:none}50%{color:var(--bal-intro-brillo);text-shadow:0 0 .35rem var(--bal-intro-brillo), 0 0 .8rem var(--bal-intro-brillo)}}@keyframes bal-volver-equilibrio{0%,45%,to{transform:rotate(0)}20%{transform:rotate(-7deg)}70%{transform:rotate(7deg)}}@media (prefers-reduced-motion:reduce){.bal-intro-animada,.bal-intro-igual{animation:none}}.bal-platillo{border-bottom:.45rem solid var(--bal-estructura);border-radius:0 0 1.2rem 1.2rem;flex-direction:column;justify-content:flex-end;align-items:center;gap:.25rem;width:42%;min-height:5.5rem;padding:.4rem .25rem .7rem;display:flex}.bal-pivote{border-left:1.1rem solid #0000;border-right:1.1rem solid #0000;border-bottom:1.8rem solid var(--bal-estructura);width:0;height:0;margin-top:-.2rem}.bal-base{background:var(--bal-estructura);border-radius:9999px;width:5.5rem;height:.5rem}.bal-caja{background:var(--bal-caja);min-width:2.6rem;height:2.6rem;color:var(--bal-caja-tinta);box-shadow:0 2px 0 var(--bal-estructura);border-radius:.6rem;justify-content:center;align-items:center;padding:0 .5rem;font-size:1.25rem;font-style:italic;font-weight:800;display:inline-flex}.bal-pesa{background:var(--bal-pesa);min-width:2.4rem;height:2.4rem;color:var(--bal-pesa-tinta);box-shadow:0 2px 0 var(--bal-estructura);border-radius:9999px 9999px .5rem .5rem;justify-content:center;align-items:center;padding:0 .45rem;font-size:1rem;font-weight:800;display:inline-flex}.bal-pesas{flex-wrap:wrap;justify-content:center;gap:.25rem;display:flex}.bal-platillo-cubitos{flex-direction:row;align-items:flex-end;gap:.5rem}.bal-cubitos{grid-template-columns:repeat(10,.6rem);grid-auto-rows:.6rem;gap:.15rem;min-height:1.35rem;display:grid}.bal-platillo-cubitos .bal-cubitos{grid-template-columns:repeat(4,.6rem)}.bal-cubito{background:var(--bal-pesa);border:1px solid var(--bal-pesa-tinta);border-radius:2px}.bal-cubito-sale{animation:1.4s ease-in-out both bal-cubito-retirar}.bal-retirando{transition:none;transform:rotate(0)}@keyframes bal-cubito-retirar{0%,15%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-3rem)}}@media (width>=768px){.bal-cubitos{grid-template-columns:repeat(10,.7rem);grid-auto-rows:.7rem}.bal-platillo-cubitos .bal-cubitos{grid-template-columns:repeat(4,.7rem)}}@media (prefers-reduced-motion:reduce){.bal-cubito-sale{opacity:0;animation:none}}.bal-error{border:2px solid var(--primary);background:color-mix(in srgb, var(--primary) 18%, transparent);color:var(--foreground);border-radius:.75rem;padding:.6rem .8rem;font-size:.9rem}.bal-abstracta>p:first-child{font-size:2rem}.bal-abstracta .bal-escena{max-width:16rem;margin:1rem auto}.bal-operacion{text-align:center;color:var(--leccion-agua);font-weight:700}.bal-grupos{flex-wrap:wrap;justify-content:center;gap:.25rem;display:flex}.bal-grupo-cien{color:var(--bal-pesa);flex-direction:column;align-items:center;display:flex}.bal-grupo-cien>span{font-size:1.5rem}.bal-centena{grid-template-columns:repeat(10,3px);grid-auto-rows:3px;gap:1px;display:grid}.bal-centena .bal-cubito{border:none;border-radius:0}.bal-grupo-cien small{color:var(--foreground);font-size:.6rem}.bal-cuarto .bal-escena{padding:1.25rem 0 .5rem}.bal-cuarto .bal-brazo{min-height:7rem}.bal-cuarto-expresion{flex-wrap:wrap;justify-content:center;align-items:center;gap:.3rem;font-size:1.125rem;font-weight:700;display:flex}.bal-cuarto-vacia{border:2px dashed var(--foreground);border-radius:.25rem;width:2rem;height:2rem;display:inline-block}.bal-cuarto-simbolo{text-align:center;width:16%;color:var(--foreground);font-size:2rem;font-weight:800;position:absolute;bottom:2.5rem;left:42%}.bal-cuarto-error .bal-brazo{animation:.9s ease-in-out bal-cuarto-intento}.bal-cuarto-acierto .bal-brazo{animation:1.2s ease-in-out bal-cuarto-celebra}@keyframes bal-cuarto-intento{35%{transform:rotate(-5deg)}70%{transform:rotate(4deg)}}@keyframes bal-cuarto-celebra{20%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}75%{transform:rotate(0)}}@media (width>=768px){.bal-cuarto .bal-brazo{max-width:28rem;min-height:8rem}.bal-cuarto-expresion{gap:.5rem;font-size:1.375rem}}@media (prefers-reduced-motion:reduce){.bal-cuarto-error .bal-brazo,.bal-cuarto-acierto .bal-brazo{transition:none;animation:none}}
