.math-motion{margin:14px 0;padding:14px;background:linear-gradient(135deg,#18273b,#101925);border:2px solid #c2ab65;border-radius:18px;box-shadow:inset 0 0 0 3px #07111d33;color:#f8f4df;overflow:hidden}
.motion-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:1rem;line-height:1.6}.motion-gem{color:#ffe57e;font-size:26px}.motion-equation{font-size:clamp(22px,5vw,32px);font-weight:900;text-align:center;margin:10px 0;line-height:1.5;font-variant-numeric:tabular-nums}.motion-stage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.motion-three{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.motion-bin{min-width:0;border:1px solid #91a4be5c;background:#ffffff08;border-radius:10px;padding:8px 6px;display:flex;flex-direction:column}.motion-bin>strong{font-size:12px;line-height:1.5;min-height:36px;text-align:center;overflow-wrap:anywhere}.motion-bank{display:flex;flex-wrap:wrap;align-content:flex-start;gap:5px;min-height:120px;flex:1;padding:8px 0;position:relative}.motion-token{display:inline-flex;align-items:center;justify-content:center;flex:0 0 21px;width:21px;height:26px;font-size:18px;color:#a4c8f6;text-shadow:0 1px 3px #000;position:relative;z-index:1}.motion-bundle{border:1px solid #ffe886;border-radius:5px;background:linear-gradient(135deg,#ffeba3,#aa7c2d);color:#141e2b;text-shadow:none;font-size:12px;flex-basis:27px;width:27px;height:29px;gap:1px;box-shadow:0 2px 0 #735019}.motion-bundle i{font-style:normal;font-size:10px}.motion-bundle b{font-size:12px}.motion-bonus{outline:2px solid #9cc4f9;outline-offset:2px}.motion-removed{opacity:.3;filter:grayscale(1);text-decoration:line-through}.motion-place-count{display:block;text-align:center;font-size:22px;color:#ffe57e;border-top:1px solid #bfcee233;padding-top:5px;line-height:1.5}.motion-caption{margin:12px 0;min-height:3em;line-height:1.6;font-size:.88rem}.motion-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}.motion-controls button{white-space:normal;line-height:1.5}.motion-status{font-weight:800;color:#b6d0f1;font-size:.8rem}.motion-next{display:block;width:100%;margin:14px 0}.column-motion{max-width:560px;margin:auto}.column-motion .motion-bank{min-height:136px}.column-motion .motion-three .motion-token{flex-basis:17px;width:17px;height:22px;font-size:15px}.column-motion .motion-three .motion-bundle{flex-basis:24px;width:24px;height:26px}.math-motion [data-motion-place="change"]{background:#24263c77;border-color:#aba2bf88}.math-motion [data-motion-place="ones"]{border-color:#80a7db}.math-motion [data-motion-place="tens"]{border-color:#efcf6c}.math-motion [data-motion-place="hundreds"]{border-color:#bca2ee}.math-motion [data-bank="hundreds"] .motion-bundle{background:linear-gradient(135deg,#e8ccff,#b697e5)}
@media(max-width:400px){.math-motion{padding:10px 8px}.motion-stage{gap:6px}.motion-bin{padding:6px 4px}.motion-three{gap:4px}.motion-three .motion-bin>strong{font-size:11px}.motion-heading{font-size:.9rem}.motion-bank{gap:4px}.column-motion .motion-three .motion-token{flex-basis:15px;width:15px;font-size:14px}.column-motion .motion-three .motion-bundle{flex-basis:23px;width:23px}.motion-place-count{font-size:18px}.motion-caption{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){.motion-token{transition:none!important;animation:none!important}}
.motion-place-count small{display:block;font-size:11px;font-weight:500;line-height:1.5}
.motion-bundle b{white-space:nowrap;flex-shrink:0;line-height:1}.motion-bundle i{display:none}.motion-bundle[data-value="100"] b{font-size:10px}
