.math-options{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.math-options label{display:flex;align-items:center;gap:7px;padding:12px;border:1px solid #454a4a;border-radius:8px;font-size:22px}.math-settings{display:grid;gap:14px}.math-settings>label{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.math-settings input[type=number]{width:130px;padding:10px;font-size:16px}.math-settings fieldset{border:1px solid #454a4a;border-radius:8px}.math-settings p{font-size:13px;color:#b4bbb5;line-height:1.5}.math-play{display:grid;gap:18px}.math-expression{min-height:160px;display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;font:500 clamp(24px,5vw,48px)/1.2 Arial;padding:20px 8px;background:#172320;border:1px solid #3f5750;border-radius:12px;position:relative}.math-answer{display:inline-block;min-width:1.2em;min-height:1.2em;color:#efc46a;border-bottom:2px solid #786c45;position:relative;z-index:2}.math-power{align-self:center;transform:translateY(-.25em)}.math-correct{color:#80d39a}.math-wrong{color:#ff7373}.math-carry #operand,.math-carry #operation,.math-carry #equals,.math-carry #root-symbol{opacity:0;transition:opacity .3s}.math-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;max-width:390px;width:100%;margin:auto}.math-key{min-height:55px!important;font-size:24px!important}.math-key:last-child{grid-column:2}.math-results{display:flex;flex-wrap:wrap;gap:10px}.math-results>div{flex:1;min-width:100px;background:#252b2b;padding:10px;border-radius:8px}.math-results strong{display:block;font-size:22px;color:#efc46a}.math-results span{font-size:12px;color:#bcc1ba}.math-play[hidden]{display:none}.math-settings[hidden]{display:none}@media(max-width:640px){.math-expression{font-size:clamp(20px,6vw,32px);gap:5px;min-height:130px;padding:15px 4px}.math-key{min-height:50px!important}.math-options label{padding:8px;font-size:20px}}
.math-key{color:#f1eee5!important}.math-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.math-results>div{min-width:0}.math-expression{font-size:clamp(22px,7vw,48px)}@media(max-width:640px){.math-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
.math-settings{grid-template-columns:repeat(3,minmax(0,1fr))}.math-settings>fieldset,.math-settings>p,.math-settings>button{grid-column:1/-1}.math-settings>label{display:grid;grid-template-rows:1fr auto;align-items:stretch;gap:8px;min-width:0}.math-settings>label input[type=number],.math-settings>label select{box-sizing:border-box;width:100%;min-width:0;height:42px}.math-settings fieldset{min-width:0}@media(max-width:640px){.math-settings{gap:10px 8px}.math-settings>label{font-size:12px}.math-settings>label select{font-size:12px;padding:6px 2px}}
.math-number-bounds{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.math-number-bounds label{display:grid;grid-template-rows:1fr auto;gap:8px;min-width:0}.math-number-bounds input[type=number]{width:100%;min-width:0;box-sizing:border-box}@media(max-width:640px){.math-number-bounds{font-size:12px;gap:8px}}
.math-number-bounds input[type=number]{height:42px}
@media(min-width:900px){.math-settings{grid-template-columns:repeat(5,minmax(0,1fr));column-gap:10px}.math-number-bounds{display:contents}.math-settings>label,.math-number-bounds label{font-size:13px;line-height:1.35}.math-settings>label select{font-size:13px;padding:8px 4px}}
