.math-form { display: flex; gap: 20px; align-items: end; flex-wrap: wrap; }
.math-form input { max-width: 200px; }
.math-form .button { min-height: 49px; padding-block: 13px; }
/* Rechentrick: Prozentwerte entsprechen den Schritten der bisherigen Animation.
   Dauer zentral oben in raetsel.js ändern; ohne JavaScript gilt die 20-s-Vorgabe. */
.math-reveal { position: relative; width: 242px; max-width: 100%; margin: 25px 0; background: black; --zahlen-dauer: 20000ms; }
.math-reveal > img { width: 100%; height: auto; display: block; }
.math-mask { position: absolute; inset: 0; background: #000; transform-origin: center bottom; pointer-events: none; }
#rechentrick[open] .math-mask { animation: zahlen-aufdecken var(--zahlen-dauer) ease infinite; }
@keyframes zahlen-aufdecken {
    0% { transform: scaleY(1); }
    10% { transform: scaleY(.8625); }
    20% { transform: scaleY(.75); }
    30% { transform: scaleY(.64); }
    40% { transform: scaleY(.5275); }
    50% { transform: scaleY(.425); }
    60% { transform: scaleY(.3075); }
    70% { transform: scaleY(.2); }
    80%, 100% { transform: scaleY(0); }
}
.math-reset { margin-bottom: 25px; }
@media (prefers-reduced-motion: reduce) {
    #rechentrick[open] .math-mask { animation: none; transform: scaleY(0); }
}
