/* Bàn số nhập số đến 100 (num100.js), dùng chung từ Chủ đề 6.
   Một hàng phím 1 … 9, 0 như dãy số, thêm nút xóa và nút Xong. Phím đủ to cho ngón tay trẻ lớp 1 trên máy bảng ngang. */
.numpad { display: flex; align-items: center; justify-content: center; gap: clamp(5px, .8vw, 10px); flex-wrap: nowrap; }
.np-keys { display: flex; gap: clamp(5px, .8vw, 10px); }
.numpad .np-key { width: clamp(48px, 5.4vw, 70px); height: clamp(58px, 7.6vh, 72px); font-size: clamp(30px, 3.6vw, 42px); }
.numpad .np-del { width: clamp(52px, 5.6vw, 72px); height: clamp(58px, 7.6vh, 72px); display: grid; place-items: center; color: var(--coral-deep); }
.numpad .np-del svg { width: 62%; height: 62%; }
.numpad .np-ok { width: auto; min-width: clamp(96px, 10vw, 130px); height: clamp(58px, 7.6vh, 72px); padding: 0 16px; font-size: clamp(24px, 2.6vw, 30px); }
.np-show { --eq: clamp(58px, 7.6vh, 72px); margin-right: 6px; }
/* Số đang gõ trong ô trống: chữ xanh, ô chưa tô xanh lá cho tới khi đúng. */
.eq-box.typing { color: var(--blue); background: #fff; box-shadow: 0 5px 0 #BFE3F7, inset 0 0 0 3px var(--blue); }
.eq-box { font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .np-keys { flex-wrap: wrap; justify-content: center; max-width: 330px; }
  .numpad .np-key { width: 56px; height: 54px; }
}
@media (max-height: 520px) {
  .numpad .np-key, .numpad .np-del, .numpad .np-ok { height: 48px; }
}
