.target { position: relative; z-index: 2; min-width: 24px; min-height: 24px; } @media (pointer: coarse) { .target { min-width: 44px; min-height: 44px; } }